]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
d46aa9b247392d896c7a3e4ed7b5fb9c8b63354e
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.2.9.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='bacula'
569 PACKAGE_TARNAME='bacula'
570 PACKAGE_VERSION='5.2.9'
571 PACKAGE_STRING='bacula 5.2.9'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 ac_unique_file="src/version.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_header_list=
613 ac_subst_vars='LTLIBOBJS
614 COMPRESS_MANPAGES
615 DISTVER
616 DISTNAME
617 MACOSX
618 WIN32
619 PSCMD
620 TAPEDRIVE
621 SYSTEMD_UNITDIR
622 OBJLIST
623 WRAPLIBS
624 WLDFLAGS
625 WCFLAGS
626 DLIB
627 DINCLUDE
628 DEBUG
629 FDLIBS
630 CAP_LIBS
631 AFS_LIBS
632 AFS_CFLAGS
633 LZOLIBS
634 ZLIBS
635 LIBOBJS
636 X_EXTRA_LIBS
637 X_LIBS
638 X_PRE_LIBS
639 X_CFLAGS
640 XMKMF
641 GETCONF
642 SHARED_CATALOG_TARGETS
643 DEFAULT_DB_TYPE
644 DB_LIBS
645 DB_BACKENDS
646 uncomment_dbi
647 SQLITE_BINDIR
648 SQLITE_INCLUDE
649 SQLITE_LIBS
650 MYSQL_BINDIR
651 MYSQL_INCLUDE
652 MYSQL_LIBS
653 POSTGRESQL_BINDIR
654 POSTGRESQL_INCLUDE
655 POSTGRESQL_LIBS
656 SBINPERM
657 fd_group
658 fd_user
659 sd_group
660 sd_user
661 dir_group
662 dir_user
663 db_port
664 db_password
665 db_user
666 db_name
667 mon_sd_password
668 mon_fd_password
669 mon_dir_password
670 sd_password
671 fd_password
672 dir_password
673 sd_port
674 fd_port
675 dir_port
676 baseport
677 subsysdir
678 piddir
679 smtp_host
680 job_email
681 dump_email
682 plugindir
683 logdir
684 bsrdir
685 scriptdir
686 hostname
687 basename
688 archivedir
689 working_dir
690 OPENSSL_INC
691 OPENSSL_LIBS
692 PYTHON_INCDIR
693 PYTHON_LIBS
694 READLINE_SRC
695 CONS_LDFLAGS
696 CONS_LIBS
697 CONS_SRC
698 CONS_OBJ
699 CONS_INC
700 STORED_DIR
701 DIR_TOOLS
702 DIRD_DIR
703 ALL_DIRS
704 STATIC_WX_CONS
705 STATIC_GNOME_CONS
706 STATIC_CONS
707 STATIC_DIR
708 STATIC_SD
709 STATIC_FD
710 TTOOL_LDFLAGS
711 TRAY_MONITOR_DIR
712 TRAY_MONITOR_LDFLAGS
713 TRAY_MONITOR_CPPFLAGS
714 WX_DIR
715 WXCONS_LDFLAGS
716 WXCONS_CPPFLAGS
717 QWT
718 QWT_LIB
719 QWT_LDFLAGS
720 QWT_INC
721 BAT_DIR
722 INTL_LIBTOOL_SUFFIX_PREFIX
723 INTLOBJS
724 GENCAT
725 INSTOBJEXT
726 DATADIRNAME
727 CATOBJEXT
728 USE_INCLUDED_LIBINTL
729 BUILD_INCLUDED_LIBINTL
730 INTLBISON
731 HAVE_WPRINTF
732 HAVE_SNPRINTF
733 HAVE_ASPRINTF
734 HAVE_POSIX_PRINTF
735 GLIBC21
736 ALLOCA
737 GLIBC2
738 POSUB
739 LTLIBINTL
740 LIBINTL
741 INTLLIBS
742 LTLIBICONV
743 LIBICONV
744 INTL_MACOSX_LIBS
745 MSGMERGE
746 XGETTEXT
747 GMSGFMT
748 MSGFMT
749 USE_NLS
750 MKINSTALLDIRS
751 SET_MAKE
752 HAVE_DARWIN_OS_FALSE
753 HAVE_DARWIN_OS_TRUE
754 HAVE_IRIX_OS_FALSE
755 HAVE_IRIX_OS_TRUE
756 HAVE_SGI_OS_FALSE
757 HAVE_SGI_OS_TRUE
758 HAVE_BSDI_OS_FALSE
759 HAVE_BSDI_OS_TRUE
760 HAVE_OPENBSD_OS_FALSE
761 HAVE_OPENBSD_OS_TRUE
762 HAVE_NETBSD_OS_FALSE
763 HAVE_NETBSD_OS_TRUE
764 HAVE_FREEBSD_OS_FALSE
765 HAVE_FREEBSD_OS_TRUE
766 HAVE_LINUX_OS_FALSE
767 HAVE_LINUX_OS_TRUE
768 HAVE_HPUX_OS_FALSE
769 HAVE_HPUX_OS_TRUE
770 HAVE_AIX_OS_FALSE
771 HAVE_AIX_OS_TRUE
772 HAVE_OSF1_OS_FALSE
773 HAVE_OSF1_OS_TRUE
774 HAVE_SUN_OS_FALSE
775 HAVE_SUN_OS_TRUE
776 INCLUDE_UNINSTALL_TARGET
777 INCLUDE_INSTALL_TARGET
778 FD_PLUGIN_DIR
779 QMAKE_LIBTOOL
780 LIBTOOL_CLEAN_TARGET
781 LIBTOOL_UNINSTALL_TARGET
782 LIBTOOL_INSTALL_TARGET
783 DEFAULT_SHARED_OBJECT_TYPE
784 DEFAULT_ARCHIVE_TYPE
785 DEFAULT_OBJECT_TYPE
786 LIBADD_DL
787 LT_DLPREOPEN
788 LIBADD_DLD_LINK
789 LIBADD_SHL_LOAD
790 LIBADD_DLOPEN
791 LT_DLLOADERS
792 CXXCPP
793 OTOOL64
794 OTOOL
795 LIPO
796 NMEDIT
797 DSYMUTIL
798 MANIFEST_TOOL
799 RANLIB
800 STRIP
801 ac_ct_AR
802 DLLTOOL
803 OBJDUMP
804 LN_S
805 NM
806 ac_ct_DUMPBIN
807 DUMPBIN
808 LD
809 FGREP
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 LIBTOOL
819 LOCAL_DEFS
820 LOCAL_LDFLAGS
821 LOCAL_CFLAGS
822 LOCAL_LIBS
823 MAKE_SHELL
824 ARFLAGS
825 AWK
826 PIDOF
827 CDRECORD
828 WXFLAGS
829 WXCONFIG
830 GMAKE
831 QMAKE
832 PKGCONFIG
833 DVDRWFORMAT
834 DVDRWMEDIAINFO
835 GROWISOFS
836 PYTHON
837 MKISOFS
838 DD
839 MTX
840 OPENSSL
841 AR
842 TBL
843 CMP
844 ECHO
845 SED
846 CP
847 REMOVE
848 MV
849 INSTALL_DATA
850 INSTALL_SCRIPT
851 INSTALL_PROGRAM
852 EGREP
853 GREP
854 CPP
855 ac_ct_CXX
856 CXXFLAGS
857 CXX
858 OBJEXT
859 EXEEXT
860 ac_ct_CC
861 CPPFLAGS
862 LDFLAGS
863 CFLAGS
864 CC
865 LIBBACFIND_LT_RELEASE
866 LIBBACCATS_LT_RELEASE
867 LIBBACSQL_LT_RELEASE
868 LIBBACPY_LT_RELEASE
869 LIBBACCFG_LT_RELEASE
870 LIBBAC_LT_RELEASE
871 BDB_VERSION
872 post_host
873 BACULA
874 LSMDATE
875 DATE
876 VERSION
877 FALSEPRG
878 TRUEPRG
879 WIN32TOPDIR
880 WIN32MAINDIR
881 WIN32BUILDDIR
882 TOP_DIR
883 BUILD_DIR
884 target_alias
885 host_alias
886 build_alias
887 LIBS
888 ECHO_T
889 ECHO_N
890 ECHO_C
891 DEFS
892 mandir
893 localedir
894 libdir
895 psdir
896 pdfdir
897 dvidir
898 htmldir
899 infodir
900 docdir
901 oldincludedir
902 includedir
903 localstatedir
904 sharedstatedir
905 sysconfdir
906 datadir
907 datarootdir
908 libexecdir
909 sbindir
910 bindir
911 program_transform_name
912 prefix
913 exec_prefix
914 PACKAGE_URL
915 PACKAGE_BUGREPORT
916 PACKAGE_STRING
917 PACKAGE_VERSION
918 PACKAGE_TARNAME
919 PACKAGE_NAME
920 PATH_SEPARATOR
921 SHELL'
922 ac_subst_files='MCOMMON'
923 ac_user_opts='
924 enable_option_checking
925 enable_libtool
926 enable_shared
927 enable_static
928 with_pic
929 enable_fast_install
930 with_gnu_ld
931 with_sysroot
932 enable_libtool_lock
933 enable_includes
934 enable_nls
935 enable_rpath
936 with_libiconv_prefix
937 with_libintl_prefix
938 with_included_gettext
939 enable_gnome
940 enable_bat
941 enable_bwx_console
942 enable_tray_monitor
943 enable_smartalloc
944 enable_lockmgr
945 enable_static_tools
946 enable_static_fd
947 enable_static_sd
948 enable_static_dir
949 enable_static_cons
950 enable_client_only
951 enable_build_dird
952 enable_build_stored
953 enable_conio
954 enable_ipv6
955 enable_readline
956 with_readline
957 with_python
958 with_tcp_wrappers
959 with_openssl
960 with_working_dir
961 with_archivedir
962 with_basename
963 with_hostname
964 with_scriptdir
965 with_bsrdir
966 with_logdir
967 with_plugindir
968 with_dump_email
969 with_job_email
970 with_smtp_host
971 with_pid_dir
972 with_subsys_dir
973 with_baseport
974 with_dir_password
975 with_fd_password
976 with_sd_password
977 with_mon_dir_password
978 with_mon_fd_password
979 with_mon_sd_password
980 with_db_name
981 with_db_user
982 with_db_password
983 with_db_port
984 with_dir_user
985 with_dir_group
986 with_sd_user
987 with_sd_group
988 with_fd_user
989 with_fd_group
990 with_sbin_perm
991 enable_batch_insert
992 with_postgresql
993 with_mysql
994 with_embedded_mysql
995 with_sqlite3
996 enable_largefile
997 with_x
998 enable_afs
999 with_afsdir
1000 enable_acl
1001 enable_xattr
1002 with_systemd
1003 '
1004       ac_precious_vars='build_alias
1005 host_alias
1006 target_alias
1007 CC
1008 CFLAGS
1009 LDFLAGS
1010 LIBS
1011 CPPFLAGS
1012 CXX
1013 CXXFLAGS
1014 CCC
1015 CPP
1016 WXCONFIG
1017 WXFLAGS
1018 CXXCPP
1019 XMKMF'
1020
1021
1022 # Initialize some variables set by options.
1023 ac_init_help=
1024 ac_init_version=false
1025 ac_unrecognized_opts=
1026 ac_unrecognized_sep=
1027 # The variables have the same names as the options, with
1028 # dashes changed to underlines.
1029 cache_file=/dev/null
1030 exec_prefix=NONE
1031 no_create=
1032 no_recursion=
1033 prefix=NONE
1034 program_prefix=NONE
1035 program_suffix=NONE
1036 program_transform_name=s,x,x,
1037 silent=
1038 site=
1039 srcdir=
1040 verbose=
1041 x_includes=NONE
1042 x_libraries=NONE
1043
1044 # Installation directory options.
1045 # These are left unexpanded so users can "make install exec_prefix=/foo"
1046 # and all the variables that are supposed to be based on exec_prefix
1047 # by default will actually change.
1048 # Use braces instead of parens because sh, perl, etc. also accept them.
1049 # (The list follows the same order as the GNU Coding Standards.)
1050 bindir='${exec_prefix}/bin'
1051 sbindir='${exec_prefix}/sbin'
1052 libexecdir='${exec_prefix}/libexec'
1053 datarootdir='${prefix}/share'
1054 datadir='${datarootdir}'
1055 sysconfdir='${prefix}/etc'
1056 sharedstatedir='${prefix}/com'
1057 localstatedir='${prefix}/var'
1058 includedir='${prefix}/include'
1059 oldincludedir='/usr/include'
1060 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1061 infodir='${datarootdir}/info'
1062 htmldir='${docdir}'
1063 dvidir='${docdir}'
1064 pdfdir='${docdir}'
1065 psdir='${docdir}'
1066 libdir='${exec_prefix}/lib'
1067 localedir='${datarootdir}/locale'
1068 mandir='${datarootdir}/man'
1069
1070 ac_prev=
1071 ac_dashdash=
1072 for ac_option
1073 do
1074   # If the previous option needs an argument, assign it.
1075   if test -n "$ac_prev"; then
1076     eval $ac_prev=\$ac_option
1077     ac_prev=
1078     continue
1079   fi
1080
1081   case $ac_option in
1082   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1083   *=)   ac_optarg= ;;
1084   *)    ac_optarg=yes ;;
1085   esac
1086
1087   # Accept the important Cygnus configure options, so we can diagnose typos.
1088
1089   case $ac_dashdash$ac_option in
1090   --)
1091     ac_dashdash=yes ;;
1092
1093   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1094     ac_prev=bindir ;;
1095   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1096     bindir=$ac_optarg ;;
1097
1098   -build | --build | --buil | --bui | --bu)
1099     ac_prev=build_alias ;;
1100   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1101     build_alias=$ac_optarg ;;
1102
1103   -cache-file | --cache-file | --cache-fil | --cache-fi \
1104   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1105     ac_prev=cache_file ;;
1106   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1107   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1108     cache_file=$ac_optarg ;;
1109
1110   --config-cache | -C)
1111     cache_file=config.cache ;;
1112
1113   -datadir | --datadir | --datadi | --datad)
1114     ac_prev=datadir ;;
1115   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1116     datadir=$ac_optarg ;;
1117
1118   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1119   | --dataroo | --dataro | --datar)
1120     ac_prev=datarootdir ;;
1121   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1122   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1123     datarootdir=$ac_optarg ;;
1124
1125   -disable-* | --disable-*)
1126     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1127     # Reject names that are not valid shell variable names.
1128     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129       as_fn_error $? "invalid feature name: $ac_useropt"
1130     ac_useropt_orig=$ac_useropt
1131     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132     case $ac_user_opts in
1133       *"
1134 "enable_$ac_useropt"
1135 "*) ;;
1136       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1137          ac_unrecognized_sep=', ';;
1138     esac
1139     eval enable_$ac_useropt=no ;;
1140
1141   -docdir | --docdir | --docdi | --doc | --do)
1142     ac_prev=docdir ;;
1143   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1144     docdir=$ac_optarg ;;
1145
1146   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1147     ac_prev=dvidir ;;
1148   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1149     dvidir=$ac_optarg ;;
1150
1151   -enable-* | --enable-*)
1152     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155       as_fn_error $? "invalid feature name: $ac_useropt"
1156     ac_useropt_orig=$ac_useropt
1157     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158     case $ac_user_opts in
1159       *"
1160 "enable_$ac_useropt"
1161 "*) ;;
1162       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1163          ac_unrecognized_sep=', ';;
1164     esac
1165     eval enable_$ac_useropt=\$ac_optarg ;;
1166
1167   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1168   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1169   | --exec | --exe | --ex)
1170     ac_prev=exec_prefix ;;
1171   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1172   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1173   | --exec=* | --exe=* | --ex=*)
1174     exec_prefix=$ac_optarg ;;
1175
1176   -gas | --gas | --ga | --g)
1177     # Obsolete; use --with-gas.
1178     with_gas=yes ;;
1179
1180   -help | --help | --hel | --he | -h)
1181     ac_init_help=long ;;
1182   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1183     ac_init_help=recursive ;;
1184   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1185     ac_init_help=short ;;
1186
1187   -host | --host | --hos | --ho)
1188     ac_prev=host_alias ;;
1189   -host=* | --host=* | --hos=* | --ho=*)
1190     host_alias=$ac_optarg ;;
1191
1192   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1193     ac_prev=htmldir ;;
1194   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1195   | --ht=*)
1196     htmldir=$ac_optarg ;;
1197
1198   -includedir | --includedir | --includedi | --included | --include \
1199   | --includ | --inclu | --incl | --inc)
1200     ac_prev=includedir ;;
1201   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1202   | --includ=* | --inclu=* | --incl=* | --inc=*)
1203     includedir=$ac_optarg ;;
1204
1205   -infodir | --infodir | --infodi | --infod | --info | --inf)
1206     ac_prev=infodir ;;
1207   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1208     infodir=$ac_optarg ;;
1209
1210   -libdir | --libdir | --libdi | --libd)
1211     ac_prev=libdir ;;
1212   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1213     libdir=$ac_optarg ;;
1214
1215   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1216   | --libexe | --libex | --libe)
1217     ac_prev=libexecdir ;;
1218   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1219   | --libexe=* | --libex=* | --libe=*)
1220     libexecdir=$ac_optarg ;;
1221
1222   -localedir | --localedir | --localedi | --localed | --locale)
1223     ac_prev=localedir ;;
1224   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1225     localedir=$ac_optarg ;;
1226
1227   -localstatedir | --localstatedir | --localstatedi | --localstated \
1228   | --localstate | --localstat | --localsta | --localst | --locals)
1229     ac_prev=localstatedir ;;
1230   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1231   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1232     localstatedir=$ac_optarg ;;
1233
1234   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1235     ac_prev=mandir ;;
1236   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1237     mandir=$ac_optarg ;;
1238
1239   -nfp | --nfp | --nf)
1240     # Obsolete; use --without-fp.
1241     with_fp=no ;;
1242
1243   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1244   | --no-cr | --no-c | -n)
1245     no_create=yes ;;
1246
1247   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1248   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1249     no_recursion=yes ;;
1250
1251   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1252   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1253   | --oldin | --oldi | --old | --ol | --o)
1254     ac_prev=oldincludedir ;;
1255   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1256   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1257   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1258     oldincludedir=$ac_optarg ;;
1259
1260   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1261     ac_prev=prefix ;;
1262   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1263     prefix=$ac_optarg ;;
1264
1265   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1266   | --program-pre | --program-pr | --program-p)
1267     ac_prev=program_prefix ;;
1268   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1269   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1270     program_prefix=$ac_optarg ;;
1271
1272   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1273   | --program-suf | --program-su | --program-s)
1274     ac_prev=program_suffix ;;
1275   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1276   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1277     program_suffix=$ac_optarg ;;
1278
1279   -program-transform-name | --program-transform-name \
1280   | --program-transform-nam | --program-transform-na \
1281   | --program-transform-n | --program-transform- \
1282   | --program-transform | --program-transfor \
1283   | --program-transfo | --program-transf \
1284   | --program-trans | --program-tran \
1285   | --progr-tra | --program-tr | --program-t)
1286     ac_prev=program_transform_name ;;
1287   -program-transform-name=* | --program-transform-name=* \
1288   | --program-transform-nam=* | --program-transform-na=* \
1289   | --program-transform-n=* | --program-transform-=* \
1290   | --program-transform=* | --program-transfor=* \
1291   | --program-transfo=* | --program-transf=* \
1292   | --program-trans=* | --program-tran=* \
1293   | --progr-tra=* | --program-tr=* | --program-t=*)
1294     program_transform_name=$ac_optarg ;;
1295
1296   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1297     ac_prev=pdfdir ;;
1298   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1299     pdfdir=$ac_optarg ;;
1300
1301   -psdir | --psdir | --psdi | --psd | --ps)
1302     ac_prev=psdir ;;
1303   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1304     psdir=$ac_optarg ;;
1305
1306   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307   | -silent | --silent | --silen | --sile | --sil)
1308     silent=yes ;;
1309
1310   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1311     ac_prev=sbindir ;;
1312   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1313   | --sbi=* | --sb=*)
1314     sbindir=$ac_optarg ;;
1315
1316   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318   | --sharedst | --shareds | --shared | --share | --shar \
1319   | --sha | --sh)
1320     ac_prev=sharedstatedir ;;
1321   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1324   | --sha=* | --sh=*)
1325     sharedstatedir=$ac_optarg ;;
1326
1327   -site | --site | --sit)
1328     ac_prev=site ;;
1329   -site=* | --site=* | --sit=*)
1330     site=$ac_optarg ;;
1331
1332   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1333     ac_prev=srcdir ;;
1334   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335     srcdir=$ac_optarg ;;
1336
1337   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338   | --syscon | --sysco | --sysc | --sys | --sy)
1339     ac_prev=sysconfdir ;;
1340   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342     sysconfdir=$ac_optarg ;;
1343
1344   -target | --target | --targe | --targ | --tar | --ta | --t)
1345     ac_prev=target_alias ;;
1346   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347     target_alias=$ac_optarg ;;
1348
1349   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1350     verbose=yes ;;
1351
1352   -version | --version | --versio | --versi | --vers | -V)
1353     ac_init_version=: ;;
1354
1355   -with-* | --with-*)
1356     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357     # Reject names that are not valid shell variable names.
1358     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359       as_fn_error $? "invalid package name: $ac_useropt"
1360     ac_useropt_orig=$ac_useropt
1361     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362     case $ac_user_opts in
1363       *"
1364 "with_$ac_useropt"
1365 "*) ;;
1366       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367          ac_unrecognized_sep=', ';;
1368     esac
1369     eval with_$ac_useropt=\$ac_optarg ;;
1370
1371   -without-* | --without-*)
1372     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373     # Reject names that are not valid shell variable names.
1374     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375       as_fn_error $? "invalid package name: $ac_useropt"
1376     ac_useropt_orig=$ac_useropt
1377     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378     case $ac_user_opts in
1379       *"
1380 "with_$ac_useropt"
1381 "*) ;;
1382       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383          ac_unrecognized_sep=', ';;
1384     esac
1385     eval with_$ac_useropt=no ;;
1386
1387   --x)
1388     # Obsolete; use --with-x.
1389     with_x=yes ;;
1390
1391   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392   | --x-incl | --x-inc | --x-in | --x-i)
1393     ac_prev=x_includes ;;
1394   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396     x_includes=$ac_optarg ;;
1397
1398   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400     ac_prev=x_libraries ;;
1401   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403     x_libraries=$ac_optarg ;;
1404
1405   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information"
1407     ;;
1408
1409   *=*)
1410     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411     # Reject names that are not valid shell variable names.
1412     case $ac_envvar in #(
1413       '' | [0-9]* | *[!_$as_cr_alnum]* )
1414       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1415     esac
1416     eval $ac_envvar=\$ac_optarg
1417     export $ac_envvar ;;
1418
1419   *)
1420     # FIXME: should be removed in autoconf 3.0.
1421     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1425     ;;
1426
1427   esac
1428 done
1429
1430 if test -n "$ac_prev"; then
1431   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432   as_fn_error $? "missing argument to $ac_option"
1433 fi
1434
1435 if test -n "$ac_unrecognized_opts"; then
1436   case $enable_option_checking in
1437     no) ;;
1438     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1439     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1440   esac
1441 fi
1442
1443 # Check all directory arguments for consistency.
1444 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445                 datadir sysconfdir sharedstatedir localstatedir includedir \
1446                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447                 libdir localedir mandir
1448 do
1449   eval ac_val=\$$ac_var
1450   # Remove trailing slashes.
1451   case $ac_val in
1452     */ )
1453       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454       eval $ac_var=\$ac_val;;
1455   esac
1456   # Be sure to have absolute directory names.
1457   case $ac_val in
1458     [\\/$]* | ?:[\\/]* )  continue;;
1459     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460   esac
1461   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1462 done
1463
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1467 build=$build_alias
1468 host=$host_alias
1469 target=$target_alias
1470
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473   if test "x$build_alias" = x; then
1474     cross_compiling=maybe
1475     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1476     If a cross compiler is detected then cross compile mode will be used" >&2
1477   elif test "x$build_alias" != "x$host_alias"; then
1478     cross_compiling=yes
1479   fi
1480 fi
1481
1482 ac_tool_prefix=
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1484
1485 test "$silent" = yes && exec 6>/dev/null
1486
1487
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491   as_fn_error $? "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493   as_fn_error $? "pwd does not report name of working directory"
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$as_myself" : 'X\(//\)[^/]' \| \
1503          X"$as_myself" : 'X\(//\)$' \| \
1504          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1533 fi
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 ac_abs_confdir=`(
1536         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1537         pwd)`
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540   srcdir=.
1541 fi
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1545 case $srcdir in
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 esac
1548 for ac_var in $ac_precious_vars; do
1549   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550   eval ac_env_${ac_var}_value=\$${ac_var}
1551   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 done
1554
1555 #
1556 # Report the --help message.
1557 #
1558 if test "$ac_init_help" = "long"; then
1559   # Omit some internal or obsolete options to make the list less imposing.
1560   # This message is too long to be a string in the A/UX 3.1 sh.
1561   cat <<_ACEOF
1562 \`configure' configures bacula 5.2.9 to adapt to many kinds of systems.
1563
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1565
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE.  See below for descriptions of some of the useful variables.
1568
1569 Defaults for the options are specified in brackets.
1570
1571 Configuration:
1572   -h, --help              display this help and exit
1573       --help=short        display options specific to this package
1574       --help=recursive    display the short help of all the included packages
1575   -V, --version           display version information and exit
1576   -q, --quiet, --silent   do not print \`checking ...' messages
1577       --cache-file=FILE   cache test results in FILE [disabled]
1578   -C, --config-cache      alias for \`--cache-file=config.cache'
1579   -n, --no-create         do not create output files
1580       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1581
1582 Installation directories:
1583   --prefix=PREFIX         install architecture-independent files in PREFIX
1584                           [$ac_default_prefix]
1585   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1586                           [PREFIX]
1587
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1592
1593 For better control, use the options below.
1594
1595 Fine tuning of the installation directories:
1596   --bindir=DIR            user executables [EPREFIX/bin]
1597   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1598   --libexecdir=DIR        program executables [EPREFIX/libexec]
1599   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1600   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1601   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1602   --libdir=DIR            object code libraries [EPREFIX/lib]
1603   --includedir=DIR        C header files [PREFIX/include]
1604   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1605   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1606   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1607   --infodir=DIR           info documentation [DATAROOTDIR/info]
1608   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1609   --mandir=DIR            man documentation [DATAROOTDIR/man]
1610   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1611   --htmldir=DIR           html documentation [DOCDIR]
1612   --dvidir=DIR            dvi documentation [DOCDIR]
1613   --pdfdir=DIR            pdf documentation [DOCDIR]
1614   --psdir=DIR             ps documentation [DOCDIR]
1615 _ACEOF
1616
1617   cat <<\_ACEOF
1618
1619 X features:
1620   --x-includes=DIR    X include files are in DIR
1621   --x-libraries=DIR   X library files are in DIR
1622
1623 System types:
1624   --build=BUILD     configure for building on BUILD [guessed]
1625   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1626 _ACEOF
1627 fi
1628
1629 if test -n "$ac_init_help"; then
1630   case $ac_init_help in
1631      short | recursive ) echo "Configuration of bacula 5.2.9:";;
1632    esac
1633   cat <<\_ACEOF
1634
1635 Optional Features:
1636   --disable-option-checking  ignore unrecognized --enable/--with options
1637   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1638   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1639   --enable-libtool        enable building using GNU libtool [default=yes]
1640   --enable-shared[=PKGS]  build shared libraries [default=yes]
1641   --enable-static[=PKGS]  build static libraries [default=no]
1642   --enable-fast-install[=PKGS]
1643                           optimize for fast installation [default=yes]
1644   --disable-libtool-lock  avoid locking (might break parallel builds)
1645   --enable-includes       enable installing of include files [default=no]
1646   --disable-nls           do not use Native Language Support
1647   --disable-rpath         do not hardcode runtime library paths
1648   --enable-gnome          enable build of bgnome-console GUI [default=no]
1649   --enable-bat            enable build of bat Qt4 GUI [default=no]
1650   --enable-bwx-console    enable build of wxWidgets console [default=no]
1651   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1652                           KDE [default=no]
1653   --enable-smartalloc     enable smartalloc debugging support [default=no]
1654   --enable-lockmgr        enable lock manager support [default=no]
1655   --enable-static-tools   enable static tape tools [default=no]
1656   --enable-static-fd      enable static File daemon [default=no]
1657   --enable-static-sd      enable static Storage daemon [default=no]
1658   --enable-static-dir     enable static Director [default=no]
1659   --enable-static-cons    enable static Console [default=no]
1660   --enable-client-only    build client (File daemon) only [default=no]
1661   --enable-build-dird     enable building of dird (Director) [default=yes]
1662   --enable-build-stored   enable building of stored (Storage daemon)
1663                           [default=yes]
1664   --disable-conio         disable conio support [default=no]
1665   --enable-ipv6           enable ipv6 support [default=yes]
1666   --disable-readline      disable readline support [default=yes]
1667   --enable-batch-insert   enable the DB batch insert code [default=yes]
1668   --disable-largefile     omit support for large files
1669   --disable-afs           disable afs support [default=auto]
1670   --disable-acl           disable acl support [default=auto]
1671   --disable-xattr         disable xattr support [default=auto]
1672
1673 Optional Packages:
1674   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1675   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1676   --with-pic              try to use only PIC/non-PIC objects [default=use
1677                           both]
1678   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1679   --with-sysroot=DIR Search for dependent libraries within DIR
1680                         (or the compiler's sysroot if not specified).
1681   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1682   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1683   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1684   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1685   --without-libintl-prefix     don't search for libintl in includedir and libdir
1686   --with-included-gettext use the GNU gettext library included here
1687   --with-readline[=DIR]   specify readline library directory
1688   --with-python[=DIR]     Include Python support. DIR is the Python base
1689                           install directory, default is to search through a
1690                           number of common places for the Python files.
1691   --with-tcp-wrappers[=DIR]
1692                           enable tcpwrappers support
1693   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1694   --with-working-dir=PATH specify path of Bacula working directory
1695   --with-archivedir=PATH  specify path of SD archive directory
1696   --with-basename=RESNAME specify base resource name for daemons
1697   --with-hostname=RESNAME specify host name for daemons
1698   --with-scriptdir=PATH   specify path of Bacula scripts directory
1699   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1700   --with-logdir=PATH      specify path of Bacula logs directory
1701   --with-plugindir=PATH   specify path of Bacula plugins directory
1702   --with-dump-email=EMAIL dump email address
1703   --with-job-email=EMAIL  job output email address
1704   --with-smtp-host=HOST   SMTP mail host address
1705   --with-pid-dir=PATH     specify location of Bacula pid files
1706   --with-subsys-dir=PATH  specify location of Bacula subsys file
1707   --with-baseport=PORT    specify base port address for daemons
1708   --with-dir-password=PASSWORD
1709                           specify Director's password
1710   --with-fd-password=PASSWORD
1711                           specify Client's password
1712   --with-sd-password=PASSWORD
1713                           specify Storage daemon's password
1714   --with-mon-dir-password=PASSWORD
1715                           specify Director's password used by the monitor
1716   --with-mon-fd-password=PASSWORD
1717                           specify Client's password used by the monitor
1718   --with-mon-sd-password=PASSWORD
1719                           specify Storage daemon's password used by the
1720                           monitor
1721   --with-db-name=DBNAME   specify database name [default=bacula]
1722   --with-db-user=UNAME    specify database user [default=bacula]
1723   --with-db-password=PWD  specify database password [default=*none*]
1724   --with-db-port=DBPORT   specify a database port [default=null]
1725   --with-dir-user=USER    specify user for Director daemon
1726   --with-dir-group=GROUP  specify group for Director daemon
1727   --with-sd-user=USER     specify user for Storage daemon
1728   --with-sd-group=GROUP   specify group for Storage daemon
1729   --with-fd-user=USER     specify user for File daemon
1730   --with-fd-group=GROUP   specify group for File daemon
1731   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1732   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733                           base install directory, [default=/usr/local/pgsql]
1734   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1735                           directory, default is to search through a number of
1736                           common places for the MySQL files.
1737   --with-embedded-mysql[=DIR]
1738                           Include MySQL support. DIR is the MySQL base install
1739                           directory, default is to search through a number of
1740                           common places for the MySQL files.
1741   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1742                           install directory, default is to search through a
1743                           number of common places for the SQLite3 files.
1744   --with-x                use the X Window System
1745   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1746   --with-systemd[=UNITDIR]
1747                           Include systemd support. UNITDIR is where systemd
1748                           system .service files are located, default is to ask
1749                           systemctl.
1750
1751 Some influential environment variables:
1752   CC          C compiler command
1753   CFLAGS      C compiler flags
1754   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1755               nonstandard directory <lib dir>
1756   LIBS        libraries to pass to the linker, e.g. -l<library>
1757   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1758               you have headers in a nonstandard directory <include dir>
1759   CXX         C++ compiler command
1760   CXXFLAGS    C++ compiler flags
1761   CPP         C preprocessor
1762   WXCONFIG    wx-config command. On some systems, you must set it to
1763               wx-config-2.6 to use wxWidgets 2.6.
1764   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1765   CXXCPP      C++ preprocessor
1766   XMKMF       Path to xmkmf, Makefile generator for X Window System
1767
1768 Use these variables to override the choices made by `configure' or to help
1769 it to find libraries and programs with nonstandard names/locations.
1770
1771 Report bugs to the package provider.
1772 _ACEOF
1773 ac_status=$?
1774 fi
1775
1776 if test "$ac_init_help" = "recursive"; then
1777   # If there are subdirs, report their specific --help.
1778   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779     test -d "$ac_dir" ||
1780       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1781       continue
1782     ac_builddir=.
1783
1784 case "$ac_dir" in
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 *)
1787   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788   # A ".." for each directory in $ac_dir_suffix.
1789   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790   case $ac_top_builddir_sub in
1791   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1793   esac ;;
1794 esac
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1799
1800 case $srcdir in
1801   .)  # We are building in place.
1802     ac_srcdir=.
1803     ac_top_srcdir=$ac_top_builddir_sub
1804     ac_abs_top_srcdir=$ac_pwd ;;
1805   [\\/]* | ?:[\\/]* )  # Absolute name.
1806     ac_srcdir=$srcdir$ac_dir_suffix;
1807     ac_top_srcdir=$srcdir
1808     ac_abs_top_srcdir=$srcdir ;;
1809   *) # Relative name.
1810     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811     ac_top_srcdir=$ac_top_build_prefix$srcdir
1812     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813 esac
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815
1816     cd "$ac_dir" || { ac_status=$?; continue; }
1817     # Check for guested configure.
1818     if test -f "$ac_srcdir/configure.gnu"; then
1819       echo &&
1820       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821     elif test -f "$ac_srcdir/configure"; then
1822       echo &&
1823       $SHELL "$ac_srcdir/configure" --help=recursive
1824     else
1825       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826     fi || ac_status=$?
1827     cd "$ac_pwd" || { ac_status=$?; break; }
1828   done
1829 fi
1830
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1833   cat <<\_ACEOF
1834 bacula configure 5.2.9
1835 generated by GNU Autoconf 2.68
1836
1837 Copyright (C) 2010 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1840 _ACEOF
1841   exit
1842 fi
1843
1844 ## ------------------------ ##
1845 ## Autoconf initialization. ##
1846 ## ------------------------ ##
1847
1848 # ac_fn_c_try_compile LINENO
1849 # --------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_compile ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   rm -f conftest.$ac_objext
1855   if { { ac_try="$ac_compile"
1856 case "(($ac_try" in
1857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858   *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862   (eval "$ac_compile") 2>conftest.err
1863   ac_status=$?
1864   if test -s conftest.err; then
1865     grep -v '^ *+' conftest.err >conftest.er1
1866     cat conftest.er1 >&5
1867     mv -f conftest.er1 conftest.err
1868   fi
1869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870   test $ac_status = 0; } && {
1871          test -z "$ac_c_werror_flag" ||
1872          test ! -s conftest.err
1873        } && test -s conftest.$ac_objext; then :
1874   ac_retval=0
1875 else
1876   $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879         ac_retval=1
1880 fi
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882   as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_compile
1885
1886 # ac_fn_cxx_try_compile LINENO
1887 # ----------------------------
1888 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_compile ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   rm -f conftest.$ac_objext
1893   if { { ac_try="$ac_compile"
1894 case "(($ac_try" in
1895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896   *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900   (eval "$ac_compile") 2>conftest.err
1901   ac_status=$?
1902   if test -s conftest.err; then
1903     grep -v '^ *+' conftest.err >conftest.er1
1904     cat conftest.er1 >&5
1905     mv -f conftest.er1 conftest.err
1906   fi
1907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908   test $ac_status = 0; } && {
1909          test -z "$ac_cxx_werror_flag" ||
1910          test ! -s conftest.err
1911        } && test -s conftest.$ac_objext; then :
1912   ac_retval=0
1913 else
1914   $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917         ac_retval=1
1918 fi
1919   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920   as_fn_set_status $ac_retval
1921
1922 } # ac_fn_cxx_try_compile
1923
1924 # ac_fn_c_try_cpp LINENO
1925 # ----------------------
1926 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_c_try_cpp ()
1928 {
1929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930   if { { ac_try="$ac_cpp conftest.$ac_ext"
1931 case "(($ac_try" in
1932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933   *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1938   ac_status=$?
1939   if test -s conftest.err; then
1940     grep -v '^ *+' conftest.err >conftest.er1
1941     cat conftest.er1 >&5
1942     mv -f conftest.er1 conftest.err
1943   fi
1944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945   test $ac_status = 0; } > conftest.i && {
1946          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1947          test ! -s conftest.err
1948        }; then :
1949   ac_retval=0
1950 else
1951   $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954     ac_retval=1
1955 fi
1956   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957   as_fn_set_status $ac_retval
1958
1959 } # ac_fn_c_try_cpp
1960
1961 # ac_fn_c_try_link LINENO
1962 # -----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded.
1964 ac_fn_c_try_link ()
1965 {
1966   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967   rm -f conftest.$ac_objext conftest$ac_exeext
1968   if { { ac_try="$ac_link"
1969 case "(($ac_try" in
1970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971   *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975   (eval "$ac_link") 2>conftest.err
1976   ac_status=$?
1977   if test -s conftest.err; then
1978     grep -v '^ *+' conftest.err >conftest.er1
1979     cat conftest.er1 >&5
1980     mv -f conftest.er1 conftest.err
1981   fi
1982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983   test $ac_status = 0; } && {
1984          test -z "$ac_c_werror_flag" ||
1985          test ! -s conftest.err
1986        } && test -s conftest$ac_exeext && {
1987          test "$cross_compiling" = yes ||
1988          $as_test_x conftest$ac_exeext
1989        }; then :
1990   ac_retval=0
1991 else
1992   $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995         ac_retval=1
1996 fi
1997   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999   # interfere with the next link command; also delete a directory that is
2000   # left behind by Apple's compiler.  We do this before executing the actions.
2001   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003   as_fn_set_status $ac_retval
2004
2005 } # ac_fn_c_try_link
2006
2007 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists and can be compiled using the include files in
2010 # INCLUDES, setting the cache variable VAR accordingly.
2011 ac_fn_c_check_header_compile ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017   $as_echo_n "(cached) " >&6
2018 else
2019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 $4
2022 #include <$2>
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025   eval "$3=yes"
2026 else
2027   eval "$3=no"
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 fi
2031 eval ac_res=\$$3
2032                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036 } # ac_fn_c_check_header_compile
2037
2038 # ac_fn_c_try_run LINENO
2039 # ----------------------
2040 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2041 # that executables *can* be run.
2042 ac_fn_c_try_run ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   if { { ac_try="$ac_link"
2046 case "(($ac_try" in
2047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048   *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052   (eval "$ac_link") 2>&5
2053   ac_status=$?
2054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2056   { { case "(($ac_try" in
2057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058   *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062   (eval "$ac_try") 2>&5
2063   ac_status=$?
2064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065   test $ac_status = 0; }; }; then :
2066   ac_retval=0
2067 else
2068   $as_echo "$as_me: program exited with status $ac_status" >&5
2069        $as_echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072        ac_retval=$ac_status
2073 fi
2074   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076   as_fn_set_status $ac_retval
2077
2078 } # ac_fn_c_try_run
2079
2080 # ac_fn_c_check_func LINENO FUNC VAR
2081 # ----------------------------------
2082 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2083 ac_fn_c_check_func ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \${$3+:} false; then :
2089   $as_echo_n "(cached) " >&6
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2095 #define $2 innocuous_$2
2096
2097 /* System header to define __stub macros and hopefully few prototypes,
2098     which can conflict with char $2 (); below.
2099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2100     <limits.h> exists even on freestanding compilers.  */
2101
2102 #ifdef __STDC__
2103 # include <limits.h>
2104 #else
2105 # include <assert.h>
2106 #endif
2107
2108 #undef $2
2109
2110 /* Override any GCC internal prototype to avoid an error.
2111    Use char because int might match the return type of a GCC
2112    builtin and then its argument prototype would still apply.  */
2113 #ifdef __cplusplus
2114 extern "C"
2115 #endif
2116 char $2 ();
2117 /* The GNU C library defines this for functions which it implements
2118     to always fail with ENOSYS.  Some functions are actually named
2119     something starting with __ and the normal name is an alias.  */
2120 #if defined __stub_$2 || defined __stub___$2
2121 choke me
2122 #endif
2123
2124 int
2125 main ()
2126 {
2127 return $2 ();
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_link "$LINENO"; then :
2133   eval "$3=yes"
2134 else
2135   eval "$3=no"
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext \
2138     conftest$ac_exeext conftest.$ac_ext
2139 fi
2140 eval ac_res=\$$3
2141                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144
2145 } # ac_fn_c_check_func
2146
2147 # ac_fn_cxx_try_cpp LINENO
2148 # ------------------------
2149 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2150 ac_fn_cxx_try_cpp ()
2151 {
2152   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153   if { { ac_try="$ac_cpp conftest.$ac_ext"
2154 case "(($ac_try" in
2155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156   *) ac_try_echo=$ac_try;;
2157 esac
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 $as_echo "$ac_try_echo"; } >&5
2160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2161   ac_status=$?
2162   if test -s conftest.err; then
2163     grep -v '^ *+' conftest.err >conftest.er1
2164     cat conftest.er1 >&5
2165     mv -f conftest.er1 conftest.err
2166   fi
2167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168   test $ac_status = 0; } > conftest.i && {
2169          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2170          test ! -s conftest.err
2171        }; then :
2172   ac_retval=0
2173 else
2174   $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177     ac_retval=1
2178 fi
2179   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180   as_fn_set_status $ac_retval
2181
2182 } # ac_fn_cxx_try_cpp
2183
2184 # ac_fn_cxx_try_link LINENO
2185 # -------------------------
2186 # Try to link conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_cxx_try_link ()
2188 {
2189   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190   rm -f conftest.$ac_objext conftest$ac_exeext
2191   if { { ac_try="$ac_link"
2192 case "(($ac_try" in
2193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194   *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198   (eval "$ac_link") 2>conftest.err
2199   ac_status=$?
2200   if test -s conftest.err; then
2201     grep -v '^ *+' conftest.err >conftest.er1
2202     cat conftest.er1 >&5
2203     mv -f conftest.er1 conftest.err
2204   fi
2205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206   test $ac_status = 0; } && {
2207          test -z "$ac_cxx_werror_flag" ||
2208          test ! -s conftest.err
2209        } && test -s conftest$ac_exeext && {
2210          test "$cross_compiling" = yes ||
2211          $as_test_x conftest$ac_exeext
2212        }; then :
2213   ac_retval=0
2214 else
2215   $as_echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218         ac_retval=1
2219 fi
2220   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2221   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2222   # interfere with the next link command; also delete a directory that is
2223   # left behind by Apple's compiler.  We do this before executing the actions.
2224   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2225   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226   as_fn_set_status $ac_retval
2227
2228 } # ac_fn_cxx_try_link
2229
2230 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2231 # ---------------------------------------------
2232 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2233 # accordingly.
2234 ac_fn_c_check_decl ()
2235 {
2236   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237   as_decl_name=`echo $2|sed 's/ *(.*//'`
2238   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2240 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2241 if eval \${$3+:} false; then :
2242   $as_echo_n "(cached) " >&6
2243 else
2244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h.  */
2246 $4
2247 int
2248 main ()
2249 {
2250 #ifndef $as_decl_name
2251 #ifdef __cplusplus
2252   (void) $as_decl_use;
2253 #else
2254   (void) $as_decl_name;
2255 #endif
2256 #endif
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263   eval "$3=yes"
2264 else
2265   eval "$3=no"
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 eval ac_res=\$$3
2270                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271 $as_echo "$ac_res" >&6; }
2272   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273
2274 } # ac_fn_c_check_decl
2275
2276 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2277 # -------------------------------------------
2278 # Tests whether TYPE exists after having included INCLUDES, setting cache
2279 # variable VAR accordingly.
2280 ac_fn_c_check_type ()
2281 {
2282   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2284 $as_echo_n "checking for $2... " >&6; }
2285 if eval \${$3+:} false; then :
2286   $as_echo_n "(cached) " >&6
2287 else
2288   eval "$3=no"
2289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h.  */
2291 $4
2292 int
2293 main ()
2294 {
2295 if (sizeof ($2))
2296          return 0;
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h.  */
2304 $4
2305 int
2306 main ()
2307 {
2308 if (sizeof (($2)))
2309             return 0;
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315
2316 else
2317   eval "$3=yes"
2318 fi
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 eval ac_res=\$$3
2324                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327
2328 } # ac_fn_c_check_type
2329
2330 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2331 # -------------------------------------------------------
2332 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2333 # the include files in INCLUDES and setting the cache variable VAR
2334 # accordingly.
2335 ac_fn_c_check_header_mongrel ()
2336 {
2337   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338   if eval \${$3+:} false; then :
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if eval \${$3+:} false; then :
2342   $as_echo_n "(cached) " >&6
2343 fi
2344 eval ac_res=\$$3
2345                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 else
2348   # Is the header compilable?
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2350 $as_echo_n "checking $2 usability... " >&6; }
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h.  */
2353 $4
2354 #include <$2>
2355 _ACEOF
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357   ac_header_compiler=yes
2358 else
2359   ac_header_compiler=no
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2363 $as_echo "$ac_header_compiler" >&6; }
2364
2365 # Is the header present?
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2367 $as_echo_n "checking $2 presence... " >&6; }
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h.  */
2370 #include <$2>
2371 _ACEOF
2372 if ac_fn_c_try_cpp "$LINENO"; then :
2373   ac_header_preproc=yes
2374 else
2375   ac_header_preproc=no
2376 fi
2377 rm -f conftest.err conftest.i conftest.$ac_ext
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2379 $as_echo "$ac_header_preproc" >&6; }
2380
2381 # So?  What about this header?
2382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2383   yes:no: )
2384     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2385 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2386     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2387 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2388     ;;
2389   no:yes:* )
2390     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2391 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2393 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2395 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2397 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2398     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2399 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2400     ;;
2401 esac
2402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2403 $as_echo_n "checking for $2... " >&6; }
2404 if eval \${$3+:} false; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   eval "$3=\$ac_header_compiler"
2408 fi
2409 eval ac_res=\$$3
2410                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2412 fi
2413   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414
2415 } # ac_fn_c_check_header_mongrel
2416
2417 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2418 # --------------------------------------------
2419 # Tries to find the compile-time value of EXPR in a program that includes
2420 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2421 # computed
2422 ac_fn_c_compute_int ()
2423 {
2424   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425   if test "$cross_compiling" = yes; then
2426     # Depending upon the size, compute the lo and hi bounds.
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h.  */
2429 $4
2430 int
2431 main ()
2432 {
2433 static int test_array [1 - 2 * !(($2) >= 0)];
2434 test_array [0] = 0
2435
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441   ac_lo=0 ac_mid=0
2442   while :; do
2443     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h.  */
2445 $4
2446 int
2447 main ()
2448 {
2449 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2450 test_array [0] = 0
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457   ac_hi=$ac_mid; break
2458 else
2459   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2460                         if test $ac_lo -le $ac_mid; then
2461                           ac_lo= ac_hi=
2462                           break
2463                         fi
2464                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2465 fi
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467   done
2468 else
2469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h.  */
2471 $4
2472 int
2473 main ()
2474 {
2475 static int test_array [1 - 2 * !(($2) < 0)];
2476 test_array [0] = 0
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483   ac_hi=-1 ac_mid=-1
2484   while :; do
2485     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h.  */
2487 $4
2488 int
2489 main ()
2490 {
2491 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2492 test_array [0] = 0
2493
2494   ;
2495   return 0;
2496 }
2497 _ACEOF
2498 if ac_fn_c_try_compile "$LINENO"; then :
2499   ac_lo=$ac_mid; break
2500 else
2501   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2502                         if test $ac_mid -le $ac_hi; then
2503                           ac_lo= ac_hi=
2504                           break
2505                         fi
2506                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2507 fi
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509   done
2510 else
2511   ac_lo= ac_hi=
2512 fi
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 fi
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 # Binary search between lo and hi bounds.
2517 while test "x$ac_lo" != "x$ac_hi"; do
2518   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h.  */
2521 $4
2522 int
2523 main ()
2524 {
2525 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2526 test_array [0] = 0
2527
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 if ac_fn_c_try_compile "$LINENO"; then :
2533   ac_hi=$ac_mid
2534 else
2535   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2536 fi
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 done
2539 case $ac_lo in #((
2540 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2541 '') ac_retval=1 ;;
2542 esac
2543   else
2544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h.  */
2546 $4
2547 static long int longval () { return $2; }
2548 static unsigned long int ulongval () { return $2; }
2549 #include <stdio.h>
2550 #include <stdlib.h>
2551 int
2552 main ()
2553 {
2554
2555   FILE *f = fopen ("conftest.val", "w");
2556   if (! f)
2557     return 1;
2558   if (($2) < 0)
2559     {
2560       long int i = longval ();
2561       if (i != ($2))
2562         return 1;
2563       fprintf (f, "%ld", i);
2564     }
2565   else
2566     {
2567       unsigned long int i = ulongval ();
2568       if (i != ($2))
2569         return 1;
2570       fprintf (f, "%lu", i);
2571     }
2572   /* Do not output a trailing newline, as this causes \r\n confusion
2573      on some platforms.  */
2574   return ferror (f) || fclose (f) != 0;
2575
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 if ac_fn_c_try_run "$LINENO"; then :
2581   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2582 else
2583   ac_retval=1
2584 fi
2585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2586   conftest.$ac_objext conftest.beam conftest.$ac_ext
2587 rm -f conftest.val
2588
2589   fi
2590   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591   as_fn_set_status $ac_retval
2592
2593 } # ac_fn_c_compute_int
2594
2595 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2596 # ----------------------------------------------------
2597 # Tries to find if the field MEMBER exists in type AGGR, after including
2598 # INCLUDES, setting cache variable VAR accordingly.
2599 ac_fn_c_check_member ()
2600 {
2601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2603 $as_echo_n "checking for $2.$3... " >&6; }
2604 if eval \${$4+:} false; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h.  */
2609 $5
2610 int
2611 main ()
2612 {
2613 static $2 ac_aggr;
2614 if (ac_aggr.$3)
2615 return 0;
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_c_try_compile "$LINENO"; then :
2621   eval "$4=yes"
2622 else
2623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h.  */
2625 $5
2626 int
2627 main ()
2628 {
2629 static $2 ac_aggr;
2630 if (sizeof ac_aggr.$3)
2631 return 0;
2632   ;
2633   return 0;
2634 }
2635 _ACEOF
2636 if ac_fn_c_try_compile "$LINENO"; then :
2637   eval "$4=yes"
2638 else
2639   eval "$4=no"
2640 fi
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 fi
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 fi
2645 eval ac_res=\$$4
2646                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647 $as_echo "$ac_res" >&6; }
2648   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2649
2650 } # ac_fn_c_check_member
2651
2652 # ac_fn_cxx_try_run LINENO
2653 # ------------------------
2654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2655 # that executables *can* be run.
2656 ac_fn_cxx_try_run ()
2657 {
2658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659   if { { ac_try="$ac_link"
2660 case "(($ac_try" in
2661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662   *) ac_try_echo=$ac_try;;
2663 esac
2664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665 $as_echo "$ac_try_echo"; } >&5
2666   (eval "$ac_link") 2>&5
2667   ac_status=$?
2668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2670   { { case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676   (eval "$ac_try") 2>&5
2677   ac_status=$?
2678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679   test $ac_status = 0; }; }; then :
2680   ac_retval=0
2681 else
2682   $as_echo "$as_me: program exited with status $ac_status" >&5
2683        $as_echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686        ac_retval=$ac_status
2687 fi
2688   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2689   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690   as_fn_set_status $ac_retval
2691
2692 } # ac_fn_cxx_try_run
2693
2694 # ac_fn_cxx_check_func LINENO FUNC VAR
2695 # ------------------------------------
2696 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2697 ac_fn_cxx_check_func ()
2698 {
2699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2701 $as_echo_n "checking for $2... " >&6; }
2702 if eval \${$3+:} false; then :
2703   $as_echo_n "(cached) " >&6
2704 else
2705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h.  */
2707 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2709 #define $2 innocuous_$2
2710
2711 /* System header to define __stub macros and hopefully few prototypes,
2712     which can conflict with char $2 (); below.
2713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2714     <limits.h> exists even on freestanding compilers.  */
2715
2716 #ifdef __STDC__
2717 # include <limits.h>
2718 #else
2719 # include <assert.h>
2720 #endif
2721
2722 #undef $2
2723
2724 /* Override any GCC internal prototype to avoid an error.
2725    Use char because int might match the return type of a GCC
2726    builtin and then its argument prototype would still apply.  */
2727 #ifdef __cplusplus
2728 extern "C"
2729 #endif
2730 char $2 ();
2731 /* The GNU C library defines this for functions which it implements
2732     to always fail with ENOSYS.  Some functions are actually named
2733     something starting with __ and the normal name is an alias.  */
2734 #if defined __stub_$2 || defined __stub___$2
2735 choke me
2736 #endif
2737
2738 int
2739 main ()
2740 {
2741 return $2 ();
2742   ;
2743   return 0;
2744 }
2745 _ACEOF
2746 if ac_fn_cxx_try_link "$LINENO"; then :
2747   eval "$3=yes"
2748 else
2749   eval "$3=no"
2750 fi
2751 rm -f core conftest.err conftest.$ac_objext \
2752     conftest$ac_exeext conftest.$ac_ext
2753 fi
2754 eval ac_res=\$$3
2755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756 $as_echo "$ac_res" >&6; }
2757   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2758
2759 } # ac_fn_cxx_check_func
2760 cat >config.log <<_ACEOF
2761 This file contains any messages produced by compilers while
2762 running configure, to aid debugging if configure makes a mistake.
2763
2764 It was created by bacula $as_me 5.2.9, which was
2765 generated by GNU Autoconf 2.68.  Invocation command line was
2766
2767   $ $0 $@
2768
2769 _ACEOF
2770 exec 5>>config.log
2771 {
2772 cat <<_ASUNAME
2773 ## --------- ##
2774 ## Platform. ##
2775 ## --------- ##
2776
2777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2782
2783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2784 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2785
2786 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2787 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2789 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2790 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2791 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2792 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2793
2794 _ASUNAME
2795
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801     $as_echo "PATH: $as_dir"
2802   done
2803 IFS=$as_save_IFS
2804
2805 } >&5
2806
2807 cat >&5 <<_ACEOF
2808
2809
2810 ## ----------- ##
2811 ## Core tests. ##
2812 ## ----------- ##
2813
2814 _ACEOF
2815
2816
2817 # Keep a trace of the command line.
2818 # Strip out --no-create and --no-recursion so they do not pile up.
2819 # Strip out --silent because we don't want to record it for future runs.
2820 # Also quote any args containing shell meta-characters.
2821 # Make two passes to allow for proper duplicate-argument suppression.
2822 ac_configure_args=
2823 ac_configure_args0=
2824 ac_configure_args1=
2825 ac_must_keep_next=false
2826 for ac_pass in 1 2
2827 do
2828   for ac_arg
2829   do
2830     case $ac_arg in
2831     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2832     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2833     | -silent | --silent | --silen | --sile | --sil)
2834       continue ;;
2835     *\'*)
2836       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2837     esac
2838     case $ac_pass in
2839     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2840     2)
2841       as_fn_append ac_configure_args1 " '$ac_arg'"
2842       if test $ac_must_keep_next = true; then
2843         ac_must_keep_next=false # Got value, back to normal.
2844       else
2845         case $ac_arg in
2846           *=* | --config-cache | -C | -disable-* | --disable-* \
2847           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2848           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2849           | -with-* | --with-* | -without-* | --without-* | --x)
2850             case "$ac_configure_args0 " in
2851               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2852             esac
2853             ;;
2854           -* ) ac_must_keep_next=true ;;
2855         esac
2856       fi
2857       as_fn_append ac_configure_args " '$ac_arg'"
2858       ;;
2859     esac
2860   done
2861 done
2862 { ac_configure_args0=; unset ac_configure_args0;}
2863 { ac_configure_args1=; unset ac_configure_args1;}
2864
2865 # When interrupted or exit'd, cleanup temporary files, and complete
2866 # config.log.  We remove comments because anyway the quotes in there
2867 # would cause problems or look ugly.
2868 # WARNING: Use '\'' to represent an apostrophe within the trap.
2869 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2870 trap 'exit_status=$?
2871   # Save into config.log some information that might help in debugging.
2872   {
2873     echo
2874
2875     $as_echo "## ---------------- ##
2876 ## Cache variables. ##
2877 ## ---------------- ##"
2878     echo
2879     # The following way of writing the cache mishandles newlines in values,
2880 (
2881   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2882     eval ac_val=\$$ac_var
2883     case $ac_val in #(
2884     *${as_nl}*)
2885       case $ac_var in #(
2886       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2888       esac
2889       case $ac_var in #(
2890       _ | IFS | as_nl) ;; #(
2891       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2892       *) { eval $ac_var=; unset $ac_var;} ;;
2893       esac ;;
2894     esac
2895   done
2896   (set) 2>&1 |
2897     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2898     *${as_nl}ac_space=\ *)
2899       sed -n \
2900         "s/'\''/'\''\\\\'\'''\''/g;
2901           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2902       ;; #(
2903     *)
2904       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2905       ;;
2906     esac |
2907     sort
2908 )
2909     echo
2910
2911     $as_echo "## ----------------- ##
2912 ## Output variables. ##
2913 ## ----------------- ##"
2914     echo
2915     for ac_var in $ac_subst_vars
2916     do
2917       eval ac_val=\$$ac_var
2918       case $ac_val in
2919       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2920       esac
2921       $as_echo "$ac_var='\''$ac_val'\''"
2922     done | sort
2923     echo
2924
2925     if test -n "$ac_subst_files"; then
2926       $as_echo "## ------------------- ##
2927 ## File substitutions. ##
2928 ## ------------------- ##"
2929       echo
2930       for ac_var in $ac_subst_files
2931       do
2932         eval ac_val=\$$ac_var
2933         case $ac_val in
2934         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2935         esac
2936         $as_echo "$ac_var='\''$ac_val'\''"
2937       done | sort
2938       echo
2939     fi
2940
2941     if test -s confdefs.h; then
2942       $as_echo "## ----------- ##
2943 ## confdefs.h. ##
2944 ## ----------- ##"
2945       echo
2946       cat confdefs.h
2947       echo
2948     fi
2949     test "$ac_signal" != 0 &&
2950       $as_echo "$as_me: caught signal $ac_signal"
2951     $as_echo "$as_me: exit $exit_status"
2952   } >&5
2953   rm -f core *.core core.conftest.* &&
2954     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2955     exit $exit_status
2956 ' 0
2957 for ac_signal in 1 2 13 15; do
2958   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2959 done
2960 ac_signal=0
2961
2962 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2963 rm -f -r conftest* confdefs.h
2964
2965 $as_echo "/* confdefs.h */" > confdefs.h
2966
2967 # Predefined preprocessor variables.
2968
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_NAME "$PACKAGE_NAME"
2971 _ACEOF
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2975 _ACEOF
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2979 _ACEOF
2980
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_STRING "$PACKAGE_STRING"
2983 _ACEOF
2984
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2987 _ACEOF
2988
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE_URL "$PACKAGE_URL"
2991 _ACEOF
2992
2993
2994 # Let the site file select an alternate cache file if it wants to.
2995 # Prefer an explicitly selected file to automatically selected ones.
2996 ac_site_file1=NONE
2997 ac_site_file2=NONE
2998 if test -n "$CONFIG_SITE"; then
2999   # We do not want a PATH search for config.site.
3000   case $CONFIG_SITE in #((
3001     -*)  ac_site_file1=./$CONFIG_SITE;;
3002     */*) ac_site_file1=$CONFIG_SITE;;
3003     *)   ac_site_file1=./$CONFIG_SITE;;
3004   esac
3005 elif test "x$prefix" != xNONE; then
3006   ac_site_file1=$prefix/share/config.site
3007   ac_site_file2=$prefix/etc/config.site
3008 else
3009   ac_site_file1=$ac_default_prefix/share/config.site
3010   ac_site_file2=$ac_default_prefix/etc/config.site
3011 fi
3012 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3013 do
3014   test "x$ac_site_file" = xNONE && continue
3015   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3016     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3017 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3018     sed 's/^/| /' "$ac_site_file" >&5
3019     . "$ac_site_file" \
3020       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "failed to load site script $ac_site_file
3023 See \`config.log' for more details" "$LINENO" 5; }
3024   fi
3025 done
3026
3027 if test -r "$cache_file"; then
3028   # Some versions of bash will fail to source /dev/null (special files
3029   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3030   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3031     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3032 $as_echo "$as_me: loading cache $cache_file" >&6;}
3033     case $cache_file in
3034       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3035       *)                      . "./$cache_file";;
3036     esac
3037   fi
3038 else
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3040 $as_echo "$as_me: creating cache $cache_file" >&6;}
3041   >$cache_file
3042 fi
3043
3044 as_fn_append ac_header_list " stdlib.h"
3045 as_fn_append ac_header_list " unistd.h"
3046 as_fn_append ac_header_list " sys/param.h"
3047 # Check that the precious variables saved in the cache have kept the same
3048 # value.
3049 ac_cache_corrupted=false
3050 for ac_var in $ac_precious_vars; do
3051   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3052   eval ac_new_set=\$ac_env_${ac_var}_set
3053   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3054   eval ac_new_val=\$ac_env_${ac_var}_value
3055   case $ac_old_set,$ac_new_set in
3056     set,)
3057       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3058 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3059       ac_cache_corrupted=: ;;
3060     ,set)
3061       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3062 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3063       ac_cache_corrupted=: ;;
3064     ,);;
3065     *)
3066       if test "x$ac_old_val" != "x$ac_new_val"; then
3067         # differences in whitespace do not lead to failure.
3068         ac_old_val_w=`echo x $ac_old_val`
3069         ac_new_val_w=`echo x $ac_new_val`
3070         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3071           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3072 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3073           ac_cache_corrupted=:
3074         else
3075           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3076 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3077           eval $ac_var=\$ac_old_val
3078         fi
3079         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3080 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3081         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3082 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3083       fi;;
3084   esac
3085   # Pass precious variables to config.status.
3086   if test "$ac_new_set" = set; then
3087     case $ac_new_val in
3088     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3089     *) ac_arg=$ac_var=$ac_new_val ;;
3090     esac
3091     case " $ac_configure_args " in
3092       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3093       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3094     esac
3095   fi
3096 done
3097 if $ac_cache_corrupted; then
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3101 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3102   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3103 fi
3104 ## -------------------- ##
3105 ## Main body of script. ##
3106 ## -------------------- ##
3107
3108 ac_ext=c
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113
3114
3115
3116
3117 BUILD_DIR=`pwd`
3118 cd ..
3119 TOP_DIR=`pwd`
3120 cd ${BUILD_DIR}
3121
3122
3123 ac_aux_dir=
3124 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3125   if test -f "$ac_dir/install-sh"; then
3126     ac_aux_dir=$ac_dir
3127     ac_install_sh="$ac_aux_dir/install-sh -c"
3128     break
3129   elif test -f "$ac_dir/install.sh"; then
3130     ac_aux_dir=$ac_dir
3131     ac_install_sh="$ac_aux_dir/install.sh -c"
3132     break
3133   elif test -f "$ac_dir/shtool"; then
3134     ac_aux_dir=$ac_dir
3135     ac_install_sh="$ac_aux_dir/shtool install -c"
3136     break
3137   fi
3138 done
3139 if test -z "$ac_aux_dir"; then
3140   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3141 fi
3142
3143 # These three variables are undocumented and unsupported,
3144 # and are intended to be withdrawn in a future Autoconf release.
3145 # They can cause serious problems if a builder's source tree is in a directory
3146 # whose full name contains unusual characters.
3147 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3148 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3149 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3150
3151
3152 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3153
3154
3155 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3156 WIN32MAINDIR=${BUILD_DIR}
3157 WIN32TOPDIR=${TOP_DIR}
3158
3159
3160
3161
3162 for ac_prog in true
3163 do
3164   # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_path_TRUEPRG+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   case $TRUEPRG in
3172   [\\/]* | ?:[\\/]*)
3173   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3174   ;;
3175   *)
3176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179   IFS=$as_save_IFS
3180   test -z "$as_dir" && as_dir=.
3181     for ac_exec_ext in '' $ac_executable_extensions; do
3182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185     break 2
3186   fi
3187 done
3188   done
3189 IFS=$as_save_IFS
3190
3191   ;;
3192 esac
3193 fi
3194 TRUEPRG=$ac_cv_path_TRUEPRG
3195 if test -n "$TRUEPRG"; then
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3197 $as_echo "$TRUEPRG" >&6; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204   test -n "$TRUEPRG" && break
3205 done
3206 test -n "$TRUEPRG" || TRUEPRG=":"
3207
3208 for ac_prog in false
3209 do
3210   # Extract the first word of "$ac_prog", so it can be a program name with args.
3211 set dummy $ac_prog; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_path_FALSEPRG+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   case $FALSEPRG in
3218   [\\/]* | ?:[\\/]*)
3219   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3220   ;;
3221   *)
3222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225   IFS=$as_save_IFS
3226   test -z "$as_dir" && as_dir=.
3227     for ac_exec_ext in '' $ac_executable_extensions; do
3228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231     break 2
3232   fi
3233 done
3234   done
3235 IFS=$as_save_IFS
3236
3237   ;;
3238 esac
3239 fi
3240 FALSEPRG=$ac_cv_path_FALSEPRG
3241 if test -n "$FALSEPRG"; then
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3243 $as_echo "$FALSEPRG" >&6; }
3244 else
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250   test -n "$FALSEPRG" && break
3251 done
3252 test -n "$FALSEPRG" || FALSEPRG=":"
3253
3254
3255
3256 post_host=
3257 if test "x$BACULA" != x; then
3258    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3259 fi
3260 BACULA=${BACULA:-Bacula}
3261 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3265
3266 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3267 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3268 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3269
3270 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3271 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3272 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3273
3274
3275 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3276 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3277
3278 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3279 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3280
3281
3282 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3283
3284 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3285
3286
3287 echo "configuring for ${BACULA} $VERSION ($DATE)"
3288
3289
3290
3291 ac_ext=c
3292 ac_cpp='$CPP $CPPFLAGS'
3293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 if test -n "$ac_tool_prefix"; then
3297   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3298 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_CC+:} false; then :
3302   $as_echo_n "(cached) " >&6
3303 else
3304   if test -n "$CC"; then
3305   ac_cv_prog_CC="$CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310   IFS=$as_save_IFS
3311   test -z "$as_dir" && as_dir=.
3312     for ac_exec_ext in '' $ac_executable_extensions; do
3313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316     break 2
3317   fi
3318 done
3319   done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 CC=$ac_cv_prog_CC
3325 if test -n "$CC"; then
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327 $as_echo "$CC" >&6; }
3328 else
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333
3334 fi
3335 if test -z "$ac_cv_prog_CC"; then
3336   ac_ct_CC=$CC
3337   # Extract the first word of "gcc", so it can be a program name with args.
3338 set dummy gcc; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3342   $as_echo_n "(cached) " >&6
3343 else
3344   if test -n "$ac_ct_CC"; then
3345   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352     for ac_exec_ext in '' $ac_executable_extensions; do
3353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354     ac_cv_prog_ac_ct_CC="gcc"
3355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359   done
3360 IFS=$as_save_IFS
3361
3362 fi
3363 fi
3364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3365 if test -n "$ac_ct_CC"; then
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3367 $as_echo "$ac_ct_CC" >&6; }
3368 else
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 fi
3372
3373   if test "x$ac_ct_CC" = x; then
3374     CC=""
3375   else
3376     case $cross_compiling:$ac_tool_warned in
3377 yes:)
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380 ac_tool_warned=yes ;;
3381 esac
3382     CC=$ac_ct_CC
3383   fi
3384 else
3385   CC="$ac_cv_prog_CC"
3386 fi
3387
3388 if test -z "$CC"; then
3389           if test -n "$ac_tool_prefix"; then
3390     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3391 set dummy ${ac_tool_prefix}cc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395   $as_echo_n "(cached) " >&6
3396 else
3397   if test -n "$CC"; then
3398   ac_cv_prog_CC="$CC" # Let the user override the test.
3399 else
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     ac_cv_prog_CC="${ac_tool_prefix}cc"
3408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409     break 2
3410   fi
3411 done
3412   done
3413 IFS=$as_save_IFS
3414
3415 fi
3416 fi
3417 CC=$ac_cv_prog_CC
3418 if test -n "$CC"; then
3419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420 $as_echo "$CC" >&6; }
3421 else
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3424 fi
3425
3426
3427   fi
3428 fi
3429 if test -z "$CC"; then
3430   # Extract the first word of "cc", so it can be a program name with args.
3431 set dummy cc; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_prog_CC+:} false; then :
3435   $as_echo_n "(cached) " >&6
3436 else
3437   if test -n "$CC"; then
3438   ac_cv_prog_CC="$CC" # Let the user override the test.
3439 else
3440   ac_prog_rejected=no
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446     for ac_exec_ext in '' $ac_executable_extensions; do
3447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449        ac_prog_rejected=yes
3450        continue
3451      fi
3452     ac_cv_prog_CC="cc"
3453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454     break 2
3455   fi
3456 done
3457   done
3458 IFS=$as_save_IFS
3459
3460 if test $ac_prog_rejected = yes; then
3461   # We found a bogon in the path, so make sure we never use it.
3462   set dummy $ac_cv_prog_CC
3463   shift
3464   if test $# != 0; then
3465     # We chose a different compiler from the bogus one.
3466     # However, it has the same basename, so the bogon will be chosen
3467     # first if we set CC to just the basename; use the full file name.
3468     shift
3469     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3470   fi
3471 fi
3472 fi
3473 fi
3474 CC=$ac_cv_prog_CC
3475 if test -n "$CC"; then
3476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477 $as_echo "$CC" >&6; }
3478 else
3479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3481 fi
3482
3483
3484 fi
3485 if test -z "$CC"; then
3486   if test -n "$ac_tool_prefix"; then
3487   for ac_prog in cl.exe
3488   do
3489     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if ${ac_cv_prog_CC+:} false; then :
3494   $as_echo_n "(cached) " >&6
3495 else
3496   if test -n "$CC"; then
3497   ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502   IFS=$as_save_IFS
3503   test -z "$as_dir" && as_dir=.
3504     for ac_exec_ext in '' $ac_executable_extensions; do
3505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508     break 2
3509   fi
3510 done
3511   done
3512 IFS=$as_save_IFS
3513
3514 fi
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 $as_echo "$CC" >&6; }
3520 else
3521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3523 fi
3524
3525
3526     test -n "$CC" && break
3527   done
3528 fi
3529 if test -z "$CC"; then
3530   ac_ct_CC=$CC
3531   for ac_prog in cl.exe
3532 do
3533   # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   if test -n "$ac_ct_CC"; then
3541   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546   IFS=$as_save_IFS
3547   test -z "$as_dir" && as_dir=.
3548     for ac_exec_ext in '' $ac_executable_extensions; do
3549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550     ac_cv_prog_ac_ct_CC="$ac_prog"
3551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552     break 2
3553   fi
3554 done
3555   done
3556 IFS=$as_save_IFS
3557
3558 fi
3559 fi
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563 $as_echo "$ac_ct_CC" >&6; }
3564 else
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 fi
3568
3569
3570   test -n "$ac_ct_CC" && break
3571 done
3572
3573   if test "x$ac_ct_CC" = x; then
3574     CC=""
3575   else
3576     case $cross_compiling:$ac_tool_warned in
3577 yes:)
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3580 ac_tool_warned=yes ;;
3581 esac
3582     CC=$ac_ct_CC
3583   fi
3584 fi
3585
3586 fi
3587
3588
3589 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error $? "no acceptable C compiler found in \$PATH
3592 See \`config.log' for more details" "$LINENO" 5; }
3593
3594 # Provide some information about the compiler.
3595 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3596 set X $ac_compile
3597 ac_compiler=$2
3598 for ac_option in --version -v -V -qversion; do
3599   { { ac_try="$ac_compiler $ac_option >&5"
3600 case "(($ac_try" in
3601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602   *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3607   ac_status=$?
3608   if test -s conftest.err; then
3609     sed '10a\
3610 ... rest of stderr output deleted ...
3611          10q' conftest.err >conftest.er1
3612     cat conftest.er1 >&5
3613   fi
3614   rm -f conftest.er1 conftest.err
3615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616   test $ac_status = 0; }
3617 done
3618
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621
3622 int
3623 main ()
3624 {
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 ac_clean_files_save=$ac_clean_files
3631 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3632 # Try to create an executable without -o first, disregard a.out.
3633 # It will help us diagnose broken compilers, and finding out an intuition
3634 # of exeext.
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3636 $as_echo_n "checking whether the C compiler works... " >&6; }
3637 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3638
3639 # The possible output files:
3640 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3641
3642 ac_rmfiles=
3643 for ac_file in $ac_files
3644 do
3645   case $ac_file in
3646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3647     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3648   esac
3649 done
3650 rm -f $ac_rmfiles
3651
3652 if { { ac_try="$ac_link_default"
3653 case "(($ac_try" in
3654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655   *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659   (eval "$ac_link_default") 2>&5
3660   ac_status=$?
3661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662   test $ac_status = 0; }; then :
3663   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3664 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3665 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3666 # so that the user can short-circuit this test for compilers unknown to
3667 # Autoconf.
3668 for ac_file in $ac_files ''
3669 do
3670   test -f "$ac_file" || continue
3671   case $ac_file in
3672     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3673         ;;
3674     [ab].out )
3675         # We found the default executable, but exeext='' is most
3676         # certainly right.
3677         break;;
3678     *.* )
3679         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3680         then :; else
3681            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682         fi
3683         # We set ac_cv_exeext here because the later test for it is not
3684         # safe: cross compilers may not add the suffix if given an `-o'
3685         # argument, so we may need to know it at that point already.
3686         # Even if this section looks crufty: it has the advantage of
3687         # actually working.
3688         break;;
3689     * )
3690         break;;
3691   esac
3692 done
3693 test "$ac_cv_exeext" = no && ac_cv_exeext=
3694
3695 else
3696   ac_file=''
3697 fi
3698 if test -z "$ac_file"; then :
3699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 $as_echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3703
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error 77 "C compiler cannot create executables
3707 See \`config.log' for more details" "$LINENO" 5; }
3708 else
3709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3710 $as_echo "yes" >&6; }
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3713 $as_echo_n "checking for C compiler default output file name... " >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3715 $as_echo "$ac_file" >&6; }
3716 ac_exeext=$ac_cv_exeext
3717
3718 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3719 ac_clean_files=$ac_clean_files_save
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3721 $as_echo_n "checking for suffix of executables... " >&6; }
3722 if { { ac_try="$ac_link"
3723 case "(($ac_try" in
3724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725   *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729   (eval "$ac_link") 2>&5
3730   ac_status=$?
3731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732   test $ac_status = 0; }; then :
3733   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3734 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3735 # work properly (i.e., refer to `conftest.exe'), while it won't with
3736 # `rm'.
3737 for ac_file in conftest.exe conftest conftest.*; do
3738   test -f "$ac_file" || continue
3739   case $ac_file in
3740     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3742           break;;
3743     * ) break;;
3744   esac
3745 done
3746 else
3747   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3750 See \`config.log' for more details" "$LINENO" 5; }
3751 fi
3752 rm -f conftest conftest$ac_cv_exeext
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3754 $as_echo "$ac_cv_exeext" >&6; }
3755
3756 rm -f conftest.$ac_ext
3757 EXEEXT=$ac_cv_exeext
3758 ac_exeext=$EXEEXT
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761 #include <stdio.h>
3762 int
3763 main ()
3764 {
3765 FILE *f = fopen ("conftest.out", "w");
3766  return ferror (f) || fclose (f) != 0;
3767
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 ac_clean_files="$ac_clean_files conftest.out"
3773 # Check that the compiler produces executables we can run.  If not, either
3774 # the compiler is broken, or we cross compile.
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3776 $as_echo_n "checking whether we are cross compiling... " >&6; }
3777 if test "$cross_compiling" != yes; then
3778   { { ac_try="$ac_link"
3779 case "(($ac_try" in
3780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781   *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785   (eval "$ac_link") 2>&5
3786   ac_status=$?
3787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788   test $ac_status = 0; }
3789   if { ac_try='./conftest$ac_cv_exeext'
3790   { { case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796   (eval "$ac_try") 2>&5
3797   ac_status=$?
3798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799   test $ac_status = 0; }; }; then
3800     cross_compiling=no
3801   else
3802     if test "$cross_compiling" = maybe; then
3803         cross_compiling=yes
3804     else
3805         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 as_fn_error $? "cannot run C compiled programs.
3808 If you meant to cross compile, use \`--host'.
3809 See \`config.log' for more details" "$LINENO" 5; }
3810     fi
3811   fi
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3814 $as_echo "$cross_compiling" >&6; }
3815
3816 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3817 ac_clean_files=$ac_clean_files_save
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3819 $as_echo_n "checking for suffix of object files... " >&6; }
3820 if ${ac_cv_objext+:} false; then :
3821   $as_echo_n "(cached) " >&6
3822 else
3823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h.  */
3825
3826 int
3827 main ()
3828 {
3829
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.o conftest.obj
3835 if { { ac_try="$ac_compile"
3836 case "(($ac_try" in
3837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838   *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842   (eval "$ac_compile") 2>&5
3843   ac_status=$?
3844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845   test $ac_status = 0; }; then :
3846   for ac_file in conftest.o conftest.obj conftest.*; do
3847   test -f "$ac_file" || continue;
3848   case $ac_file in
3849     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3850     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3851        break;;
3852   esac
3853 done
3854 else
3855   $as_echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 as_fn_error $? "cannot compute suffix of object files: cannot compile
3861 See \`config.log' for more details" "$LINENO" 5; }
3862 fi
3863 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3866 $as_echo "$ac_cv_objext" >&6; }
3867 OBJEXT=$ac_cv_objext
3868 ac_objext=$OBJEXT
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3870 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3871 if ${ac_cv_c_compiler_gnu+:} false; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h.  */
3876
3877 int
3878 main ()
3879 {
3880 #ifndef __GNUC__
3881        choke me
3882 #endif
3883
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889   ac_compiler_gnu=yes
3890 else
3891   ac_compiler_gnu=no
3892 fi
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3895
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3898 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3899 if test $ac_compiler_gnu = yes; then
3900   GCC=yes
3901 else
3902   GCC=
3903 fi
3904 ac_test_CFLAGS=${CFLAGS+set}
3905 ac_save_CFLAGS=$CFLAGS
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3907 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3908 if ${ac_cv_prog_cc_g+:} false; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   ac_save_c_werror_flag=$ac_c_werror_flag
3912    ac_c_werror_flag=yes
3913    ac_cv_prog_cc_g=no
3914    CFLAGS="-g"
3915    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h.  */
3917
3918 int
3919 main ()
3920 {
3921
3922   ;
3923   return 0;
3924 }
3925 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927   ac_cv_prog_cc_g=yes
3928 else
3929   CFLAGS=""
3930       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h.  */
3932
3933 int
3934 main ()
3935 {
3936
3937   ;
3938   return 0;
3939 }
3940 _ACEOF
3941 if ac_fn_c_try_compile "$LINENO"; then :
3942
3943 else
3944   ac_c_werror_flag=$ac_save_c_werror_flag
3945          CFLAGS="-g"
3946          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h.  */
3948
3949 int
3950 main ()
3951 {
3952
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 if ac_fn_c_try_compile "$LINENO"; then :
3958   ac_cv_prog_cc_g=yes
3959 fi
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965    ac_c_werror_flag=$ac_save_c_werror_flag
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3968 $as_echo "$ac_cv_prog_cc_g" >&6; }
3969 if test "$ac_test_CFLAGS" = set; then
3970   CFLAGS=$ac_save_CFLAGS
3971 elif test $ac_cv_prog_cc_g = yes; then
3972   if test "$GCC" = yes; then
3973     CFLAGS="-g -O2"
3974   else
3975     CFLAGS="-g"
3976   fi
3977 else
3978   if test "$GCC" = yes; then
3979     CFLAGS="-O2"
3980   else
3981     CFLAGS=
3982   fi
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3985 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3986 if ${ac_cv_prog_cc_c89+:} false; then :
3987   $as_echo_n "(cached) " >&6
3988 else
3989   ac_cv_prog_cc_c89=no
3990 ac_save_CC=$CC
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h.  */
3993 #include <stdarg.h>
3994 #include <stdio.h>
3995 #include <sys/types.h>
3996 #include <sys/stat.h>
3997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3998 struct buf { int x; };
3999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4000 static char *e (p, i)
4001      char **p;
4002      int i;
4003 {
4004   return p[i];
4005 }
4006 static char *f (char * (*g) (char **, int), char **p, ...)
4007 {
4008   char *s;
4009   va_list v;
4010   va_start (v,p);
4011   s = g (p, va_arg (v,int));
4012   va_end (v);
4013   return s;
4014 }
4015
4016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4017    function prototypes and stuff, but not '\xHH' hex character constants.
4018    These don't provoke an error unfortunately, instead are silently treated
4019    as 'x'.  The following induces an error, until -std is added to get
4020    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4021    array size at least.  It's necessary to write '\x00'==0 to get something
4022    that's true only with -std.  */
4023 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4024
4025 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4026    inside strings and character constants.  */
4027 #define FOO(x) 'x'
4028 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4029
4030 int test (int i, double x);
4031 struct s1 {int (*f) (int a);};
4032 struct s2 {int (*f) (double a);};
4033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4034 int argc;
4035 char **argv;
4036 int
4037 main ()
4038 {
4039 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4045         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4046 do
4047   CC="$ac_save_CC $ac_arg"
4048   if ac_fn_c_try_compile "$LINENO"; then :
4049   ac_cv_prog_cc_c89=$ac_arg
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext
4052   test "x$ac_cv_prog_cc_c89" != "xno" && break
4053 done
4054 rm -f conftest.$ac_ext
4055 CC=$ac_save_CC
4056
4057 fi
4058 # AC_CACHE_VAL
4059 case "x$ac_cv_prog_cc_c89" in
4060   x)
4061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4062 $as_echo "none needed" >&6; } ;;
4063   xno)
4064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4065 $as_echo "unsupported" >&6; } ;;
4066   *)
4067     CC="$CC $ac_cv_prog_cc_c89"
4068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4069 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4070 esac
4071 if test "x$ac_cv_prog_cc_c89" != xno; then :
4072
4073 fi
4074
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081 ac_ext=cpp
4082 ac_cpp='$CXXCPP $CPPFLAGS'
4083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4086 if test -z "$CXX"; then
4087   if test -n "$CCC"; then
4088     CXX=$CCC
4089   else
4090     if test -n "$ac_tool_prefix"; then
4091   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4092   do
4093     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_CXX+:} false; then :
4098   $as_echo_n "(cached) " >&6
4099 else
4100   if test -n "$CXX"; then
4101   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4105 do
4106   IFS=$as_save_IFS
4107   test -z "$as_dir" && as_dir=.
4108     for ac_exec_ext in '' $ac_executable_extensions; do
4109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112     break 2
4113   fi
4114 done
4115   done
4116 IFS=$as_save_IFS
4117
4118 fi
4119 fi
4120 CXX=$ac_cv_prog_CXX
4121 if test -n "$CXX"; then
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4123 $as_echo "$CXX" >&6; }
4124 else
4125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4127 fi
4128
4129
4130     test -n "$CXX" && break
4131   done
4132 fi
4133 if test -z "$CXX"; then
4134   ac_ct_CXX=$CXX
4135   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4136 do
4137   # Extract the first word of "$ac_prog", so it can be a program name with args.
4138 set dummy $ac_prog; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   if test -n "$ac_ct_CXX"; then
4145   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152     for ac_exec_ext in '' $ac_executable_extensions; do
4153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154     ac_cv_prog_ac_ct_CXX="$ac_prog"
4155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156     break 2
4157   fi
4158 done
4159   done
4160 IFS=$as_save_IFS
4161
4162 fi
4163 fi
4164 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4165 if test -n "$ac_ct_CXX"; then
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4167 $as_echo "$ac_ct_CXX" >&6; }
4168 else
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172
4173
4174   test -n "$ac_ct_CXX" && break
4175 done
4176
4177   if test "x$ac_ct_CXX" = x; then
4178     CXX="g++"
4179   else
4180     case $cross_compiling:$ac_tool_warned in
4181 yes:)
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184 ac_tool_warned=yes ;;
4185 esac
4186     CXX=$ac_ct_CXX
4187   fi
4188 fi
4189
4190   fi
4191 fi
4192 # Provide some information about the compiler.
4193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4194 set X $ac_compile
4195 ac_compiler=$2
4196 for ac_option in --version -v -V -qversion; do
4197   { { ac_try="$ac_compiler $ac_option >&5"
4198 case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4205   ac_status=$?
4206   if test -s conftest.err; then
4207     sed '10a\
4208 ... rest of stderr output deleted ...
4209          10q' conftest.err >conftest.er1
4210     cat conftest.er1 >&5
4211   fi
4212   rm -f conftest.er1 conftest.err
4213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214   test $ac_status = 0; }
4215 done
4216
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4218 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4219 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h.  */
4224
4225 int
4226 main ()
4227 {
4228 #ifndef __GNUC__
4229        choke me
4230 #endif
4231
4232   ;
4233   return 0;
4234 }
4235 _ACEOF
4236 if ac_fn_cxx_try_compile "$LINENO"; then :
4237   ac_compiler_gnu=yes
4238 else
4239   ac_compiler_gnu=no
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4243
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4246 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4247 if test $ac_compiler_gnu = yes; then
4248   GXX=yes
4249 else
4250   GXX=
4251 fi
4252 ac_test_CXXFLAGS=${CXXFLAGS+set}
4253 ac_save_CXXFLAGS=$CXXFLAGS
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4255 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4256 if ${ac_cv_prog_cxx_g+:} false; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4260    ac_cxx_werror_flag=yes
4261    ac_cv_prog_cxx_g=no
4262    CXXFLAGS="-g"
4263    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h.  */
4265
4266 int
4267 main ()
4268 {
4269
4270   ;
4271   return 0;
4272 }
4273 _ACEOF
4274 if ac_fn_cxx_try_compile "$LINENO"; then :
4275   ac_cv_prog_cxx_g=yes
4276 else
4277   CXXFLAGS=""
4278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280
4281 int
4282 main ()
4283 {
4284
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_cxx_try_compile "$LINENO"; then :
4290
4291 else
4292   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4293          CXXFLAGS="-g"
4294          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_cxx_try_compile "$LINENO"; then :
4306   ac_cv_prog_cxx_g=yes
4307 fi
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4316 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4317 if test "$ac_test_CXXFLAGS" = set; then
4318   CXXFLAGS=$ac_save_CXXFLAGS
4319 elif test $ac_cv_prog_cxx_g = yes; then
4320   if test "$GXX" = yes; then
4321     CXXFLAGS="-g -O2"
4322   else
4323     CXXFLAGS="-g"
4324   fi
4325 else
4326   if test "$GXX" = yes; then
4327     CXXFLAGS="-O2"
4328   else
4329     CXXFLAGS=
4330   fi
4331 fi
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338 if test "x$CC" != xcc; then
4339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4340 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4341 else
4342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4343 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4344 fi
4345 set dummy $CC; ac_cc=`$as_echo "$2" |
4346                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4347 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4348   $as_echo_n "(cached) " >&6
4349 else
4350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h.  */
4352
4353 int
4354 main ()
4355 {
4356
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 # Make sure it works both with $CC and with simple cc.
4362 # We do the test twice because some compilers refuse to overwrite an
4363 # existing .o file with -o, though they will create one.
4364 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4365 rm -f conftest2.*
4366 if { { case "(($ac_try" in
4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368   *) ac_try_echo=$ac_try;;
4369 esac
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 $as_echo "$ac_try_echo"; } >&5
4372   (eval "$ac_try") 2>&5
4373   ac_status=$?
4374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375   test $ac_status = 0; } &&
4376    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378   *) ac_try_echo=$ac_try;;
4379 esac
4380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381 $as_echo "$ac_try_echo"; } >&5
4382   (eval "$ac_try") 2>&5
4383   ac_status=$?
4384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385   test $ac_status = 0; };
4386 then
4387   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4388   if test "x$CC" != xcc; then
4389     # Test first that cc exists at all.
4390     if { ac_try='cc -c conftest.$ac_ext >&5'
4391   { { case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397   (eval "$ac_try") 2>&5
4398   ac_status=$?
4399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400   test $ac_status = 0; }; }; then
4401       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4402       rm -f conftest2.*
4403       if { { case "(($ac_try" in
4404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405   *) ac_try_echo=$ac_try;;
4406 esac
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409   (eval "$ac_try") 2>&5
4410   ac_status=$?
4411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412   test $ac_status = 0; } &&
4413          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419   (eval "$ac_try") 2>&5
4420   ac_status=$?
4421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422   test $ac_status = 0; };
4423       then
4424         # cc works too.
4425         :
4426       else
4427         # cc exists but doesn't like -o.
4428         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4429       fi
4430     fi
4431   fi
4432 else
4433   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4434 fi
4435 rm -f core conftest*
4436
4437 fi
4438 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4440 $as_echo "yes" >&6; }
4441 else
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4444
4445 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4446
4447 fi
4448
4449 ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4456 # On Suns, sometimes $CPP names a directory.
4457 if test -n "$CPP" && test -d "$CPP"; then
4458   CPP=
4459 fi
4460 if test -z "$CPP"; then
4461   if ${ac_cv_prog_CPP+:} false; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464       # Double quotes because CPP needs to be expanded
4465     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4466     do
4467       ac_preproc_ok=false
4468 for ac_c_preproc_warn_flag in '' yes
4469 do
4470   # Use a header file that comes with gcc, so configuring glibc
4471   # with a fresh cross-compiler works.
4472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4473   # <limits.h> exists even on freestanding compilers.
4474   # On the NeXT, cc -E runs the code through the compiler's parser,
4475   # not just through cpp. "Syntax error" is here to catch this case.
4476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h.  */
4478 #ifdef __STDC__
4479 # include <limits.h>
4480 #else
4481 # include <assert.h>
4482 #endif
4483                      Syntax error
4484 _ACEOF
4485 if ac_fn_c_try_cpp "$LINENO"; then :
4486
4487 else
4488   # Broken: fails on valid input.
4489 continue
4490 fi
4491 rm -f conftest.err conftest.i conftest.$ac_ext
4492
4493   # OK, works on sane cases.  Now check whether nonexistent headers
4494   # can be detected and how.
4495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497 #include <ac_nonexistent.h>
4498 _ACEOF
4499 if ac_fn_c_try_cpp "$LINENO"; then :
4500   # Broken: success on invalid input.
4501 continue
4502 else
4503   # Passes both tests.
4504 ac_preproc_ok=:
4505 break
4506 fi
4507 rm -f conftest.err conftest.i conftest.$ac_ext
4508
4509 done
4510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511 rm -f conftest.i conftest.err conftest.$ac_ext
4512 if $ac_preproc_ok; then :
4513   break
4514 fi
4515
4516     done
4517     ac_cv_prog_CPP=$CPP
4518
4519 fi
4520   CPP=$ac_cv_prog_CPP
4521 else
4522   ac_cv_prog_CPP=$CPP
4523 fi
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4525 $as_echo "$CPP" >&6; }
4526 ac_preproc_ok=false
4527 for ac_c_preproc_warn_flag in '' yes
4528 do
4529   # Use a header file that comes with gcc, so configuring glibc
4530   # with a fresh cross-compiler works.
4531   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4532   # <limits.h> exists even on freestanding compilers.
4533   # On the NeXT, cc -E runs the code through the compiler's parser,
4534   # not just through cpp. "Syntax error" is here to catch this case.
4535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h.  */
4537 #ifdef __STDC__
4538 # include <limits.h>
4539 #else
4540 # include <assert.h>
4541 #endif
4542                      Syntax error
4543 _ACEOF
4544 if ac_fn_c_try_cpp "$LINENO"; then :
4545
4546 else
4547   # Broken: fails on valid input.
4548 continue
4549 fi
4550 rm -f conftest.err conftest.i conftest.$ac_ext
4551
4552   # OK, works on sane cases.  Now check whether nonexistent headers
4553   # can be detected and how.
4554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h.  */
4556 #include <ac_nonexistent.h>
4557 _ACEOF
4558 if ac_fn_c_try_cpp "$LINENO"; then :
4559   # Broken: success on invalid input.
4560 continue
4561 else
4562   # Passes both tests.
4563 ac_preproc_ok=:
4564 break
4565 fi
4566 rm -f conftest.err conftest.i conftest.$ac_ext
4567
4568 done
4569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570 rm -f conftest.i conftest.err conftest.$ac_ext
4571 if $ac_preproc_ok; then :
4572
4573 else
4574   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4576 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4577 See \`config.log' for more details" "$LINENO" 5; }
4578 fi
4579
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4589 if ${ac_cv_path_GREP+:} false; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   if test -z "$GREP"; then
4593   ac_path_GREP_found=false
4594   # Loop through the user's path and test for each of PROGNAME-LIST
4595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600     for ac_prog in grep ggrep; do
4601     for ac_exec_ext in '' $ac_executable_extensions; do
4602       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4603       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4604 # Check for GNU ac_path_GREP and select it if it is found.
4605   # Check for GNU $ac_path_GREP
4606 case `"$ac_path_GREP" --version 2>&1` in
4607 *GNU*)
4608   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609 *)
4610   ac_count=0
4611   $as_echo_n 0123456789 >"conftest.in"
4612   while :
4613   do
4614     cat "conftest.in" "conftest.in" >"conftest.tmp"
4615     mv "conftest.tmp" "conftest.in"
4616     cp "conftest.in" "conftest.nl"
4617     $as_echo 'GREP' >> "conftest.nl"
4618     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620     as_fn_arith $ac_count + 1 && ac_count=$as_val
4621     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4622       # Best one so far, save it but keep looking for a better one
4623       ac_cv_path_GREP="$ac_path_GREP"
4624       ac_path_GREP_max=$ac_count
4625     fi
4626     # 10*(2^10) chars as input seems more than enough
4627     test $ac_count -gt 10 && break
4628   done
4629   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 esac
4631
4632       $ac_path_GREP_found && break 3
4633     done
4634   done
4635   done
4636 IFS=$as_save_IFS
4637   if test -z "$ac_cv_path_GREP"; then
4638     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639   fi
4640 else
4641   ac_cv_path_GREP=$GREP
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4646 $as_echo "$ac_cv_path_GREP" >&6; }
4647  GREP="$ac_cv_path_GREP"
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4651 $as_echo_n "checking for egrep... " >&6; }
4652 if ${ac_cv_path_EGREP+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656    then ac_cv_path_EGREP="$GREP -E"
4657    else
4658      if test -z "$EGREP"; then
4659   ac_path_EGREP_found=false
4660   # Loop through the user's path and test for each of PROGNAME-LIST
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666     for ac_prog in egrep; do
4667     for ac_exec_ext in '' $ac_executable_extensions; do
4668       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4670 # Check for GNU ac_path_EGREP and select it if it is found.
4671   # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4673 *GNU*)
4674   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675 *)
4676   ac_count=0
4677   $as_echo_n 0123456789 >"conftest.in"
4678   while :
4679   do
4680     cat "conftest.in" "conftest.in" >"conftest.tmp"
4681     mv "conftest.tmp" "conftest.in"
4682     cp "conftest.in" "conftest.nl"
4683     $as_echo 'EGREP' >> "conftest.nl"
4684     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686     as_fn_arith $ac_count + 1 && ac_count=$as_val
4687     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688       # Best one so far, save it but keep looking for a better one
4689       ac_cv_path_EGREP="$ac_path_EGREP"
4690       ac_path_EGREP_max=$ac_count
4691     fi
4692     # 10*(2^10) chars as input seems more than enough
4693     test $ac_count -gt 10 && break
4694   done
4695   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 esac
4697
4698       $ac_path_EGREP_found && break 3
4699     done
4700   done
4701   done
4702 IFS=$as_save_IFS
4703   if test -z "$ac_cv_path_EGREP"; then
4704     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705   fi
4706 else
4707   ac_cv_path_EGREP=$EGREP
4708 fi
4709
4710    fi
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4713 $as_echo "$ac_cv_path_EGREP" >&6; }
4714  EGREP="$ac_cv_path_EGREP"
4715
4716
4717 if test $ac_cv_c_compiler_gnu = yes; then
4718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4719 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4720 if ${ac_cv_prog_gcc_traditional+:} false; then :
4721   $as_echo_n "(cached) " >&6
4722 else
4723     ac_pattern="Autoconf.*'x'"
4724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h.  */
4726 #include <sgtty.h>
4727 Autoconf TIOCGETP
4728 _ACEOF
4729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4731   ac_cv_prog_gcc_traditional=yes
4732 else
4733   ac_cv_prog_gcc_traditional=no
4734 fi
4735 rm -f conftest*
4736
4737
4738   if test $ac_cv_prog_gcc_traditional = no; then
4739     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h.  */
4741 #include <termio.h>
4742 Autoconf TCGETA
4743 _ACEOF
4744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4745   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4746   ac_cv_prog_gcc_traditional=yes
4747 fi
4748 rm -f conftest*
4749
4750   fi
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4753 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4754   if test $ac_cv_prog_gcc_traditional = yes; then
4755     CC="$CC -traditional"
4756   fi
4757 fi
4758
4759 BASECC=`basename $CC`
4760 have_gcc=no
4761 if test "x$BASECC" = xgcc; then
4762    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4763
4764    have_gcc=yes
4765 fi
4766 # Extract the first word of "$CXX", so it can be a program name with args.
4767 set dummy $CXX; ac_word=$2
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if ${ac_cv_path_CXX+:} false; then :
4771   $as_echo_n "(cached) " >&6
4772 else
4773   case $CXX in
4774   [\\/]* | ?:[\\/]*)
4775   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4776   ;;
4777   *)
4778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783     for ac_exec_ext in '' $ac_executable_extensions; do
4784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790   done
4791 IFS=$as_save_IFS
4792
4793   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4794   ;;
4795 esac
4796 fi
4797 CXX=$ac_cv_path_CXX
4798 if test -n "$CXX"; then
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4800 $as_echo "$CXX" >&6; }
4801 else
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806
4807 if test ! -e $CXX; then
4808    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4809 fi
4810
4811 # Find a good install program.  We prefer a C program (faster),
4812 # so one script is as good as another.  But avoid the broken or
4813 # incompatible versions:
4814 # SysV /etc/install, /usr/sbin/install
4815 # SunOS /usr/etc/install
4816 # IRIX /sbin/install
4817 # AIX /bin/install
4818 # AmigaOS /C/install, which installs bootblocks on floppy discs
4819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4822 # OS/2's system install, which has a completely different semantic
4823 # ./install, which can be erroneously created by make from ./install.sh.
4824 # Reject install programs that cannot install multiple files.
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4826 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4827 if test -z "$INSTALL"; then
4828 if ${ac_cv_path_install+:} false; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836     # Account for people who put trailing slashes in PATH elements.
4837 case $as_dir/ in #((
4838   ./ | .// | /[cC]/* | \
4839   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4840   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4841   /usr/ucb/* ) ;;
4842   *)
4843     # OSF1 and SCO ODT 3.0 have their own names for install.
4844     # Don't use installbsd from OSF since it installs stuff as root
4845     # by default.
4846     for ac_prog in ginstall scoinst install; do
4847       for ac_exec_ext in '' $ac_executable_extensions; do
4848         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4849           if test $ac_prog = install &&
4850             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4851             # AIX install.  It has an incompatible calling convention.
4852             :
4853           elif test $ac_prog = install &&
4854             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4855             # program-specific install script used by HP pwplus--don't use.
4856             :
4857           else
4858             rm -rf conftest.one conftest.two conftest.dir
4859             echo one > conftest.one
4860             echo two > conftest.two
4861             mkdir conftest.dir
4862             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4863               test -s conftest.one && test -s conftest.two &&
4864               test -s conftest.dir/conftest.one &&
4865               test -s conftest.dir/conftest.two
4866             then
4867               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4868               break 3
4869             fi
4870           fi
4871         fi
4872       done
4873     done
4874     ;;
4875 esac
4876
4877   done
4878 IFS=$as_save_IFS
4879
4880 rm -rf conftest.one conftest.two conftest.dir
4881
4882 fi
4883   if test "${ac_cv_path_install+set}" = set; then
4884     INSTALL=$ac_cv_path_install
4885   else
4886     # As a last resort, use the slow shell script.  Don't cache a
4887     # value for INSTALL within a source directory, because that will
4888     # break other packages using the cache if that directory is
4889     # removed, or if the value is a relative name.
4890     INSTALL=$ac_install_sh
4891   fi
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4894 $as_echo "$INSTALL" >&6; }
4895
4896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4897 # It thinks the first close brace ends the variable substitution.
4898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4899
4900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4901
4902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4903
4904 # Extract the first word of "mv", so it can be a program name with args.
4905 set dummy mv; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_path_MV+:} false; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911   case $MV in
4912   [\\/]* | ?:[\\/]*)
4913   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4914   ;;
4915   *)
4916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919   IFS=$as_save_IFS
4920   test -z "$as_dir" && as_dir=.
4921     for ac_exec_ext in '' $ac_executable_extensions; do
4922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925     break 2
4926   fi
4927 done
4928   done
4929 IFS=$as_save_IFS
4930
4931   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4932   ;;
4933 esac
4934 fi
4935 MV=$ac_cv_path_MV
4936 if test -n "$MV"; then
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4938 $as_echo "$MV" >&6; }
4939 else
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4942 fi
4943
4944
4945 # Extract the first word of "rm", so it can be a program name with args.
4946 set dummy rm; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_path_REMOVE+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   case $REMOVE in
4953   [\\/]* | ?:[\\/]*)
4954   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4955   ;;
4956   *)
4957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962     for ac_exec_ext in '' $ac_executable_extensions; do
4963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969   done
4970 IFS=$as_save_IFS
4971
4972   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4973   ;;
4974 esac
4975 fi
4976 REMOVE=$ac_cv_path_REMOVE
4977 if test -n "$REMOVE"; then
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4979 $as_echo "$REMOVE" >&6; }
4980 else
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 fi
4984
4985
4986 # Extract the first word of "cp", so it can be a program name with args.
4987 set dummy cp; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_path_CP+:} false; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   case $CP in
4994   [\\/]* | ?:[\\/]*)
4995   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4996   ;;
4997   *)
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003     for ac_exec_ext in '' $ac_executable_extensions; do
5004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010   done
5011 IFS=$as_save_IFS
5012
5013   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5014   ;;
5015 esac
5016 fi
5017 CP=$ac_cv_path_CP
5018 if test -n "$CP"; then
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5020 $as_echo "$CP" >&6; }
5021 else
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025
5026
5027 # Extract the first word of "sed", so it can be a program name with args.
5028 set dummy sed; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_path_SED+:} false; then :
5032   $as_echo_n "(cached) " >&6
5033 else
5034   case $SED in
5035   [\\/]* | ?:[\\/]*)
5036   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5037   ;;
5038   *)
5039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044     for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051   done
5052 IFS=$as_save_IFS
5053
5054   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5055   ;;
5056 esac
5057 fi
5058 SED=$ac_cv_path_SED
5059 if test -n "$SED"; then
5060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5061 $as_echo "$SED" >&6; }
5062 else
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067
5068 # Extract the first word of "echo", so it can be a program name with args.
5069 set dummy echo; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_path_ECHO+:} false; then :
5073   $as_echo_n "(cached) " >&6
5074 else
5075   case $ECHO in
5076   [\\/]* | ?:[\\/]*)
5077   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5078   ;;
5079   *)
5080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083   IFS=$as_save_IFS
5084   test -z "$as_dir" && as_dir=.
5085     for ac_exec_ext in '' $ac_executable_extensions; do
5086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089     break 2
5090   fi
5091 done
5092   done
5093 IFS=$as_save_IFS
5094
5095   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5096   ;;
5097 esac
5098 fi
5099 ECHO=$ac_cv_path_ECHO
5100 if test -n "$ECHO"; then
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5102 $as_echo "$ECHO" >&6; }
5103 else
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108
5109 # Extract the first word of "cmp", so it can be a program name with args.
5110 set dummy cmp; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_path_CMP+:} false; then :
5114   $as_echo_n "(cached) " >&6
5115 else
5116   case $CMP in
5117   [\\/]* | ?:[\\/]*)
5118   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5119   ;;
5120   *)
5121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126     for ac_exec_ext in '' $ac_executable_extensions; do
5127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133   done
5134 IFS=$as_save_IFS
5135
5136   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5137   ;;
5138 esac
5139 fi
5140 CMP=$ac_cv_path_CMP
5141 if test -n "$CMP"; then
5142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5143 $as_echo "$CMP" >&6; }
5144 else
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5147 fi
5148
5149
5150 # Extract the first word of "tbl", so it can be a program name with args.
5151 set dummy tbl; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_path_TBL+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   case $TBL in
5158   [\\/]* | ?:[\\/]*)
5159   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5160   ;;
5161   *)
5162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174   done
5175 IFS=$as_save_IFS
5176
5177   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5178   ;;
5179 esac
5180 fi
5181 TBL=$ac_cv_path_TBL
5182 if test -n "$TBL"; then
5183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5184 $as_echo "$TBL" >&6; }
5185 else
5186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190
5191 # Extract the first word of "ar", so it can be a program name with args.
5192 set dummy ar; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_path_AR+:} false; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198   case $AR in
5199   [\\/]* | ?:[\\/]*)
5200   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5201   ;;
5202   *)
5203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208     for ac_exec_ext in '' $ac_executable_extensions; do
5209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215   done
5216 IFS=$as_save_IFS
5217
5218   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5219   ;;
5220 esac
5221 fi
5222 AR=$ac_cv_path_AR
5223 if test -n "$AR"; then
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5225 $as_echo "$AR" >&6; }
5226 else
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231
5232 # Extract the first word of "openssl", so it can be a program name with args.
5233 set dummy openssl; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_path_OPENSSL+:} false; then :
5237   $as_echo_n "(cached) " >&6
5238 else
5239   case $OPENSSL in
5240   [\\/]* | ?:[\\/]*)
5241   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5242   ;;
5243   *)
5244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247   IFS=$as_save_IFS
5248   test -z "$as_dir" && as_dir=.
5249     for ac_exec_ext in '' $ac_executable_extensions; do
5250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253     break 2
5254   fi
5255 done
5256   done
5257 IFS=$as_save_IFS
5258
5259   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5260   ;;
5261 esac
5262 fi
5263 OPENSSL=$ac_cv_path_OPENSSL
5264 if test -n "$OPENSSL"; then
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5266 $as_echo "$OPENSSL" >&6; }
5267 else
5268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5270 fi
5271
5272
5273 # Extract the first word of "mtx", so it can be a program name with args.
5274 set dummy mtx; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_path_MTX+:} false; then :
5278   $as_echo_n "(cached) " >&6
5279 else
5280   case $MTX in
5281   [\\/]* | ?:[\\/]*)
5282   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5283   ;;
5284   *)
5285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288   IFS=$as_save_IFS
5289   test -z "$as_dir" && as_dir=.
5290     for ac_exec_ext in '' $ac_executable_extensions; do
5291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294     break 2
5295   fi
5296 done
5297   done
5298 IFS=$as_save_IFS
5299
5300   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5301   ;;
5302 esac
5303 fi
5304 MTX=$ac_cv_path_MTX
5305 if test -n "$MTX"; then
5306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5307 $as_echo "$MTX" >&6; }
5308 else
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5311 fi
5312
5313
5314 # Extract the first word of "dd", so it can be a program name with args.
5315 set dummy dd; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_path_DD+:} false; then :
5319   $as_echo_n "(cached) " >&6
5320 else
5321   case $DD in
5322   [\\/]* | ?:[\\/]*)
5323   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5324   ;;
5325   *)
5326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331     for ac_exec_ext in '' $ac_executable_extensions; do
5332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335     break 2
5336   fi
5337 done
5338   done
5339 IFS=$as_save_IFS
5340
5341   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5342   ;;
5343 esac
5344 fi
5345 DD=$ac_cv_path_DD
5346 if test -n "$DD"; then
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5348 $as_echo "$DD" >&6; }
5349 else
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5352 fi
5353
5354
5355 # Extract the first word of "mkisofs", so it can be a program name with args.
5356 set dummy mkisofs; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_path_MKISOFS+:} false; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362   case $MKISOFS in
5363   [\\/]* | ?:[\\/]*)
5364   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5365   ;;
5366   *)
5367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370   IFS=$as_save_IFS
5371   test -z "$as_dir" && as_dir=.
5372     for ac_exec_ext in '' $ac_executable_extensions; do
5373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376     break 2
5377   fi
5378 done
5379   done
5380 IFS=$as_save_IFS
5381
5382   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5383   ;;
5384 esac
5385 fi
5386 MKISOFS=$ac_cv_path_MKISOFS
5387 if test -n "$MKISOFS"; then
5388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5389 $as_echo "$MKISOFS" >&6; }
5390 else
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5393 fi
5394
5395
5396 # Extract the first word of "python", so it can be a program name with args.
5397 set dummy python; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_path_PYTHON+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   case $PYTHON in
5404   [\\/]* | ?:[\\/]*)
5405   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5406   ;;
5407   *)
5408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5410 do
5411   IFS=$as_save_IFS
5412   test -z "$as_dir" && as_dir=.
5413     for ac_exec_ext in '' $ac_executable_extensions; do
5414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417     break 2
5418   fi
5419 done
5420   done
5421 IFS=$as_save_IFS
5422
5423   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5424   ;;
5425 esac
5426 fi
5427 PYTHON=$ac_cv_path_PYTHON
5428 if test -n "$PYTHON"; then
5429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5430 $as_echo "$PYTHON" >&6; }
5431 else
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435
5436
5437 # Extract the first word of "growisofs", so it can be a program name with args.
5438 set dummy growisofs; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_path_GROWISOFS+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   case $GROWISOFS in
5445   [\\/]* | ?:[\\/]*)
5446   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5447   ;;
5448   *)
5449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5451 do
5452   IFS=$as_save_IFS
5453   test -z "$as_dir" && as_dir=.
5454     for ac_exec_ext in '' $ac_executable_extensions; do
5455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458     break 2
5459   fi
5460 done
5461   done
5462 IFS=$as_save_IFS
5463
5464   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5465   ;;
5466 esac
5467 fi
5468 GROWISOFS=$ac_cv_path_GROWISOFS
5469 if test -n "$GROWISOFS"; then
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5471 $as_echo "$GROWISOFS" >&6; }
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477
5478 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5479 set dummy dvd+rw-mediainfo; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   case $DVDRWMEDIAINFO in
5486   [\\/]* | ?:[\\/]*)
5487   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5488   ;;
5489   *)
5490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493   IFS=$as_save_IFS
5494   test -z "$as_dir" && as_dir=.
5495     for ac_exec_ext in '' $ac_executable_extensions; do
5496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499     break 2
5500   fi
5501 done
5502   done
5503 IFS=$as_save_IFS
5504
5505   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5506   ;;
5507 esac
5508 fi
5509 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5510 if test -n "$DVDRWMEDIAINFO"; then
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5512 $as_echo "$DVDRWMEDIAINFO" >&6; }
5513 else
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518
5519 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5520 set dummy dvd+rw-format; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   case $DVDRWFORMAT in
5527   [\\/]* | ?:[\\/]*)
5528   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5529   ;;
5530   *)
5531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534   IFS=$as_save_IFS
5535   test -z "$as_dir" && as_dir=.
5536     for ac_exec_ext in '' $ac_executable_extensions; do
5537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543   done
5544 IFS=$as_save_IFS
5545
5546   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5547   ;;
5548 esac
5549 fi
5550 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5551 if test -n "$DVDRWFORMAT"; then
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5553 $as_echo "$DVDRWFORMAT" >&6; }
5554 else
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559
5560 # Extract the first word of "pkg-config", so it can be a program name with args.
5561 set dummy pkg-config; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_path_PKGCONFIG+:} false; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567   case $PKGCONFIG in
5568   [\\/]* | ?:[\\/]*)
5569   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5570   ;;
5571   *)
5572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577     for ac_exec_ext in '' $ac_executable_extensions; do
5578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584   done
5585 IFS=$as_save_IFS
5586
5587   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5588   ;;
5589 esac
5590 fi
5591 PKGCONFIG=$ac_cv_path_PKGCONFIG
5592 if test -n "$PKGCONFIG"; then
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5594 $as_echo "$PKGCONFIG" >&6; }
5595 else
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 # Extract the first word of "qmake", so it can be a program name with args.
5602 set dummy qmake; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_path_QMAKE+:} false; then :
5606   $as_echo_n "(cached) " >&6
5607 else
5608   case $QMAKE in
5609   [\\/]* | ?:[\\/]*)
5610   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5611   ;;
5612   *)
5613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616   IFS=$as_save_IFS
5617   test -z "$as_dir" && as_dir=.
5618     for ac_exec_ext in '' $ac_executable_extensions; do
5619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622     break 2
5623   fi
5624 done
5625   done
5626 IFS=$as_save_IFS
5627
5628   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5629   ;;
5630 esac
5631 fi
5632 QMAKE=$ac_cv_path_QMAKE
5633 if test -n "$QMAKE"; then
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5635 $as_echo "$QMAKE" >&6; }
5636 else
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5639 fi
5640
5641
5642 # Extract the first word of "gmake", so it can be a program name with args.
5643 set dummy gmake; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_path_GMAKE+:} false; then :
5647   $as_echo_n "(cached) " >&6
5648 else
5649   case $GMAKE in
5650   [\\/]* | ?:[\\/]*)
5651   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5652   ;;
5653   *)
5654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659     for ac_exec_ext in '' $ac_executable_extensions; do
5660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666   done
5667 IFS=$as_save_IFS
5668
5669   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5670   ;;
5671 esac
5672 fi
5673 GMAKE=$ac_cv_path_GMAKE
5674 if test -n "$GMAKE"; then
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5676 $as_echo "$GMAKE" >&6; }
5677 else
5678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680 fi
5681
5682
5683
5684 if test "x$WXCONFIG" = x; then
5685    WXCONFIG=wx-config
5686 fi
5687 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5688 set dummy ${WXCONFIG}; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_path_WXCONFIG+:} false; then :
5692   $as_echo_n "(cached) " >&6
5693 else
5694   case $WXCONFIG in
5695   [\\/]* | ?:[\\/]*)
5696   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5697   ;;
5698   *)
5699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702   IFS=$as_save_IFS
5703   test -z "$as_dir" && as_dir=.
5704     for ac_exec_ext in '' $ac_executable_extensions; do
5705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708     break 2
5709   fi
5710 done
5711   done
5712 IFS=$as_save_IFS
5713
5714   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5715   ;;
5716 esac
5717 fi
5718 WXCONFIG=$ac_cv_path_WXCONFIG
5719 if test -n "$WXCONFIG"; then
5720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5721 $as_echo "$WXCONFIG" >&6; }
5722 else
5723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728
5729 # Extract the first word of "cdrecord", so it can be a program name with args.
5730 set dummy cdrecord; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_path_CDRECORD+:} false; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736   case $CDRECORD in
5737   [\\/]* | ?:[\\/]*)
5738   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5739   ;;
5740   *)
5741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746     for ac_exec_ext in '' $ac_executable_extensions; do
5747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753   done
5754 IFS=$as_save_IFS
5755
5756   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5757   ;;
5758 esac
5759 fi
5760 CDRECORD=$ac_cv_path_CDRECORD
5761 if test -n "$CDRECORD"; then
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5763 $as_echo "$CDRECORD" >&6; }
5764 else
5765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 fi
5768
5769
5770 # Extract the first word of "pidof", so it can be a program name with args.
5771 set dummy pidof; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_path_PIDOF+:} false; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   case $PIDOF in
5778   [\\/]* | ?:[\\/]*)
5779   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5780   ;;
5781   *)
5782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785   IFS=$as_save_IFS
5786   test -z "$as_dir" && as_dir=.
5787     for ac_exec_ext in '' $ac_executable_extensions; do
5788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791     break 2
5792   fi
5793 done
5794   done
5795 IFS=$as_save_IFS
5796
5797   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5798   ;;
5799 esac
5800 fi
5801 PIDOF=$ac_cv_path_PIDOF
5802 if test -n "$PIDOF"; then
5803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5804 $as_echo "$PIDOF" >&6; }
5805 else
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 fi
5809
5810
5811 for ac_prog in gawk mawk nawk awk
5812 do
5813   # Extract the first word of "$ac_prog", so it can be a program name with args.
5814 set dummy $ac_prog; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if ${ac_cv_prog_AWK+:} false; then :
5818   $as_echo_n "(cached) " >&6
5819 else
5820   if test -n "$AWK"; then
5821   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5825 do
5826   IFS=$as_save_IFS
5827   test -z "$as_dir" && as_dir=.
5828     for ac_exec_ext in '' $ac_executable_extensions; do
5829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830     ac_cv_prog_AWK="$ac_prog"
5831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832     break 2
5833   fi
5834 done
5835   done
5836 IFS=$as_save_IFS
5837
5838 fi
5839 fi
5840 AWK=$ac_cv_prog_AWK
5841 if test -n "$AWK"; then
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5843 $as_echo "$AWK" >&6; }
5844 else
5845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5847 fi
5848
5849
5850   test -n "$AWK" && break
5851 done
5852
5853 # Some AWK programs fail, so test it and warn the user
5854 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5855       { if ((prog == $2) || (("(" prog ")") == $2) ||
5856       (("" prog "") == $2) ||
5857       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5858 else
5859   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5860    The regex engine of $AWK is too broken to be used you
5861    might want to install GNU AWK.
5862    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5863 fi
5864 THE_AWK=$AWK
5865 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5866 set dummy $THE_AWK; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_AWK+:} false; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   case $AWK in
5873   [\\/]* | ?:[\\/]*)
5874   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5875   ;;
5876   *)
5877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882     for ac_exec_ext in '' $ac_executable_extensions; do
5883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889   done
5890 IFS=$as_save_IFS
5891
5892   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5893   ;;
5894 esac
5895 fi
5896 AWK=$ac_cv_path_AWK
5897 if test -n "$AWK"; then
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5899 $as_echo "$AWK" >&6; }
5900 else
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905
5906
5907
5908 test -n "$ARFLAG" || ARFLAGS="cr"
5909
5910
5911 MAKE_SHELL=/bin/sh
5912
5913
5914
5915
5916
5917
5918
5919 use_libtool=yes
5920 # Check whether --enable-libtool was given.
5921 if test "${enable_libtool+set}" = set; then :
5922   enableval=$enable_libtool;
5923        if test x$enableval = xno; then
5924           use_libtool=no
5925        fi
5926
5927
5928 fi
5929
5930 case `pwd` in
5931   *\ * | *\     *)
5932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5933 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5934 esac
5935
5936
5937
5938 macro_version='2.4'
5939 macro_revision='1.3293'
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953 ltmain="$ac_aux_dir/ltmain.sh"
5954
5955 # Make sure we can run config.sub.
5956 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5957   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5958
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5960 $as_echo_n "checking build system type... " >&6; }
5961 if ${ac_cv_build+:} false; then :
5962   $as_echo_n "(cached) " >&6
5963 else
5964   ac_build_alias=$build_alias
5965 test "x$ac_build_alias" = x &&
5966   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5967 test "x$ac_build_alias" = x &&
5968   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5969 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5970   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5971
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5974 $as_echo "$ac_cv_build" >&6; }
5975 case $ac_cv_build in
5976 *-*-*) ;;
5977 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5978 esac
5979 build=$ac_cv_build
5980 ac_save_IFS=$IFS; IFS='-'
5981 set x $ac_cv_build
5982 shift
5983 build_cpu=$1
5984 build_vendor=$2
5985 shift; shift
5986 # Remember, the first character of IFS is used to create $*,
5987 # except with old shells:
5988 build_os=$*
5989 IFS=$ac_save_IFS
5990 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5991
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5994 $as_echo_n "checking host system type... " >&6; }
5995 if ${ac_cv_host+:} false; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   if test "x$host_alias" = x; then
5999   ac_cv_host=$ac_cv_build
6000 else
6001   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6002     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6003 fi
6004
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6007 $as_echo "$ac_cv_host" >&6; }
6008 case $ac_cv_host in
6009 *-*-*) ;;
6010 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6011 esac
6012 host=$ac_cv_host
6013 ac_save_IFS=$IFS; IFS='-'
6014 set x $ac_cv_host
6015 shift
6016 host_cpu=$1
6017 host_vendor=$2
6018 shift; shift
6019 # Remember, the first character of IFS is used to create $*,
6020 # except with old shells:
6021 host_os=$*
6022 IFS=$ac_save_IFS
6023 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6024
6025
6026 # Backslashify metacharacters that are still active within
6027 # double-quoted strings.
6028 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6029
6030 # Same as above, but do not quote variable references.
6031 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6032
6033 # Sed substitution to delay expansion of an escaped shell variable in a
6034 # double_quote_subst'ed string.
6035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6036
6037 # Sed substitution to delay expansion of an escaped single quote.
6038 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6039
6040 # Sed substitution to avoid accidental globbing in evaled expressions
6041 no_glob_subst='s/\*/\\\*/g'
6042
6043 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6044 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6045 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6048 $as_echo_n "checking how to print strings... " >&6; }
6049 # Test print first, because it will be a builtin if present.
6050 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6051    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6052   ECHO='print -r --'
6053 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6054   ECHO='printf %s\n'
6055 else
6056   # Use this function as a fallback that always works.
6057   func_fallback_echo ()
6058   {
6059     eval 'cat <<_LTECHO_EOF
6060 $1
6061 _LTECHO_EOF'
6062   }
6063   ECHO='func_fallback_echo'
6064 fi
6065
6066 # func_echo_all arg...
6067 # Invoke $ECHO with all args, space-separated.
6068 func_echo_all ()
6069 {
6070     $ECHO ""
6071 }
6072
6073 case "$ECHO" in
6074   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6075 $as_echo "printf" >&6; } ;;
6076   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6077 $as_echo "print -r" >&6; } ;;
6078   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6079 $as_echo "cat" >&6; } ;;
6080 esac
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6096 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6097 if ${ac_cv_path_SED+:} false; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6101      for ac_i in 1 2 3 4 5 6 7; do
6102        ac_script="$ac_script$as_nl$ac_script"
6103      done
6104      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6105      { ac_script=; unset ac_script;}
6106      if test -z "$SED"; then
6107   ac_path_SED_found=false
6108   # Loop through the user's path and test for each of PROGNAME-LIST
6109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114     for ac_prog in sed gsed; do
6115     for ac_exec_ext in '' $ac_executable_extensions; do
6116       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6117       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6118 # Check for GNU ac_path_SED and select it if it is found.
6119   # Check for GNU $ac_path_SED
6120 case `"$ac_path_SED" --version 2>&1` in
6121 *GNU*)
6122   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6123 *)
6124   ac_count=0
6125   $as_echo_n 0123456789 >"conftest.in"
6126   while :
6127   do
6128     cat "conftest.in" "conftest.in" >"conftest.tmp"
6129     mv "conftest.tmp" "conftest.in"
6130     cp "conftest.in" "conftest.nl"
6131     $as_echo '' >> "conftest.nl"
6132     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6133     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6134     as_fn_arith $ac_count + 1 && ac_count=$as_val
6135     if test $ac_count -gt ${ac_path_SED_max-0}; then
6136       # Best one so far, save it but keep looking for a better one
6137       ac_cv_path_SED="$ac_path_SED"
6138       ac_path_SED_max=$ac_count
6139     fi
6140     # 10*(2^10) chars as input seems more than enough
6141     test $ac_count -gt 10 && break
6142   done
6143   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6144 esac
6145
6146       $ac_path_SED_found && break 3
6147     done
6148   done
6149   done
6150 IFS=$as_save_IFS
6151   if test -z "$ac_cv_path_SED"; then
6152     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6153   fi
6154 else
6155   ac_cv_path_SED=$SED
6156 fi
6157
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6160 $as_echo "$ac_cv_path_SED" >&6; }
6161  SED="$ac_cv_path_SED"
6162   rm -f conftest.sed
6163
6164 test -z "$SED" && SED=sed
6165 Xsed="$SED -e 1s/^X//"
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6178 $as_echo_n "checking for fgrep... " >&6; }
6179 if ${ac_cv_path_FGREP+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6183    then ac_cv_path_FGREP="$GREP -F"
6184    else
6185      if test -z "$FGREP"; then
6186   ac_path_FGREP_found=false
6187   # Loop through the user's path and test for each of PROGNAME-LIST
6188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6190 do
6191   IFS=$as_save_IFS
6192   test -z "$as_dir" && as_dir=.
6193     for ac_prog in fgrep; do
6194     for ac_exec_ext in '' $ac_executable_extensions; do
6195       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6196       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6197 # Check for GNU ac_path_FGREP and select it if it is found.
6198   # Check for GNU $ac_path_FGREP
6199 case `"$ac_path_FGREP" --version 2>&1` in
6200 *GNU*)
6201   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6202 *)
6203   ac_count=0
6204   $as_echo_n 0123456789 >"conftest.in"
6205   while :
6206   do
6207     cat "conftest.in" "conftest.in" >"conftest.tmp"
6208     mv "conftest.tmp" "conftest.in"
6209     cp "conftest.in" "conftest.nl"
6210     $as_echo 'FGREP' >> "conftest.nl"
6211     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213     as_fn_arith $ac_count + 1 && ac_count=$as_val
6214     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6215       # Best one so far, save it but keep looking for a better one
6216       ac_cv_path_FGREP="$ac_path_FGREP"
6217       ac_path_FGREP_max=$ac_count
6218     fi
6219     # 10*(2^10) chars as input seems more than enough
6220     test $ac_count -gt 10 && break
6221   done
6222   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6223 esac
6224
6225       $ac_path_FGREP_found && break 3
6226     done
6227   done
6228   done
6229 IFS=$as_save_IFS
6230   if test -z "$ac_cv_path_FGREP"; then
6231     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6232   fi
6233 else
6234   ac_cv_path_FGREP=$FGREP
6235 fi
6236
6237    fi
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6240 $as_echo "$ac_cv_path_FGREP" >&6; }
6241  FGREP="$ac_cv_path_FGREP"
6242
6243
6244 test -z "$GREP" && GREP=grep
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 # Check whether --with-gnu-ld was given.
6265 if test "${with_gnu_ld+set}" = set; then :
6266   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6267 else
6268   with_gnu_ld=no
6269 fi
6270
6271 ac_prog=ld
6272 if test "$GCC" = yes; then
6273   # Check if gcc -print-prog-name=ld gives a path.
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6275 $as_echo_n "checking for ld used by $CC... " >&6; }
6276   case $host in
6277   *-*-mingw*)
6278     # gcc leaves a trailing carriage return which upsets mingw
6279     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6280   *)
6281     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6282   esac
6283   case $ac_prog in
6284     # Accept absolute paths.
6285     [\\/]* | ?:[\\/]*)
6286       re_direlt='/[^/][^/]*/\.\./'
6287       # Canonicalize the pathname of ld
6288       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6289       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6290         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6291       done
6292       test -z "$LD" && LD="$ac_prog"
6293       ;;
6294   "")
6295     # If it fails, then pretend we aren't using GCC.
6296     ac_prog=ld
6297     ;;
6298   *)
6299     # If it is relative, then search for the first ld in PATH.
6300     with_gnu_ld=unknown
6301     ;;
6302   esac
6303 elif test "$with_gnu_ld" = yes; then
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6305 $as_echo_n "checking for GNU ld... " >&6; }
6306 else
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6308 $as_echo_n "checking for non-GNU ld... " >&6; }
6309 fi
6310 if ${lt_cv_path_LD+:} false; then :
6311   $as_echo_n "(cached) " >&6
6312 else
6313   if test -z "$LD"; then
6314   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6315   for ac_dir in $PATH; do
6316     IFS="$lt_save_ifs"
6317     test -z "$ac_dir" && ac_dir=.
6318     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6319       lt_cv_path_LD="$ac_dir/$ac_prog"
6320       # Check to see if the program is GNU ld.  I'd rather use --version,
6321       # but apparently some variants of GNU ld only accept -v.
6322       # Break only if it was the GNU/non-GNU ld that we prefer.
6323       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6324       *GNU* | *'with BFD'*)
6325         test "$with_gnu_ld" != no && break
6326         ;;
6327       *)
6328         test "$with_gnu_ld" != yes && break
6329         ;;
6330       esac
6331     fi
6332   done
6333   IFS="$lt_save_ifs"
6334 else
6335   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6336 fi
6337 fi
6338
6339 LD="$lt_cv_path_LD"
6340 if test -n "$LD"; then
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6342 $as_echo "$LD" >&6; }
6343 else
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6350 if ${lt_cv_prog_gnu_ld+:} false; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6354 case `$LD -v 2>&1 </dev/null` in
6355 *GNU* | *'with BFD'*)
6356   lt_cv_prog_gnu_ld=yes
6357   ;;
6358 *)
6359   lt_cv_prog_gnu_ld=no
6360   ;;
6361 esac
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6364 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6365 with_gnu_ld=$lt_cv_prog_gnu_ld
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6376 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6377 if ${lt_cv_path_NM+:} false; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380   if test -n "$NM"; then
6381   # Let the user override the test.
6382   lt_cv_path_NM="$NM"
6383 else
6384   lt_nm_to_check="${ac_tool_prefix}nm"
6385   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6386     lt_nm_to_check="$lt_nm_to_check nm"
6387   fi
6388   for lt_tmp_nm in $lt_nm_to_check; do
6389     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6390     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6391       IFS="$lt_save_ifs"
6392       test -z "$ac_dir" && ac_dir=.
6393       tmp_nm="$ac_dir/$lt_tmp_nm"
6394       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6395         # Check to see if the nm accepts a BSD-compat flag.
6396         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6397         #   nm: unknown option "B" ignored
6398         # Tru64's nm complains that /dev/null is an invalid object file
6399         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6400         */dev/null* | *'Invalid file or object type'*)
6401           lt_cv_path_NM="$tmp_nm -B"
6402           break
6403           ;;
6404         *)
6405           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6406           */dev/null*)
6407             lt_cv_path_NM="$tmp_nm -p"
6408             break
6409             ;;
6410           *)
6411             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6412             continue # so that we can try to find one that supports BSD flags
6413             ;;
6414           esac
6415           ;;
6416         esac
6417       fi
6418     done
6419     IFS="$lt_save_ifs"
6420   done
6421   : ${lt_cv_path_NM=no}
6422 fi
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6425 $as_echo "$lt_cv_path_NM" >&6; }
6426 if test "$lt_cv_path_NM" != "no"; then
6427   NM="$lt_cv_path_NM"
6428 else
6429   # Didn't find any BSD compatible name lister, look for dumpbin.
6430   if test -n "$DUMPBIN"; then :
6431     # Let the user override the test.
6432   else
6433     if test -n "$ac_tool_prefix"; then
6434   for ac_prog in dumpbin "link -dump"
6435   do
6436     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_DUMPBIN+:} false; then :
6441   $as_echo_n "(cached) " >&6
6442 else
6443   if test -n "$DUMPBIN"; then
6444   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449   IFS=$as_save_IFS
6450   test -z "$as_dir" && as_dir=.
6451     for ac_exec_ext in '' $ac_executable_extensions; do
6452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455     break 2
6456   fi
6457 done
6458   done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 DUMPBIN=$ac_cv_prog_DUMPBIN
6464 if test -n "$DUMPBIN"; then
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6466 $as_echo "$DUMPBIN" >&6; }
6467 else
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473     test -n "$DUMPBIN" && break
6474   done
6475 fi
6476 if test -z "$DUMPBIN"; then
6477   ac_ct_DUMPBIN=$DUMPBIN
6478   for ac_prog in dumpbin "link -dump"
6479 do
6480   # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy $ac_prog; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6485   $as_echo_n "(cached) " >&6
6486 else
6487   if test -n "$ac_ct_DUMPBIN"; then
6488   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495     for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502   done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6508 if test -n "$ac_ct_DUMPBIN"; then
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6510 $as_echo "$ac_ct_DUMPBIN" >&6; }
6511 else
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516
6517   test -n "$ac_ct_DUMPBIN" && break
6518 done
6519
6520   if test "x$ac_ct_DUMPBIN" = x; then
6521     DUMPBIN=":"
6522   else
6523     case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6528 esac
6529     DUMPBIN=$ac_ct_DUMPBIN
6530   fi
6531 fi
6532
6533     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6534     *COFF*)
6535       DUMPBIN="$DUMPBIN -symbols"
6536       ;;
6537     *)
6538       DUMPBIN=:
6539       ;;
6540     esac
6541   fi
6542
6543   if test "$DUMPBIN" != ":"; then
6544     NM="$DUMPBIN"
6545   fi
6546 fi
6547 test -z "$NM" && NM=nm
6548
6549
6550
6551
6552
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6555 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6556 if ${lt_cv_nm_interface+:} false; then :
6557   $as_echo_n "(cached) " >&6
6558 else
6559   lt_cv_nm_interface="BSD nm"
6560   echo "int some_variable = 0;" > conftest.$ac_ext
6561   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6562   (eval "$ac_compile" 2>conftest.err)
6563   cat conftest.err >&5
6564   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6565   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6566   cat conftest.err >&5
6567   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6568   cat conftest.out >&5
6569   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6570     lt_cv_nm_interface="MS dumpbin"
6571   fi
6572   rm -f conftest*
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6575 $as_echo "$lt_cv_nm_interface" >&6; }
6576
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6578 $as_echo_n "checking whether ln -s works... " >&6; }
6579 LN_S=$as_ln_s
6580 if test "$LN_S" = "ln -s"; then
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6583 else
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6585 $as_echo "no, using $LN_S" >&6; }
6586 fi
6587
6588 # find the maximum length of command line arguments
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6590 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6591 if ${lt_cv_sys_max_cmd_len+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594     i=0
6595   teststring="ABCD"
6596
6597   case $build_os in
6598   msdosdjgpp*)
6599     # On DJGPP, this test can blow up pretty badly due to problems in libc
6600     # (any single argument exceeding 2000 bytes causes a buffer overrun
6601     # during glob expansion).  Even if it were fixed, the result of this
6602     # check would be larger than it should be.
6603     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6604     ;;
6605
6606   gnu*)
6607     # Under GNU Hurd, this test is not required because there is
6608     # no limit to the length of command line arguments.
6609     # Libtool will interpret -1 as no limit whatsoever
6610     lt_cv_sys_max_cmd_len=-1;
6611     ;;
6612
6613   cygwin* | mingw* | cegcc*)
6614     # On Win9x/ME, this test blows up -- it succeeds, but takes
6615     # about 5 minutes as the teststring grows exponentially.
6616     # Worse, since 9x/ME are not pre-emptively multitasking,
6617     # you end up with a "frozen" computer, even though with patience
6618     # the test eventually succeeds (with a max line length of 256k).
6619     # Instead, let's just punt: use the minimum linelength reported by
6620     # all of the supported platforms: 8192 (on NT/2K/XP).
6621     lt_cv_sys_max_cmd_len=8192;
6622     ;;
6623
6624   mint*)
6625     # On MiNT this can take a long time and run out of memory.
6626     lt_cv_sys_max_cmd_len=8192;
6627     ;;
6628
6629   amigaos*)
6630     # On AmigaOS with pdksh, this test takes hours, literally.
6631     # So we just punt and use a minimum line length of 8192.
6632     lt_cv_sys_max_cmd_len=8192;
6633     ;;
6634
6635   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6636     # This has been around since 386BSD, at least.  Likely further.
6637     if test -x /sbin/sysctl; then
6638       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6639     elif test -x /usr/sbin/sysctl; then
6640       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6641     else
6642       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6643     fi
6644     # And add a safety zone
6645     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6646     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6647     ;;
6648
6649   interix*)
6650     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6651     lt_cv_sys_max_cmd_len=196608
6652     ;;
6653
6654   osf*)
6655     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6656     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6657     # nice to cause kernel panics so lets avoid the loop below.
6658     # First set a reasonable default.
6659     lt_cv_sys_max_cmd_len=16384
6660     #
6661     if test -x /sbin/sysconfig; then
6662       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6663         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6664       esac
6665     fi
6666     ;;
6667   sco3.2v5*)
6668     lt_cv_sys_max_cmd_len=102400
6669     ;;
6670   sysv5* | sco5v6* | sysv4.2uw2*)
6671     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6672     if test -n "$kargmax"; then
6673       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6674     else
6675       lt_cv_sys_max_cmd_len=32768
6676     fi
6677     ;;
6678   *)
6679     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6680     if test -n "$lt_cv_sys_max_cmd_len"; then
6681       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6682       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6683     else
6684       # Make teststring a little bigger before we do anything with it.
6685       # a 1K string should be a reasonable start.
6686       for i in 1 2 3 4 5 6 7 8 ; do
6687         teststring=$teststring$teststring
6688       done
6689       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6690       # If test is not a shell built-in, we'll probably end up computing a
6691       # maximum length that is only half of the actual maximum length, but
6692       # we can't tell.
6693       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6694                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6695               test $i != 17 # 1/2 MB should be enough
6696       do
6697         i=`expr $i + 1`
6698         teststring=$teststring$teststring
6699       done
6700       # Only check the string length outside the loop.
6701       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6702       teststring=
6703       # Add a significant safety factor because C++ compilers can tack on
6704       # massive amounts of additional arguments before passing them to the
6705       # linker.  It appears as though 1/2 is a usable value.
6706       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6707     fi
6708     ;;
6709   esac
6710
6711 fi
6712
6713 if test -n $lt_cv_sys_max_cmd_len ; then
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6715 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6716 else
6717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6718 $as_echo "none" >&6; }
6719 fi
6720 max_cmd_len=$lt_cv_sys_max_cmd_len
6721
6722
6723
6724
6725
6726
6727 : ${CP="cp -f"}
6728 : ${MV="mv -f"}
6729 : ${RM="rm -f"}
6730
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6732 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6733 # Try some XSI features
6734 xsi_shell=no
6735 ( _lt_dummy="a/b/c"
6736   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6737       = c,a/b,b/c, \
6738     && eval 'test $(( 1 + 1 )) -eq 2 \
6739     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6740   && xsi_shell=yes
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6742 $as_echo "$xsi_shell" >&6; }
6743
6744
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6746 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6747 lt_shell_append=no
6748 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6749     >/dev/null 2>&1 \
6750   && lt_shell_append=yes
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6752 $as_echo "$lt_shell_append" >&6; }
6753
6754
6755 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6756   lt_unset=unset
6757 else
6758   lt_unset=false
6759 fi
6760
6761
6762
6763
6764
6765 # test EBCDIC or ASCII
6766 case `echo X|tr X '\101'` in
6767  A) # ASCII based system
6768     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6769   lt_SP2NL='tr \040 \012'
6770   lt_NL2SP='tr \015\012 \040\040'
6771   ;;
6772  *) # EBCDIC based system
6773   lt_SP2NL='tr \100 \n'
6774   lt_NL2SP='tr \r\n \100\100'
6775   ;;
6776 esac
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6787 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6788 if ${lt_cv_to_host_file_cmd+:} false; then :
6789   $as_echo_n "(cached) " >&6
6790 else
6791   case $host in
6792   *-*-mingw* )
6793     case $build in
6794       *-*-mingw* ) # actually msys
6795         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6796         ;;
6797       *-*-cygwin* )
6798         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6799         ;;
6800       * ) # otherwise, assume *nix
6801         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6802         ;;
6803     esac
6804     ;;
6805   *-*-cygwin* )
6806     case $build in
6807       *-*-mingw* ) # actually msys
6808         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6809         ;;
6810       *-*-cygwin* )
6811         lt_cv_to_host_file_cmd=func_convert_file_noop
6812         ;;
6813       * ) # otherwise, assume *nix
6814         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6815         ;;
6816     esac
6817     ;;
6818   * ) # unhandled hosts (and "normal" native builds)
6819     lt_cv_to_host_file_cmd=func_convert_file_noop
6820     ;;
6821 esac
6822
6823 fi
6824
6825 to_host_file_cmd=$lt_cv_to_host_file_cmd
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6827 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6828
6829
6830
6831
6832
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6834 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6835 if ${lt_cv_to_tool_file_cmd+:} false; then :
6836   $as_echo_n "(cached) " >&6
6837 else
6838   #assume ordinary cross tools, or native build.
6839 lt_cv_to_tool_file_cmd=func_convert_file_noop
6840 case $host in
6841   *-*-mingw* )
6842     case $build in
6843       *-*-mingw* ) # actually msys
6844         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6845         ;;
6846     esac
6847     ;;
6848 esac
6849
6850 fi
6851
6852 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6854 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6855
6856
6857
6858
6859
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6861 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6862 if ${lt_cv_ld_reload_flag+:} false; then :
6863   $as_echo_n "(cached) " >&6
6864 else
6865   lt_cv_ld_reload_flag='-r'
6866 fi
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6868 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6869 reload_flag=$lt_cv_ld_reload_flag
6870 case $reload_flag in
6871 "" | " "*) ;;
6872 *) reload_flag=" $reload_flag" ;;
6873 esac
6874 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6875 case $host_os in
6876   cygwin* | mingw* | pw32* | cegcc*)
6877     if test "$GCC" != yes; then
6878       reload_cmds=false
6879     fi
6880     ;;
6881   darwin*)
6882     if test "$GCC" = yes; then
6883       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6884     else
6885       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6886     fi
6887     ;;
6888 esac
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898 if test -n "$ac_tool_prefix"; then
6899   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_OBJDUMP+:} false; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906   if test -n "$OBJDUMP"; then
6907   ac_cv_prog_OBJDUMP="$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_OBJDUMP="${ac_tool_prefix}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 OBJDUMP=$ac_cv_prog_OBJDUMP
6927 if test -n "$OBJDUMP"; then
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6929 $as_echo "$OBJDUMP" >&6; }
6930 else
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935
6936 fi
6937 if test -z "$ac_cv_prog_OBJDUMP"; then
6938   ac_ct_OBJDUMP=$OBJDUMP
6939   # Extract the first word of "objdump", so it can be a program name with args.
6940 set dummy objdump; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6944   $as_echo_n "(cached) " >&6
6945 else
6946   if test -n "$ac_ct_OBJDUMP"; then
6947   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954     for ac_exec_ext in '' $ac_executable_extensions; do
6955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961   done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6967 if test -n "$ac_ct_OBJDUMP"; then
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6969 $as_echo "$ac_ct_OBJDUMP" >&6; }
6970 else
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975   if test "x$ac_ct_OBJDUMP" = x; then
6976     OBJDUMP="false"
6977   else
6978     case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984     OBJDUMP=$ac_ct_OBJDUMP
6985   fi
6986 else
6987   OBJDUMP="$ac_cv_prog_OBJDUMP"
6988 fi
6989
6990 test -z "$OBJDUMP" && OBJDUMP=objdump
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7001 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7002 if ${lt_cv_deplibs_check_method+:} false; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   lt_cv_file_magic_cmd='$MAGIC_CMD'
7006 lt_cv_file_magic_test_file=
7007 lt_cv_deplibs_check_method='unknown'
7008 # Need to set the preceding variable on all platforms that support
7009 # interlibrary dependencies.
7010 # 'none' -- dependencies not supported.
7011 # `unknown' -- same as none, but documents that we really don't know.
7012 # 'pass_all' -- all dependencies passed with no checks.
7013 # 'test_compile' -- check by making test program.
7014 # 'file_magic [[regex]]' -- check by looking for files in library path
7015 # which responds to the $file_magic_cmd with a given extended regex.
7016 # If you have `file' or equivalent on your system and you're not sure
7017 # whether `pass_all' will *always* work, you probably want this one.
7018
7019 case $host_os in
7020 aix[4-9]*)
7021   lt_cv_deplibs_check_method=pass_all
7022   ;;
7023
7024 beos*)
7025   lt_cv_deplibs_check_method=pass_all
7026   ;;
7027
7028 bsdi[45]*)
7029   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7030   lt_cv_file_magic_cmd='/usr/bin/file -L'
7031   lt_cv_file_magic_test_file=/shlib/libc.so
7032   ;;
7033
7034 cygwin*)
7035   # func_win32_libid is a shell function defined in ltmain.sh
7036   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7037   lt_cv_file_magic_cmd='func_win32_libid'
7038   ;;
7039
7040 mingw* | pw32*)
7041   # Base MSYS/MinGW do not provide the 'file' command needed by
7042   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7043   # unless we find 'file', for example because we are cross-compiling.
7044   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7045   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7046     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7047     lt_cv_file_magic_cmd='func_win32_libid'
7048   else
7049     # Keep this pattern in sync with the one in func_win32_libid.
7050     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7051     lt_cv_file_magic_cmd='$OBJDUMP -f'
7052   fi
7053   ;;
7054
7055 cegcc*)
7056   # use the weaker test based on 'objdump'. See mingw*.
7057   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7058   lt_cv_file_magic_cmd='$OBJDUMP -f'
7059   ;;
7060
7061 darwin* | rhapsody*)
7062   lt_cv_deplibs_check_method=pass_all
7063   ;;
7064
7065 freebsd* | dragonfly*)
7066   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7067     case $host_cpu in
7068     i*86 )
7069       # Not sure whether the presence of OpenBSD here was a mistake.
7070       # Let's accept both of them until this is cleared up.
7071       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7072       lt_cv_file_magic_cmd=/usr/bin/file
7073       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7074       ;;
7075     esac
7076   else
7077     lt_cv_deplibs_check_method=pass_all
7078   fi
7079   ;;
7080
7081 gnu*)
7082   lt_cv_deplibs_check_method=pass_all
7083   ;;
7084
7085 haiku*)
7086   lt_cv_deplibs_check_method=pass_all
7087   ;;
7088
7089 hpux10.20* | hpux11*)
7090   lt_cv_file_magic_cmd=/usr/bin/file
7091   case $host_cpu in
7092   ia64*)
7093     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7094     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7095     ;;
7096   hppa*64*)
7097     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]'
7098     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7099     ;;
7100   *)
7101     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7102     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7103     ;;
7104   esac
7105   ;;
7106
7107 interix[3-9]*)
7108   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7109   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7110   ;;
7111
7112 irix5* | irix6* | nonstopux*)
7113   case $LD in
7114   *-32|*"-32 ") libmagic=32-bit;;
7115   *-n32|*"-n32 ") libmagic=N32;;
7116   *-64|*"-64 ") libmagic=64-bit;;
7117   *) libmagic=never-match;;
7118   esac
7119   lt_cv_deplibs_check_method=pass_all
7120   ;;
7121
7122 # This must be Linux ELF.
7123 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7124   lt_cv_deplibs_check_method=pass_all
7125   ;;
7126
7127 netbsd*)
7128   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7129     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7130   else
7131     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7132   fi
7133   ;;
7134
7135 newos6*)
7136   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7137   lt_cv_file_magic_cmd=/usr/bin/file
7138   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7139   ;;
7140
7141 *nto* | *qnx*)
7142   lt_cv_deplibs_check_method=pass_all
7143   ;;
7144
7145 openbsd*)
7146   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7147     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7148   else
7149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7150   fi
7151   ;;
7152
7153 osf3* | osf4* | osf5*)
7154   lt_cv_deplibs_check_method=pass_all
7155   ;;
7156
7157 rdos*)
7158   lt_cv_deplibs_check_method=pass_all
7159   ;;
7160
7161 solaris*)
7162   lt_cv_deplibs_check_method=pass_all
7163   ;;
7164
7165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7166   lt_cv_deplibs_check_method=pass_all
7167   ;;
7168
7169 sysv4 | sysv4.3*)
7170   case $host_vendor in
7171   motorola)
7172     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]'
7173     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7174     ;;
7175   ncr)
7176     lt_cv_deplibs_check_method=pass_all
7177     ;;
7178   sequent)
7179     lt_cv_file_magic_cmd='/bin/file'
7180     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7181     ;;
7182   sni)
7183     lt_cv_file_magic_cmd='/bin/file'
7184     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7185     lt_cv_file_magic_test_file=/lib/libc.so
7186     ;;
7187   siemens)
7188     lt_cv_deplibs_check_method=pass_all
7189     ;;
7190   pc)
7191     lt_cv_deplibs_check_method=pass_all
7192     ;;
7193   esac
7194   ;;
7195
7196 tpf*)
7197   lt_cv_deplibs_check_method=pass_all
7198   ;;
7199 esac
7200
7201 fi
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7203 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7204
7205 file_magic_glob=
7206 want_nocaseglob=no
7207 if test "$build" = "$host"; then
7208   case $host_os in
7209   mingw* | pw32*)
7210     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7211       want_nocaseglob=yes
7212     else
7213       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7214     fi
7215     ;;
7216   esac
7217 fi
7218
7219 file_magic_cmd=$lt_cv_file_magic_cmd
7220 deplibs_check_method=$lt_cv_deplibs_check_method
7221 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244 if test -n "$ac_tool_prefix"; then
7245   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_DLLTOOL+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   if test -n "$DLLTOOL"; then
7253   ac_cv_prog_DLLTOOL="$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_DLLTOOL="${ac_tool_prefix}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 DLLTOOL=$ac_cv_prog_DLLTOOL
7273 if test -n "$DLLTOOL"; then
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7275 $as_echo "$DLLTOOL" >&6; }
7276 else
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281
7282 fi
7283 if test -z "$ac_cv_prog_DLLTOOL"; then
7284   ac_ct_DLLTOOL=$DLLTOOL
7285   # Extract the first word of "dlltool", so it can be a program name with args.
7286 set dummy dlltool; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7290   $as_echo_n "(cached) " >&6
7291 else
7292   if test -n "$ac_ct_DLLTOOL"; then
7293   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300     for ac_exec_ext in '' $ac_executable_extensions; do
7301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307   done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7313 if test -n "$ac_ct_DLLTOOL"; then
7314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7315 $as_echo "$ac_ct_DLLTOOL" >&6; }
7316 else
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321   if test "x$ac_ct_DLLTOOL" = x; then
7322     DLLTOOL="false"
7323   else
7324     case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330     DLLTOOL=$ac_ct_DLLTOOL
7331   fi
7332 else
7333   DLLTOOL="$ac_cv_prog_DLLTOOL"
7334 fi
7335
7336 test -z "$DLLTOOL" && DLLTOOL=dlltool
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7348 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7349 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   lt_cv_sharedlib_from_linklib_cmd='unknown'
7353
7354 case $host_os in
7355 cygwin* | mingw* | pw32* | cegcc*)
7356   # two different shell functions defined in ltmain.sh
7357   # decide which to use based on capabilities of $DLLTOOL
7358   case `$DLLTOOL --help 2>&1` in
7359   *--identify-strict*)
7360     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7361     ;;
7362   *)
7363     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7364     ;;
7365   esac
7366   ;;
7367 *)
7368   # fallback: assume linklib IS sharedlib
7369   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7370   ;;
7371 esac
7372
7373 fi
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7375 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7376 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7377 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7378
7379
7380
7381
7382
7383
7384
7385 if test -n "$ac_tool_prefix"; then
7386   for ac_prog in ar
7387   do
7388     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_AR+:} false; then :
7393   $as_echo_n "(cached) " >&6
7394 else
7395   if test -n "$AR"; then
7396   ac_cv_prog_AR="$AR" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401   IFS=$as_save_IFS
7402   test -z "$as_dir" && as_dir=.
7403     for ac_exec_ext in '' $ac_executable_extensions; do
7404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7405     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410   done
7411 IFS=$as_save_IFS
7412
7413 fi
7414 fi
7415 AR=$ac_cv_prog_AR
7416 if test -n "$AR"; then
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7418 $as_echo "$AR" >&6; }
7419 else
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424
7425     test -n "$AR" && break
7426   done
7427 fi
7428 if test -z "$AR"; then
7429   ac_ct_AR=$AR
7430   for ac_prog in ar
7431 do
7432   # Extract the first word of "$ac_prog", so it can be a program name with args.
7433 set dummy $ac_prog; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   if test -n "$ac_ct_AR"; then
7440   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447     for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_prog_ac_ct_AR="$ac_prog"
7450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454   done
7455 IFS=$as_save_IFS
7456
7457 fi
7458 fi
7459 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7460 if test -n "$ac_ct_AR"; then
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7462 $as_echo "$ac_ct_AR" >&6; }
7463 else
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 fi
7467
7468
7469   test -n "$ac_ct_AR" && break
7470 done
7471
7472   if test "x$ac_ct_AR" = x; then
7473     AR="false"
7474   else
7475     case $cross_compiling:$ac_tool_warned in
7476 yes:)
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned=yes ;;
7480 esac
7481     AR=$ac_ct_AR
7482   fi
7483 fi
7484
7485 : ${AR=ar}
7486 : ${AR_FLAGS=cru}
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7499 $as_echo_n "checking for archiver @FILE support... " >&6; }
7500 if ${lt_cv_ar_at_file+:} false; then :
7501   $as_echo_n "(cached) " >&6
7502 else
7503   lt_cv_ar_at_file=no
7504    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h.  */
7506
7507 int
7508 main ()
7509 {
7510
7511   ;
7512   return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_compile "$LINENO"; then :
7516   echo conftest.$ac_objext > conftest.lst
7517       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7518       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7519   (eval $lt_ar_try) 2>&5
7520   ac_status=$?
7521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522   test $ac_status = 0; }
7523       if test "$ac_status" -eq 0; then
7524         # Ensure the archiver fails upon bogus file names.
7525         rm -f conftest.$ac_objext libconftest.a
7526         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7527   (eval $lt_ar_try) 2>&5
7528   ac_status=$?
7529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530   test $ac_status = 0; }
7531         if test "$ac_status" -ne 0; then
7532           lt_cv_ar_at_file=@
7533         fi
7534       fi
7535       rm -f conftest.* libconftest.a
7536
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539
7540 fi
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7542 $as_echo "$lt_cv_ar_at_file" >&6; }
7543
7544 if test "x$lt_cv_ar_at_file" = xno; then
7545   archiver_list_spec=
7546 else
7547   archiver_list_spec=$lt_cv_ar_at_file
7548 fi
7549
7550
7551
7552
7553
7554
7555
7556 if test -n "$ac_tool_prefix"; then
7557   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7558 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_STRIP+:} false; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   if test -n "$STRIP"; then
7565   ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 STRIP=$ac_cv_prog_STRIP
7585 if test -n "$STRIP"; then
7586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7587 $as_echo "$STRIP" >&6; }
7588 else
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 fi
7592
7593
7594 fi
7595 if test -z "$ac_cv_prog_STRIP"; then
7596   ac_ct_STRIP=$STRIP
7597   # Extract the first word of "strip", so it can be a program name with args.
7598 set dummy strip; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   if test -n "$ac_ct_STRIP"; then
7605   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614     ac_cv_prog_ac_ct_STRIP="strip"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621
7622 fi
7623 fi
7624 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7625 if test -n "$ac_ct_STRIP"; then
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7627 $as_echo "$ac_ct_STRIP" >&6; }
7628 else
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633   if test "x$ac_ct_STRIP" = x; then
7634     STRIP=":"
7635   else
7636     case $cross_compiling:$ac_tool_warned in
7637 yes:)
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7640 ac_tool_warned=yes ;;
7641 esac
7642     STRIP=$ac_ct_STRIP
7643   fi
7644 else
7645   STRIP="$ac_cv_prog_STRIP"
7646 fi
7647
7648 test -z "$STRIP" && STRIP=:
7649
7650
7651
7652
7653
7654
7655 if test -n "$ac_tool_prefix"; then
7656   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7657 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_RANLIB+:} false; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   if test -n "$RANLIB"; then
7664   ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 RANLIB=$ac_cv_prog_RANLIB
7684 if test -n "$RANLIB"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7686 $as_echo "$RANLIB" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692
7693 fi
7694 if test -z "$ac_cv_prog_RANLIB"; then
7695   ac_ct_RANLIB=$RANLIB
7696   # Extract the first word of "ranlib", so it can be a program name with args.
7697 set dummy ranlib; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703   if test -n "$ac_ct_RANLIB"; then
7704   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709   IFS=$as_save_IFS
7710   test -z "$as_dir" && as_dir=.
7711     for ac_exec_ext in '' $ac_executable_extensions; do
7712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713     ac_cv_prog_ac_ct_RANLIB="ranlib"
7714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715     break 2
7716   fi
7717 done
7718   done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7724 if test -n "$ac_ct_RANLIB"; then
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7726 $as_echo "$ac_ct_RANLIB" >&6; }
7727 else
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732   if test "x$ac_ct_RANLIB" = x; then
7733     RANLIB=":"
7734   else
7735     case $cross_compiling:$ac_tool_warned in
7736 yes:)
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7739 ac_tool_warned=yes ;;
7740 esac
7741     RANLIB=$ac_ct_RANLIB
7742   fi
7743 else
7744   RANLIB="$ac_cv_prog_RANLIB"
7745 fi
7746
7747 test -z "$RANLIB" && RANLIB=:
7748
7749
7750
7751
7752
7753
7754 # Determine commands to create old-style static archives.
7755 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7756 old_postinstall_cmds='chmod 644 $oldlib'
7757 old_postuninstall_cmds=
7758
7759 if test -n "$RANLIB"; then
7760   case $host_os in
7761   openbsd*)
7762     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7763     ;;
7764   *)
7765     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7766     ;;
7767   esac
7768   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7769 fi
7770
7771 case $host_os in
7772   darwin*)
7773     lock_old_archive_extraction=yes ;;
7774   *)
7775     lock_old_archive_extraction=no ;;
7776 esac
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816 # If no C compiler was specified, use CC.
7817 LTCC=${LTCC-"$CC"}
7818
7819 # If no C compiler flags were specified, use CFLAGS.
7820 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7821
7822 # Allow CC to be a program name with arguments.
7823 compiler=$CC
7824
7825
7826 # Check for command to grab the raw symbol name followed by C symbol from nm.
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7828 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7829 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832
7833 # These are sane defaults that work on at least a few old systems.
7834 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7835
7836 # Character class describing NM global symbol codes.
7837 symcode='[BCDEGRST]'
7838
7839 # Regexp to match symbols that can be accessed directly from C.
7840 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7841
7842 # Define system-specific variables.
7843 case $host_os in
7844 aix*)
7845   symcode='[BCDT]'
7846   ;;
7847 cygwin* | mingw* | pw32* | cegcc*)
7848   symcode='[ABCDGISTW]'
7849   ;;
7850 hpux*)
7851   if test "$host_cpu" = ia64; then
7852     symcode='[ABCDEGRST]'
7853   fi
7854   ;;
7855 irix* | nonstopux*)
7856   symcode='[BCDEGRST]'
7857   ;;
7858 osf*)
7859   symcode='[BCDEGQRST]'
7860   ;;
7861 solaris*)
7862   symcode='[BDRT]'
7863   ;;
7864 sco3.2v5*)
7865   symcode='[DT]'
7866   ;;
7867 sysv4.2uw2*)
7868   symcode='[DT]'
7869   ;;
7870 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7871   symcode='[ABDT]'
7872   ;;
7873 sysv4)
7874   symcode='[DFNSTU]'
7875   ;;
7876 esac
7877
7878 # If we're using GNU nm, then use its standard symbol codes.
7879 case `$NM -V 2>&1` in
7880 *GNU* | *'with BFD'*)
7881   symcode='[ABCDGIRSTW]' ;;
7882 esac
7883
7884 # Transform an extracted symbol line into a proper C declaration.
7885 # Some systems (esp. on ia64) link data and code symbols differently,
7886 # so use this general approach.
7887 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7888
7889 # Transform an extracted symbol line into symbol name and symbol address
7890 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7891 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'"
7892
7893 # Handle CRLF in mingw tool chain
7894 opt_cr=
7895 case $build_os in
7896 mingw*)
7897   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7898   ;;
7899 esac
7900
7901 # Try without a prefix underscore, then with it.
7902 for ac_symprfx in "" "_"; do
7903
7904   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7905   symxfrm="\\1 $ac_symprfx\\2 \\2"
7906
7907   # Write the raw and C identifiers.
7908   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7909     # Fake it for dumpbin and say T for any non-static function
7910     # and D for any global variable.
7911     # Also find C++ and __fastcall symbols from MSVC++,
7912     # which start with @ or ?.
7913     lt_cv_sys_global_symbol_pipe="$AWK '"\
7914 "     {last_section=section; section=\$ 3};"\
7915 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7916 "     \$ 0!~/External *\|/{next};"\
7917 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7918 "     {if(hide[section]) next};"\
7919 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7920 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7921 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7922 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7923 "     ' prfx=^$ac_symprfx"
7924   else
7925     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7926   fi
7927   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7928
7929   # Check to see that the pipe works correctly.
7930   pipe_works=no
7931
7932   rm -f conftest*
7933   cat > conftest.$ac_ext <<_LT_EOF
7934 #ifdef __cplusplus
7935 extern "C" {
7936 #endif
7937 char nm_test_var;
7938 void nm_test_func(void);
7939 void nm_test_func(void){}
7940 #ifdef __cplusplus
7941 }
7942 #endif
7943 int main(){nm_test_var='a';nm_test_func();return(0);}
7944 _LT_EOF
7945
7946   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7947   (eval $ac_compile) 2>&5
7948   ac_status=$?
7949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7950   test $ac_status = 0; }; then
7951     # Now try to grab the symbols.
7952     nlist=conftest.nm
7953     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7954   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7955   ac_status=$?
7956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957   test $ac_status = 0; } && test -s "$nlist"; then
7958       # Try sorting and uniquifying the output.
7959       if sort "$nlist" | uniq > "$nlist"T; then
7960         mv -f "$nlist"T "$nlist"
7961       else
7962         rm -f "$nlist"T
7963       fi
7964
7965       # Make sure that we snagged all the symbols we need.
7966       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7967         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7968           cat <<_LT_EOF > conftest.$ac_ext
7969 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7970 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7971 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7972    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7973 # define LT_DLSYM_CONST
7974 #elif defined(__osf__)
7975 /* This system does not cope well with relocations in const data.  */
7976 # define LT_DLSYM_CONST
7977 #else
7978 # define LT_DLSYM_CONST const
7979 #endif
7980
7981 #ifdef __cplusplus
7982 extern "C" {
7983 #endif
7984
7985 _LT_EOF
7986           # Now generate the symbol file.
7987           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7988
7989           cat <<_LT_EOF >> conftest.$ac_ext
7990
7991 /* The mapping between symbol names and symbols.  */
7992 LT_DLSYM_CONST struct {
7993   const char *name;
7994   void       *address;
7995 }
7996 lt__PROGRAM__LTX_preloaded_symbols[] =
7997 {
7998   { "@PROGRAM@", (void *) 0 },
7999 _LT_EOF
8000           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8001           cat <<\_LT_EOF >> conftest.$ac_ext
8002   {0, (void *) 0}
8003 };
8004
8005 /* This works around a problem in FreeBSD linker */
8006 #ifdef FREEBSD_WORKAROUND
8007 static const void *lt_preloaded_setup() {
8008   return lt__PROGRAM__LTX_preloaded_symbols;
8009 }
8010 #endif
8011
8012 #ifdef __cplusplus
8013 }
8014 #endif
8015 _LT_EOF
8016           # Now try linking the two files.
8017           mv conftest.$ac_objext conftstm.$ac_objext
8018           lt_globsym_save_LIBS=$LIBS
8019           lt_globsym_save_CFLAGS=$CFLAGS
8020           LIBS="conftstm.$ac_objext"
8021           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8022           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8023   (eval $ac_link) 2>&5
8024   ac_status=$?
8025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8026   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8027             pipe_works=yes
8028           fi
8029           LIBS=$lt_globsym_save_LIBS
8030           CFLAGS=$lt_globsym_save_CFLAGS
8031         else
8032           echo "cannot find nm_test_func in $nlist" >&5
8033         fi
8034       else
8035         echo "cannot find nm_test_var in $nlist" >&5
8036       fi
8037     else
8038       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8039     fi
8040   else
8041     echo "$progname: failed program was:" >&5
8042     cat conftest.$ac_ext >&5
8043   fi
8044   rm -rf conftest* conftst*
8045
8046   # Do not use the global_symbol_pipe unless it works.
8047   if test "$pipe_works" = yes; then
8048     break
8049   else
8050     lt_cv_sys_global_symbol_pipe=
8051   fi
8052 done
8053
8054 fi
8055
8056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8057   lt_cv_sys_global_symbol_to_cdecl=
8058 fi
8059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8061 $as_echo "failed" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8064 $as_echo "ok" >&6; }
8065 fi
8066
8067 # Response file support.
8068 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8069   nm_file_list_spec='@'
8070 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8071   nm_file_list_spec='@'
8072 fi
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8101 $as_echo_n "checking for sysroot... " >&6; }
8102
8103 # Check whether --with-sysroot was given.
8104 if test "${with_sysroot+set}" = set; then :
8105   withval=$with_sysroot;
8106 else
8107   with_sysroot=no
8108 fi
8109
8110
8111 lt_sysroot=
8112 case ${with_sysroot} in #(
8113  yes)
8114    if test "$GCC" = yes; then
8115      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8116    fi
8117    ;; #(
8118  /*)
8119    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8120    ;; #(
8121  no|'')
8122    ;; #(
8123  *)
8124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8125 $as_echo "${with_sysroot}" >&6; }
8126    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8127    ;;
8128 esac
8129
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8131 $as_echo "${lt_sysroot:-no}" >&6; }
8132
8133
8134
8135
8136
8137 # Check whether --enable-libtool-lock was given.
8138 if test "${enable_libtool_lock+set}" = set; then :
8139   enableval=$enable_libtool_lock;
8140 fi
8141
8142 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8143
8144 # Some flags need to be propagated to the compiler or linker for good
8145 # libtool support.
8146 case $host in
8147 ia64-*-hpux*)
8148   # Find out which ABI we are using.
8149   echo 'int i;' > conftest.$ac_ext
8150   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8151   (eval $ac_compile) 2>&5
8152   ac_status=$?
8153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154   test $ac_status = 0; }; then
8155     case `/usr/bin/file conftest.$ac_objext` in
8156       *ELF-32*)
8157         HPUX_IA64_MODE="32"
8158         ;;
8159       *ELF-64*)
8160         HPUX_IA64_MODE="64"
8161         ;;
8162     esac
8163   fi
8164   rm -rf conftest*
8165   ;;
8166 *-*-irix6*)
8167   # Find out which ABI we are using.
8168   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8169   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8170   (eval $ac_compile) 2>&5
8171   ac_status=$?
8172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8173   test $ac_status = 0; }; then
8174     if test "$lt_cv_prog_gnu_ld" = yes; then
8175       case `/usr/bin/file conftest.$ac_objext` in
8176         *32-bit*)
8177           LD="${LD-ld} -melf32bsmip"
8178           ;;
8179         *N32*)
8180           LD="${LD-ld} -melf32bmipn32"
8181           ;;
8182         *64-bit*)
8183           LD="${LD-ld} -melf64bmip"
8184         ;;
8185       esac
8186     else
8187       case `/usr/bin/file conftest.$ac_objext` in
8188         *32-bit*)
8189           LD="${LD-ld} -32"
8190           ;;
8191         *N32*)
8192           LD="${LD-ld} -n32"
8193           ;;
8194         *64-bit*)
8195           LD="${LD-ld} -64"
8196           ;;
8197       esac
8198     fi
8199   fi
8200   rm -rf conftest*
8201   ;;
8202
8203 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8204 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8205   # Find out which ABI we are using.
8206   echo 'int i;' > conftest.$ac_ext
8207   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8208   (eval $ac_compile) 2>&5
8209   ac_status=$?
8210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211   test $ac_status = 0; }; then
8212     case `/usr/bin/file conftest.o` in
8213       *32-bit*)
8214         case $host in
8215           x86_64-*kfreebsd*-gnu)
8216             LD="${LD-ld} -m elf_i386_fbsd"
8217             ;;
8218           x86_64-*linux*)
8219             LD="${LD-ld} -m elf_i386"
8220             ;;
8221           ppc64-*linux*|powerpc64-*linux*)
8222             LD="${LD-ld} -m elf32ppclinux"
8223             ;;
8224           s390x-*linux*)
8225             LD="${LD-ld} -m elf_s390"
8226             ;;
8227           sparc64-*linux*)
8228             LD="${LD-ld} -m elf32_sparc"
8229             ;;
8230         esac
8231         ;;
8232       *64-bit*)
8233         case $host in
8234           x86_64-*kfreebsd*-gnu)
8235             LD="${LD-ld} -m elf_x86_64_fbsd"
8236             ;;
8237           x86_64-*linux*)
8238             LD="${LD-ld} -m elf_x86_64"
8239             ;;
8240           ppc*-*linux*|powerpc*-*linux*)
8241             LD="${LD-ld} -m elf64ppc"
8242             ;;
8243           s390*-*linux*|s390*-*tpf*)
8244             LD="${LD-ld} -m elf64_s390"
8245             ;;
8246           sparc*-*linux*)
8247             LD="${LD-ld} -m elf64_sparc"
8248             ;;
8249         esac
8250         ;;
8251     esac
8252   fi
8253   rm -rf conftest*
8254   ;;
8255
8256 *-*-sco3.2v5*)
8257   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8258   SAVE_CFLAGS="$CFLAGS"
8259   CFLAGS="$CFLAGS -belf"
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8261 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8262 if ${lt_cv_cc_needs_belf+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   ac_ext=c
8266 ac_cpp='$CPP $CPPFLAGS'
8267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270
8271      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h.  */
8273
8274 int
8275 main ()
8276 {
8277
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"; then :
8283   lt_cv_cc_needs_belf=yes
8284 else
8285   lt_cv_cc_needs_belf=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288     conftest$ac_exeext conftest.$ac_ext
8289      ac_ext=c
8290 ac_cpp='$CPP $CPPFLAGS'
8291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8294
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8297 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8298   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8299     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8300     CFLAGS="$SAVE_CFLAGS"
8301   fi
8302   ;;
8303 sparc*-*solaris*)
8304   # Find out which ABI we are using.
8305   echo 'int i;' > conftest.$ac_ext
8306   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8307   (eval $ac_compile) 2>&5
8308   ac_status=$?
8309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8310   test $ac_status = 0; }; then
8311     case `/usr/bin/file conftest.o` in
8312     *64-bit*)
8313       case $lt_cv_prog_gnu_ld in
8314       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8315       *)
8316         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8317           LD="${LD-ld} -64"
8318         fi
8319         ;;
8320       esac
8321       ;;
8322     esac
8323   fi
8324   rm -rf conftest*
8325   ;;
8326 esac
8327
8328 need_locks="$enable_libtool_lock"
8329
8330 if test -n "$ac_tool_prefix"; then
8331   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8332 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   if test -n "$MANIFEST_TOOL"; then
8339   ac_cv_prog_MANIFEST_TOOL="$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_MANIFEST_TOOL="${ac_tool_prefix}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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8359 if test -n "$MANIFEST_TOOL"; then
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8361 $as_echo "$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
8368 fi
8369 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8370   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8371   # Extract the first word of "mt", so it can be a program name with args.
8372 set dummy mt; ac_word=$2
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8376   $as_echo_n "(cached) " >&6
8377 else
8378   if test -n "$ac_ct_MANIFEST_TOOL"; then
8379   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8380 else
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8383 do
8384   IFS=$as_save_IFS
8385   test -z "$as_dir" && as_dir=.
8386     for ac_exec_ext in '' $ac_executable_extensions; do
8387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390     break 2
8391   fi
8392 done
8393   done
8394 IFS=$as_save_IFS
8395
8396 fi
8397 fi
8398 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8399 if test -n "$ac_ct_MANIFEST_TOOL"; then
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8401 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8402 else
8403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8405 fi
8406
8407   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8408     MANIFEST_TOOL=":"
8409   else
8410     case $cross_compiling:$ac_tool_warned in
8411 yes:)
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8415 esac
8416     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8417   fi
8418 else
8419   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8420 fi
8421
8422 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8424 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8425 if ${lt_cv_path_mainfest_tool+:} false; then :
8426   $as_echo_n "(cached) " >&6
8427 else
8428   lt_cv_path_mainfest_tool=no
8429   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8430   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8431   cat conftest.err >&5
8432   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8433     lt_cv_path_mainfest_tool=yes
8434   fi
8435   rm -f conftest*
8436 fi
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8438 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8439 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8440   MANIFEST_TOOL=:
8441 fi
8442
8443
8444
8445
8446
8447
8448   case $host_os in
8449     rhapsody* | darwin*)
8450     if test -n "$ac_tool_prefix"; then
8451   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8452 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_DSYMUTIL+:} false; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458   if test -n "$DSYMUTIL"; then
8459   ac_cv_prog_DSYMUTIL="$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_DSYMUTIL="${ac_tool_prefix}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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8479 if test -n "$DSYMUTIL"; then
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8481 $as_echo "$DSYMUTIL" >&6; }
8482 else
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487
8488 fi
8489 if test -z "$ac_cv_prog_DSYMUTIL"; then
8490   ac_ct_DSYMUTIL=$DSYMUTIL
8491   # Extract the first word of "dsymutil", so it can be a program name with args.
8492 set dummy dsymutil; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   if test -n "$ac_ct_DSYMUTIL"; then
8499   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8500 else
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8503 do
8504   IFS=$as_save_IFS
8505   test -z "$as_dir" && as_dir=.
8506     for ac_exec_ext in '' $ac_executable_extensions; do
8507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8508     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510     break 2
8511   fi
8512 done
8513   done
8514 IFS=$as_save_IFS
8515
8516 fi
8517 fi
8518 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8519 if test -n "$ac_ct_DSYMUTIL"; then
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8521 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8522 else
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8525 fi
8526
8527   if test "x$ac_ct_DSYMUTIL" = x; then
8528     DSYMUTIL=":"
8529   else
8530     case $cross_compiling:$ac_tool_warned in
8531 yes:)
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8534 ac_tool_warned=yes ;;
8535 esac
8536     DSYMUTIL=$ac_ct_DSYMUTIL
8537   fi
8538 else
8539   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8540 fi
8541
8542     if test -n "$ac_tool_prefix"; then
8543   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8544 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_NMEDIT+:} false; then :
8548   $as_echo_n "(cached) " >&6
8549 else
8550   if test -n "$NMEDIT"; then
8551   ac_cv_prog_NMEDIT="$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_NMEDIT="${ac_tool_prefix}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 NMEDIT=$ac_cv_prog_NMEDIT
8571 if test -n "$NMEDIT"; then
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8573 $as_echo "$NMEDIT" >&6; }
8574 else
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578
8579
8580 fi
8581 if test -z "$ac_cv_prog_NMEDIT"; then
8582   ac_ct_NMEDIT=$NMEDIT
8583   # Extract the first word of "nmedit", so it can be a program name with args.
8584 set dummy nmedit; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8588   $as_echo_n "(cached) " >&6
8589 else
8590   if test -n "$ac_ct_NMEDIT"; then
8591   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596   IFS=$as_save_IFS
8597   test -z "$as_dir" && as_dir=.
8598     for ac_exec_ext in '' $ac_executable_extensions; do
8599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8600     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602     break 2
8603   fi
8604 done
8605   done
8606 IFS=$as_save_IFS
8607
8608 fi
8609 fi
8610 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8611 if test -n "$ac_ct_NMEDIT"; then
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8613 $as_echo "$ac_ct_NMEDIT" >&6; }
8614 else
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618
8619   if test "x$ac_ct_NMEDIT" = x; then
8620     NMEDIT=":"
8621   else
8622     case $cross_compiling:$ac_tool_warned in
8623 yes:)
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8626 ac_tool_warned=yes ;;
8627 esac
8628     NMEDIT=$ac_ct_NMEDIT
8629   fi
8630 else
8631   NMEDIT="$ac_cv_prog_NMEDIT"
8632 fi
8633
8634     if test -n "$ac_tool_prefix"; then
8635   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8636 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_LIPO+:} false; then :
8640   $as_echo_n "(cached) " >&6
8641 else
8642   if test -n "$LIPO"; then
8643   ac_cv_prog_LIPO="$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_LIPO="${ac_tool_prefix}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 LIPO=$ac_cv_prog_LIPO
8663 if test -n "$LIPO"; then
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8665 $as_echo "$LIPO" >&6; }
8666 else
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8669 fi
8670
8671
8672 fi
8673 if test -z "$ac_cv_prog_LIPO"; then
8674   ac_ct_LIPO=$LIPO
8675   # Extract the first word of "lipo", so it can be a program name with args.
8676 set dummy lipo; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   if test -n "$ac_ct_LIPO"; then
8683   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688   IFS=$as_save_IFS
8689   test -z "$as_dir" && as_dir=.
8690     for ac_exec_ext in '' $ac_executable_extensions; do
8691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692     ac_cv_prog_ac_ct_LIPO="lipo"
8693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694     break 2
8695   fi
8696 done
8697   done
8698 IFS=$as_save_IFS
8699
8700 fi
8701 fi
8702 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8703 if test -n "$ac_ct_LIPO"; then
8704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8705 $as_echo "$ac_ct_LIPO" >&6; }
8706 else
8707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709 fi
8710
8711   if test "x$ac_ct_LIPO" = x; then
8712     LIPO=":"
8713   else
8714     case $cross_compiling:$ac_tool_warned in
8715 yes:)
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8718 ac_tool_warned=yes ;;
8719 esac
8720     LIPO=$ac_ct_LIPO
8721   fi
8722 else
8723   LIPO="$ac_cv_prog_LIPO"
8724 fi
8725
8726     if test -n "$ac_tool_prefix"; then
8727   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8728 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_OTOOL+:} false; then :
8732   $as_echo_n "(cached) " >&6
8733 else
8734   if test -n "$OTOOL"; then
8735   ac_cv_prog_OTOOL="$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_OTOOL="${ac_tool_prefix}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 OTOOL=$ac_cv_prog_OTOOL
8755 if test -n "$OTOOL"; then
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8757 $as_echo "$OTOOL" >&6; }
8758 else
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8761 fi
8762
8763
8764 fi
8765 if test -z "$ac_cv_prog_OTOOL"; then
8766   ac_ct_OTOOL=$OTOOL
8767   # Extract the first word of "otool", so it can be a program name with args.
8768 set dummy otool; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8772   $as_echo_n "(cached) " >&6
8773 else
8774   if test -n "$ac_ct_OTOOL"; then
8775   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8776 else
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 for as_dir in $PATH
8779 do
8780   IFS=$as_save_IFS
8781   test -z "$as_dir" && as_dir=.
8782     for ac_exec_ext in '' $ac_executable_extensions; do
8783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8784     ac_cv_prog_ac_ct_OTOOL="otool"
8785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786     break 2
8787   fi
8788 done
8789   done
8790 IFS=$as_save_IFS
8791
8792 fi
8793 fi
8794 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8795 if test -n "$ac_ct_OTOOL"; then
8796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8797 $as_echo "$ac_ct_OTOOL" >&6; }
8798 else
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8801 fi
8802
8803   if test "x$ac_ct_OTOOL" = x; then
8804     OTOOL=":"
8805   else
8806     case $cross_compiling:$ac_tool_warned in
8807 yes:)
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8810 ac_tool_warned=yes ;;
8811 esac
8812     OTOOL=$ac_ct_OTOOL
8813   fi
8814 else
8815   OTOOL="$ac_cv_prog_OTOOL"
8816 fi
8817
8818     if test -n "$ac_tool_prefix"; then
8819   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8820 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_OTOOL64+:} false; then :
8824   $as_echo_n "(cached) " >&6
8825 else
8826   if test -n "$OTOOL64"; then
8827   ac_cv_prog_OTOOL64="$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_OTOOL64="${ac_tool_prefix}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 OTOOL64=$ac_cv_prog_OTOOL64
8847 if test -n "$OTOOL64"; then
8848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8849 $as_echo "$OTOOL64" >&6; }
8850 else
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854
8855
8856 fi
8857 if test -z "$ac_cv_prog_OTOOL64"; then
8858   ac_ct_OTOOL64=$OTOOL64
8859   # Extract the first word of "otool64", so it can be a program name with args.
8860 set dummy otool64; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8864   $as_echo_n "(cached) " >&6
8865 else
8866   if test -n "$ac_ct_OTOOL64"; then
8867   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872   IFS=$as_save_IFS
8873   test -z "$as_dir" && as_dir=.
8874     for ac_exec_ext in '' $ac_executable_extensions; do
8875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876     ac_cv_prog_ac_ct_OTOOL64="otool64"
8877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878     break 2
8879   fi
8880 done
8881   done
8882 IFS=$as_save_IFS
8883
8884 fi
8885 fi
8886 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8887 if test -n "$ac_ct_OTOOL64"; then
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8889 $as_echo "$ac_ct_OTOOL64" >&6; }
8890 else
8891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8893 fi
8894
8895   if test "x$ac_ct_OTOOL64" = x; then
8896     OTOOL64=":"
8897   else
8898     case $cross_compiling:$ac_tool_warned in
8899 yes:)
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8902 ac_tool_warned=yes ;;
8903 esac
8904     OTOOL64=$ac_ct_OTOOL64
8905   fi
8906 else
8907   OTOOL64="$ac_cv_prog_OTOOL64"
8908 fi
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8937 $as_echo_n "checking for -single_module linker flag... " >&6; }
8938 if ${lt_cv_apple_cc_single_mod+:} false; then :
8939   $as_echo_n "(cached) " >&6
8940 else
8941   lt_cv_apple_cc_single_mod=no
8942       if test -z "${LT_MULTI_MODULE}"; then
8943         # By default we will add the -single_module flag. You can override
8944         # by either setting the environment variable LT_MULTI_MODULE
8945         # non-empty at configure time, or by adding -multi_module to the
8946         # link flags.
8947         rm -rf libconftest.dylib*
8948         echo "int foo(void){return 1;}" > conftest.c
8949         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8950 -dynamiclib -Wl,-single_module conftest.c" >&5
8951         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8952           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8953         _lt_result=$?
8954         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8955           lt_cv_apple_cc_single_mod=yes
8956         else
8957           cat conftest.err >&5
8958         fi
8959         rm -rf libconftest.dylib*
8960         rm -f conftest.*
8961       fi
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8964 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8966 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8967 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   lt_cv_ld_exported_symbols_list=no
8971       save_LDFLAGS=$LDFLAGS
8972       echo "_main" > conftest.sym
8973       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8974       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h.  */
8976
8977 int
8978 main ()
8979 {
8980
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 if ac_fn_c_try_link "$LINENO"; then :
8986   lt_cv_ld_exported_symbols_list=yes
8987 else
8988   lt_cv_ld_exported_symbols_list=no
8989 fi
8990 rm -f core conftest.err conftest.$ac_objext \
8991     conftest$ac_exeext conftest.$ac_ext
8992         LDFLAGS="$save_LDFLAGS"
8993
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8996 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8998 $as_echo_n "checking for -force_load linker flag... " >&6; }
8999 if ${lt_cv_ld_force_load+:} false; then :
9000   $as_echo_n "(cached) " >&6
9001 else
9002   lt_cv_ld_force_load=no
9003       cat > conftest.c << _LT_EOF
9004 int forced_loaded() { return 2;}
9005 _LT_EOF
9006       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9007       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9008       echo "$AR cru libconftest.a conftest.o" >&5
9009       $AR cru libconftest.a conftest.o 2>&5
9010       echo "$RANLIB libconftest.a" >&5
9011       $RANLIB libconftest.a 2>&5
9012       cat > conftest.c << _LT_EOF
9013 int main() { return 0;}
9014 _LT_EOF
9015       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9016       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9017       _lt_result=$?
9018       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9019         lt_cv_ld_force_load=yes
9020       else
9021         cat conftest.err >&5
9022       fi
9023         rm -f conftest.err libconftest.a conftest conftest.c
9024         rm -rf conftest.dSYM
9025
9026 fi
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9028 $as_echo "$lt_cv_ld_force_load" >&6; }
9029     case $host_os in
9030     rhapsody* | darwin1.[012])
9031       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9032     darwin1.*)
9033       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9034     darwin*) # darwin 5.x on
9035       # if running on 10.5 or later, the deployment target defaults
9036       # to the OS version, if on x86, and 10.4, the deployment
9037       # target defaults to 10.4. Don't you love it?
9038       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9039         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9040           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9041         10.[012]*)
9042           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9043         10.*)
9044           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9045       esac
9046     ;;
9047   esac
9048     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9049       _lt_dar_single_mod='$single_module'
9050     fi
9051     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9052       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9053     else
9054       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9055     fi
9056     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9057       _lt_dsymutil='~$DSYMUTIL $lib || :'
9058     else
9059       _lt_dsymutil=
9060     fi
9061     ;;
9062   esac
9063
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9065 $as_echo_n "checking for ANSI C header files... " >&6; }
9066 if ${ac_cv_header_stdc+:} false; then :
9067   $as_echo_n "(cached) " >&6
9068 else
9069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h.  */
9071 #include <stdlib.h>
9072 #include <stdarg.h>
9073 #include <string.h>
9074 #include <float.h>
9075
9076 int
9077 main ()
9078 {
9079
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 if ac_fn_c_try_compile "$LINENO"; then :
9085   ac_cv_header_stdc=yes
9086 else
9087   ac_cv_header_stdc=no
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090
9091 if test $ac_cv_header_stdc = yes; then
9092   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h.  */
9095 #include <string.h>
9096
9097 _ACEOF
9098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9099   $EGREP "memchr" >/dev/null 2>&1; then :
9100
9101 else
9102   ac_cv_header_stdc=no
9103 fi
9104 rm -f conftest*
9105
9106 fi
9107
9108 if test $ac_cv_header_stdc = yes; then
9109   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h.  */
9112 #include <stdlib.h>
9113
9114 _ACEOF
9115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9116   $EGREP "free" >/dev/null 2>&1; then :
9117
9118 else
9119   ac_cv_header_stdc=no
9120 fi
9121 rm -f conftest*
9122
9123 fi
9124
9125 if test $ac_cv_header_stdc = yes; then
9126   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9127   if test "$cross_compiling" = yes; then :
9128   :
9129 else
9130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h.  */
9132 #include <ctype.h>
9133 #include <stdlib.h>
9134 #if ((' ' & 0x0FF) == 0x020)
9135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9137 #else
9138 # define ISLOWER(c) \
9139                    (('a' <= (c) && (c) <= 'i') \
9140                      || ('j' <= (c) && (c) <= 'r') \
9141                      || ('s' <= (c) && (c) <= 'z'))
9142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9143 #endif
9144
9145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9146 int
9147 main ()
9148 {
9149   int i;
9150   for (i = 0; i < 256; i++)
9151     if (XOR (islower (i), ISLOWER (i))
9152         || toupper (i) != TOUPPER (i))
9153       return 2;
9154   return 0;
9155 }
9156 _ACEOF
9157 if ac_fn_c_try_run "$LINENO"; then :
9158
9159 else
9160   ac_cv_header_stdc=no
9161 fi
9162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9163   conftest.$ac_objext conftest.beam conftest.$ac_ext
9164 fi
9165
9166 fi
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9169 $as_echo "$ac_cv_header_stdc" >&6; }
9170 if test $ac_cv_header_stdc = yes; then
9171
9172 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9173
9174 fi
9175
9176 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9177 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9178                   inttypes.h stdint.h unistd.h
9179 do :
9180   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9181 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9182 "
9183 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9184   cat >>confdefs.h <<_ACEOF
9185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9186 _ACEOF
9187
9188 fi
9189
9190 done
9191
9192
9193 for ac_header in dlfcn.h
9194 do :
9195   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9196 "
9197 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9198   cat >>confdefs.h <<_ACEOF
9199 #define HAVE_DLFCN_H 1
9200 _ACEOF
9201
9202 fi
9203
9204 done
9205
9206
9207
9208
9209 func_stripname_cnf ()
9210 {
9211   case ${2} in
9212   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9213   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9214   esac
9215 } # func_stripname_cnf
9216
9217
9218
9219
9220
9221 # Set options
9222 # Check whether --enable-shared was given.
9223 if test "${enable_shared+set}" = set; then :
9224   enableval=$enable_shared; p=${PACKAGE-default}
9225     case $enableval in
9226     yes) enable_shared=yes ;;
9227     no) enable_shared=no ;;
9228     *)
9229       enable_shared=no
9230       # Look at the argument we got.  We use all the common list separators.
9231       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9232       for pkg in $enableval; do
9233         IFS="$lt_save_ifs"
9234         if test "X$pkg" = "X$p"; then
9235           enable_shared=yes
9236         fi
9237       done
9238       IFS="$lt_save_ifs"
9239       ;;
9240     esac
9241 else
9242   enable_shared=yes
9243 fi
9244
9245
9246
9247
9248
9249
9250
9251 # Check whether --enable-static was given.
9252 if test "${enable_static+set}" = set; then :
9253   enableval=$enable_static; p=${PACKAGE-default}
9254     case $enableval in
9255     yes) enable_static=yes ;;
9256     no) enable_static=no ;;
9257     *)
9258      enable_static=no
9259       # Look at the argument we got.  We use all the common list separators.
9260       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9261       for pkg in $enableval; do
9262         IFS="$lt_save_ifs"
9263         if test "X$pkg" = "X$p"; then
9264           enable_static=yes
9265         fi
9266       done
9267       IFS="$lt_save_ifs"
9268       ;;
9269     esac
9270 else
9271   enable_static=no
9272 fi
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283         enable_dlopen=no
9284
9285
9286   enable_win32_dll=no
9287
9288
9289
9290
9291
9292 # Check whether --with-pic was given.
9293 if test "${with_pic+set}" = set; then :
9294   withval=$with_pic; pic_mode="$withval"
9295 else
9296   pic_mode=default
9297 fi
9298
9299
9300 test -z "$pic_mode" && pic_mode=default
9301
9302
9303
9304
9305
9306
9307
9308   # Check whether --enable-fast-install was given.
9309 if test "${enable_fast_install+set}" = set; then :
9310   enableval=$enable_fast_install; p=${PACKAGE-default}
9311     case $enableval in
9312     yes) enable_fast_install=yes ;;
9313     no) enable_fast_install=no ;;
9314     *)
9315       enable_fast_install=no
9316       # Look at the argument we got.  We use all the common list separators.
9317       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9318       for pkg in $enableval; do
9319         IFS="$lt_save_ifs"
9320         if test "X$pkg" = "X$p"; then
9321           enable_fast_install=yes
9322         fi
9323       done
9324       IFS="$lt_save_ifs"
9325       ;;
9326     esac
9327 else
9328   enable_fast_install=yes
9329 fi
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341 # This can be used to rebuild libtool when needed
9342 LIBTOOL_DEPS="$ltmain"
9343
9344 # Always use our own libtool.
9345 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372 test -z "$LN_S" && LN_S="ln -s"
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387 if test -n "${ZSH_VERSION+set}" ; then
9388    setopt NO_GLOB_SUBST
9389 fi
9390
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9392 $as_echo_n "checking for objdir... " >&6; }
9393 if ${lt_cv_objdir+:} false; then :
9394   $as_echo_n "(cached) " >&6
9395 else
9396   rm -f .libs 2>/dev/null
9397 mkdir .libs 2>/dev/null
9398 if test -d .libs; then
9399   lt_cv_objdir=.libs
9400 else
9401   # MS-DOS does not allow filenames that begin with a dot.
9402   lt_cv_objdir=_libs
9403 fi
9404 rmdir .libs 2>/dev/null
9405 fi
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9407 $as_echo "$lt_cv_objdir" >&6; }
9408 objdir=$lt_cv_objdir
9409
9410
9411
9412
9413
9414 cat >>confdefs.h <<_ACEOF
9415 #define LT_OBJDIR "$lt_cv_objdir/"
9416 _ACEOF
9417
9418
9419
9420
9421 case $host_os in
9422 aix3*)
9423   # AIX sometimes has problems with the GCC collect2 program.  For some
9424   # reason, if we set the COLLECT_NAMES environment variable, the problems
9425   # vanish in a puff of smoke.
9426   if test "X${COLLECT_NAMES+set}" != Xset; then
9427     COLLECT_NAMES=
9428     export COLLECT_NAMES
9429   fi
9430   ;;
9431 esac
9432
9433 # Global variables:
9434 ofile=libtool
9435 can_build_shared=yes
9436
9437 # All known linkers require a `.a' archive for static linking (except MSVC,
9438 # which needs '.lib').
9439 libext=a
9440
9441 with_gnu_ld="$lt_cv_prog_gnu_ld"
9442
9443 old_CC="$CC"
9444 old_CFLAGS="$CFLAGS"
9445
9446 # Set sane defaults for various variables
9447 test -z "$CC" && CC=cc
9448 test -z "$LTCC" && LTCC=$CC
9449 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9450 test -z "$LD" && LD=ld
9451 test -z "$ac_objext" && ac_objext=o
9452
9453 for cc_temp in $compiler""; do
9454   case $cc_temp in
9455     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9456     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9457     \-*) ;;
9458     *) break;;
9459   esac
9460 done
9461 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9462
9463
9464 # Only perform the check for file, if the check method requires it
9465 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9466 case $deplibs_check_method in
9467 file_magic*)
9468   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9470 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9471 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474   case $MAGIC_CMD in
9475 [\\/*] |  ?:[\\/]*)
9476   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9477   ;;
9478 *)
9479   lt_save_MAGIC_CMD="$MAGIC_CMD"
9480   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9481   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9482   for ac_dir in $ac_dummy; do
9483     IFS="$lt_save_ifs"
9484     test -z "$ac_dir" && ac_dir=.
9485     if test -f $ac_dir/${ac_tool_prefix}file; then
9486       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9487       if test -n "$file_magic_test_file"; then
9488         case $deplibs_check_method in
9489         "file_magic "*)
9490           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9491           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9492           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9493             $EGREP "$file_magic_regex" > /dev/null; then
9494             :
9495           else
9496             cat <<_LT_EOF 1>&2
9497
9498 *** Warning: the command libtool uses to detect shared libraries,
9499 *** $file_magic_cmd, produces output that libtool cannot recognize.
9500 *** The result is that libtool may fail to recognize shared libraries
9501 *** as such.  This will affect the creation of libtool libraries that
9502 *** depend on shared libraries, but programs linked with such libtool
9503 *** libraries will work regardless of this problem.  Nevertheless, you
9504 *** may want to report the problem to your system manager and/or to
9505 *** bug-libtool@gnu.org
9506
9507 _LT_EOF
9508           fi ;;
9509         esac
9510       fi
9511       break
9512     fi
9513   done
9514   IFS="$lt_save_ifs"
9515   MAGIC_CMD="$lt_save_MAGIC_CMD"
9516   ;;
9517 esac
9518 fi
9519
9520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9521 if test -n "$MAGIC_CMD"; then
9522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9523 $as_echo "$MAGIC_CMD" >&6; }
9524 else
9525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526 $as_echo "no" >&6; }
9527 fi
9528
9529
9530
9531
9532
9533 if test -z "$lt_cv_path_MAGIC_CMD"; then
9534   if test -n "$ac_tool_prefix"; then
9535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9536 $as_echo_n "checking for file... " >&6; }
9537 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9538   $as_echo_n "(cached) " >&6
9539 else
9540   case $MAGIC_CMD in
9541 [\\/*] |  ?:[\\/]*)
9542   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9543   ;;
9544 *)
9545   lt_save_MAGIC_CMD="$MAGIC_CMD"
9546   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9547   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9548   for ac_dir in $ac_dummy; do
9549     IFS="$lt_save_ifs"
9550     test -z "$ac_dir" && ac_dir=.
9551     if test -f $ac_dir/file; then
9552       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9553       if test -n "$file_magic_test_file"; then
9554         case $deplibs_check_method in
9555         "file_magic "*)
9556           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9557           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9558           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9559             $EGREP "$file_magic_regex" > /dev/null; then
9560             :
9561           else
9562             cat <<_LT_EOF 1>&2
9563
9564 *** Warning: the command libtool uses to detect shared libraries,
9565 *** $file_magic_cmd, produces output that libtool cannot recognize.
9566 *** The result is that libtool may fail to recognize shared libraries
9567 *** as such.  This will affect the creation of libtool libraries that
9568 *** depend on shared libraries, but programs linked with such libtool
9569 *** libraries will work regardless of this problem.  Nevertheless, you
9570 *** may want to report the problem to your system manager and/or to
9571 *** bug-libtool@gnu.org
9572
9573 _LT_EOF
9574           fi ;;
9575         esac
9576       fi
9577       break
9578     fi
9579   done
9580   IFS="$lt_save_ifs"
9581   MAGIC_CMD="$lt_save_MAGIC_CMD"
9582   ;;
9583 esac
9584 fi
9585
9586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9587 if test -n "$MAGIC_CMD"; then
9588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9589 $as_echo "$MAGIC_CMD" >&6; }
9590 else
9591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9593 fi
9594
9595
9596   else
9597     MAGIC_CMD=:
9598   fi
9599 fi
9600
9601   fi
9602   ;;
9603 esac
9604
9605 # Use C for the default configuration in the libtool script
9606
9607 lt_save_CC="$CC"
9608 ac_ext=c
9609 ac_cpp='$CPP $CPPFLAGS'
9610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9613
9614
9615 # Source file extension for C test sources.
9616 ac_ext=c
9617
9618 # Object file extension for compiled C test sources.
9619 objext=o
9620 objext=$objext
9621
9622 # Code to be used in simple compile tests
9623 lt_simple_compile_test_code="int some_variable = 0;"
9624
9625 # Code to be used in simple link tests
9626 lt_simple_link_test_code='int main(){return(0);}'
9627
9628
9629
9630
9631
9632
9633
9634 # If no C compiler was specified, use CC.
9635 LTCC=${LTCC-"$CC"}
9636
9637 # If no C compiler flags were specified, use CFLAGS.
9638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9639
9640 # Allow CC to be a program name with arguments.
9641 compiler=$CC
9642
9643 # Save the default compiler, since it gets overwritten when the other
9644 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9645 compiler_DEFAULT=$CC
9646
9647 # save warnings/boilerplate of simple test code
9648 ac_outfile=conftest.$ac_objext
9649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9651 _lt_compiler_boilerplate=`cat conftest.err`
9652 $RM conftest*
9653
9654 ac_outfile=conftest.$ac_objext
9655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9657 _lt_linker_boilerplate=`cat conftest.err`
9658 $RM -r conftest*
9659
9660
9661 ## CAVEAT EMPTOR:
9662 ## There is no encapsulation within the following macros, do not change
9663 ## the running order or otherwise move them around unless you know exactly
9664 ## what you are doing...
9665 if test -n "$compiler"; then
9666
9667 lt_prog_compiler_no_builtin_flag=
9668
9669 if test "$GCC" = yes; then
9670   case $cc_basename in
9671   nvcc*)
9672     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9673   *)
9674     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9675   esac
9676
9677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9678 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9679 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9680   $as_echo_n "(cached) " >&6
9681 else
9682   lt_cv_prog_compiler_rtti_exceptions=no
9683    ac_outfile=conftest.$ac_objext
9684    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9685    lt_compiler_flag="-fno-rtti -fno-exceptions"
9686    # Insert the option either (1) after the last *FLAGS variable, or
9687    # (2) before a word containing "conftest.", or (3) at the end.
9688    # Note that $ac_compile itself does not contain backslashes and begins
9689    # with a dollar sign (not a hyphen), so the echo should work correctly.
9690    # The option is referenced via a variable to avoid confusing sed.
9691    lt_compile=`echo "$ac_compile" | $SED \
9692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9694    -e 's:$: $lt_compiler_flag:'`
9695    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9696    (eval "$lt_compile" 2>conftest.err)
9697    ac_status=$?
9698    cat conftest.err >&5
9699    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700    if (exit $ac_status) && test -s "$ac_outfile"; then
9701      # The compiler can only warn and ignore the option if not recognized
9702      # So say no if there are warnings other than the usual output.
9703      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9704      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9705      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9706        lt_cv_prog_compiler_rtti_exceptions=yes
9707      fi
9708    fi
9709    $RM conftest*
9710
9711 fi
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9713 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9714
9715 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9716     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9717 else
9718     :
9719 fi
9720
9721 fi
9722
9723
9724
9725
9726
9727
9728   lt_prog_compiler_wl=
9729 lt_prog_compiler_pic=
9730 lt_prog_compiler_static=
9731
9732
9733   if test "$GCC" = yes; then
9734     lt_prog_compiler_wl='-Wl,'
9735     lt_prog_compiler_static='-static'
9736
9737     case $host_os in
9738       aix*)
9739       # All AIX code is PIC.
9740       if test "$host_cpu" = ia64; then
9741         # AIX 5 now supports IA64 processor
9742         lt_prog_compiler_static='-Bstatic'
9743       fi
9744       ;;
9745
9746     amigaos*)
9747       case $host_cpu in
9748       powerpc)
9749             # see comment about AmigaOS4 .so support
9750             lt_prog_compiler_pic='-fPIC'
9751         ;;
9752       m68k)
9753             # FIXME: we need at least 68020 code to build shared libraries, but
9754             # adding the `-m68020' flag to GCC prevents building anything better,
9755             # like `-m68040'.
9756             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9757         ;;
9758       esac
9759       ;;
9760
9761     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9762       # PIC is the default for these OSes.
9763       ;;
9764
9765     mingw* | cygwin* | pw32* | os2* | cegcc*)
9766       # This hack is so that the source file can tell whether it is being
9767       # built for inclusion in a dll (and should export symbols for example).
9768       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9769       # (--disable-auto-import) libraries
9770       lt_prog_compiler_pic='-DDLL_EXPORT'
9771       ;;
9772
9773     darwin* | rhapsody*)
9774       # PIC is the default on this platform
9775       # Common symbols not allowed in MH_DYLIB files
9776       lt_prog_compiler_pic='-fno-common'
9777       ;;
9778
9779     haiku*)
9780       # PIC is the default for Haiku.
9781       # The "-static" flag exists, but is broken.
9782       lt_prog_compiler_static=
9783       ;;
9784
9785     hpux*)
9786       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9787       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9788       # sets the default TLS model and affects inlining.
9789       case $host_cpu in
9790       hppa*64*)
9791         # +Z the default
9792         ;;
9793       *)
9794         lt_prog_compiler_pic='-fPIC'
9795         ;;
9796       esac
9797       ;;
9798
9799     interix[3-9]*)
9800       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9801       # Instead, we relocate shared libraries at runtime.
9802       ;;
9803
9804     msdosdjgpp*)
9805       # Just because we use GCC doesn't mean we suddenly get shared libraries
9806       # on systems that don't support them.
9807       lt_prog_compiler_can_build_shared=no
9808       enable_shared=no
9809       ;;
9810
9811     *nto* | *qnx*)
9812       # QNX uses GNU C++, but need to define -shared option too, otherwise
9813       # it will coredump.
9814       lt_prog_compiler_pic='-fPIC -shared'
9815       ;;
9816
9817     sysv4*MP*)
9818       if test -d /usr/nec; then
9819         lt_prog_compiler_pic=-Kconform_pic
9820       fi
9821       ;;
9822
9823     *)
9824       lt_prog_compiler_pic='-fPIC'
9825       ;;
9826     esac
9827
9828     case $cc_basename in
9829     nvcc*) # Cuda Compiler Driver 2.2
9830       lt_prog_compiler_wl='-Xlinker '
9831       lt_prog_compiler_pic='-Xcompiler -fPIC'
9832       ;;
9833     esac
9834   else
9835     # PORTME Check for flag to pass linker flags through the system compiler.
9836     case $host_os in
9837     aix*)
9838       lt_prog_compiler_wl='-Wl,'
9839       if test "$host_cpu" = ia64; then
9840         # AIX 5 now supports IA64 processor
9841         lt_prog_compiler_static='-Bstatic'
9842       else
9843         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9844       fi
9845       ;;
9846
9847     mingw* | cygwin* | pw32* | os2* | cegcc*)
9848       # This hack is so that the source file can tell whether it is being
9849       # built for inclusion in a dll (and should export symbols for example).
9850       lt_prog_compiler_pic='-DDLL_EXPORT'
9851       ;;
9852
9853     hpux9* | hpux10* | hpux11*)
9854       lt_prog_compiler_wl='-Wl,'
9855       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9856       # not for PA HP-UX.
9857       case $host_cpu in
9858       hppa*64*|ia64*)
9859         # +Z the default
9860         ;;
9861       *)
9862         lt_prog_compiler_pic='+Z'
9863         ;;
9864       esac
9865       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9866       lt_prog_compiler_static='${wl}-a ${wl}archive'
9867       ;;
9868
9869     irix5* | irix6* | nonstopux*)
9870       lt_prog_compiler_wl='-Wl,'
9871       # PIC (with -KPIC) is the default.
9872       lt_prog_compiler_static='-non_shared'
9873       ;;
9874
9875     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9876       case $cc_basename in
9877       # old Intel for x86_64 which still supported -KPIC.
9878       ecc*)
9879         lt_prog_compiler_wl='-Wl,'
9880         lt_prog_compiler_pic='-KPIC'
9881         lt_prog_compiler_static='-static'
9882         ;;
9883       # icc used to be incompatible with GCC.
9884       # ICC 10 doesn't accept -KPIC any more.
9885       icc* | ifort*)
9886         lt_prog_compiler_wl='-Wl,'
9887         lt_prog_compiler_pic='-fPIC'
9888         lt_prog_compiler_static='-static'
9889         ;;
9890       # Lahey Fortran 8.1.
9891       lf95*)
9892         lt_prog_compiler_wl='-Wl,'
9893         lt_prog_compiler_pic='--shared'
9894         lt_prog_compiler_static='--static'
9895         ;;
9896       nagfor*)
9897         # NAG Fortran compiler
9898         lt_prog_compiler_wl='-Wl,-Wl,,'
9899         lt_prog_compiler_pic='-PIC'
9900         lt_prog_compiler_static='-Bstatic'
9901         ;;
9902       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9903         # Portland Group compilers (*not* the Pentium gcc compiler,
9904         # which looks to be a dead project)
9905         lt_prog_compiler_wl='-Wl,'
9906         lt_prog_compiler_pic='-fpic'
9907         lt_prog_compiler_static='-Bstatic'
9908         ;;
9909       ccc*)
9910         lt_prog_compiler_wl='-Wl,'
9911         # All Alpha code is PIC.
9912         lt_prog_compiler_static='-non_shared'
9913         ;;
9914       xl* | bgxl* | bgf* | mpixl*)
9915         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9916         lt_prog_compiler_wl='-Wl,'
9917         lt_prog_compiler_pic='-qpic'
9918         lt_prog_compiler_static='-qstaticlink'
9919         ;;
9920       *)
9921         case `$CC -V 2>&1 | sed 5q` in
9922         *Sun\ F* | *Sun*Fortran*)
9923           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9924           lt_prog_compiler_pic='-KPIC'
9925           lt_prog_compiler_static='-Bstatic'
9926           lt_prog_compiler_wl=''
9927           ;;
9928         *Sun\ C*)
9929           # Sun C 5.9
9930           lt_prog_compiler_pic='-KPIC'
9931           lt_prog_compiler_static='-Bstatic'
9932           lt_prog_compiler_wl='-Wl,'
9933           ;;
9934         esac
9935         ;;
9936       esac
9937       ;;
9938
9939     newsos6)
9940       lt_prog_compiler_pic='-KPIC'
9941       lt_prog_compiler_static='-Bstatic'
9942       ;;
9943
9944     *nto* | *qnx*)
9945       # QNX uses GNU C++, but need to define -shared option too, otherwise
9946       # it will coredump.
9947       lt_prog_compiler_pic='-fPIC -shared'
9948       ;;
9949
9950     osf3* | osf4* | osf5*)
9951       lt_prog_compiler_wl='-Wl,'
9952       # All OSF/1 code is PIC.
9953       lt_prog_compiler_static='-non_shared'
9954       ;;
9955
9956     rdos*)
9957       lt_prog_compiler_static='-non_shared'
9958       ;;
9959
9960     solaris*)
9961       lt_prog_compiler_pic='-KPIC'
9962       lt_prog_compiler_static='-Bstatic'
9963       case $cc_basename in
9964       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9965         lt_prog_compiler_wl='-Qoption ld ';;
9966       *)
9967         lt_prog_compiler_wl='-Wl,';;
9968       esac
9969       ;;
9970
9971     sunos4*)
9972       lt_prog_compiler_wl='-Qoption ld '
9973       lt_prog_compiler_pic='-PIC'
9974       lt_prog_compiler_static='-Bstatic'
9975       ;;
9976
9977     sysv4 | sysv4.2uw2* | sysv4.3*)
9978       lt_prog_compiler_wl='-Wl,'
9979       lt_prog_compiler_pic='-KPIC'
9980       lt_prog_compiler_static='-Bstatic'
9981       ;;
9982
9983     sysv4*MP*)
9984       if test -d /usr/nec ;then
9985         lt_prog_compiler_pic='-Kconform_pic'
9986         lt_prog_compiler_static='-Bstatic'
9987       fi
9988       ;;
9989
9990     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9991       lt_prog_compiler_wl='-Wl,'
9992       lt_prog_compiler_pic='-KPIC'
9993       lt_prog_compiler_static='-Bstatic'
9994       ;;
9995
9996     unicos*)
9997       lt_prog_compiler_wl='-Wl,'
9998       lt_prog_compiler_can_build_shared=no
9999       ;;
10000
10001     uts4*)
10002       lt_prog_compiler_pic='-pic'
10003       lt_prog_compiler_static='-Bstatic'
10004       ;;
10005
10006     *)
10007       lt_prog_compiler_can_build_shared=no
10008       ;;
10009     esac
10010   fi
10011
10012 case $host_os in
10013   # For platforms which do not support PIC, -DPIC is meaningless:
10014   *djgpp*)
10015     lt_prog_compiler_pic=
10016     ;;
10017   *)
10018     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10019     ;;
10020 esac
10021
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10023 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10024 if ${lt_cv_prog_compiler_pic+:} false; then :
10025   $as_echo_n "(cached) " >&6
10026 else
10027   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10028 fi
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10030 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10031 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10032
10033 #
10034 # Check to make sure the PIC flag actually works.
10035 #
10036 if test -n "$lt_prog_compiler_pic"; then
10037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10038 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10039 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10040   $as_echo_n "(cached) " >&6
10041 else
10042   lt_cv_prog_compiler_pic_works=no
10043    ac_outfile=conftest.$ac_objext
10044    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10045    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10046    # Insert the option either (1) after the last *FLAGS variable, or
10047    # (2) before a word containing "conftest.", or (3) at the end.
10048    # Note that $ac_compile itself does not contain backslashes and begins
10049    # with a dollar sign (not a hyphen), so the echo should work correctly.
10050    # The option is referenced via a variable to avoid confusing sed.
10051    lt_compile=`echo "$ac_compile" | $SED \
10052    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10053    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10054    -e 's:$: $lt_compiler_flag:'`
10055    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10056    (eval "$lt_compile" 2>conftest.err)
10057    ac_status=$?
10058    cat conftest.err >&5
10059    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060    if (exit $ac_status) && test -s "$ac_outfile"; then
10061      # The compiler can only warn and ignore the option if not recognized
10062      # So say no if there are warnings other than the usual output.
10063      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10064      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10065      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10066        lt_cv_prog_compiler_pic_works=yes
10067      fi
10068    fi
10069    $RM conftest*
10070
10071 fi
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10073 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10074
10075 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10076     case $lt_prog_compiler_pic in
10077      "" | " "*) ;;
10078      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10079      esac
10080 else
10081     lt_prog_compiler_pic=
10082      lt_prog_compiler_can_build_shared=no
10083 fi
10084
10085 fi
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097 #
10098 # Check to make sure the static flag actually works.
10099 #
10100 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10102 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10103 if ${lt_cv_prog_compiler_static_works+:} false; then :
10104   $as_echo_n "(cached) " >&6
10105 else
10106   lt_cv_prog_compiler_static_works=no
10107    save_LDFLAGS="$LDFLAGS"
10108    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10109    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10110    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10111      # The linker can only warn and ignore the option if not recognized
10112      # So say no if there are warnings
10113      if test -s conftest.err; then
10114        # Append any errors to the config.log.
10115        cat conftest.err 1>&5
10116        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10117        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10118        if diff conftest.exp conftest.er2 >/dev/null; then
10119          lt_cv_prog_compiler_static_works=yes
10120        fi
10121      else
10122        lt_cv_prog_compiler_static_works=yes
10123      fi
10124    fi
10125    $RM -r conftest*
10126    LDFLAGS="$save_LDFLAGS"
10127
10128 fi
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10130 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10131
10132 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10133     :
10134 else
10135     lt_prog_compiler_static=
10136 fi
10137
10138
10139
10140
10141
10142
10143
10144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10145 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10146 if ${lt_cv_prog_compiler_c_o+:} false; then :
10147   $as_echo_n "(cached) " >&6
10148 else
10149   lt_cv_prog_compiler_c_o=no
10150    $RM -r conftest 2>/dev/null
10151    mkdir conftest
10152    cd conftest
10153    mkdir out
10154    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10155
10156    lt_compiler_flag="-o out/conftest2.$ac_objext"
10157    # Insert the option either (1) after the last *FLAGS variable, or
10158    # (2) before a word containing "conftest.", or (3) at the end.
10159    # Note that $ac_compile itself does not contain backslashes and begins
10160    # with a dollar sign (not a hyphen), so the echo should work correctly.
10161    lt_compile=`echo "$ac_compile" | $SED \
10162    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10163    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10164    -e 's:$: $lt_compiler_flag:'`
10165    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10166    (eval "$lt_compile" 2>out/conftest.err)
10167    ac_status=$?
10168    cat out/conftest.err >&5
10169    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10171    then
10172      # The compiler can only warn and ignore the option if not recognized
10173      # So say no if there are warnings
10174      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10175      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10176      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10177        lt_cv_prog_compiler_c_o=yes
10178      fi
10179    fi
10180    chmod u+w . 2>&5
10181    $RM conftest*
10182    # SGI C++ compiler will create directory out/ii_files/ for
10183    # template instantiation
10184    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10185    $RM out/* && rmdir out
10186    cd ..
10187    $RM -r conftest
10188    $RM conftest*
10189
10190 fi
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10192 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10193
10194
10195
10196
10197
10198
10199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10200 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10201 if ${lt_cv_prog_compiler_c_o+:} false; then :
10202   $as_echo_n "(cached) " >&6
10203 else
10204   lt_cv_prog_compiler_c_o=no
10205    $RM -r conftest 2>/dev/null
10206    mkdir conftest
10207    cd conftest
10208    mkdir out
10209    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10210
10211    lt_compiler_flag="-o out/conftest2.$ac_objext"
10212    # Insert the option either (1) after the last *FLAGS variable, or
10213    # (2) before a word containing "conftest.", or (3) at the end.
10214    # Note that $ac_compile itself does not contain backslashes and begins
10215    # with a dollar sign (not a hyphen), so the echo should work correctly.
10216    lt_compile=`echo "$ac_compile" | $SED \
10217    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10218    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10219    -e 's:$: $lt_compiler_flag:'`
10220    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10221    (eval "$lt_compile" 2>out/conftest.err)
10222    ac_status=$?
10223    cat out/conftest.err >&5
10224    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10226    then
10227      # The compiler can only warn and ignore the option if not recognized
10228      # So say no if there are warnings
10229      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10230      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10231      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10232        lt_cv_prog_compiler_c_o=yes
10233      fi
10234    fi
10235    chmod u+w . 2>&5
10236    $RM conftest*
10237    # SGI C++ compiler will create directory out/ii_files/ for
10238    # template instantiation
10239    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10240    $RM out/* && rmdir out
10241    cd ..
10242    $RM -r conftest
10243    $RM conftest*
10244
10245 fi
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10247 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10248
10249
10250
10251
10252 hard_links="nottested"
10253 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10254   # do not overwrite the value of need_locks provided by the user
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10256 $as_echo_n "checking if we can lock with hard links... " >&6; }
10257   hard_links=yes
10258   $RM conftest*
10259   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10260   touch conftest.a
10261   ln conftest.a conftest.b 2>&5 || hard_links=no
10262   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10264 $as_echo "$hard_links" >&6; }
10265   if test "$hard_links" = no; then
10266     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10267 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10268     need_locks=warn
10269   fi
10270 else
10271   need_locks=no
10272 fi
10273
10274
10275
10276
10277
10278
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10280 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10281
10282   runpath_var=
10283   allow_undefined_flag=
10284   always_export_symbols=no
10285   archive_cmds=
10286   archive_expsym_cmds=
10287   compiler_needs_object=no
10288   enable_shared_with_static_runtimes=no
10289   export_dynamic_flag_spec=
10290   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10291   hardcode_automatic=no
10292   hardcode_direct=no
10293   hardcode_direct_absolute=no
10294   hardcode_libdir_flag_spec=
10295   hardcode_libdir_flag_spec_ld=
10296   hardcode_libdir_separator=
10297   hardcode_minus_L=no
10298   hardcode_shlibpath_var=unsupported
10299   inherit_rpath=no
10300   link_all_deplibs=unknown
10301   module_cmds=
10302   module_expsym_cmds=
10303   old_archive_from_new_cmds=
10304   old_archive_from_expsyms_cmds=
10305   thread_safe_flag_spec=
10306   whole_archive_flag_spec=
10307   # include_expsyms should be a list of space-separated symbols to be *always*
10308   # included in the symbol list
10309   include_expsyms=
10310   # exclude_expsyms can be an extended regexp of symbols to exclude
10311   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10312   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10313   # as well as any symbol that contains `d'.
10314   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10315   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10316   # platforms (ab)use it in PIC code, but their linkers get confused if
10317   # the symbol is explicitly referenced.  Since portable code cannot
10318   # rely on this symbol name, it's probably fine to never include it in
10319   # preloaded symbol tables.
10320   # Exclude shared library initialization/finalization symbols.
10321   extract_expsyms_cmds=
10322
10323   case $host_os in
10324   cygwin* | mingw* | pw32* | cegcc*)
10325     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10326     # When not using gcc, we currently assume that we are using
10327     # Microsoft Visual C++.
10328     if test "$GCC" != yes; then
10329       with_gnu_ld=no
10330     fi
10331     ;;
10332   interix*)
10333     # we just hope/assume this is gcc and not c89 (= MSVC++)
10334     with_gnu_ld=yes
10335     ;;
10336   openbsd*)
10337     with_gnu_ld=no
10338     ;;
10339   esac
10340
10341   ld_shlibs=yes
10342
10343   # On some targets, GNU ld is compatible enough with the native linker
10344   # that we're better off using the native interface for both.
10345   lt_use_gnu_ld_interface=no
10346   if test "$with_gnu_ld" = yes; then
10347     case $host_os in
10348       aix*)
10349         # The AIX port of GNU ld has always aspired to compatibility
10350         # with the native linker.  However, as the warning in the GNU ld
10351         # block says, versions before 2.19.5* couldn't really create working
10352         # shared libraries, regardless of the interface used.
10353         case `$LD -v 2>&1` in
10354           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10355           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10356           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10357           *)
10358             lt_use_gnu_ld_interface=yes
10359             ;;
10360         esac
10361         ;;
10362       *)
10363         lt_use_gnu_ld_interface=yes
10364         ;;
10365     esac
10366   fi
10367
10368   if test "$lt_use_gnu_ld_interface" = yes; then
10369     # If archive_cmds runs LD, not CC, wlarc should be empty
10370     wlarc='${wl}'
10371
10372     # Set some defaults for GNU ld with shared library support. These
10373     # are reset later if shared libraries are not supported. Putting them
10374     # here allows them to be overridden if necessary.
10375     runpath_var=LD_RUN_PATH
10376     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10377     export_dynamic_flag_spec='${wl}--export-dynamic'
10378     # ancient GNU ld didn't support --whole-archive et. al.
10379     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10380       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10381     else
10382       whole_archive_flag_spec=
10383     fi
10384     supports_anon_versioning=no
10385     case `$LD -v 2>&1` in
10386       *GNU\ gold*) supports_anon_versioning=yes ;;
10387       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10388       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10389       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10390       *\ 2.11.*) ;; # other 2.11 versions
10391       *) supports_anon_versioning=yes ;;
10392     esac
10393
10394     # See if GNU ld supports shared libraries.
10395     case $host_os in
10396     aix[3-9]*)
10397       # On AIX/PPC, the GNU linker is very broken
10398       if test "$host_cpu" != ia64; then
10399         ld_shlibs=no
10400         cat <<_LT_EOF 1>&2
10401
10402 *** Warning: the GNU linker, at least up to release 2.19, is reported
10403 *** to be unable to reliably create shared libraries on AIX.
10404 *** Therefore, libtool is disabling shared libraries support.  If you
10405 *** really care for shared libraries, you may want to install binutils
10406 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10407 *** You will then need to restart the configuration process.
10408
10409 _LT_EOF
10410       fi
10411       ;;
10412
10413     amigaos*)
10414       case $host_cpu in
10415       powerpc)
10416             # see comment about AmigaOS4 .so support
10417             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10418             archive_expsym_cmds=''
10419         ;;
10420       m68k)
10421             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)'
10422             hardcode_libdir_flag_spec='-L$libdir'
10423             hardcode_minus_L=yes
10424         ;;
10425       esac
10426       ;;
10427
10428     beos*)
10429       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10430         allow_undefined_flag=unsupported
10431         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10432         # support --undefined.  This deserves some investigation.  FIXME
10433         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10434       else
10435         ld_shlibs=no
10436       fi
10437       ;;
10438
10439     cygwin* | mingw* | pw32* | cegcc*)
10440       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10441       # as there is no search path for DLLs.
10442       hardcode_libdir_flag_spec='-L$libdir'
10443       export_dynamic_flag_spec='${wl}--export-all-symbols'
10444       allow_undefined_flag=unsupported
10445       always_export_symbols=no
10446       enable_shared_with_static_runtimes=yes
10447       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'
10448       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10449
10450       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10451         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10452         # If the export-symbols file already is a .def file (1st line
10453         # is EXPORTS), use it as is; otherwise, prepend...
10454         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10455           cp $export_symbols $output_objdir/$soname.def;
10456         else
10457           echo EXPORTS > $output_objdir/$soname.def;
10458           cat $export_symbols >> $output_objdir/$soname.def;
10459         fi~
10460         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10461       else
10462         ld_shlibs=no
10463       fi
10464       ;;
10465
10466     haiku*)
10467       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10468       link_all_deplibs=yes
10469       ;;
10470
10471     interix[3-9]*)
10472       hardcode_direct=no
10473       hardcode_shlibpath_var=no
10474       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10475       export_dynamic_flag_spec='${wl}-E'
10476       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10477       # Instead, shared libraries are loaded at an image base (0x10000000 by
10478       # default) and relocated if they conflict, which is a slow very memory
10479       # consuming and fragmenting process.  To avoid this, we pick a random,
10480       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10481       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10482       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10483       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'
10484       ;;
10485
10486     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10487       tmp_diet=no
10488       if test "$host_os" = linux-dietlibc; then
10489         case $cc_basename in
10490           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10491         esac
10492       fi
10493       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10494          && test "$tmp_diet" = no
10495       then
10496         tmp_addflag=' $pic_flag'
10497         tmp_sharedflag='-shared'
10498         case $cc_basename,$host_cpu in
10499         pgcc*)                          # Portland Group C compiler
10500           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'
10501           tmp_addflag=' $pic_flag'
10502           ;;
10503         pgf77* | pgf90* | pgf95* | pgfortran*)
10504                                         # Portland Group f77 and f90 compilers
10505           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'
10506           tmp_addflag=' $pic_flag -Mnomain' ;;
10507         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10508           tmp_addflag=' -i_dynamic' ;;
10509         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10510           tmp_addflag=' -i_dynamic -nofor_main' ;;
10511         ifc* | ifort*)                  # Intel Fortran compiler
10512           tmp_addflag=' -nofor_main' ;;
10513         lf95*)                          # Lahey Fortran 8.1
10514           whole_archive_flag_spec=
10515           tmp_sharedflag='--shared' ;;
10516         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10517           tmp_sharedflag='-qmkshrobj'
10518           tmp_addflag= ;;
10519         nvcc*)  # Cuda Compiler Driver 2.2
10520           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'
10521           compiler_needs_object=yes
10522           ;;
10523         esac
10524         case `$CC -V 2>&1 | sed 5q` in
10525         *Sun\ C*)                       # Sun C 5.9
10526           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'
10527           compiler_needs_object=yes
10528           tmp_sharedflag='-G' ;;
10529         *Sun\ F*)                       # Sun Fortran 8.3
10530           tmp_sharedflag='-G' ;;
10531         esac
10532         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10533
10534         if test "x$supports_anon_versioning" = xyes; then
10535           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10536             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10537             echo "local: *; };" >> $output_objdir/$libname.ver~
10538             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10539         fi
10540
10541         case $cc_basename in
10542         xlf* | bgf* | bgxlf* | mpixlf*)
10543           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10544           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10545           hardcode_libdir_flag_spec=
10546           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10547           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10548           if test "x$supports_anon_versioning" = xyes; then
10549             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10550               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10551               echo "local: *; };" >> $output_objdir/$libname.ver~
10552               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10553           fi
10554           ;;
10555         esac
10556       else
10557         ld_shlibs=no
10558       fi
10559       ;;
10560
10561     netbsd*)
10562       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10563         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10564         wlarc=
10565       else
10566         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10567         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10568       fi
10569       ;;
10570
10571     solaris*)
10572       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10573         ld_shlibs=no
10574         cat <<_LT_EOF 1>&2
10575
10576 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10577 *** create shared libraries on Solaris systems.  Therefore, libtool
10578 *** is disabling shared libraries support.  We urge you to upgrade GNU
10579 *** binutils to release 2.9.1 or newer.  Another option is to modify
10580 *** your PATH or compiler configuration so that the native linker is
10581 *** used, and then restart.
10582
10583 _LT_EOF
10584       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10585         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10586         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10587       else
10588         ld_shlibs=no
10589       fi
10590       ;;
10591
10592     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10593       case `$LD -v 2>&1` in
10594         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10595         ld_shlibs=no
10596         cat <<_LT_EOF 1>&2
10597
10598 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10599 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10600 *** is disabling shared libraries support.  We urge you to upgrade GNU
10601 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10602 *** your PATH or compiler configuration so that the native linker is
10603 *** used, and then restart.
10604
10605 _LT_EOF
10606         ;;
10607         *)
10608           # For security reasons, it is highly recommended that you always
10609           # use absolute paths for naming shared libraries, and exclude the
10610           # DT_RUNPATH tag from executables and libraries.  But doing so
10611           # requires that you compile everything twice, which is a pain.
10612           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10613             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10614             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10615             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10616           else
10617             ld_shlibs=no
10618           fi
10619         ;;
10620       esac
10621       ;;
10622
10623     sunos4*)
10624       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10625       wlarc=
10626       hardcode_direct=yes
10627       hardcode_shlibpath_var=no
10628       ;;
10629
10630     *)
10631       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10632         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10633         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10634       else
10635         ld_shlibs=no
10636       fi
10637       ;;
10638     esac
10639
10640     if test "$ld_shlibs" = no; then
10641       runpath_var=
10642       hardcode_libdir_flag_spec=
10643       export_dynamic_flag_spec=
10644       whole_archive_flag_spec=
10645     fi
10646   else
10647     # PORTME fill in a description of your system's linker (not GNU ld)
10648     case $host_os in
10649     aix3*)
10650       allow_undefined_flag=unsupported
10651       always_export_symbols=yes
10652       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'
10653       # Note: this linker hardcodes the directories in LIBPATH if there
10654       # are no directories specified by -L.
10655       hardcode_minus_L=yes
10656       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10657         # Neither direct hardcoding nor static linking is supported with a
10658         # broken collect2.
10659         hardcode_direct=unsupported
10660       fi
10661       ;;
10662
10663     aix[4-9]*)
10664       if test "$host_cpu" = ia64; then
10665         # On IA64, the linker does run time linking by default, so we don't
10666         # have to do anything special.
10667         aix_use_runtimelinking=no
10668         exp_sym_flag='-Bexport'
10669         no_entry_flag=""
10670       else
10671         # If we're using GNU nm, then we don't want the "-C" option.
10672         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10673         # Also, AIX nm treats weak defined symbols like other global
10674         # defined symbols, whereas GNU nm marks them as "W".
10675         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10676           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'
10677         else
10678           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'
10679         fi
10680         aix_use_runtimelinking=no
10681
10682         # Test if we are trying to use run time linking or normal
10683         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10684         # need to do runtime linking.
10685         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10686           for ld_flag in $LDFLAGS; do
10687           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10688             aix_use_runtimelinking=yes
10689             break
10690           fi
10691           done
10692           ;;
10693         esac
10694
10695         exp_sym_flag='-bexport'
10696         no_entry_flag='-bnoentry'
10697       fi
10698
10699       # When large executables or shared objects are built, AIX ld can
10700       # have problems creating the table of contents.  If linking a library
10701       # or program results in "error TOC overflow" add -mminimal-toc to
10702       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10703       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10704
10705       archive_cmds=''
10706       hardcode_direct=yes
10707       hardcode_direct_absolute=yes
10708       hardcode_libdir_separator=':'
10709       link_all_deplibs=yes
10710       file_list_spec='${wl}-f,'
10711
10712       if test "$GCC" = yes; then
10713         case $host_os in aix4.[012]|aix4.[012].*)
10714         # We only want to do this on AIX 4.2 and lower, the check
10715         # below for broken collect2 doesn't work under 4.3+
10716           collect2name=`${CC} -print-prog-name=collect2`
10717           if test -f "$collect2name" &&
10718            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10719           then
10720           # We have reworked collect2
10721           :
10722           else
10723           # We have old collect2
10724           hardcode_direct=unsupported
10725           # It fails to find uninstalled libraries when the uninstalled
10726           # path is not listed in the libpath.  Setting hardcode_minus_L
10727           # to unsupported forces relinking
10728           hardcode_minus_L=yes
10729           hardcode_libdir_flag_spec='-L$libdir'
10730           hardcode_libdir_separator=
10731           fi
10732           ;;
10733         esac
10734         shared_flag='-shared'
10735         if test "$aix_use_runtimelinking" = yes; then
10736           shared_flag="$shared_flag "'${wl}-G'
10737         fi
10738       else
10739         # not using gcc
10740         if test "$host_cpu" = ia64; then
10741         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10742         # chokes on -Wl,-G. The following line is correct:
10743           shared_flag='-G'
10744         else
10745           if test "$aix_use_runtimelinking" = yes; then
10746             shared_flag='${wl}-G'
10747           else
10748             shared_flag='${wl}-bM:SRE'
10749           fi
10750         fi
10751       fi
10752
10753       export_dynamic_flag_spec='${wl}-bexpall'
10754       # It seems that -bexpall does not export symbols beginning with
10755       # underscore (_), so it is better to generate a list of symbols to export.
10756       always_export_symbols=yes
10757       if test "$aix_use_runtimelinking" = yes; then
10758         # Warning - without using the other runtime loading flags (-brtl),
10759         # -berok will link without error, but may produce a broken library.
10760         allow_undefined_flag='-berok'
10761         # Determine the default libpath from the value encoded in an
10762         # empty executable.
10763         if test "${lt_cv_aix_libpath+set}" = set; then
10764   aix_libpath=$lt_cv_aix_libpath
10765 else
10766   if ${lt_cv_aix_libpath_+:} false; then :
10767   $as_echo_n "(cached) " >&6
10768 else
10769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h.  */
10771
10772 int
10773 main ()
10774 {
10775
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 if ac_fn_c_try_link "$LINENO"; then :
10781
10782   lt_aix_libpath_sed='
10783       /Import File Strings/,/^$/ {
10784           /^0/ {
10785               s/^0  *\([^ ]*\) *$/\1/
10786               p
10787           }
10788       }'
10789   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10790   # Check for a 64-bit object if we didn't find anything.
10791   if test -z "$lt_cv_aix_libpath_"; then
10792     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10793   fi
10794 fi
10795 rm -f core conftest.err conftest.$ac_objext \
10796     conftest$ac_exeext conftest.$ac_ext
10797   if test -z "$lt_cv_aix_libpath_"; then
10798     lt_cv_aix_libpath_="/usr/lib:/lib"
10799   fi
10800
10801 fi
10802
10803   aix_libpath=$lt_cv_aix_libpath_
10804 fi
10805
10806         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10807         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"
10808       else
10809         if test "$host_cpu" = ia64; then
10810           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10811           allow_undefined_flag="-z nodefs"
10812           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"
10813         else
10814          # Determine the default libpath from the value encoded in an
10815          # empty executable.
10816          if test "${lt_cv_aix_libpath+set}" = set; then
10817   aix_libpath=$lt_cv_aix_libpath
10818 else
10819   if ${lt_cv_aix_libpath_+:} false; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h.  */
10824
10825 int
10826 main ()
10827 {
10828
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 if ac_fn_c_try_link "$LINENO"; then :
10834
10835   lt_aix_libpath_sed='
10836       /Import File Strings/,/^$/ {
10837           /^0/ {
10838               s/^0  *\([^ ]*\) *$/\1/
10839               p
10840           }
10841       }'
10842   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10843   # Check for a 64-bit object if we didn't find anything.
10844   if test -z "$lt_cv_aix_libpath_"; then
10845     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10846   fi
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext \
10849     conftest$ac_exeext conftest.$ac_ext
10850   if test -z "$lt_cv_aix_libpath_"; then
10851     lt_cv_aix_libpath_="/usr/lib:/lib"
10852   fi
10853
10854 fi
10855
10856   aix_libpath=$lt_cv_aix_libpath_
10857 fi
10858
10859          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10860           # Warning - without using the other run time loading flags,
10861           # -berok will link without error, but may produce a broken library.
10862           no_undefined_flag=' ${wl}-bernotok'
10863           allow_undefined_flag=' ${wl}-berok'
10864           if test "$with_gnu_ld" = yes; then
10865             # We only use this code for GNU lds that support --whole-archive.
10866             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10867           else
10868             # Exported symbols can be pulled into shared objects from archives
10869             whole_archive_flag_spec='$convenience'
10870           fi
10871           archive_cmds_need_lc=yes
10872           # This is similar to how AIX traditionally builds its shared libraries.
10873           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'
10874         fi
10875       fi
10876       ;;
10877
10878     amigaos*)
10879       case $host_cpu in
10880       powerpc)
10881             # see comment about AmigaOS4 .so support
10882             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10883             archive_expsym_cmds=''
10884         ;;
10885       m68k)
10886             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)'
10887             hardcode_libdir_flag_spec='-L$libdir'
10888             hardcode_minus_L=yes
10889         ;;
10890       esac
10891       ;;
10892
10893     bsdi[45]*)
10894       export_dynamic_flag_spec=-rdynamic
10895       ;;
10896
10897     cygwin* | mingw* | pw32* | cegcc*)
10898       # When not using gcc, we currently assume that we are using
10899       # Microsoft Visual C++.
10900       # hardcode_libdir_flag_spec is actually meaningless, as there is
10901       # no search path for DLLs.
10902       case $cc_basename in
10903       cl*)
10904         # Native MSVC
10905         hardcode_libdir_flag_spec=' '
10906         allow_undefined_flag=unsupported
10907         always_export_symbols=yes
10908         file_list_spec='@'
10909         # Tell ltmain to make .lib files, not .a files.
10910         libext=lib
10911         # Tell ltmain to make .dll files, not .so files.
10912         shrext_cmds=".dll"
10913         # FIXME: Setting linknames here is a bad hack.
10914         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10915         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10916             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10917           else
10918             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10919           fi~
10920           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10921           linknames='
10922         # The linker will not automatically build a static lib if we build a DLL.
10923         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10924         enable_shared_with_static_runtimes=yes
10925         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10926         # Don't use ranlib
10927         old_postinstall_cmds='chmod 644 $oldlib'
10928         postlink_cmds='lt_outputfile="@OUTPUT@"~
10929           lt_tool_outputfile="@TOOL_OUTPUT@"~
10930           case $lt_outputfile in
10931             *.exe|*.EXE) ;;
10932             *)
10933               lt_outputfile="$lt_outputfile.exe"
10934               lt_tool_outputfile="$lt_tool_outputfile.exe"
10935               ;;
10936           esac~
10937           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10938             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10939             $RM "$lt_outputfile.manifest";
10940           fi'
10941         ;;
10942       *)
10943         # Assume MSVC wrapper
10944         hardcode_libdir_flag_spec=' '
10945         allow_undefined_flag=unsupported
10946         # Tell ltmain to make .lib files, not .a files.
10947         libext=lib
10948         # Tell ltmain to make .dll files, not .so files.
10949         shrext_cmds=".dll"
10950         # FIXME: Setting linknames here is a bad hack.
10951         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10952         # The linker will automatically build a .lib file if we build a DLL.
10953         old_archive_from_new_cmds='true'
10954         # FIXME: Should let the user specify the lib program.
10955         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10956         enable_shared_with_static_runtimes=yes
10957         ;;
10958       esac
10959       ;;
10960
10961     darwin* | rhapsody*)
10962
10963
10964   archive_cmds_need_lc=no
10965   hardcode_direct=no
10966   hardcode_automatic=yes
10967   hardcode_shlibpath_var=unsupported
10968   if test "$lt_cv_ld_force_load" = "yes"; then
10969     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\"`'
10970   else
10971     whole_archive_flag_spec=''
10972   fi
10973   link_all_deplibs=yes
10974   allow_undefined_flag="$_lt_dar_allow_undefined"
10975   case $cc_basename in
10976      ifort*) _lt_dar_can_shared=yes ;;
10977      *) _lt_dar_can_shared=$GCC ;;
10978   esac
10979   if test "$_lt_dar_can_shared" = "yes"; then
10980     output_verbose_link_cmd=func_echo_all
10981     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10982     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10983     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}"
10984     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}"
10985
10986   else
10987   ld_shlibs=no
10988   fi
10989
10990       ;;
10991
10992     dgux*)
10993       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10994       hardcode_libdir_flag_spec='-L$libdir'
10995       hardcode_shlibpath_var=no
10996       ;;
10997
10998     freebsd1*)
10999       ld_shlibs=no
11000       ;;
11001
11002     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11003     # support.  Future versions do this automatically, but an explicit c++rt0.o
11004     # does not break anything, and helps significantly (at the cost of a little
11005     # extra space).
11006     freebsd2.2*)
11007       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11008       hardcode_libdir_flag_spec='-R$libdir'
11009       hardcode_direct=yes
11010       hardcode_shlibpath_var=no
11011       ;;
11012
11013     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11014     freebsd2*)
11015       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11016       hardcode_direct=yes
11017       hardcode_minus_L=yes
11018       hardcode_shlibpath_var=no
11019       ;;
11020
11021     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11022     freebsd* | dragonfly*)
11023       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11024       hardcode_libdir_flag_spec='-R$libdir'
11025       hardcode_direct=yes
11026       hardcode_shlibpath_var=no
11027       ;;
11028
11029     hpux9*)
11030       if test "$GCC" = yes; then
11031         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'
11032       else
11033         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'
11034       fi
11035       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11036       hardcode_libdir_separator=:
11037       hardcode_direct=yes
11038
11039       # hardcode_minus_L: Not really in the search PATH,
11040       # but as the default location of the library.
11041       hardcode_minus_L=yes
11042       export_dynamic_flag_spec='${wl}-E'
11043       ;;
11044
11045     hpux10*)
11046       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11047         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11048       else
11049         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11050       fi
11051       if test "$with_gnu_ld" = no; then
11052         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11053         hardcode_libdir_flag_spec_ld='+b $libdir'
11054         hardcode_libdir_separator=:
11055         hardcode_direct=yes
11056         hardcode_direct_absolute=yes
11057         export_dynamic_flag_spec='${wl}-E'
11058         # hardcode_minus_L: Not really in the search PATH,
11059         # but as the default location of the library.
11060         hardcode_minus_L=yes
11061       fi
11062       ;;
11063
11064     hpux11*)
11065       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11066         case $host_cpu in
11067         hppa*64*)
11068           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11069           ;;
11070         ia64*)
11071           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11072           ;;
11073         *)
11074           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11075           ;;
11076         esac
11077       else
11078         case $host_cpu in
11079         hppa*64*)
11080           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11081           ;;
11082         ia64*)
11083           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11084           ;;
11085         *)
11086
11087           # Older versions of the 11.00 compiler do not understand -b yet
11088           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11089           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11090 $as_echo_n "checking if $CC understands -b... " >&6; }
11091 if ${lt_cv_prog_compiler__b+:} false; then :
11092   $as_echo_n "(cached) " >&6
11093 else
11094   lt_cv_prog_compiler__b=no
11095    save_LDFLAGS="$LDFLAGS"
11096    LDFLAGS="$LDFLAGS -b"
11097    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11098    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11099      # The linker can only warn and ignore the option if not recognized
11100      # So say no if there are warnings
11101      if test -s conftest.err; then
11102        # Append any errors to the config.log.
11103        cat conftest.err 1>&5
11104        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11105        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11106        if diff conftest.exp conftest.er2 >/dev/null; then
11107          lt_cv_prog_compiler__b=yes
11108        fi
11109      else
11110        lt_cv_prog_compiler__b=yes
11111      fi
11112    fi
11113    $RM -r conftest*
11114    LDFLAGS="$save_LDFLAGS"
11115
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11118 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11119
11120 if test x"$lt_cv_prog_compiler__b" = xyes; then
11121     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11122 else
11123     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11124 fi
11125
11126           ;;
11127         esac
11128       fi
11129       if test "$with_gnu_ld" = no; then
11130         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11131         hardcode_libdir_separator=:
11132
11133         case $host_cpu in
11134         hppa*64*|ia64*)
11135           hardcode_direct=no
11136           hardcode_shlibpath_var=no
11137           ;;
11138         *)
11139           hardcode_direct=yes
11140           hardcode_direct_absolute=yes
11141           export_dynamic_flag_spec='${wl}-E'
11142
11143           # hardcode_minus_L: Not really in the search PATH,
11144           # but as the default location of the library.
11145           hardcode_minus_L=yes
11146           ;;
11147         esac
11148       fi
11149       ;;
11150
11151     irix5* | irix6* | nonstopux*)
11152       if test "$GCC" = yes; then
11153         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'
11154         # Try to use the -exported_symbol ld option, if it does not
11155         # work, assume that -exports_file does not work either and
11156         # implicitly export all symbols.
11157         # This should be the same for all languages, so no per-tag cache variable.
11158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11159 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11160 if ${lt_cv_irix_exported_symbol+:} false; then :
11161   $as_echo_n "(cached) " >&6
11162 else
11163   save_LDFLAGS="$LDFLAGS"
11164            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11165            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h.  */
11167 int foo (void) { return 0; }
11168 _ACEOF
11169 if ac_fn_c_try_link "$LINENO"; then :
11170   lt_cv_irix_exported_symbol=yes
11171 else
11172   lt_cv_irix_exported_symbol=no
11173 fi
11174 rm -f core conftest.err conftest.$ac_objext \
11175     conftest$ac_exeext conftest.$ac_ext
11176            LDFLAGS="$save_LDFLAGS"
11177 fi
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11179 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11180         if test "$lt_cv_irix_exported_symbol" = yes; then
11181           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'
11182         fi
11183       else
11184         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'
11185         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'
11186       fi
11187       archive_cmds_need_lc='no'
11188       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11189       hardcode_libdir_separator=:
11190       inherit_rpath=yes
11191       link_all_deplibs=yes
11192       ;;
11193
11194     netbsd*)
11195       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11196         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11197       else
11198         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11199       fi
11200       hardcode_libdir_flag_spec='-R$libdir'
11201       hardcode_direct=yes
11202       hardcode_shlibpath_var=no
11203       ;;
11204
11205     newsos6)
11206       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11207       hardcode_direct=yes
11208       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11209       hardcode_libdir_separator=:
11210       hardcode_shlibpath_var=no
11211       ;;
11212
11213     *nto* | *qnx*)
11214       ;;
11215
11216     openbsd*)
11217       if test -f /usr/libexec/ld.so; then
11218         hardcode_direct=yes
11219         hardcode_shlibpath_var=no
11220         hardcode_direct_absolute=yes
11221         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11222           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11223           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11224           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11225           export_dynamic_flag_spec='${wl}-E'
11226         else
11227           case $host_os in
11228            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11229              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11230              hardcode_libdir_flag_spec='-R$libdir'
11231              ;;
11232            *)
11233              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11234              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11235              ;;
11236           esac
11237         fi
11238       else
11239         ld_shlibs=no
11240       fi
11241       ;;
11242
11243     os2*)
11244       hardcode_libdir_flag_spec='-L$libdir'
11245       hardcode_minus_L=yes
11246       allow_undefined_flag=unsupported
11247       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'
11248       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11249       ;;
11250
11251     osf3*)
11252       if test "$GCC" = yes; then
11253         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11254         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'
11255       else
11256         allow_undefined_flag=' -expect_unresolved \*'
11257         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'
11258       fi
11259       archive_cmds_need_lc='no'
11260       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11261       hardcode_libdir_separator=:
11262       ;;
11263
11264     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11265       if test "$GCC" = yes; then
11266         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11267         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'
11268         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11269       else
11270         allow_undefined_flag=' -expect_unresolved \*'
11271         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'
11272         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~
11273         $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'
11274
11275         # Both c and cxx compiler support -rpath directly
11276         hardcode_libdir_flag_spec='-rpath $libdir'
11277       fi
11278       archive_cmds_need_lc='no'
11279       hardcode_libdir_separator=:
11280       ;;
11281
11282     solaris*)
11283       no_undefined_flag=' -z defs'
11284       if test "$GCC" = yes; then
11285         wlarc='${wl}'
11286         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11287         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11288           $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'
11289       else
11290         case `$CC -V 2>&1` in
11291         *"Compilers 5.0"*)
11292           wlarc=''
11293           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11294           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11295           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11296           ;;
11297         *)
11298           wlarc='${wl}'
11299           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11300           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11301           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11302           ;;
11303         esac
11304       fi
11305       hardcode_libdir_flag_spec='-R$libdir'
11306       hardcode_shlibpath_var=no
11307       case $host_os in
11308       solaris2.[0-5] | solaris2.[0-5].*) ;;
11309       *)
11310         # The compiler driver will combine and reorder linker options,
11311         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11312         # but is careful enough not to reorder.
11313         # Supported since Solaris 2.6 (maybe 2.5.1?)
11314         if test "$GCC" = yes; then
11315           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11316         else
11317           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11318         fi
11319         ;;
11320       esac
11321       link_all_deplibs=yes
11322       ;;
11323
11324     sunos4*)
11325       if test "x$host_vendor" = xsequent; then
11326         # Use $CC to link under sequent, because it throws in some extra .o
11327         # files that make .init and .fini sections work.
11328         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11329       else
11330         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11331       fi
11332       hardcode_libdir_flag_spec='-L$libdir'
11333       hardcode_direct=yes
11334       hardcode_minus_L=yes
11335       hardcode_shlibpath_var=no
11336       ;;
11337
11338     sysv4)
11339       case $host_vendor in
11340         sni)
11341           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11342           hardcode_direct=yes # is this really true???
11343         ;;
11344         siemens)
11345           ## LD is ld it makes a PLAMLIB
11346           ## CC just makes a GrossModule.
11347           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11348           reload_cmds='$CC -r -o $output$reload_objs'
11349           hardcode_direct=no
11350         ;;
11351         motorola)
11352           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11354         ;;
11355       esac
11356       runpath_var='LD_RUN_PATH'
11357       hardcode_shlibpath_var=no
11358       ;;
11359
11360     sysv4.3*)
11361       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11362       hardcode_shlibpath_var=no
11363       export_dynamic_flag_spec='-Bexport'
11364       ;;
11365
11366     sysv4*MP*)
11367       if test -d /usr/nec; then
11368         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11369         hardcode_shlibpath_var=no
11370         runpath_var=LD_RUN_PATH
11371         hardcode_runpath_var=yes
11372         ld_shlibs=yes
11373       fi
11374       ;;
11375
11376     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11377       no_undefined_flag='${wl}-z,text'
11378       archive_cmds_need_lc=no
11379       hardcode_shlibpath_var=no
11380       runpath_var='LD_RUN_PATH'
11381
11382       if test "$GCC" = yes; then
11383         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11385       else
11386         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11388       fi
11389       ;;
11390
11391     sysv5* | sco3.2v5* | sco5v6*)
11392       # Note: We can NOT use -z defs as we might desire, because we do not
11393       # link with -lc, and that would cause any symbols used from libc to
11394       # always be unresolved, which means just about no library would
11395       # ever link correctly.  If we're not using GNU ld we use -z text
11396       # though, which does catch some bad symbols but isn't as heavy-handed
11397       # as -z defs.
11398       no_undefined_flag='${wl}-z,text'
11399       allow_undefined_flag='${wl}-z,nodefs'
11400       archive_cmds_need_lc=no
11401       hardcode_shlibpath_var=no
11402       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11403       hardcode_libdir_separator=':'
11404       link_all_deplibs=yes
11405       export_dynamic_flag_spec='${wl}-Bexport'
11406       runpath_var='LD_RUN_PATH'
11407
11408       if test "$GCC" = yes; then
11409         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11410         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11411       else
11412         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11413         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11414       fi
11415       ;;
11416
11417     uts4*)
11418       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11419       hardcode_libdir_flag_spec='-L$libdir'
11420       hardcode_shlibpath_var=no
11421       ;;
11422
11423     *)
11424       ld_shlibs=no
11425       ;;
11426     esac
11427
11428     if test x$host_vendor = xsni; then
11429       case $host in
11430       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11431         export_dynamic_flag_spec='${wl}-Blargedynsym'
11432         ;;
11433       esac
11434     fi
11435   fi
11436
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11438 $as_echo "$ld_shlibs" >&6; }
11439 test "$ld_shlibs" = no && can_build_shared=no
11440
11441 with_gnu_ld=$with_gnu_ld
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457 #
11458 # Do we need to explicitly link libc?
11459 #
11460 case "x$archive_cmds_need_lc" in
11461 x|xyes)
11462   # Assume -lc should be added
11463   archive_cmds_need_lc=yes
11464
11465   if test "$enable_shared" = yes && test "$GCC" = yes; then
11466     case $archive_cmds in
11467     *'~'*)
11468       # FIXME: we may have to deal with multi-command sequences.
11469       ;;
11470     '$CC '*)
11471       # Test whether the compiler implicitly links with -lc since on some
11472       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11473       # to ld, don't add -lc before -lgcc.
11474       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11475 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11476 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11477   $as_echo_n "(cached) " >&6
11478 else
11479   $RM conftest*
11480         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11481
11482         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11483   (eval $ac_compile) 2>&5
11484   ac_status=$?
11485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486   test $ac_status = 0; } 2>conftest.err; then
11487           soname=conftest
11488           lib=conftest
11489           libobjs=conftest.$ac_objext
11490           deplibs=
11491           wl=$lt_prog_compiler_wl
11492           pic_flag=$lt_prog_compiler_pic
11493           compiler_flags=-v
11494           linker_flags=-v
11495           verstring=
11496           output_objdir=.
11497           libname=conftest
11498           lt_save_allow_undefined_flag=$allow_undefined_flag
11499           allow_undefined_flag=
11500           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11501   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11502   ac_status=$?
11503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11504   test $ac_status = 0; }
11505           then
11506             lt_cv_archive_cmds_need_lc=no
11507           else
11508             lt_cv_archive_cmds_need_lc=yes
11509           fi
11510           allow_undefined_flag=$lt_save_allow_undefined_flag
11511         else
11512           cat conftest.err 1>&5
11513         fi
11514         $RM conftest*
11515
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11518 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11519       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11520       ;;
11521     esac
11522   fi
11523   ;;
11524 esac
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11683 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11684
11685 if test "$GCC" = yes; then
11686   case $host_os in
11687     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11688     *) lt_awk_arg="/^libraries:/" ;;
11689   esac
11690   case $host_os in
11691     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11692     *) lt_sed_strip_eq="s,=/,/,g" ;;
11693   esac
11694   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11695   case $lt_search_path_spec in
11696   *\;*)
11697     # if the path contains ";" then we assume it to be the separator
11698     # otherwise default to the standard path separator (i.e. ":") - it is
11699     # assumed that no part of a normal pathname contains ";" but that should
11700     # okay in the real world where ";" in dirpaths is itself problematic.
11701     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11702     ;;
11703   *)
11704     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11705     ;;
11706   esac
11707   # Ok, now we have the path, separated by spaces, we can step through it
11708   # and add multilib dir if necessary.
11709   lt_tmp_lt_search_path_spec=
11710   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11711   for lt_sys_path in $lt_search_path_spec; do
11712     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11713       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11714     else
11715       test -d "$lt_sys_path" && \
11716         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11717     fi
11718   done
11719   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11720 BEGIN {RS=" "; FS="/|\n";} {
11721   lt_foo="";
11722   lt_count=0;
11723   for (lt_i = NF; lt_i > 0; lt_i--) {
11724     if ($lt_i != "" && $lt_i != ".") {
11725       if ($lt_i == "..") {
11726         lt_count++;
11727       } else {
11728         if (lt_count == 0) {
11729           lt_foo="/" $lt_i lt_foo;
11730         } else {
11731           lt_count--;
11732         }
11733       }
11734     }
11735   }
11736   if (lt_foo != "") { lt_freq[lt_foo]++; }
11737   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11738 }'`
11739   # AWK program above erroneously prepends '/' to C:/dos/paths
11740   # for these hosts.
11741   case $host_os in
11742     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11743       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11744   esac
11745   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11746 else
11747   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11748 fi
11749 library_names_spec=
11750 libname_spec='lib$name'
11751 soname_spec=
11752 shrext_cmds=".so"
11753 postinstall_cmds=
11754 postuninstall_cmds=
11755 finish_cmds=
11756 finish_eval=
11757 shlibpath_var=
11758 shlibpath_overrides_runpath=unknown
11759 version_type=none
11760 dynamic_linker="$host_os ld.so"
11761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11762 need_lib_prefix=unknown
11763 hardcode_into_libs=no
11764
11765 # when you set need_version to no, make sure it does not cause -set_version
11766 # flags to be left without arguments
11767 need_version=unknown
11768
11769 case $host_os in
11770 aix3*)
11771   version_type=linux
11772   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11773   shlibpath_var=LIBPATH
11774
11775   # AIX 3 has no versioning support, so we append a major version to the name.
11776   soname_spec='${libname}${release}${shared_ext}$major'
11777   ;;
11778
11779 aix[4-9]*)
11780   version_type=linux
11781   need_lib_prefix=no
11782   need_version=no
11783   hardcode_into_libs=yes
11784   if test "$host_cpu" = ia64; then
11785     # AIX 5 supports IA64
11786     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11787     shlibpath_var=LD_LIBRARY_PATH
11788   else
11789     # With GCC up to 2.95.x, collect2 would create an import file
11790     # for dependence libraries.  The import file would start with
11791     # the line `#! .'.  This would cause the generated library to
11792     # depend on `.', always an invalid library.  This was fixed in
11793     # development snapshots of GCC prior to 3.0.
11794     case $host_os in
11795       aix4 | aix4.[01] | aix4.[01].*)
11796       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11797            echo ' yes '
11798            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11799         :
11800       else
11801         can_build_shared=no
11802       fi
11803       ;;
11804     esac
11805     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11806     # soname into executable. Probably we can add versioning support to
11807     # collect2, so additional links can be useful in future.
11808     if test "$aix_use_runtimelinking" = yes; then
11809       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11810       # instead of lib<name>.a to let people know that these are not
11811       # typical AIX shared libraries.
11812       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813     else
11814       # We preserve .a as extension for shared libraries through AIX4.2
11815       # and later when we are not doing run time linking.
11816       library_names_spec='${libname}${release}.a $libname.a'
11817       soname_spec='${libname}${release}${shared_ext}$major'
11818     fi
11819     shlibpath_var=LIBPATH
11820   fi
11821   ;;
11822
11823 amigaos*)
11824   case $host_cpu in
11825   powerpc)
11826     # Since July 2007 AmigaOS4 officially supports .so libraries.
11827     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829     ;;
11830   m68k)
11831     library_names_spec='$libname.ixlibrary $libname.a'
11832     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11833     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'
11834     ;;
11835   esac
11836   ;;
11837
11838 beos*)
11839   library_names_spec='${libname}${shared_ext}'
11840   dynamic_linker="$host_os ld.so"
11841   shlibpath_var=LIBRARY_PATH
11842   ;;
11843
11844 bsdi[45]*)
11845   version_type=linux
11846   need_version=no
11847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848   soname_spec='${libname}${release}${shared_ext}$major'
11849   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11850   shlibpath_var=LD_LIBRARY_PATH
11851   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11852   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11853   # the default ld.so.conf also contains /usr/contrib/lib and
11854   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11855   # libtool to hard-code these into programs
11856   ;;
11857
11858 cygwin* | mingw* | pw32* | cegcc*)
11859   version_type=windows
11860   shrext_cmds=".dll"
11861   need_version=no
11862   need_lib_prefix=no
11863
11864   case $GCC,$cc_basename in
11865   yes,*)
11866     # gcc
11867     library_names_spec='$libname.dll.a'
11868     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11869     postinstall_cmds='base_file=`basename \${file}`~
11870       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11871       dldir=$destdir/`dirname \$dlpath`~
11872       test -d \$dldir || mkdir -p \$dldir~
11873       $install_prog $dir/$dlname \$dldir/$dlname~
11874       chmod a+x \$dldir/$dlname~
11875       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11876         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11877       fi'
11878     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11879       dlpath=$dir/\$dldll~
11880        $RM \$dlpath'
11881     shlibpath_overrides_runpath=yes
11882
11883     case $host_os in
11884     cygwin*)
11885       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11886       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11887
11888       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11889       ;;
11890     mingw* | cegcc*)
11891       # MinGW DLLs use traditional 'lib' prefix
11892       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11893       ;;
11894     pw32*)
11895       # pw32 DLLs use 'pw' prefix rather than 'lib'
11896       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11897       ;;
11898     esac
11899     dynamic_linker='Win32 ld.exe'
11900     ;;
11901
11902   *,cl*)
11903     # Native MSVC
11904     libname_spec='$name'
11905     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11906     library_names_spec='${libname}.dll.lib'
11907
11908     case $build_os in
11909     mingw*)
11910       sys_lib_search_path_spec=
11911       lt_save_ifs=$IFS
11912       IFS=';'
11913       for lt_path in $LIB
11914       do
11915         IFS=$lt_save_ifs
11916         # Let DOS variable expansion print the short 8.3 style file name.
11917         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11918         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11919       done
11920       IFS=$lt_save_ifs
11921       # Convert to MSYS style.
11922       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11923       ;;
11924     cygwin*)
11925       # Convert to unix form, then to dos form, then back to unix form
11926       # but this time dos style (no spaces!) so that the unix form looks
11927       # like /cygdrive/c/PROGRA~1:/cygdr...
11928       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11929       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11930       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11931       ;;
11932     *)
11933       sys_lib_search_path_spec="$LIB"
11934       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11935         # It is most probably a Windows format PATH.
11936         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11937       else
11938         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11939       fi
11940       # FIXME: find the short name or the path components, as spaces are
11941       # common. (e.g. "Program Files" -> "PROGRA~1")
11942       ;;
11943     esac
11944
11945     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11946     postinstall_cmds='base_file=`basename \${file}`~
11947       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11948       dldir=$destdir/`dirname \$dlpath`~
11949       test -d \$dldir || mkdir -p \$dldir~
11950       $install_prog $dir/$dlname \$dldir/$dlname'
11951     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11952       dlpath=$dir/\$dldll~
11953        $RM \$dlpath'
11954     shlibpath_overrides_runpath=yes
11955     dynamic_linker='Win32 link.exe'
11956     ;;
11957
11958   *)
11959     # Assume MSVC wrapper
11960     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11961     dynamic_linker='Win32 ld.exe'
11962     ;;
11963   esac
11964   # FIXME: first we should search . and the directory the executable is in
11965   shlibpath_var=PATH
11966   ;;
11967
11968 darwin* | rhapsody*)
11969   dynamic_linker="$host_os dyld"
11970   version_type=darwin
11971   need_lib_prefix=no
11972   need_version=no
11973   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11974   soname_spec='${libname}${release}${major}$shared_ext'
11975   shlibpath_overrides_runpath=yes
11976   shlibpath_var=DYLD_LIBRARY_PATH
11977   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11978
11979   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11980   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11981   ;;
11982
11983 dgux*)
11984   version_type=linux
11985   need_lib_prefix=no
11986   need_version=no
11987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11988   soname_spec='${libname}${release}${shared_ext}$major'
11989   shlibpath_var=LD_LIBRARY_PATH
11990   ;;
11991
11992 freebsd1*)
11993   dynamic_linker=no
11994   ;;
11995
11996 freebsd* | dragonfly*)
11997   # DragonFly does not have aout.  When/if they implement a new
11998   # versioning mechanism, adjust this.
11999   if test -x /usr/bin/objformat; then
12000     objformat=`/usr/bin/objformat`
12001   else
12002     case $host_os in
12003     freebsd[123]*) objformat=aout ;;
12004     *) objformat=elf ;;
12005     esac
12006   fi
12007   version_type=freebsd-$objformat
12008   case $version_type in
12009     freebsd-elf*)
12010       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12011       need_version=no
12012       need_lib_prefix=no
12013       ;;
12014     freebsd-*)
12015       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12016       need_version=yes
12017       ;;
12018   esac
12019   shlibpath_var=LD_LIBRARY_PATH
12020   case $host_os in
12021   freebsd2*)
12022     shlibpath_overrides_runpath=yes
12023     ;;
12024   freebsd3.[01]* | freebsdelf3.[01]*)
12025     shlibpath_overrides_runpath=yes
12026     hardcode_into_libs=yes
12027     ;;
12028   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12029   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12030     shlibpath_overrides_runpath=no
12031     hardcode_into_libs=yes
12032     ;;
12033   *) # from 4.6 on, and DragonFly
12034     shlibpath_overrides_runpath=yes
12035     hardcode_into_libs=yes
12036     ;;
12037   esac
12038   ;;
12039
12040 gnu*)
12041   version_type=linux
12042   need_lib_prefix=no
12043   need_version=no
12044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12045   soname_spec='${libname}${release}${shared_ext}$major'
12046   shlibpath_var=LD_LIBRARY_PATH
12047   hardcode_into_libs=yes
12048   ;;
12049
12050 haiku*)
12051   version_type=linux
12052   need_lib_prefix=no
12053   need_version=no
12054   dynamic_linker="$host_os runtime_loader"
12055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12056   soname_spec='${libname}${release}${shared_ext}$major'
12057   shlibpath_var=LIBRARY_PATH
12058   shlibpath_overrides_runpath=yes
12059   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12060   hardcode_into_libs=yes
12061   ;;
12062
12063 hpux9* | hpux10* | hpux11*)
12064   # Give a soname corresponding to the major version so that dld.sl refuses to
12065   # link against other versions.
12066   version_type=sunos
12067   need_lib_prefix=no
12068   need_version=no
12069   case $host_cpu in
12070   ia64*)
12071     shrext_cmds='.so'
12072     hardcode_into_libs=yes
12073     dynamic_linker="$host_os dld.so"
12074     shlibpath_var=LD_LIBRARY_PATH
12075     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
12079       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12080     else
12081       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12082     fi
12083     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12084     ;;
12085   hppa*64*)
12086     shrext_cmds='.sl'
12087     hardcode_into_libs=yes
12088     dynamic_linker="$host_os dld.sl"
12089     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12090     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092     soname_spec='${libname}${release}${shared_ext}$major'
12093     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12094     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12095     ;;
12096   *)
12097     shrext_cmds='.sl'
12098     dynamic_linker="$host_os dld.sl"
12099     shlibpath_var=SHLIB_PATH
12100     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12102     soname_spec='${libname}${release}${shared_ext}$major'
12103     ;;
12104   esac
12105   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12106   postinstall_cmds='chmod 555 $lib'
12107   # or fails outright, so override atomically:
12108   install_override_mode=555
12109   ;;
12110
12111 interix[3-9]*)
12112   version_type=linux
12113   need_lib_prefix=no
12114   need_version=no
12115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12116   soname_spec='${libname}${release}${shared_ext}$major'
12117   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12118   shlibpath_var=LD_LIBRARY_PATH
12119   shlibpath_overrides_runpath=no
12120   hardcode_into_libs=yes
12121   ;;
12122
12123 irix5* | irix6* | nonstopux*)
12124   case $host_os in
12125     nonstopux*) version_type=nonstopux ;;
12126     *)
12127         if test "$lt_cv_prog_gnu_ld" = yes; then
12128                 version_type=linux
12129         else
12130                 version_type=irix
12131         fi ;;
12132   esac
12133   need_lib_prefix=no
12134   need_version=no
12135   soname_spec='${libname}${release}${shared_ext}$major'
12136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12137   case $host_os in
12138   irix5* | nonstopux*)
12139     libsuff= shlibsuff=
12140     ;;
12141   *)
12142     case $LD in # libtool.m4 will add one of these switches to LD
12143     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12144       libsuff= shlibsuff= libmagic=32-bit;;
12145     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12146       libsuff=32 shlibsuff=N32 libmagic=N32;;
12147     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12148       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12149     *) libsuff= shlibsuff= libmagic=never-match;;
12150     esac
12151     ;;
12152   esac
12153   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12154   shlibpath_overrides_runpath=no
12155   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12156   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12157   hardcode_into_libs=yes
12158   ;;
12159
12160 # No shared lib support for Linux oldld, aout, or coff.
12161 linux*oldld* | linux*aout* | linux*coff*)
12162   dynamic_linker=no
12163   ;;
12164
12165 # This must be Linux ELF.
12166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12167   version_type=linux
12168   need_lib_prefix=no
12169   need_version=no
12170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12171   soname_spec='${libname}${release}${shared_ext}$major'
12172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12173   shlibpath_var=LD_LIBRARY_PATH
12174   shlibpath_overrides_runpath=no
12175
12176   # Some binutils ld are patched to set DT_RUNPATH
12177   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12178   $as_echo_n "(cached) " >&6
12179 else
12180   lt_cv_shlibpath_overrides_runpath=no
12181     save_LDFLAGS=$LDFLAGS
12182     save_libdir=$libdir
12183     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12184          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h.  */
12187
12188 int
12189 main ()
12190 {
12191
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 if ac_fn_c_try_link "$LINENO"; then :
12197   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12198   lt_cv_shlibpath_overrides_runpath=yes
12199 fi
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext \
12202     conftest$ac_exeext conftest.$ac_ext
12203     LDFLAGS=$save_LDFLAGS
12204     libdir=$save_libdir
12205
12206 fi
12207
12208   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12209
12210   # This implies no fast_install, which is unacceptable.
12211   # Some rework will be needed to allow for fast_install
12212   # before this can be enabled.
12213   hardcode_into_libs=yes
12214
12215   # Append ld.so.conf contents to the search path
12216   if test -f /etc/ld.so.conf; then
12217     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' ' '`
12218     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12219   fi
12220
12221   # We used to test for /lib/ld.so.1 and disable shared libraries on
12222   # powerpc, because MkLinux only supported shared libraries with the
12223   # GNU dynamic linker.  Since this was broken with cross compilers,
12224   # most powerpc-linux boxes support dynamic linking these days and
12225   # people can always --disable-shared, the test was removed, and we
12226   # assume the GNU/Linux dynamic linker is in use.
12227   dynamic_linker='GNU/Linux ld.so'
12228   ;;
12229
12230 netbsd*)
12231   version_type=sunos
12232   need_lib_prefix=no
12233   need_version=no
12234   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12236     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12237     dynamic_linker='NetBSD (a.out) ld.so'
12238   else
12239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12240     soname_spec='${libname}${release}${shared_ext}$major'
12241     dynamic_linker='NetBSD ld.elf_so'
12242   fi
12243   shlibpath_var=LD_LIBRARY_PATH
12244   shlibpath_overrides_runpath=yes
12245   hardcode_into_libs=yes
12246   ;;
12247
12248 newsos6)
12249   version_type=linux
12250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251   shlibpath_var=LD_LIBRARY_PATH
12252   shlibpath_overrides_runpath=yes
12253   ;;
12254
12255 *nto* | *qnx*)
12256   version_type=qnx
12257   need_lib_prefix=no
12258   need_version=no
12259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260   soname_spec='${libname}${release}${shared_ext}$major'
12261   shlibpath_var=LD_LIBRARY_PATH
12262   shlibpath_overrides_runpath=no
12263   hardcode_into_libs=yes
12264   dynamic_linker='ldqnx.so'
12265   ;;
12266
12267 openbsd*)
12268   version_type=sunos
12269   sys_lib_dlsearch_path_spec="/usr/lib"
12270   need_lib_prefix=no
12271   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12272   case $host_os in
12273     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12274     *)                          need_version=no  ;;
12275   esac
12276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12277   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12278   shlibpath_var=LD_LIBRARY_PATH
12279   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12280     case $host_os in
12281       openbsd2.[89] | openbsd2.[89].*)
12282         shlibpath_overrides_runpath=no
12283         ;;
12284       *)
12285         shlibpath_overrides_runpath=yes
12286         ;;
12287       esac
12288   else
12289     shlibpath_overrides_runpath=yes
12290   fi
12291   ;;
12292
12293 os2*)
12294   libname_spec='$name'
12295   shrext_cmds=".dll"
12296   need_lib_prefix=no
12297   library_names_spec='$libname${shared_ext} $libname.a'
12298   dynamic_linker='OS/2 ld.exe'
12299   shlibpath_var=LIBPATH
12300   ;;
12301
12302 osf3* | osf4* | osf5*)
12303   version_type=osf
12304   need_lib_prefix=no
12305   need_version=no
12306   soname_spec='${libname}${release}${shared_ext}$major'
12307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12308   shlibpath_var=LD_LIBRARY_PATH
12309   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12310   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12311   ;;
12312
12313 rdos*)
12314   dynamic_linker=no
12315   ;;
12316
12317 solaris*)
12318   version_type=linux
12319   need_lib_prefix=no
12320   need_version=no
12321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322   soname_spec='${libname}${release}${shared_ext}$major'
12323   shlibpath_var=LD_LIBRARY_PATH
12324   shlibpath_overrides_runpath=yes
12325   hardcode_into_libs=yes
12326   # ldd complains unless libraries are executable
12327   postinstall_cmds='chmod +x $lib'
12328   ;;
12329
12330 sunos4*)
12331   version_type=sunos
12332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12333   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12334   shlibpath_var=LD_LIBRARY_PATH
12335   shlibpath_overrides_runpath=yes
12336   if test "$with_gnu_ld" = yes; then
12337     need_lib_prefix=no
12338   fi
12339   need_version=yes
12340   ;;
12341
12342 sysv4 | sysv4.3*)
12343   version_type=linux
12344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12345   soname_spec='${libname}${release}${shared_ext}$major'
12346   shlibpath_var=LD_LIBRARY_PATH
12347   case $host_vendor in
12348     sni)
12349       shlibpath_overrides_runpath=no
12350       need_lib_prefix=no
12351       runpath_var=LD_RUN_PATH
12352       ;;
12353     siemens)
12354       need_lib_prefix=no
12355       ;;
12356     motorola)
12357       need_lib_prefix=no
12358       need_version=no
12359       shlibpath_overrides_runpath=no
12360       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12361       ;;
12362   esac
12363   ;;
12364
12365 sysv4*MP*)
12366   if test -d /usr/nec ;then
12367     version_type=linux
12368     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12369     soname_spec='$libname${shared_ext}.$major'
12370     shlibpath_var=LD_LIBRARY_PATH
12371   fi
12372   ;;
12373
12374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12375   version_type=freebsd-elf
12376   need_lib_prefix=no
12377   need_version=no
12378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12379   soname_spec='${libname}${release}${shared_ext}$major'
12380   shlibpath_var=LD_LIBRARY_PATH
12381   shlibpath_overrides_runpath=yes
12382   hardcode_into_libs=yes
12383   if test "$with_gnu_ld" = yes; then
12384     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12385   else
12386     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12387     case $host_os in
12388       sco3.2v5*)
12389         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12390         ;;
12391     esac
12392   fi
12393   sys_lib_dlsearch_path_spec='/usr/lib'
12394   ;;
12395
12396 tpf*)
12397   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12398   version_type=linux
12399   need_lib_prefix=no
12400   need_version=no
12401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402   shlibpath_var=LD_LIBRARY_PATH
12403   shlibpath_overrides_runpath=no
12404   hardcode_into_libs=yes
12405   ;;
12406
12407 uts4*)
12408   version_type=linux
12409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410   soname_spec='${libname}${release}${shared_ext}$major'
12411   shlibpath_var=LD_LIBRARY_PATH
12412   ;;
12413
12414 *)
12415   dynamic_linker=no
12416   ;;
12417 esac
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12419 $as_echo "$dynamic_linker" >&6; }
12420 test "$dynamic_linker" = no && can_build_shared=no
12421
12422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12423 if test "$GCC" = yes; then
12424   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12425 fi
12426
12427 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12428   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12429 fi
12430 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12431   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12432 fi
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12526 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12527 hardcode_action=
12528 if test -n "$hardcode_libdir_flag_spec" ||
12529    test -n "$runpath_var" ||
12530    test "X$hardcode_automatic" = "Xyes" ; then
12531
12532   # We can hardcode non-existent directories.
12533   if test "$hardcode_direct" != no &&
12534      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12535      # have to relink, otherwise we might link with an installed library
12536      # when we should be linking with a yet-to-be-installed one
12537      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12538      test "$hardcode_minus_L" != no; then
12539     # Linking always hardcodes the temporary library directory.
12540     hardcode_action=relink
12541   else
12542     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12543     hardcode_action=immediate
12544   fi
12545 else
12546   # We cannot hardcode anything, or else we can only hardcode existing
12547   # directories.
12548   hardcode_action=unsupported
12549 fi
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12551 $as_echo "$hardcode_action" >&6; }
12552
12553 if test "$hardcode_action" = relink ||
12554    test "$inherit_rpath" = yes; then
12555   # Fast installation is not supported
12556   enable_fast_install=no
12557 elif test "$shlibpath_overrides_runpath" = yes ||
12558      test "$enable_shared" = no; then
12559   # Fast installation is not necessary
12560   enable_fast_install=needless
12561 fi
12562
12563
12564
12565
12566
12567
12568   if test "x$enable_dlopen" != xyes; then
12569   enable_dlopen=unknown
12570   enable_dlopen_self=unknown
12571   enable_dlopen_self_static=unknown
12572 else
12573   lt_cv_dlopen=no
12574   lt_cv_dlopen_libs=
12575
12576   case $host_os in
12577   beos*)
12578     lt_cv_dlopen="load_add_on"
12579     lt_cv_dlopen_libs=
12580     lt_cv_dlopen_self=yes
12581     ;;
12582
12583   mingw* | pw32* | cegcc*)
12584     lt_cv_dlopen="LoadLibrary"
12585     lt_cv_dlopen_libs=
12586     ;;
12587
12588   cygwin*)
12589     lt_cv_dlopen="dlopen"
12590     lt_cv_dlopen_libs=
12591     ;;
12592
12593   darwin*)
12594   # if libdl is installed we need to link against it
12595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12597 if ${ac_cv_lib_dl_dlopen+:} false; then :
12598   $as_echo_n "(cached) " >&6
12599 else
12600   ac_check_lib_save_LIBS=$LIBS
12601 LIBS="-ldl  $LIBS"
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h.  */
12604
12605 /* Override any GCC internal prototype to avoid an error.
12606    Use char because int might match the return type of a GCC
12607    builtin and then its argument prototype would still apply.  */
12608 #ifdef __cplusplus
12609 extern "C"
12610 #endif
12611 char dlopen ();
12612 int
12613 main ()
12614 {
12615 return dlopen ();
12616   ;
12617   return 0;
12618 }
12619 _ACEOF
12620 if ac_fn_c_try_link "$LINENO"; then :
12621   ac_cv_lib_dl_dlopen=yes
12622 else
12623   ac_cv_lib_dl_dlopen=no
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext \
12626     conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12628 fi
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12631 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12633 else
12634
12635     lt_cv_dlopen="dyld"
12636     lt_cv_dlopen_libs=
12637     lt_cv_dlopen_self=yes
12638
12639 fi
12640
12641     ;;
12642
12643   *)
12644     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12645 if test "x$ac_cv_func_shl_load" = xyes; then :
12646   lt_cv_dlopen="shl_load"
12647 else
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12649 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12650 if ${ac_cv_lib_dld_shl_load+:} false; then :
12651   $as_echo_n "(cached) " >&6
12652 else
12653   ac_check_lib_save_LIBS=$LIBS
12654 LIBS="-ldld  $LIBS"
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h.  */
12657
12658 /* Override any GCC internal prototype to avoid an error.
12659    Use char because int might match the return type of a GCC
12660    builtin and then its argument prototype would still apply.  */
12661 #ifdef __cplusplus
12662 extern "C"
12663 #endif
12664 char shl_load ();
12665 int
12666 main ()
12667 {
12668 return shl_load ();
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"; then :
12674   ac_cv_lib_dld_shl_load=yes
12675 else
12676   ac_cv_lib_dld_shl_load=no
12677 fi
12678 rm -f core conftest.err conftest.$ac_objext \
12679     conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS
12681 fi
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12683 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12684 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12685   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12686 else
12687   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12688 if test "x$ac_cv_func_dlopen" = xyes; then :
12689   lt_cv_dlopen="dlopen"
12690 else
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12693 if ${ac_cv_lib_dl_dlopen+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   ac_check_lib_save_LIBS=$LIBS
12697 LIBS="-ldl  $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_dl_dlopen=yes
12718 else
12719   ac_cv_lib_dl_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_dl_dlopen" >&5
12726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12727 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12729 else
12730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12731 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12732 if ${ac_cv_lib_svld_dlopen+:} false; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-lsvld  $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 dlopen ();
12747 int
12748 main ()
12749 {
12750 return dlopen ();
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 if ac_fn_c_try_link "$LINENO"; then :
12756   ac_cv_lib_svld_dlopen=yes
12757 else
12758   ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5
12765 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12766 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12767   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12768 else
12769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12770 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12771 if ${ac_cv_lib_dld_dld_link+:} false; then :
12772   $as_echo_n "(cached) " >&6
12773 else
12774   ac_check_lib_save_LIBS=$LIBS
12775 LIBS="-ldld  $LIBS"
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h.  */
12778
12779 /* Override any GCC internal prototype to avoid an error.
12780    Use char because int might match the return type of a GCC
12781    builtin and then its argument prototype would still apply.  */
12782 #ifdef __cplusplus
12783 extern "C"
12784 #endif
12785 char dld_link ();
12786 int
12787 main ()
12788 {
12789 return dld_link ();
12790   ;
12791   return 0;
12792 }
12793 _ACEOF
12794 if ac_fn_c_try_link "$LINENO"; then :
12795   ac_cv_lib_dld_dld_link=yes
12796 else
12797   ac_cv_lib_dld_dld_link=no
12798 fi
12799 rm -f core conftest.err conftest.$ac_objext \
12800     conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12804 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12805 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12806   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12807 fi
12808
12809
12810 fi
12811
12812
12813 fi
12814
12815
12816 fi
12817
12818
12819 fi
12820
12821
12822 fi
12823
12824     ;;
12825   esac
12826
12827   if test "x$lt_cv_dlopen" != xno; then
12828     enable_dlopen=yes
12829   else
12830     enable_dlopen=no
12831   fi
12832
12833   case $lt_cv_dlopen in
12834   dlopen)
12835     save_CPPFLAGS="$CPPFLAGS"
12836     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12837
12838     save_LDFLAGS="$LDFLAGS"
12839     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12840
12841     save_LIBS="$LIBS"
12842     LIBS="$lt_cv_dlopen_libs $LIBS"
12843
12844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12845 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12846 if ${lt_cv_dlopen_self+:} false; then :
12847   $as_echo_n "(cached) " >&6
12848 else
12849           if test "$cross_compiling" = yes; then :
12850   lt_cv_dlopen_self=cross
12851 else
12852   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12853   lt_status=$lt_dlunknown
12854   cat > conftest.$ac_ext <<_LT_EOF
12855 #line $LINENO "configure"
12856 #include "confdefs.h"
12857
12858 #if HAVE_DLFCN_H
12859 #include <dlfcn.h>
12860 #endif
12861
12862 #include <stdio.h>
12863
12864 #ifdef RTLD_GLOBAL
12865 #  define LT_DLGLOBAL           RTLD_GLOBAL
12866 #else
12867 #  ifdef DL_GLOBAL
12868 #    define LT_DLGLOBAL         DL_GLOBAL
12869 #  else
12870 #    define LT_DLGLOBAL         0
12871 #  endif
12872 #endif
12873
12874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12875    find out it does not work in some platform. */
12876 #ifndef LT_DLLAZY_OR_NOW
12877 #  ifdef RTLD_LAZY
12878 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12879 #  else
12880 #    ifdef DL_LAZY
12881 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12882 #    else
12883 #      ifdef RTLD_NOW
12884 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12885 #      else
12886 #        ifdef DL_NOW
12887 #          define LT_DLLAZY_OR_NOW      DL_NOW
12888 #        else
12889 #          define LT_DLLAZY_OR_NOW      0
12890 #        endif
12891 #      endif
12892 #    endif
12893 #  endif
12894 #endif
12895
12896 /* When -fvisbility=hidden is used, assume the code has been annotated
12897    correspondingly for the symbols needed.  */
12898 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12899 int fnord () __attribute__((visibility("default")));
12900 #endif
12901
12902 int fnord () { return 42; }
12903 int main ()
12904 {
12905   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12906   int status = $lt_dlunknown;
12907
12908   if (self)
12909     {
12910       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12911       else
12912         {
12913           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12914           else puts (dlerror ());
12915         }
12916       /* dlclose (self); */
12917     }
12918   else
12919     puts (dlerror ());
12920
12921   return status;
12922 }
12923 _LT_EOF
12924   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12925   (eval $ac_link) 2>&5
12926   ac_status=$?
12927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12929     (./conftest; exit; ) >&5 2>/dev/null
12930     lt_status=$?
12931     case x$lt_status in
12932       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12933       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12934       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12935     esac
12936   else :
12937     # compilation failed
12938     lt_cv_dlopen_self=no
12939   fi
12940 fi
12941 rm -fr conftest*
12942
12943
12944 fi
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12946 $as_echo "$lt_cv_dlopen_self" >&6; }
12947
12948     if test "x$lt_cv_dlopen_self" = xyes; then
12949       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12950       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12951 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12952 if ${lt_cv_dlopen_self_static+:} false; then :
12953   $as_echo_n "(cached) " >&6
12954 else
12955           if test "$cross_compiling" = yes; then :
12956   lt_cv_dlopen_self_static=cross
12957 else
12958   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12959   lt_status=$lt_dlunknown
12960   cat > conftest.$ac_ext <<_LT_EOF
12961 #line $LINENO "configure"
12962 #include "confdefs.h"
12963
12964 #if HAVE_DLFCN_H
12965 #include <dlfcn.h>
12966 #endif
12967
12968 #include <stdio.h>
12969
12970 #ifdef RTLD_GLOBAL
12971 #  define LT_DLGLOBAL           RTLD_GLOBAL
12972 #else
12973 #  ifdef DL_GLOBAL
12974 #    define LT_DLGLOBAL         DL_GLOBAL
12975 #  else
12976 #    define LT_DLGLOBAL         0
12977 #  endif
12978 #endif
12979
12980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12981    find out it does not work in some platform. */
12982 #ifndef LT_DLLAZY_OR_NOW
12983 #  ifdef RTLD_LAZY
12984 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12985 #  else
12986 #    ifdef DL_LAZY
12987 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12988 #    else
12989 #      ifdef RTLD_NOW
12990 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12991 #      else
12992 #        ifdef DL_NOW
12993 #          define LT_DLLAZY_OR_NOW      DL_NOW
12994 #        else
12995 #          define LT_DLLAZY_OR_NOW      0
12996 #        endif
12997 #      endif
12998 #    endif
12999 #  endif
13000 #endif
13001
13002 /* When -fvisbility=hidden is used, assume the code has been annotated
13003    correspondingly for the symbols needed.  */
13004 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13005 int fnord () __attribute__((visibility("default")));
13006 #endif
13007
13008 int fnord () { return 42; }
13009 int main ()
13010 {
13011   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13012   int status = $lt_dlunknown;
13013
13014   if (self)
13015     {
13016       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13017       else
13018         {
13019           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13020           else puts (dlerror ());
13021         }
13022       /* dlclose (self); */
13023     }
13024   else
13025     puts (dlerror ());
13026
13027   return status;
13028 }
13029 _LT_EOF
13030   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13031   (eval $ac_link) 2>&5
13032   ac_status=$?
13033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13034   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13035     (./conftest; exit; ) >&5 2>/dev/null
13036     lt_status=$?
13037     case x$lt_status in
13038       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13039       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13040       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13041     esac
13042   else :
13043     # compilation failed
13044     lt_cv_dlopen_self_static=no
13045   fi
13046 fi
13047 rm -fr conftest*
13048
13049
13050 fi
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13052 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13053     fi
13054
13055     CPPFLAGS="$save_CPPFLAGS"
13056     LDFLAGS="$save_LDFLAGS"
13057     LIBS="$save_LIBS"
13058     ;;
13059   esac
13060
13061   case $lt_cv_dlopen_self in
13062   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13063   *) enable_dlopen_self=unknown ;;
13064   esac
13065
13066   case $lt_cv_dlopen_self_static in
13067   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13068   *) enable_dlopen_self_static=unknown ;;
13069   esac
13070 fi
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088 striplib=
13089 old_striplib=
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13091 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13092 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13093   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13094   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13096 $as_echo "yes" >&6; }
13097 else
13098 # FIXME - insert some real tests, host_os isn't really good enough
13099   case $host_os in
13100   darwin*)
13101     if test -n "$STRIP" ; then
13102       striplib="$STRIP -x"
13103       old_striplib="$STRIP -S"
13104       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13105 $as_echo "yes" >&6; }
13106     else
13107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13109     fi
13110     ;;
13111   *)
13112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114     ;;
13115   esac
13116 fi
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129   # Report which library types will actually be built
13130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13131 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13133 $as_echo "$can_build_shared" >&6; }
13134
13135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13136 $as_echo_n "checking whether to build shared libraries... " >&6; }
13137   test "$can_build_shared" = "no" && enable_shared=no
13138
13139   # On AIX, shared libraries and static libraries use the same namespace, and
13140   # are all built from PIC.
13141   case $host_os in
13142   aix3*)
13143     test "$enable_shared" = yes && enable_static=no
13144     if test -n "$RANLIB"; then
13145       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13146       postinstall_cmds='$RANLIB $lib'
13147     fi
13148     ;;
13149
13150   aix[4-9]*)
13151     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13152       test "$enable_shared" = yes && enable_static=no
13153     fi
13154     ;;
13155   esac
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13157 $as_echo "$enable_shared" >&6; }
13158
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13160 $as_echo_n "checking whether to build static libraries... " >&6; }
13161   # Make sure either enable_shared or enable_static is yes.
13162   test "$enable_shared" = yes || enable_static=yes
13163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13164 $as_echo "$enable_static" >&6; }
13165
13166
13167
13168
13169 fi
13170 ac_ext=c
13171 ac_cpp='$CPP $CPPFLAGS'
13172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13175
13176 CC="$lt_save_CC"
13177
13178       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13179     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13180     (test "X$CXX" != "Xg++"))) ; then
13181   ac_ext=cpp
13182 ac_cpp='$CXXCPP $CPPFLAGS'
13183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13187 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13188 if test -z "$CXXCPP"; then
13189   if ${ac_cv_prog_CXXCPP+:} false; then :
13190   $as_echo_n "(cached) " >&6
13191 else
13192       # Double quotes because CXXCPP needs to be expanded
13193     for CXXCPP in "$CXX -E" "/lib/cpp"
13194     do
13195       ac_preproc_ok=false
13196 for ac_cxx_preproc_warn_flag in '' yes
13197 do
13198   # Use a header file that comes with gcc, so configuring glibc
13199   # with a fresh cross-compiler works.
13200   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13201   # <limits.h> exists even on freestanding compilers.
13202   # On the NeXT, cc -E runs the code through the compiler's parser,
13203   # not just through cpp. "Syntax error" is here to catch this case.
13204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h.  */
13206 #ifdef __STDC__
13207 # include <limits.h>
13208 #else
13209 # include <assert.h>
13210 #endif
13211                      Syntax error
13212 _ACEOF
13213 if ac_fn_cxx_try_cpp "$LINENO"; then :
13214
13215 else
13216   # Broken: fails on valid input.
13217 continue
13218 fi
13219 rm -f conftest.err conftest.i conftest.$ac_ext
13220
13221   # OK, works on sane cases.  Now check whether nonexistent headers
13222   # can be detected and how.
13223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h.  */
13225 #include <ac_nonexistent.h>
13226 _ACEOF
13227 if ac_fn_cxx_try_cpp "$LINENO"; then :
13228   # Broken: success on invalid input.
13229 continue
13230 else
13231   # Passes both tests.
13232 ac_preproc_ok=:
13233 break
13234 fi
13235 rm -f conftest.err conftest.i conftest.$ac_ext
13236
13237 done
13238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13239 rm -f conftest.i conftest.err conftest.$ac_ext
13240 if $ac_preproc_ok; then :
13241   break
13242 fi
13243
13244     done
13245     ac_cv_prog_CXXCPP=$CXXCPP
13246
13247 fi
13248   CXXCPP=$ac_cv_prog_CXXCPP
13249 else
13250   ac_cv_prog_CXXCPP=$CXXCPP
13251 fi
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13253 $as_echo "$CXXCPP" >&6; }
13254 ac_preproc_ok=false
13255 for ac_cxx_preproc_warn_flag in '' yes
13256 do
13257   # Use a header file that comes with gcc, so configuring glibc
13258   # with a fresh cross-compiler works.
13259   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13260   # <limits.h> exists even on freestanding compilers.
13261   # On the NeXT, cc -E runs the code through the compiler's parser,
13262   # not just through cpp. "Syntax error" is here to catch this case.
13263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h.  */
13265 #ifdef __STDC__
13266 # include <limits.h>
13267 #else
13268 # include <assert.h>
13269 #endif
13270                      Syntax error
13271 _ACEOF
13272 if ac_fn_cxx_try_cpp "$LINENO"; then :
13273
13274 else
13275   # Broken: fails on valid input.
13276 continue
13277 fi
13278 rm -f conftest.err conftest.i conftest.$ac_ext
13279
13280   # OK, works on sane cases.  Now check whether nonexistent headers
13281   # can be detected and how.
13282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h.  */
13284 #include <ac_nonexistent.h>
13285 _ACEOF
13286 if ac_fn_cxx_try_cpp "$LINENO"; then :
13287   # Broken: success on invalid input.
13288 continue
13289 else
13290   # Passes both tests.
13291 ac_preproc_ok=:
13292 break
13293 fi
13294 rm -f conftest.err conftest.i conftest.$ac_ext
13295
13296 done
13297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13298 rm -f conftest.i conftest.err conftest.$ac_ext
13299 if $ac_preproc_ok; then :
13300
13301 else
13302   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13304 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13305 See \`config.log' for more details" "$LINENO" 5; }
13306 fi
13307
13308 ac_ext=c
13309 ac_cpp='$CPP $CPPFLAGS'
13310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13313
13314 else
13315   _lt_caught_CXX_error=yes
13316 fi
13317
13318 ac_ext=cpp
13319 ac_cpp='$CXXCPP $CPPFLAGS'
13320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13323
13324 archive_cmds_need_lc_CXX=no
13325 allow_undefined_flag_CXX=
13326 always_export_symbols_CXX=no
13327 archive_expsym_cmds_CXX=
13328 compiler_needs_object_CXX=no
13329 export_dynamic_flag_spec_CXX=
13330 hardcode_direct_CXX=no
13331 hardcode_direct_absolute_CXX=no
13332 hardcode_libdir_flag_spec_CXX=
13333 hardcode_libdir_flag_spec_ld_CXX=
13334 hardcode_libdir_separator_CXX=
13335 hardcode_minus_L_CXX=no
13336 hardcode_shlibpath_var_CXX=unsupported
13337 hardcode_automatic_CXX=no
13338 inherit_rpath_CXX=no
13339 module_cmds_CXX=
13340 module_expsym_cmds_CXX=
13341 link_all_deplibs_CXX=unknown
13342 old_archive_cmds_CXX=$old_archive_cmds
13343 reload_flag_CXX=$reload_flag
13344 reload_cmds_CXX=$reload_cmds
13345 no_undefined_flag_CXX=
13346 whole_archive_flag_spec_CXX=
13347 enable_shared_with_static_runtimes_CXX=no
13348
13349 # Source file extension for C++ test sources.
13350 ac_ext=cpp
13351
13352 # Object file extension for compiled C++ test sources.
13353 objext=o
13354 objext_CXX=$objext
13355
13356 # No sense in running all these tests if we already determined that
13357 # the CXX compiler isn't working.  Some variables (like enable_shared)
13358 # are currently assumed to apply to all compilers on this platform,
13359 # and will be corrupted by setting them based on a non-working compiler.
13360 if test "$_lt_caught_CXX_error" != yes; then
13361   # Code to be used in simple compile tests
13362   lt_simple_compile_test_code="int some_variable = 0;"
13363
13364   # Code to be used in simple link tests
13365   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13366
13367   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13368
13369
13370
13371
13372
13373
13374 # If no C compiler was specified, use CC.
13375 LTCC=${LTCC-"$CC"}
13376
13377 # If no C compiler flags were specified, use CFLAGS.
13378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13379
13380 # Allow CC to be a program name with arguments.
13381 compiler=$CC
13382
13383
13384   # save warnings/boilerplate of simple test code
13385   ac_outfile=conftest.$ac_objext
13386 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13388 _lt_compiler_boilerplate=`cat conftest.err`
13389 $RM conftest*
13390
13391   ac_outfile=conftest.$ac_objext
13392 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13394 _lt_linker_boilerplate=`cat conftest.err`
13395 $RM -r conftest*
13396
13397
13398   # Allow CC to be a program name with arguments.
13399   lt_save_CC=$CC
13400   lt_save_CFLAGS=$CFLAGS
13401   lt_save_LD=$LD
13402   lt_save_GCC=$GCC
13403   GCC=$GXX
13404   lt_save_with_gnu_ld=$with_gnu_ld
13405   lt_save_path_LD=$lt_cv_path_LD
13406   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13407     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13408   else
13409     $as_unset lt_cv_prog_gnu_ld
13410   fi
13411   if test -n "${lt_cv_path_LDCXX+set}"; then
13412     lt_cv_path_LD=$lt_cv_path_LDCXX
13413   else
13414     $as_unset lt_cv_path_LD
13415   fi
13416   test -z "${LDCXX+set}" || LD=$LDCXX
13417   CC=${CXX-"c++"}
13418   CFLAGS=$CXXFLAGS
13419   compiler=$CC
13420   compiler_CXX=$CC
13421   for cc_temp in $compiler""; do
13422   case $cc_temp in
13423     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13424     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13425     \-*) ;;
13426     *) break;;
13427   esac
13428 done
13429 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13430
13431
13432   if test -n "$compiler"; then
13433     # We don't want -fno-exception when compiling C++ code, so set the
13434     # no_builtin_flag separately
13435     if test "$GXX" = yes; then
13436       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13437     else
13438       lt_prog_compiler_no_builtin_flag_CXX=
13439     fi
13440
13441     if test "$GXX" = yes; then
13442       # Set up default GNU C++ configuration
13443
13444
13445
13446 # Check whether --with-gnu-ld was given.
13447 if test "${with_gnu_ld+set}" = set; then :
13448   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13449 else
13450   with_gnu_ld=no
13451 fi
13452
13453 ac_prog=ld
13454 if test "$GCC" = yes; then
13455   # Check if gcc -print-prog-name=ld gives a path.
13456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13457 $as_echo_n "checking for ld used by $CC... " >&6; }
13458   case $host in
13459   *-*-mingw*)
13460     # gcc leaves a trailing carriage return which upsets mingw
13461     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13462   *)
13463     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13464   esac
13465   case $ac_prog in
13466     # Accept absolute paths.
13467     [\\/]* | ?:[\\/]*)
13468       re_direlt='/[^/][^/]*/\.\./'
13469       # Canonicalize the pathname of ld
13470       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13471       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13472         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13473       done
13474       test -z "$LD" && LD="$ac_prog"
13475       ;;
13476   "")
13477     # If it fails, then pretend we aren't using GCC.
13478     ac_prog=ld
13479     ;;
13480   *)
13481     # If it is relative, then search for the first ld in PATH.
13482     with_gnu_ld=unknown
13483     ;;
13484   esac
13485 elif test "$with_gnu_ld" = yes; then
13486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13487 $as_echo_n "checking for GNU ld... " >&6; }
13488 else
13489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13490 $as_echo_n "checking for non-GNU ld... " >&6; }
13491 fi
13492 if ${lt_cv_path_LD+:} false; then :
13493   $as_echo_n "(cached) " >&6
13494 else
13495   if test -z "$LD"; then
13496   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13497   for ac_dir in $PATH; do
13498     IFS="$lt_save_ifs"
13499     test -z "$ac_dir" && ac_dir=.
13500     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13501       lt_cv_path_LD="$ac_dir/$ac_prog"
13502       # Check to see if the program is GNU ld.  I'd rather use --version,
13503       # but apparently some variants of GNU ld only accept -v.
13504       # Break only if it was the GNU/non-GNU ld that we prefer.
13505       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13506       *GNU* | *'with BFD'*)
13507         test "$with_gnu_ld" != no && break
13508         ;;
13509       *)
13510         test "$with_gnu_ld" != yes && break
13511         ;;
13512       esac
13513     fi
13514   done
13515   IFS="$lt_save_ifs"
13516 else
13517   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13518 fi
13519 fi
13520
13521 LD="$lt_cv_path_LD"
13522 if test -n "$LD"; then
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13524 $as_echo "$LD" >&6; }
13525 else
13526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13528 fi
13529 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13531 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13532 if ${lt_cv_prog_gnu_ld+:} false; then :
13533   $as_echo_n "(cached) " >&6
13534 else
13535   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13536 case `$LD -v 2>&1 </dev/null` in
13537 *GNU* | *'with BFD'*)
13538   lt_cv_prog_gnu_ld=yes
13539   ;;
13540 *)
13541   lt_cv_prog_gnu_ld=no
13542   ;;
13543 esac
13544 fi
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13546 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13547 with_gnu_ld=$lt_cv_prog_gnu_ld
13548
13549
13550
13551
13552
13553
13554
13555       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13556       # archiving commands below assume that GNU ld is being used.
13557       if test "$with_gnu_ld" = yes; then
13558         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13559         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'
13560
13561         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13562         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13563
13564         # If archive_cmds runs LD, not CC, wlarc should be empty
13565         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13566         #     investigate it a little bit more. (MM)
13567         wlarc='${wl}'
13568
13569         # ancient GNU ld didn't support --whole-archive et. al.
13570         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13571           $GREP 'no-whole-archive' > /dev/null; then
13572           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13573         else
13574           whole_archive_flag_spec_CXX=
13575         fi
13576       else
13577         with_gnu_ld=no
13578         wlarc=
13579
13580         # A generic and very simple default shared library creation
13581         # command for GNU C++ for the case where it uses the native
13582         # linker, instead of GNU ld.  If possible, this setting should
13583         # overridden to take advantage of the native linker features on
13584         # the platform it is being used on.
13585         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13586       fi
13587
13588       # Commands to make compiler produce verbose output that lists
13589       # what "hidden" libraries, object files and flags are used when
13590       # linking a shared library.
13591       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13592
13593     else
13594       GXX=no
13595       with_gnu_ld=no
13596       wlarc=
13597     fi
13598
13599     # PORTME: fill in a description of your system's C++ link characteristics
13600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13601 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13602     ld_shlibs_CXX=yes
13603     case $host_os in
13604       aix3*)
13605         # FIXME: insert proper C++ library support
13606         ld_shlibs_CXX=no
13607         ;;
13608       aix[4-9]*)
13609         if test "$host_cpu" = ia64; then
13610           # On IA64, the linker does run time linking by default, so we don't
13611           # have to do anything special.
13612           aix_use_runtimelinking=no
13613           exp_sym_flag='-Bexport'
13614           no_entry_flag=""
13615         else
13616           aix_use_runtimelinking=no
13617
13618           # Test if we are trying to use run time linking or normal
13619           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13620           # need to do runtime linking.
13621           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13622             for ld_flag in $LDFLAGS; do
13623               case $ld_flag in
13624               *-brtl*)
13625                 aix_use_runtimelinking=yes
13626                 break
13627                 ;;
13628               esac
13629             done
13630             ;;
13631           esac
13632
13633           exp_sym_flag='-bexport'
13634           no_entry_flag='-bnoentry'
13635         fi
13636
13637         # When large executables or shared objects are built, AIX ld can
13638         # have problems creating the table of contents.  If linking a library
13639         # or program results in "error TOC overflow" add -mminimal-toc to
13640         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13641         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13642
13643         archive_cmds_CXX=''
13644         hardcode_direct_CXX=yes
13645         hardcode_direct_absolute_CXX=yes
13646         hardcode_libdir_separator_CXX=':'
13647         link_all_deplibs_CXX=yes
13648         file_list_spec_CXX='${wl}-f,'
13649
13650         if test "$GXX" = yes; then
13651           case $host_os in aix4.[012]|aix4.[012].*)
13652           # We only want to do this on AIX 4.2 and lower, the check
13653           # below for broken collect2 doesn't work under 4.3+
13654           collect2name=`${CC} -print-prog-name=collect2`
13655           if test -f "$collect2name" &&
13656              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13657           then
13658             # We have reworked collect2
13659             :
13660           else
13661             # We have old collect2
13662             hardcode_direct_CXX=unsupported
13663             # It fails to find uninstalled libraries when the uninstalled
13664             # path is not listed in the libpath.  Setting hardcode_minus_L
13665             # to unsupported forces relinking
13666             hardcode_minus_L_CXX=yes
13667             hardcode_libdir_flag_spec_CXX='-L$libdir'
13668             hardcode_libdir_separator_CXX=
13669           fi
13670           esac
13671           shared_flag='-shared'
13672           if test "$aix_use_runtimelinking" = yes; then
13673             shared_flag="$shared_flag "'${wl}-G'
13674           fi
13675         else
13676           # not using gcc
13677           if test "$host_cpu" = ia64; then
13678           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13679           # chokes on -Wl,-G. The following line is correct:
13680           shared_flag='-G'
13681           else
13682             if test "$aix_use_runtimelinking" = yes; then
13683               shared_flag='${wl}-G'
13684             else
13685               shared_flag='${wl}-bM:SRE'
13686             fi
13687           fi
13688         fi
13689
13690         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13691         # It seems that -bexpall does not export symbols beginning with
13692         # underscore (_), so it is better to generate a list of symbols to
13693         # export.
13694         always_export_symbols_CXX=yes
13695         if test "$aix_use_runtimelinking" = yes; then
13696           # Warning - without using the other runtime loading flags (-brtl),
13697           # -berok will link without error, but may produce a broken library.
13698           allow_undefined_flag_CXX='-berok'
13699           # Determine the default libpath from the value encoded in an empty
13700           # executable.
13701           if test "${lt_cv_aix_libpath+set}" = set; then
13702   aix_libpath=$lt_cv_aix_libpath
13703 else
13704   if ${lt_cv_aix_libpath__CXX+:} false; then :
13705   $as_echo_n "(cached) " >&6
13706 else
13707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h.  */
13709
13710 int
13711 main ()
13712 {
13713
13714   ;
13715   return 0;
13716 }
13717 _ACEOF
13718 if ac_fn_cxx_try_link "$LINENO"; then :
13719
13720   lt_aix_libpath_sed='
13721       /Import File Strings/,/^$/ {
13722           /^0/ {
13723               s/^0  *\([^ ]*\) *$/\1/
13724               p
13725           }
13726       }'
13727   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13728   # Check for a 64-bit object if we didn't find anything.
13729   if test -z "$lt_cv_aix_libpath__CXX"; then
13730     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13731   fi
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext \
13734     conftest$ac_exeext conftest.$ac_ext
13735   if test -z "$lt_cv_aix_libpath__CXX"; then
13736     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13737   fi
13738
13739 fi
13740
13741   aix_libpath=$lt_cv_aix_libpath__CXX
13742 fi
13743
13744           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13745
13746           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"
13747         else
13748           if test "$host_cpu" = ia64; then
13749             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13750             allow_undefined_flag_CXX="-z nodefs"
13751             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"
13752           else
13753             # Determine the default libpath from the value encoded in an
13754             # empty executable.
13755             if test "${lt_cv_aix_libpath+set}" = set; then
13756   aix_libpath=$lt_cv_aix_libpath
13757 else
13758   if ${lt_cv_aix_libpath__CXX+:} false; then :
13759   $as_echo_n "(cached) " >&6
13760 else
13761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h.  */
13763
13764 int
13765 main ()
13766 {
13767
13768   ;
13769   return 0;
13770 }
13771 _ACEOF
13772 if ac_fn_cxx_try_link "$LINENO"; then :
13773
13774   lt_aix_libpath_sed='
13775       /Import File Strings/,/^$/ {
13776           /^0/ {
13777               s/^0  *\([^ ]*\) *$/\1/
13778               p
13779           }
13780       }'
13781   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13782   # Check for a 64-bit object if we didn't find anything.
13783   if test -z "$lt_cv_aix_libpath__CXX"; then
13784     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13785   fi
13786 fi
13787 rm -f core conftest.err conftest.$ac_objext \
13788     conftest$ac_exeext conftest.$ac_ext
13789   if test -z "$lt_cv_aix_libpath__CXX"; then
13790     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13791   fi
13792
13793 fi
13794
13795   aix_libpath=$lt_cv_aix_libpath__CXX
13796 fi
13797
13798             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13799             # Warning - without using the other run time loading flags,
13800             # -berok will link without error, but may produce a broken library.
13801             no_undefined_flag_CXX=' ${wl}-bernotok'
13802             allow_undefined_flag_CXX=' ${wl}-berok'
13803             if test "$with_gnu_ld" = yes; then
13804               # We only use this code for GNU lds that support --whole-archive.
13805               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13806             else
13807               # Exported symbols can be pulled into shared objects from archives
13808               whole_archive_flag_spec_CXX='$convenience'
13809             fi
13810             archive_cmds_need_lc_CXX=yes
13811             # This is similar to how AIX traditionally builds its shared
13812             # libraries.
13813             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'
13814           fi
13815         fi
13816         ;;
13817
13818       beos*)
13819         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13820           allow_undefined_flag_CXX=unsupported
13821           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13822           # support --undefined.  This deserves some investigation.  FIXME
13823           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824         else
13825           ld_shlibs_CXX=no
13826         fi
13827         ;;
13828
13829       chorus*)
13830         case $cc_basename in
13831           *)
13832           # FIXME: insert proper C++ library support
13833           ld_shlibs_CXX=no
13834           ;;
13835         esac
13836         ;;
13837
13838       cygwin* | mingw* | pw32* | cegcc*)
13839         case $GXX,$cc_basename in
13840         ,cl* | no,cl*)
13841           # Native MSVC
13842           # hardcode_libdir_flag_spec is actually meaningless, as there is
13843           # no search path for DLLs.
13844           hardcode_libdir_flag_spec_CXX=' '
13845           allow_undefined_flag_CXX=unsupported
13846           always_export_symbols_CXX=yes
13847           file_list_spec_CXX='@'
13848           # Tell ltmain to make .lib files, not .a files.
13849           libext=lib
13850           # Tell ltmain to make .dll files, not .so files.
13851           shrext_cmds=".dll"
13852           # FIXME: Setting linknames here is a bad hack.
13853           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13854           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13855               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13856             else
13857               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13858             fi~
13859             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13860             linknames='
13861           # The linker will not automatically build a static lib if we build a DLL.
13862           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13863           enable_shared_with_static_runtimes_CXX=yes
13864           # Don't use ranlib
13865           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13866           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13867             lt_tool_outputfile="@TOOL_OUTPUT@"~
13868             case $lt_outputfile in
13869               *.exe|*.EXE) ;;
13870               *)
13871                 lt_outputfile="$lt_outputfile.exe"
13872                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13873                 ;;
13874             esac~
13875             func_to_tool_file "$lt_outputfile"~
13876             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13877               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13878               $RM "$lt_outputfile.manifest";
13879             fi'
13880           ;;
13881         *)
13882           # g++
13883           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13884           # as there is no search path for DLLs.
13885           hardcode_libdir_flag_spec_CXX='-L$libdir'
13886           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13887           allow_undefined_flag_CXX=unsupported
13888           always_export_symbols_CXX=no
13889           enable_shared_with_static_runtimes_CXX=yes
13890
13891           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13892             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'
13893             # If the export-symbols file already is a .def file (1st line
13894             # is EXPORTS), use it as is; otherwise, prepend...
13895             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13896               cp $export_symbols $output_objdir/$soname.def;
13897             else
13898               echo EXPORTS > $output_objdir/$soname.def;
13899               cat $export_symbols >> $output_objdir/$soname.def;
13900             fi~
13901             $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'
13902           else
13903             ld_shlibs_CXX=no
13904           fi
13905           ;;
13906         esac
13907         ;;
13908       darwin* | rhapsody*)
13909
13910
13911   archive_cmds_need_lc_CXX=no
13912   hardcode_direct_CXX=no
13913   hardcode_automatic_CXX=yes
13914   hardcode_shlibpath_var_CXX=unsupported
13915   if test "$lt_cv_ld_force_load" = "yes"; then
13916     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\"`'
13917   else
13918     whole_archive_flag_spec_CXX=''
13919   fi
13920   link_all_deplibs_CXX=yes
13921   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13922   case $cc_basename in
13923      ifort*) _lt_dar_can_shared=yes ;;
13924      *) _lt_dar_can_shared=$GCC ;;
13925   esac
13926   if test "$_lt_dar_can_shared" = "yes"; then
13927     output_verbose_link_cmd=func_echo_all
13928     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}"
13929     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13930     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}"
13931     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}"
13932        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13933       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}"
13934       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}"
13935     fi
13936
13937   else
13938   ld_shlibs_CXX=no
13939   fi
13940
13941         ;;
13942
13943       dgux*)
13944         case $cc_basename in
13945           ec++*)
13946             # FIXME: insert proper C++ library support
13947             ld_shlibs_CXX=no
13948             ;;
13949           ghcx*)
13950             # Green Hills C++ Compiler
13951             # FIXME: insert proper C++ library support
13952             ld_shlibs_CXX=no
13953             ;;
13954           *)
13955             # FIXME: insert proper C++ library support
13956             ld_shlibs_CXX=no
13957             ;;
13958         esac
13959         ;;
13960
13961       freebsd[12]*)
13962         # C++ shared libraries reported to be fairly broken before
13963         # switch to ELF
13964         ld_shlibs_CXX=no
13965         ;;
13966
13967       freebsd-elf*)
13968         archive_cmds_need_lc_CXX=no
13969         ;;
13970
13971       freebsd* | dragonfly*)
13972         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13973         # conventions
13974         ld_shlibs_CXX=yes
13975         ;;
13976
13977       gnu*)
13978         ;;
13979
13980       haiku*)
13981         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13982         link_all_deplibs_CXX=yes
13983         ;;
13984
13985       hpux9*)
13986         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13987         hardcode_libdir_separator_CXX=:
13988         export_dynamic_flag_spec_CXX='${wl}-E'
13989         hardcode_direct_CXX=yes
13990         hardcode_minus_L_CXX=yes # Not in the search PATH,
13991                                              # but as the default
13992                                              # location of the library.
13993
13994         case $cc_basename in
13995           CC*)
13996             # FIXME: insert proper C++ library support
13997             ld_shlibs_CXX=no
13998             ;;
13999           aCC*)
14000             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'
14001             # Commands to make compiler produce verbose output that lists
14002             # what "hidden" libraries, object files and flags are used when
14003             # linking a shared library.
14004             #
14005             # There doesn't appear to be a way to prevent this compiler from
14006             # explicitly linking system object files so we need to strip them
14007             # from the output so that they don't get included in the library
14008             # dependencies.
14009             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"'
14010             ;;
14011           *)
14012             if test "$GXX" = yes; then
14013               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'
14014             else
14015               # FIXME: insert proper C++ library support
14016               ld_shlibs_CXX=no
14017             fi
14018             ;;
14019         esac
14020         ;;
14021
14022       hpux10*|hpux11*)
14023         if test $with_gnu_ld = no; then
14024           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14025           hardcode_libdir_separator_CXX=:
14026
14027           case $host_cpu in
14028             hppa*64*|ia64*)
14029               ;;
14030             *)
14031               export_dynamic_flag_spec_CXX='${wl}-E'
14032               ;;
14033           esac
14034         fi
14035         case $host_cpu in
14036           hppa*64*|ia64*)
14037             hardcode_direct_CXX=no
14038             hardcode_shlibpath_var_CXX=no
14039             ;;
14040           *)
14041             hardcode_direct_CXX=yes
14042             hardcode_direct_absolute_CXX=yes
14043             hardcode_minus_L_CXX=yes # Not in the search PATH,
14044                                                  # but as the default
14045                                                  # location of the library.
14046             ;;
14047         esac
14048
14049         case $cc_basename in
14050           CC*)
14051             # FIXME: insert proper C++ library support
14052             ld_shlibs_CXX=no
14053             ;;
14054           aCC*)
14055             case $host_cpu in
14056               hppa*64*)
14057                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14058                 ;;
14059               ia64*)
14060                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14061                 ;;
14062               *)
14063                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14064                 ;;
14065             esac
14066             # Commands to make compiler produce verbose output that lists
14067             # what "hidden" libraries, object files and flags are used when
14068             # linking a shared library.
14069             #
14070             # There doesn't appear to be a way to prevent this compiler from
14071             # explicitly linking system object files so we need to strip them
14072             # from the output so that they don't get included in the library
14073             # dependencies.
14074             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"'
14075             ;;
14076           *)
14077             if test "$GXX" = yes; then
14078               if test $with_gnu_ld = no; then
14079                 case $host_cpu in
14080                   hppa*64*)
14081                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14082                     ;;
14083                   ia64*)
14084                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14085                     ;;
14086                   *)
14087                     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'
14088                     ;;
14089                 esac
14090               fi
14091             else
14092               # FIXME: insert proper C++ library support
14093               ld_shlibs_CXX=no
14094             fi
14095             ;;
14096         esac
14097         ;;
14098
14099       interix[3-9]*)
14100         hardcode_direct_CXX=no
14101         hardcode_shlibpath_var_CXX=no
14102         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14103         export_dynamic_flag_spec_CXX='${wl}-E'
14104         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14105         # Instead, shared libraries are loaded at an image base (0x10000000 by
14106         # default) and relocated if they conflict, which is a slow very memory
14107         # consuming and fragmenting process.  To avoid this, we pick a random,
14108         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14109         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14110         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'
14111         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'
14112         ;;
14113       irix5* | irix6*)
14114         case $cc_basename in
14115           CC*)
14116             # SGI C++
14117             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'
14118
14119             # Archives containing C++ object files must be created using
14120             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14121             # necessary to make sure instantiated templates are included
14122             # in the archive.
14123             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14124             ;;
14125           *)
14126             if test "$GXX" = yes; then
14127               if test "$with_gnu_ld" = no; then
14128                 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'
14129               else
14130                 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'
14131               fi
14132             fi
14133             link_all_deplibs_CXX=yes
14134             ;;
14135         esac
14136         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14137         hardcode_libdir_separator_CXX=:
14138         inherit_rpath_CXX=yes
14139         ;;
14140
14141       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14142         case $cc_basename in
14143           KCC*)
14144             # Kuck and Associates, Inc. (KAI) C++ Compiler
14145
14146             # KCC will only create a shared library if the output file
14147             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14148             # to its proper name (with version) after linking.
14149             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'
14150             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'
14151             # Commands to make compiler produce verbose output that lists
14152             # what "hidden" libraries, object files and flags are used when
14153             # linking a shared library.
14154             #
14155             # There doesn't appear to be a way to prevent this compiler from
14156             # explicitly linking system object files so we need to strip them
14157             # from the output so that they don't get included in the library
14158             # dependencies.
14159             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"'
14160
14161             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14162             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14163
14164             # Archives containing C++ object files must be created using
14165             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14166             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14167             ;;
14168           icpc* | ecpc* )
14169             # Intel C++
14170             with_gnu_ld=yes
14171             # version 8.0 and above of icpc choke on multiply defined symbols
14172             # if we add $predep_objects and $postdep_objects, however 7.1 and
14173             # earlier do not add the objects themselves.
14174             case `$CC -V 2>&1` in
14175               *"Version 7."*)
14176                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14177                 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'
14178                 ;;
14179               *)  # Version 8.0 or newer
14180                 tmp_idyn=
14181                 case $host_cpu in
14182                   ia64*) tmp_idyn=' -i_dynamic';;
14183                 esac
14184                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14185                 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'
14186                 ;;
14187             esac
14188             archive_cmds_need_lc_CXX=no
14189             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14190             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14191             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14192             ;;
14193           pgCC* | pgcpp*)
14194             # Portland Group C++ compiler
14195             case `$CC -V` in
14196             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14197               prelink_cmds_CXX='tpldir=Template.dir~
14198                 rm -rf $tpldir~
14199                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14200                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14201               old_archive_cmds_CXX='tpldir=Template.dir~
14202                 rm -rf $tpldir~
14203                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14204                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14205                 $RANLIB $oldlib'
14206               archive_cmds_CXX='tpldir=Template.dir~
14207                 rm -rf $tpldir~
14208                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14209                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14210               archive_expsym_cmds_CXX='tpldir=Template.dir~
14211                 rm -rf $tpldir~
14212                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14213                 $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'
14214               ;;
14215             *) # Version 6 and above use weak symbols
14216               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14217               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'
14218               ;;
14219             esac
14220
14221             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14222             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14223             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'
14224             ;;
14225           cxx*)
14226             # Compaq C++
14227             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14228             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'
14229
14230             runpath_var=LD_RUN_PATH
14231             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14232             hardcode_libdir_separator_CXX=:
14233
14234             # Commands to make compiler produce verbose output that lists
14235             # what "hidden" libraries, object files and flags are used when
14236             # linking a shared library.
14237             #
14238             # There doesn't appear to be a way to prevent this compiler from
14239             # explicitly linking system object files so we need to strip them
14240             # from the output so that they don't get included in the library
14241             # dependencies.
14242             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'
14243             ;;
14244           xl* | mpixl* | bgxl*)
14245             # IBM XL 8.0 on PPC, with GNU ld
14246             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14247             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14248             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14249             if test "x$supports_anon_versioning" = xyes; then
14250               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14251                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14252                 echo "local: *; };" >> $output_objdir/$libname.ver~
14253                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14254             fi
14255             ;;
14256           *)
14257             case `$CC -V 2>&1 | sed 5q` in
14258             *Sun\ C*)
14259               # Sun C++ 5.9
14260               no_undefined_flag_CXX=' -zdefs'
14261               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14262               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'
14263               hardcode_libdir_flag_spec_CXX='-R$libdir'
14264               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'
14265               compiler_needs_object_CXX=yes
14266
14267               # Not sure whether something based on
14268               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14269               # would be better.
14270               output_verbose_link_cmd='func_echo_all'
14271
14272               # Archives containing C++ object files must be created using
14273               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14274               # necessary to make sure instantiated templates are included
14275               # in the archive.
14276               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14277               ;;
14278             esac
14279             ;;
14280         esac
14281         ;;
14282
14283       lynxos*)
14284         # FIXME: insert proper C++ library support
14285         ld_shlibs_CXX=no
14286         ;;
14287
14288       m88k*)
14289         # FIXME: insert proper C++ library support
14290         ld_shlibs_CXX=no
14291         ;;
14292
14293       mvs*)
14294         case $cc_basename in
14295           cxx*)
14296             # FIXME: insert proper C++ library support
14297             ld_shlibs_CXX=no
14298             ;;
14299           *)
14300             # FIXME: insert proper C++ library support
14301             ld_shlibs_CXX=no
14302             ;;
14303         esac
14304         ;;
14305
14306       netbsd*)
14307         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14308           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14309           wlarc=
14310           hardcode_libdir_flag_spec_CXX='-R$libdir'
14311           hardcode_direct_CXX=yes
14312           hardcode_shlibpath_var_CXX=no
14313         fi
14314         # Workaround some broken pre-1.5 toolchains
14315         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14316         ;;
14317
14318       *nto* | *qnx*)
14319         ld_shlibs_CXX=yes
14320         ;;
14321
14322       openbsd2*)
14323         # C++ shared libraries are fairly broken
14324         ld_shlibs_CXX=no
14325         ;;
14326
14327       openbsd*)
14328         if test -f /usr/libexec/ld.so; then
14329           hardcode_direct_CXX=yes
14330           hardcode_shlibpath_var_CXX=no
14331           hardcode_direct_absolute_CXX=yes
14332           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14333           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14334           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14335             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14336             export_dynamic_flag_spec_CXX='${wl}-E'
14337             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14338           fi
14339           output_verbose_link_cmd=func_echo_all
14340         else
14341           ld_shlibs_CXX=no
14342         fi
14343         ;;
14344
14345       osf3* | osf4* | osf5*)
14346         case $cc_basename in
14347           KCC*)
14348             # Kuck and Associates, Inc. (KAI) C++ Compiler
14349
14350             # KCC will only create a shared library if the output file
14351             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14352             # to its proper name (with version) after linking.
14353             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'
14354
14355             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14356             hardcode_libdir_separator_CXX=:
14357
14358             # Archives containing C++ object files must be created using
14359             # the KAI C++ compiler.
14360             case $host in
14361               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14362               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14363             esac
14364             ;;
14365           RCC*)
14366             # Rational C++ 2.4.1
14367             # FIXME: insert proper C++ library support
14368             ld_shlibs_CXX=no
14369             ;;
14370           cxx*)
14371             case $host in
14372               osf3*)
14373                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14374                 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'
14375                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14376                 ;;
14377               *)
14378                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14379                 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'
14380                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14381                   echo "-hidden">> $lib.exp~
14382                   $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~
14383                   $RM $lib.exp'
14384                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14385                 ;;
14386             esac
14387
14388             hardcode_libdir_separator_CXX=:
14389
14390             # Commands to make compiler produce verbose output that lists
14391             # what "hidden" libraries, object files and flags are used when
14392             # linking a shared library.
14393             #
14394             # There doesn't appear to be a way to prevent this compiler from
14395             # explicitly linking system object files so we need to strip them
14396             # from the output so that they don't get included in the library
14397             # dependencies.
14398             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"'
14399             ;;
14400           *)
14401             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14402               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14403               case $host in
14404                 osf3*)
14405                   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'
14406                   ;;
14407                 *)
14408                   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'
14409                   ;;
14410               esac
14411
14412               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14413               hardcode_libdir_separator_CXX=:
14414
14415               # Commands to make compiler produce verbose output that lists
14416               # what "hidden" libraries, object files and flags are used when
14417               # linking a shared library.
14418               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14419
14420             else
14421               # FIXME: insert proper C++ library support
14422               ld_shlibs_CXX=no
14423             fi
14424             ;;
14425         esac
14426         ;;
14427
14428       psos*)
14429         # FIXME: insert proper C++ library support
14430         ld_shlibs_CXX=no
14431         ;;
14432
14433       sunos4*)
14434         case $cc_basename in
14435           CC*)
14436             # Sun C++ 4.x
14437             # FIXME: insert proper C++ library support
14438             ld_shlibs_CXX=no
14439             ;;
14440           lcc*)
14441             # Lucid
14442             # FIXME: insert proper C++ library support
14443             ld_shlibs_CXX=no
14444             ;;
14445           *)
14446             # FIXME: insert proper C++ library support
14447             ld_shlibs_CXX=no
14448             ;;
14449         esac
14450         ;;
14451
14452       solaris*)
14453         case $cc_basename in
14454           CC* | sunCC*)
14455             # Sun C++ 4.2, 5.x and Centerline C++
14456             archive_cmds_need_lc_CXX=yes
14457             no_undefined_flag_CXX=' -zdefs'
14458             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14459             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14460               $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'
14461
14462             hardcode_libdir_flag_spec_CXX='-R$libdir'
14463             hardcode_shlibpath_var_CXX=no
14464             case $host_os in
14465               solaris2.[0-5] | solaris2.[0-5].*) ;;
14466               *)
14467                 # The compiler driver will combine and reorder linker options,
14468                 # but understands `-z linker_flag'.
14469                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14470                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14471                 ;;
14472             esac
14473             link_all_deplibs_CXX=yes
14474
14475             output_verbose_link_cmd='func_echo_all'
14476
14477             # Archives containing C++ object files must be created using
14478             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14479             # necessary to make sure instantiated templates are included
14480             # in the archive.
14481             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14482             ;;
14483           gcx*)
14484             # Green Hills C++ Compiler
14485             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14486
14487             # The C++ compiler must be used to create the archive.
14488             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14489             ;;
14490           *)
14491             # GNU C++ compiler with Solaris linker
14492             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14493               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14494               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14495                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14496                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14497                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14498
14499                 # Commands to make compiler produce verbose output that lists
14500                 # what "hidden" libraries, object files and flags are used when
14501                 # linking a shared library.
14502                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14503               else
14504                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14505                 # platform.
14506                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14507                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14508                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14509
14510                 # Commands to make compiler produce verbose output that lists
14511                 # what "hidden" libraries, object files and flags are used when
14512                 # linking a shared library.
14513                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14514               fi
14515
14516               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14517               case $host_os in
14518                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14519                 *)
14520                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14521                   ;;
14522               esac
14523             fi
14524             ;;
14525         esac
14526         ;;
14527
14528     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14529       no_undefined_flag_CXX='${wl}-z,text'
14530       archive_cmds_need_lc_CXX=no
14531       hardcode_shlibpath_var_CXX=no
14532       runpath_var='LD_RUN_PATH'
14533
14534       case $cc_basename in
14535         CC*)
14536           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14537           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14538           ;;
14539         *)
14540           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542           ;;
14543       esac
14544       ;;
14545
14546       sysv5* | sco3.2v5* | sco5v6*)
14547         # Note: We can NOT use -z defs as we might desire, because we do not
14548         # link with -lc, and that would cause any symbols used from libc to
14549         # always be unresolved, which means just about no library would
14550         # ever link correctly.  If we're not using GNU ld we use -z text
14551         # though, which does catch some bad symbols but isn't as heavy-handed
14552         # as -z defs.
14553         no_undefined_flag_CXX='${wl}-z,text'
14554         allow_undefined_flag_CXX='${wl}-z,nodefs'
14555         archive_cmds_need_lc_CXX=no
14556         hardcode_shlibpath_var_CXX=no
14557         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14558         hardcode_libdir_separator_CXX=':'
14559         link_all_deplibs_CXX=yes
14560         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14561         runpath_var='LD_RUN_PATH'
14562
14563         case $cc_basename in
14564           CC*)
14565             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14566             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14567             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14568               '"$old_archive_cmds_CXX"
14569             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14570               '"$reload_cmds_CXX"
14571             ;;
14572           *)
14573             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14574             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14575             ;;
14576         esac
14577       ;;
14578
14579       tandem*)
14580         case $cc_basename in
14581           NCC*)
14582             # NonStop-UX NCC 3.20
14583             # FIXME: insert proper C++ library support
14584             ld_shlibs_CXX=no
14585             ;;
14586           *)
14587             # FIXME: insert proper C++ library support
14588             ld_shlibs_CXX=no
14589             ;;
14590         esac
14591         ;;
14592
14593       vxworks*)
14594         # FIXME: insert proper C++ library support
14595         ld_shlibs_CXX=no
14596         ;;
14597
14598       *)
14599         # FIXME: insert proper C++ library support
14600         ld_shlibs_CXX=no
14601         ;;
14602     esac
14603
14604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14605 $as_echo "$ld_shlibs_CXX" >&6; }
14606     test "$ld_shlibs_CXX" = no && can_build_shared=no
14607
14608     GCC_CXX="$GXX"
14609     LD_CXX="$LD"
14610
14611     ## CAVEAT EMPTOR:
14612     ## There is no encapsulation within the following macros, do not change
14613     ## the running order or otherwise move them around unless you know exactly
14614     ## what you are doing...
14615     # Dependencies to place before and after the object being linked:
14616 predep_objects_CXX=
14617 postdep_objects_CXX=
14618 predeps_CXX=
14619 postdeps_CXX=
14620 compiler_lib_search_path_CXX=
14621
14622 cat > conftest.$ac_ext <<_LT_EOF
14623 class Foo
14624 {
14625 public:
14626   Foo (void) { a = 0; }
14627 private:
14628   int a;
14629 };
14630 _LT_EOF
14631
14632
14633 _lt_libdeps_save_CFLAGS=$CFLAGS
14634 case "$CC $CFLAGS " in #(
14635 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14636 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14637 esac
14638
14639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14640   (eval $ac_compile) 2>&5
14641   ac_status=$?
14642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643   test $ac_status = 0; }; then
14644   # Parse the compiler output and extract the necessary
14645   # objects, libraries and library flags.
14646
14647   # Sentinel used to keep track of whether or not we are before
14648   # the conftest object file.
14649   pre_test_object_deps_done=no
14650
14651   for p in `eval "$output_verbose_link_cmd"`; do
14652     case ${prev}${p} in
14653
14654     -L* | -R* | -l*)
14655        # Some compilers place space between "-{L,R}" and the path.
14656        # Remove the space.
14657        if test $p = "-L" ||
14658           test $p = "-R"; then
14659          prev=$p
14660          continue
14661        fi
14662
14663        # Expand the sysroot to ease extracting the directories later.
14664        if test -z "$prev"; then
14665          case $p in
14666          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14667          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14668          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14669          esac
14670        fi
14671        case $p in
14672        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14673        esac
14674        if test "$pre_test_object_deps_done" = no; then
14675          case ${prev} in
14676          -L | -R)
14677            # Internal compiler library paths should come after those
14678            # provided the user.  The postdeps already come after the
14679            # user supplied libs so there is no need to process them.
14680            if test -z "$compiler_lib_search_path_CXX"; then
14681              compiler_lib_search_path_CXX="${prev}${p}"
14682            else
14683              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14684            fi
14685            ;;
14686          # The "-l" case would never come before the object being
14687          # linked, so don't bother handling this case.
14688          esac
14689        else
14690          if test -z "$postdeps_CXX"; then
14691            postdeps_CXX="${prev}${p}"
14692          else
14693            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14694          fi
14695        fi
14696        prev=
14697        ;;
14698
14699     *.lto.$objext) ;; # Ignore GCC LTO objects
14700     *.$objext)
14701        # This assumes that the test object file only shows up
14702        # once in the compiler output.
14703        if test "$p" = "conftest.$objext"; then
14704          pre_test_object_deps_done=yes
14705          continue
14706        fi
14707
14708        if test "$pre_test_object_deps_done" = no; then
14709          if test -z "$predep_objects_CXX"; then
14710            predep_objects_CXX="$p"
14711          else
14712            predep_objects_CXX="$predep_objects_CXX $p"
14713          fi
14714        else
14715          if test -z "$postdep_objects_CXX"; then
14716            postdep_objects_CXX="$p"
14717          else
14718            postdep_objects_CXX="$postdep_objects_CXX $p"
14719          fi
14720        fi
14721        ;;
14722
14723     *) ;; # Ignore the rest.
14724
14725     esac
14726   done
14727
14728   # Clean up.
14729   rm -f a.out a.exe
14730 else
14731   echo "libtool.m4: error: problem compiling CXX test program"
14732 fi
14733
14734 $RM -f confest.$objext
14735 CFLAGS=$_lt_libdeps_save_CFLAGS
14736
14737 # PORTME: override above test on systems where it is broken
14738 case $host_os in
14739 interix[3-9]*)
14740   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14741   # hack all around it, let's just trust "g++" to DTRT.
14742   predep_objects_CXX=
14743   postdep_objects_CXX=
14744   postdeps_CXX=
14745   ;;
14746
14747 linux*)
14748   case `$CC -V 2>&1 | sed 5q` in
14749   *Sun\ C*)
14750     # Sun C++ 5.9
14751
14752     # The more standards-conforming stlport4 library is
14753     # incompatible with the Cstd library. Avoid specifying
14754     # it if it's in CXXFLAGS. Ignore libCrun as
14755     # -library=stlport4 depends on it.
14756     case " $CXX $CXXFLAGS " in
14757     *" -library=stlport4 "*)
14758       solaris_use_stlport4=yes
14759       ;;
14760     esac
14761
14762     if test "$solaris_use_stlport4" != yes; then
14763       postdeps_CXX='-library=Cstd -library=Crun'
14764     fi
14765     ;;
14766   esac
14767   ;;
14768
14769 solaris*)
14770   case $cc_basename in
14771   CC* | sunCC*)
14772     # The more standards-conforming stlport4 library is
14773     # incompatible with the Cstd library. Avoid specifying
14774     # it if it's in CXXFLAGS. Ignore libCrun as
14775     # -library=stlport4 depends on it.
14776     case " $CXX $CXXFLAGS " in
14777     *" -library=stlport4 "*)
14778       solaris_use_stlport4=yes
14779       ;;
14780     esac
14781
14782     # Adding this requires a known-good setup of shared libraries for
14783     # Sun compiler versions before 5.6, else PIC objects from an old
14784     # archive will be linked into the output, leading to subtle bugs.
14785     if test "$solaris_use_stlport4" != yes; then
14786       postdeps_CXX='-library=Cstd -library=Crun'
14787     fi
14788     ;;
14789   esac
14790   ;;
14791 esac
14792
14793
14794 case " $postdeps_CXX " in
14795 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14796 esac
14797  compiler_lib_search_dirs_CXX=
14798 if test -n "${compiler_lib_search_path_CXX}"; then
14799  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14800 fi
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832     lt_prog_compiler_wl_CXX=
14833 lt_prog_compiler_pic_CXX=
14834 lt_prog_compiler_static_CXX=
14835
14836
14837   # C++ specific cases for pic, static, wl, etc.
14838   if test "$GXX" = yes; then
14839     lt_prog_compiler_wl_CXX='-Wl,'
14840     lt_prog_compiler_static_CXX='-static'
14841
14842     case $host_os in
14843     aix*)
14844       # All AIX code is PIC.
14845       if test "$host_cpu" = ia64; then
14846         # AIX 5 now supports IA64 processor
14847         lt_prog_compiler_static_CXX='-Bstatic'
14848       fi
14849       ;;
14850
14851     amigaos*)
14852       case $host_cpu in
14853       powerpc)
14854             # see comment about AmigaOS4 .so support
14855             lt_prog_compiler_pic_CXX='-fPIC'
14856         ;;
14857       m68k)
14858             # FIXME: we need at least 68020 code to build shared libraries, but
14859             # adding the `-m68020' flag to GCC prevents building anything better,
14860             # like `-m68040'.
14861             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14862         ;;
14863       esac
14864       ;;
14865
14866     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14867       # PIC is the default for these OSes.
14868       ;;
14869     mingw* | cygwin* | os2* | pw32* | cegcc*)
14870       # This hack is so that the source file can tell whether it is being
14871       # built for inclusion in a dll (and should export symbols for example).
14872       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14873       # (--disable-auto-import) libraries
14874       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14875       ;;
14876     darwin* | rhapsody*)
14877       # PIC is the default on this platform
14878       # Common symbols not allowed in MH_DYLIB files
14879       lt_prog_compiler_pic_CXX='-fno-common'
14880       ;;
14881     *djgpp*)
14882       # DJGPP does not support shared libraries at all
14883       lt_prog_compiler_pic_CXX=
14884       ;;
14885     haiku*)
14886       # PIC is the default for Haiku.
14887       # The "-static" flag exists, but is broken.
14888       lt_prog_compiler_static_CXX=
14889       ;;
14890     interix[3-9]*)
14891       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14892       # Instead, we relocate shared libraries at runtime.
14893       ;;
14894     sysv4*MP*)
14895       if test -d /usr/nec; then
14896         lt_prog_compiler_pic_CXX=-Kconform_pic
14897       fi
14898       ;;
14899     hpux*)
14900       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14901       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14902       # sets the default TLS model and affects inlining.
14903       case $host_cpu in
14904       hppa*64*)
14905         ;;
14906       *)
14907         lt_prog_compiler_pic_CXX='-fPIC'
14908         ;;
14909       esac
14910       ;;
14911     *qnx* | *nto*)
14912       # QNX uses GNU C++, but need to define -shared option too, otherwise
14913       # it will coredump.
14914       lt_prog_compiler_pic_CXX='-fPIC -shared'
14915       ;;
14916     *)
14917       lt_prog_compiler_pic_CXX='-fPIC'
14918       ;;
14919     esac
14920   else
14921     case $host_os in
14922       aix[4-9]*)
14923         # All AIX code is PIC.
14924         if test "$host_cpu" = ia64; then
14925           # AIX 5 now supports IA64 processor
14926           lt_prog_compiler_static_CXX='-Bstatic'
14927         else
14928           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14929         fi
14930         ;;
14931       chorus*)
14932         case $cc_basename in
14933         cxch68*)
14934           # Green Hills C++ Compiler
14935           # _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"
14936           ;;
14937         esac
14938         ;;
14939       mingw* | cygwin* | os2* | pw32* | cegcc*)
14940         # This hack is so that the source file can tell whether it is being
14941         # built for inclusion in a dll (and should export symbols for example).
14942         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14943         ;;
14944       dgux*)
14945         case $cc_basename in
14946           ec++*)
14947             lt_prog_compiler_pic_CXX='-KPIC'
14948             ;;
14949           ghcx*)
14950             # Green Hills C++ Compiler
14951             lt_prog_compiler_pic_CXX='-pic'
14952             ;;
14953           *)
14954             ;;
14955         esac
14956         ;;
14957       freebsd* | dragonfly*)
14958         # FreeBSD uses GNU C++
14959         ;;
14960       hpux9* | hpux10* | hpux11*)
14961         case $cc_basename in
14962           CC*)
14963             lt_prog_compiler_wl_CXX='-Wl,'
14964             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14965             if test "$host_cpu" != ia64; then
14966               lt_prog_compiler_pic_CXX='+Z'
14967             fi
14968             ;;
14969           aCC*)
14970             lt_prog_compiler_wl_CXX='-Wl,'
14971             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14972             case $host_cpu in
14973             hppa*64*|ia64*)
14974               # +Z the default
14975               ;;
14976             *)
14977               lt_prog_compiler_pic_CXX='+Z'
14978               ;;
14979             esac
14980             ;;
14981           *)
14982             ;;
14983         esac
14984         ;;
14985       interix*)
14986         # This is c89, which is MS Visual C++ (no shared libs)
14987         # Anyone wants to do a port?
14988         ;;
14989       irix5* | irix6* | nonstopux*)
14990         case $cc_basename in
14991           CC*)
14992             lt_prog_compiler_wl_CXX='-Wl,'
14993             lt_prog_compiler_static_CXX='-non_shared'
14994             # CC pic flag -KPIC is the default.
14995             ;;
14996           *)
14997             ;;
14998         esac
14999         ;;
15000       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15001         case $cc_basename in
15002           KCC*)
15003             # KAI C++ Compiler
15004             lt_prog_compiler_wl_CXX='--backend -Wl,'
15005             lt_prog_compiler_pic_CXX='-fPIC'
15006             ;;
15007           ecpc* )
15008             # old Intel C++ for x86_64 which still supported -KPIC.
15009             lt_prog_compiler_wl_CXX='-Wl,'
15010             lt_prog_compiler_pic_CXX='-KPIC'
15011             lt_prog_compiler_static_CXX='-static'
15012             ;;
15013           icpc* )
15014             # Intel C++, used to be incompatible with GCC.
15015             # ICC 10 doesn't accept -KPIC any more.
15016             lt_prog_compiler_wl_CXX='-Wl,'
15017             lt_prog_compiler_pic_CXX='-fPIC'
15018             lt_prog_compiler_static_CXX='-static'
15019             ;;
15020           pgCC* | pgcpp*)
15021             # Portland Group C++ compiler
15022             lt_prog_compiler_wl_CXX='-Wl,'
15023             lt_prog_compiler_pic_CXX='-fpic'
15024             lt_prog_compiler_static_CXX='-Bstatic'
15025             ;;
15026           cxx*)
15027             # Compaq C++
15028             # Make sure the PIC flag is empty.  It appears that all Alpha
15029             # Linux and Compaq Tru64 Unix objects are PIC.
15030             lt_prog_compiler_pic_CXX=
15031             lt_prog_compiler_static_CXX='-non_shared'
15032             ;;
15033           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15034             # IBM XL 8.0, 9.0 on PPC and BlueGene
15035             lt_prog_compiler_wl_CXX='-Wl,'
15036             lt_prog_compiler_pic_CXX='-qpic'
15037             lt_prog_compiler_static_CXX='-qstaticlink'
15038             ;;
15039           *)
15040             case `$CC -V 2>&1 | sed 5q` in
15041             *Sun\ C*)
15042               # Sun C++ 5.9
15043               lt_prog_compiler_pic_CXX='-KPIC'
15044               lt_prog_compiler_static_CXX='-Bstatic'
15045               lt_prog_compiler_wl_CXX='-Qoption ld '
15046               ;;
15047             esac
15048             ;;
15049         esac
15050         ;;
15051       lynxos*)
15052         ;;
15053       m88k*)
15054         ;;
15055       mvs*)
15056         case $cc_basename in
15057           cxx*)
15058             lt_prog_compiler_pic_CXX='-W c,exportall'
15059             ;;
15060           *)
15061             ;;
15062         esac
15063         ;;
15064       netbsd*)
15065         ;;
15066       *qnx* | *nto*)
15067         # QNX uses GNU C++, but need to define -shared option too, otherwise
15068         # it will coredump.
15069         lt_prog_compiler_pic_CXX='-fPIC -shared'
15070         ;;
15071       osf3* | osf4* | osf5*)
15072         case $cc_basename in
15073           KCC*)
15074             lt_prog_compiler_wl_CXX='--backend -Wl,'
15075             ;;
15076           RCC*)
15077             # Rational C++ 2.4.1
15078             lt_prog_compiler_pic_CXX='-pic'
15079             ;;
15080           cxx*)
15081             # Digital/Compaq C++
15082             lt_prog_compiler_wl_CXX='-Wl,'
15083             # Make sure the PIC flag is empty.  It appears that all Alpha
15084             # Linux and Compaq Tru64 Unix objects are PIC.
15085             lt_prog_compiler_pic_CXX=
15086             lt_prog_compiler_static_CXX='-non_shared'
15087             ;;
15088           *)
15089             ;;
15090         esac
15091         ;;
15092       psos*)
15093         ;;
15094       solaris*)
15095         case $cc_basename in
15096           CC* | sunCC*)
15097             # Sun C++ 4.2, 5.x and Centerline C++
15098             lt_prog_compiler_pic_CXX='-KPIC'
15099             lt_prog_compiler_static_CXX='-Bstatic'
15100             lt_prog_compiler_wl_CXX='-Qoption ld '
15101             ;;
15102           gcx*)
15103             # Green Hills C++ Compiler
15104             lt_prog_compiler_pic_CXX='-PIC'
15105             ;;
15106           *)
15107             ;;
15108         esac
15109         ;;
15110       sunos4*)
15111         case $cc_basename in
15112           CC*)
15113             # Sun C++ 4.x
15114             lt_prog_compiler_pic_CXX='-pic'
15115             lt_prog_compiler_static_CXX='-Bstatic'
15116             ;;
15117           lcc*)
15118             # Lucid
15119             lt_prog_compiler_pic_CXX='-pic'
15120             ;;
15121           *)
15122             ;;
15123         esac
15124         ;;
15125       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15126         case $cc_basename in
15127           CC*)
15128             lt_prog_compiler_wl_CXX='-Wl,'
15129             lt_prog_compiler_pic_CXX='-KPIC'
15130             lt_prog_compiler_static_CXX='-Bstatic'
15131             ;;
15132         esac
15133         ;;
15134       tandem*)
15135         case $cc_basename in
15136           NCC*)
15137             # NonStop-UX NCC 3.20
15138             lt_prog_compiler_pic_CXX='-KPIC'
15139             ;;
15140           *)
15141             ;;
15142         esac
15143         ;;
15144       vxworks*)
15145         ;;
15146       *)
15147         lt_prog_compiler_can_build_shared_CXX=no
15148         ;;
15149     esac
15150   fi
15151
15152 case $host_os in
15153   # For platforms which do not support PIC, -DPIC is meaningless:
15154   *djgpp*)
15155     lt_prog_compiler_pic_CXX=
15156     ;;
15157   *)
15158     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15159     ;;
15160 esac
15161
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15163 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15164 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15165   $as_echo_n "(cached) " >&6
15166 else
15167   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15168 fi
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15170 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15171 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15172
15173 #
15174 # Check to make sure the PIC flag actually works.
15175 #
15176 if test -n "$lt_prog_compiler_pic_CXX"; then
15177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15178 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15179 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15180   $as_echo_n "(cached) " >&6
15181 else
15182   lt_cv_prog_compiler_pic_works_CXX=no
15183    ac_outfile=conftest.$ac_objext
15184    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15185    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15186    # Insert the option either (1) after the last *FLAGS variable, or
15187    # (2) before a word containing "conftest.", or (3) at the end.
15188    # Note that $ac_compile itself does not contain backslashes and begins
15189    # with a dollar sign (not a hyphen), so the echo should work correctly.
15190    # The option is referenced via a variable to avoid confusing sed.
15191    lt_compile=`echo "$ac_compile" | $SED \
15192    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15193    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15194    -e 's:$: $lt_compiler_flag:'`
15195    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15196    (eval "$lt_compile" 2>conftest.err)
15197    ac_status=$?
15198    cat conftest.err >&5
15199    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200    if (exit $ac_status) && test -s "$ac_outfile"; then
15201      # The compiler can only warn and ignore the option if not recognized
15202      # So say no if there are warnings other than the usual output.
15203      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15204      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15205      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15206        lt_cv_prog_compiler_pic_works_CXX=yes
15207      fi
15208    fi
15209    $RM conftest*
15210
15211 fi
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15213 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15214
15215 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15216     case $lt_prog_compiler_pic_CXX in
15217      "" | " "*) ;;
15218      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15219      esac
15220 else
15221     lt_prog_compiler_pic_CXX=
15222      lt_prog_compiler_can_build_shared_CXX=no
15223 fi
15224
15225 fi
15226
15227
15228
15229
15230
15231 #
15232 # Check to make sure the static flag actually works.
15233 #
15234 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15236 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15237 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15238   $as_echo_n "(cached) " >&6
15239 else
15240   lt_cv_prog_compiler_static_works_CXX=no
15241    save_LDFLAGS="$LDFLAGS"
15242    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15243    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15244    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15245      # The linker can only warn and ignore the option if not recognized
15246      # So say no if there are warnings
15247      if test -s conftest.err; then
15248        # Append any errors to the config.log.
15249        cat conftest.err 1>&5
15250        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15251        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15252        if diff conftest.exp conftest.er2 >/dev/null; then
15253          lt_cv_prog_compiler_static_works_CXX=yes
15254        fi
15255      else
15256        lt_cv_prog_compiler_static_works_CXX=yes
15257      fi
15258    fi
15259    $RM -r conftest*
15260    LDFLAGS="$save_LDFLAGS"
15261
15262 fi
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15264 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15265
15266 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15267     :
15268 else
15269     lt_prog_compiler_static_CXX=
15270 fi
15271
15272
15273
15274
15275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15276 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15277 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15278   $as_echo_n "(cached) " >&6
15279 else
15280   lt_cv_prog_compiler_c_o_CXX=no
15281    $RM -r conftest 2>/dev/null
15282    mkdir conftest
15283    cd conftest
15284    mkdir out
15285    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15286
15287    lt_compiler_flag="-o out/conftest2.$ac_objext"
15288    # Insert the option either (1) after the last *FLAGS variable, or
15289    # (2) before a word containing "conftest.", or (3) at the end.
15290    # Note that $ac_compile itself does not contain backslashes and begins
15291    # with a dollar sign (not a hyphen), so the echo should work correctly.
15292    lt_compile=`echo "$ac_compile" | $SED \
15293    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15294    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15295    -e 's:$: $lt_compiler_flag:'`
15296    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15297    (eval "$lt_compile" 2>out/conftest.err)
15298    ac_status=$?
15299    cat out/conftest.err >&5
15300    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15302    then
15303      # The compiler can only warn and ignore the option if not recognized
15304      # So say no if there are warnings
15305      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15306      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15307      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15308        lt_cv_prog_compiler_c_o_CXX=yes
15309      fi
15310    fi
15311    chmod u+w . 2>&5
15312    $RM conftest*
15313    # SGI C++ compiler will create directory out/ii_files/ for
15314    # template instantiation
15315    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15316    $RM out/* && rmdir out
15317    cd ..
15318    $RM -r conftest
15319    $RM conftest*
15320
15321 fi
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15323 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15324
15325
15326
15327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15328 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15329 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15330   $as_echo_n "(cached) " >&6
15331 else
15332   lt_cv_prog_compiler_c_o_CXX=no
15333    $RM -r conftest 2>/dev/null
15334    mkdir conftest
15335    cd conftest
15336    mkdir out
15337    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15338
15339    lt_compiler_flag="-o out/conftest2.$ac_objext"
15340    # Insert the option either (1) after the last *FLAGS variable, or
15341    # (2) before a word containing "conftest.", or (3) at the end.
15342    # Note that $ac_compile itself does not contain backslashes and begins
15343    # with a dollar sign (not a hyphen), so the echo should work correctly.
15344    lt_compile=`echo "$ac_compile" | $SED \
15345    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15346    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347    -e 's:$: $lt_compiler_flag:'`
15348    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15349    (eval "$lt_compile" 2>out/conftest.err)
15350    ac_status=$?
15351    cat out/conftest.err >&5
15352    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15354    then
15355      # The compiler can only warn and ignore the option if not recognized
15356      # So say no if there are warnings
15357      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15358      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15359      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15360        lt_cv_prog_compiler_c_o_CXX=yes
15361      fi
15362    fi
15363    chmod u+w . 2>&5
15364    $RM conftest*
15365    # SGI C++ compiler will create directory out/ii_files/ for
15366    # template instantiation
15367    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15368    $RM out/* && rmdir out
15369    cd ..
15370    $RM -r conftest
15371    $RM conftest*
15372
15373 fi
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15375 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15376
15377
15378
15379
15380 hard_links="nottested"
15381 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15382   # do not overwrite the value of need_locks provided by the user
15383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15384 $as_echo_n "checking if we can lock with hard links... " >&6; }
15385   hard_links=yes
15386   $RM conftest*
15387   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15388   touch conftest.a
15389   ln conftest.a conftest.b 2>&5 || hard_links=no
15390   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15392 $as_echo "$hard_links" >&6; }
15393   if test "$hard_links" = no; then
15394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15395 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15396     need_locks=warn
15397   fi
15398 else
15399   need_locks=no
15400 fi
15401
15402
15403
15404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15405 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15406
15407   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15408   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15409   case $host_os in
15410   aix[4-9]*)
15411     # If we're using GNU nm, then we don't want the "-C" option.
15412     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15413     # Also, AIX nm treats weak defined symbols like other global defined
15414     # symbols, whereas GNU nm marks them as "W".
15415     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15416       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'
15417     else
15418       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'
15419     fi
15420     ;;
15421   pw32*)
15422     export_symbols_cmds_CXX="$ltdll_cmds"
15423     ;;
15424   cygwin* | mingw* | cegcc*)
15425     case $cc_basename in
15426     cl*) ;;
15427     *)
15428       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'
15429       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15430       ;;
15431     esac
15432     ;;
15433   *)
15434     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15435     ;;
15436   esac
15437
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15439 $as_echo "$ld_shlibs_CXX" >&6; }
15440 test "$ld_shlibs_CXX" = no && can_build_shared=no
15441
15442 with_gnu_ld_CXX=$with_gnu_ld
15443
15444
15445
15446
15447
15448
15449 #
15450 # Do we need to explicitly link libc?
15451 #
15452 case "x$archive_cmds_need_lc_CXX" in
15453 x|xyes)
15454   # Assume -lc should be added
15455   archive_cmds_need_lc_CXX=yes
15456
15457   if test "$enable_shared" = yes && test "$GCC" = yes; then
15458     case $archive_cmds_CXX in
15459     *'~'*)
15460       # FIXME: we may have to deal with multi-command sequences.
15461       ;;
15462     '$CC '*)
15463       # Test whether the compiler implicitly links with -lc since on some
15464       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15465       # to ld, don't add -lc before -lgcc.
15466       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15467 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15468 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15469   $as_echo_n "(cached) " >&6
15470 else
15471   $RM conftest*
15472         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15473
15474         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15475   (eval $ac_compile) 2>&5
15476   ac_status=$?
15477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15478   test $ac_status = 0; } 2>conftest.err; then
15479           soname=conftest
15480           lib=conftest
15481           libobjs=conftest.$ac_objext
15482           deplibs=
15483           wl=$lt_prog_compiler_wl_CXX
15484           pic_flag=$lt_prog_compiler_pic_CXX
15485           compiler_flags=-v
15486           linker_flags=-v
15487           verstring=
15488           output_objdir=.
15489           libname=conftest
15490           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15491           allow_undefined_flag_CXX=
15492           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15493   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15494   ac_status=$?
15495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15496   test $ac_status = 0; }
15497           then
15498             lt_cv_archive_cmds_need_lc_CXX=no
15499           else
15500             lt_cv_archive_cmds_need_lc_CXX=yes
15501           fi
15502           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15503         else
15504           cat conftest.err 1>&5
15505         fi
15506         $RM conftest*
15507
15508 fi
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15510 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15511       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15512       ;;
15513     esac
15514   fi
15515   ;;
15516 esac
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15582 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15583
15584 library_names_spec=
15585 libname_spec='lib$name'
15586 soname_spec=
15587 shrext_cmds=".so"
15588 postinstall_cmds=
15589 postuninstall_cmds=
15590 finish_cmds=
15591 finish_eval=
15592 shlibpath_var=
15593 shlibpath_overrides_runpath=unknown
15594 version_type=none
15595 dynamic_linker="$host_os ld.so"
15596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15597 need_lib_prefix=unknown
15598 hardcode_into_libs=no
15599
15600 # when you set need_version to no, make sure it does not cause -set_version
15601 # flags to be left without arguments
15602 need_version=unknown
15603
15604 case $host_os in
15605 aix3*)
15606   version_type=linux
15607   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15608   shlibpath_var=LIBPATH
15609
15610   # AIX 3 has no versioning support, so we append a major version to the name.
15611   soname_spec='${libname}${release}${shared_ext}$major'
15612   ;;
15613
15614 aix[4-9]*)
15615   version_type=linux
15616   need_lib_prefix=no
15617   need_version=no
15618   hardcode_into_libs=yes
15619   if test "$host_cpu" = ia64; then
15620     # AIX 5 supports IA64
15621     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15622     shlibpath_var=LD_LIBRARY_PATH
15623   else
15624     # With GCC up to 2.95.x, collect2 would create an import file
15625     # for dependence libraries.  The import file would start with
15626     # the line `#! .'.  This would cause the generated library to
15627     # depend on `.', always an invalid library.  This was fixed in
15628     # development snapshots of GCC prior to 3.0.
15629     case $host_os in
15630       aix4 | aix4.[01] | aix4.[01].*)
15631       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15632            echo ' yes '
15633            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15634         :
15635       else
15636         can_build_shared=no
15637       fi
15638       ;;
15639     esac
15640     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15641     # soname into executable. Probably we can add versioning support to
15642     # collect2, so additional links can be useful in future.
15643     if test "$aix_use_runtimelinking" = yes; then
15644       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15645       # instead of lib<name>.a to let people know that these are not
15646       # typical AIX shared libraries.
15647       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648     else
15649       # We preserve .a as extension for shared libraries through AIX4.2
15650       # and later when we are not doing run time linking.
15651       library_names_spec='${libname}${release}.a $libname.a'
15652       soname_spec='${libname}${release}${shared_ext}$major'
15653     fi
15654     shlibpath_var=LIBPATH
15655   fi
15656   ;;
15657
15658 amigaos*)
15659   case $host_cpu in
15660   powerpc)
15661     # Since July 2007 AmigaOS4 officially supports .so libraries.
15662     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664     ;;
15665   m68k)
15666     library_names_spec='$libname.ixlibrary $libname.a'
15667     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15668     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'
15669     ;;
15670   esac
15671   ;;
15672
15673 beos*)
15674   library_names_spec='${libname}${shared_ext}'
15675   dynamic_linker="$host_os ld.so"
15676   shlibpath_var=LIBRARY_PATH
15677   ;;
15678
15679 bsdi[45]*)
15680   version_type=linux
15681   need_version=no
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683   soname_spec='${libname}${release}${shared_ext}$major'
15684   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15685   shlibpath_var=LD_LIBRARY_PATH
15686   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15687   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15688   # the default ld.so.conf also contains /usr/contrib/lib and
15689   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15690   # libtool to hard-code these into programs
15691   ;;
15692
15693 cygwin* | mingw* | pw32* | cegcc*)
15694   version_type=windows
15695   shrext_cmds=".dll"
15696   need_version=no
15697   need_lib_prefix=no
15698
15699   case $GCC,$cc_basename in
15700   yes,*)
15701     # gcc
15702     library_names_spec='$libname.dll.a'
15703     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15704     postinstall_cmds='base_file=`basename \${file}`~
15705       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15706       dldir=$destdir/`dirname \$dlpath`~
15707       test -d \$dldir || mkdir -p \$dldir~
15708       $install_prog $dir/$dlname \$dldir/$dlname~
15709       chmod a+x \$dldir/$dlname~
15710       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15711         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15712       fi'
15713     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15714       dlpath=$dir/\$dldll~
15715        $RM \$dlpath'
15716     shlibpath_overrides_runpath=yes
15717
15718     case $host_os in
15719     cygwin*)
15720       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15721       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15722
15723       ;;
15724     mingw* | cegcc*)
15725       # MinGW DLLs use traditional 'lib' prefix
15726       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15727       ;;
15728     pw32*)
15729       # pw32 DLLs use 'pw' prefix rather than 'lib'
15730       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15731       ;;
15732     esac
15733     dynamic_linker='Win32 ld.exe'
15734     ;;
15735
15736   *,cl*)
15737     # Native MSVC
15738     libname_spec='$name'
15739     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15740     library_names_spec='${libname}.dll.lib'
15741
15742     case $build_os in
15743     mingw*)
15744       sys_lib_search_path_spec=
15745       lt_save_ifs=$IFS
15746       IFS=';'
15747       for lt_path in $LIB
15748       do
15749         IFS=$lt_save_ifs
15750         # Let DOS variable expansion print the short 8.3 style file name.
15751         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15752         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15753       done
15754       IFS=$lt_save_ifs
15755       # Convert to MSYS style.
15756       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15757       ;;
15758     cygwin*)
15759       # Convert to unix form, then to dos form, then back to unix form
15760       # but this time dos style (no spaces!) so that the unix form looks
15761       # like /cygdrive/c/PROGRA~1:/cygdr...
15762       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15763       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15764       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15765       ;;
15766     *)
15767       sys_lib_search_path_spec="$LIB"
15768       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15769         # It is most probably a Windows format PATH.
15770         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15771       else
15772         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15773       fi
15774       # FIXME: find the short name or the path components, as spaces are
15775       # common. (e.g. "Program Files" -> "PROGRA~1")
15776       ;;
15777     esac
15778
15779     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15780     postinstall_cmds='base_file=`basename \${file}`~
15781       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15782       dldir=$destdir/`dirname \$dlpath`~
15783       test -d \$dldir || mkdir -p \$dldir~
15784       $install_prog $dir/$dlname \$dldir/$dlname'
15785     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15786       dlpath=$dir/\$dldll~
15787        $RM \$dlpath'
15788     shlibpath_overrides_runpath=yes
15789     dynamic_linker='Win32 link.exe'
15790     ;;
15791
15792   *)
15793     # Assume MSVC wrapper
15794     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15795     dynamic_linker='Win32 ld.exe'
15796     ;;
15797   esac
15798   # FIXME: first we should search . and the directory the executable is in
15799   shlibpath_var=PATH
15800   ;;
15801
15802 darwin* | rhapsody*)
15803   dynamic_linker="$host_os dyld"
15804   version_type=darwin
15805   need_lib_prefix=no
15806   need_version=no
15807   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15808   soname_spec='${libname}${release}${major}$shared_ext'
15809   shlibpath_overrides_runpath=yes
15810   shlibpath_var=DYLD_LIBRARY_PATH
15811   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15812
15813   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15814   ;;
15815
15816 dgux*)
15817   version_type=linux
15818   need_lib_prefix=no
15819   need_version=no
15820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15821   soname_spec='${libname}${release}${shared_ext}$major'
15822   shlibpath_var=LD_LIBRARY_PATH
15823   ;;
15824
15825 freebsd1*)
15826   dynamic_linker=no
15827   ;;
15828
15829 freebsd* | dragonfly*)
15830   # DragonFly does not have aout.  When/if they implement a new
15831   # versioning mechanism, adjust this.
15832   if test -x /usr/bin/objformat; then
15833     objformat=`/usr/bin/objformat`
15834   else
15835     case $host_os in
15836     freebsd[123]*) objformat=aout ;;
15837     *) objformat=elf ;;
15838     esac
15839   fi
15840   version_type=freebsd-$objformat
15841   case $version_type in
15842     freebsd-elf*)
15843       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15844       need_version=no
15845       need_lib_prefix=no
15846       ;;
15847     freebsd-*)
15848       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15849       need_version=yes
15850       ;;
15851   esac
15852   shlibpath_var=LD_LIBRARY_PATH
15853   case $host_os in
15854   freebsd2*)
15855     shlibpath_overrides_runpath=yes
15856     ;;
15857   freebsd3.[01]* | freebsdelf3.[01]*)
15858     shlibpath_overrides_runpath=yes
15859     hardcode_into_libs=yes
15860     ;;
15861   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15862   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15863     shlibpath_overrides_runpath=no
15864     hardcode_into_libs=yes
15865     ;;
15866   *) # from 4.6 on, and DragonFly
15867     shlibpath_overrides_runpath=yes
15868     hardcode_into_libs=yes
15869     ;;
15870   esac
15871   ;;
15872
15873 gnu*)
15874   version_type=linux
15875   need_lib_prefix=no
15876   need_version=no
15877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15878   soname_spec='${libname}${release}${shared_ext}$major'
15879   shlibpath_var=LD_LIBRARY_PATH
15880   hardcode_into_libs=yes
15881   ;;
15882
15883 haiku*)
15884   version_type=linux
15885   need_lib_prefix=no
15886   need_version=no
15887   dynamic_linker="$host_os runtime_loader"
15888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15889   soname_spec='${libname}${release}${shared_ext}$major'
15890   shlibpath_var=LIBRARY_PATH
15891   shlibpath_overrides_runpath=yes
15892   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15893   hardcode_into_libs=yes
15894   ;;
15895
15896 hpux9* | hpux10* | hpux11*)
15897   # Give a soname corresponding to the major version so that dld.sl refuses to
15898   # link against other versions.
15899   version_type=sunos
15900   need_lib_prefix=no
15901   need_version=no
15902   case $host_cpu in
15903   ia64*)
15904     shrext_cmds='.so'
15905     hardcode_into_libs=yes
15906     dynamic_linker="$host_os dld.so"
15907     shlibpath_var=LD_LIBRARY_PATH
15908     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
15912       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15913     else
15914       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15915     fi
15916     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15917     ;;
15918   hppa*64*)
15919     shrext_cmds='.sl'
15920     hardcode_into_libs=yes
15921     dynamic_linker="$host_os dld.sl"
15922     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15923     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925     soname_spec='${libname}${release}${shared_ext}$major'
15926     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15927     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15928     ;;
15929   *)
15930     shrext_cmds='.sl'
15931     dynamic_linker="$host_os dld.sl"
15932     shlibpath_var=SHLIB_PATH
15933     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15935     soname_spec='${libname}${release}${shared_ext}$major'
15936     ;;
15937   esac
15938   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15939   postinstall_cmds='chmod 555 $lib'
15940   # or fails outright, so override atomically:
15941   install_override_mode=555
15942   ;;
15943
15944 interix[3-9]*)
15945   version_type=linux
15946   need_lib_prefix=no
15947   need_version=no
15948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15949   soname_spec='${libname}${release}${shared_ext}$major'
15950   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15951   shlibpath_var=LD_LIBRARY_PATH
15952   shlibpath_overrides_runpath=no
15953   hardcode_into_libs=yes
15954   ;;
15955
15956 irix5* | irix6* | nonstopux*)
15957   case $host_os in
15958     nonstopux*) version_type=nonstopux ;;
15959     *)
15960         if test "$lt_cv_prog_gnu_ld" = yes; then
15961                 version_type=linux
15962         else
15963                 version_type=irix
15964         fi ;;
15965   esac
15966   need_lib_prefix=no
15967   need_version=no
15968   soname_spec='${libname}${release}${shared_ext}$major'
15969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15970   case $host_os in
15971   irix5* | nonstopux*)
15972     libsuff= shlibsuff=
15973     ;;
15974   *)
15975     case $LD in # libtool.m4 will add one of these switches to LD
15976     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15977       libsuff= shlibsuff= libmagic=32-bit;;
15978     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15979       libsuff=32 shlibsuff=N32 libmagic=N32;;
15980     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15981       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15982     *) libsuff= shlibsuff= libmagic=never-match;;
15983     esac
15984     ;;
15985   esac
15986   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15987   shlibpath_overrides_runpath=no
15988   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15989   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15990   hardcode_into_libs=yes
15991   ;;
15992
15993 # No shared lib support for Linux oldld, aout, or coff.
15994 linux*oldld* | linux*aout* | linux*coff*)
15995   dynamic_linker=no
15996   ;;
15997
15998 # This must be Linux ELF.
15999 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16000   version_type=linux
16001   need_lib_prefix=no
16002   need_version=no
16003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004   soname_spec='${libname}${release}${shared_ext}$major'
16005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16006   shlibpath_var=LD_LIBRARY_PATH
16007   shlibpath_overrides_runpath=no
16008
16009   # Some binutils ld are patched to set DT_RUNPATH
16010   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16011   $as_echo_n "(cached) " >&6
16012 else
16013   lt_cv_shlibpath_overrides_runpath=no
16014     save_LDFLAGS=$LDFLAGS
16015     save_libdir=$libdir
16016     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16017          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16018     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h.  */
16020
16021 int
16022 main ()
16023 {
16024
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 if ac_fn_cxx_try_link "$LINENO"; then :
16030   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16031   lt_cv_shlibpath_overrides_runpath=yes
16032 fi
16033 fi
16034 rm -f core conftest.err conftest.$ac_objext \
16035     conftest$ac_exeext conftest.$ac_ext
16036     LDFLAGS=$save_LDFLAGS
16037     libdir=$save_libdir
16038
16039 fi
16040
16041   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16042
16043   # This implies no fast_install, which is unacceptable.
16044   # Some rework will be needed to allow for fast_install
16045   # before this can be enabled.
16046   hardcode_into_libs=yes
16047
16048   # Append ld.so.conf contents to the search path
16049   if test -f /etc/ld.so.conf; then
16050     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' ' '`
16051     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16052   fi
16053
16054   # We used to test for /lib/ld.so.1 and disable shared libraries on
16055   # powerpc, because MkLinux only supported shared libraries with the
16056   # GNU dynamic linker.  Since this was broken with cross compilers,
16057   # most powerpc-linux boxes support dynamic linking these days and
16058   # people can always --disable-shared, the test was removed, and we
16059   # assume the GNU/Linux dynamic linker is in use.
16060   dynamic_linker='GNU/Linux ld.so'
16061   ;;
16062
16063 netbsd*)
16064   version_type=sunos
16065   need_lib_prefix=no
16066   need_version=no
16067   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16069     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16070     dynamic_linker='NetBSD (a.out) ld.so'
16071   else
16072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16073     soname_spec='${libname}${release}${shared_ext}$major'
16074     dynamic_linker='NetBSD ld.elf_so'
16075   fi
16076   shlibpath_var=LD_LIBRARY_PATH
16077   shlibpath_overrides_runpath=yes
16078   hardcode_into_libs=yes
16079   ;;
16080
16081 newsos6)
16082   version_type=linux
16083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084   shlibpath_var=LD_LIBRARY_PATH
16085   shlibpath_overrides_runpath=yes
16086   ;;
16087
16088 *nto* | *qnx*)
16089   version_type=qnx
16090   need_lib_prefix=no
16091   need_version=no
16092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093   soname_spec='${libname}${release}${shared_ext}$major'
16094   shlibpath_var=LD_LIBRARY_PATH
16095   shlibpath_overrides_runpath=no
16096   hardcode_into_libs=yes
16097   dynamic_linker='ldqnx.so'
16098   ;;
16099
16100 openbsd*)
16101   version_type=sunos
16102   sys_lib_dlsearch_path_spec="/usr/lib"
16103   need_lib_prefix=no
16104   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16105   case $host_os in
16106     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16107     *)                          need_version=no  ;;
16108   esac
16109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16110   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16111   shlibpath_var=LD_LIBRARY_PATH
16112   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16113     case $host_os in
16114       openbsd2.[89] | openbsd2.[89].*)
16115         shlibpath_overrides_runpath=no
16116         ;;
16117       *)
16118         shlibpath_overrides_runpath=yes
16119         ;;
16120       esac
16121   else
16122     shlibpath_overrides_runpath=yes
16123   fi
16124   ;;
16125
16126 os2*)
16127   libname_spec='$name'
16128   shrext_cmds=".dll"
16129   need_lib_prefix=no
16130   library_names_spec='$libname${shared_ext} $libname.a'
16131   dynamic_linker='OS/2 ld.exe'
16132   shlibpath_var=LIBPATH
16133   ;;
16134
16135 osf3* | osf4* | osf5*)
16136   version_type=osf
16137   need_lib_prefix=no
16138   need_version=no
16139   soname_spec='${libname}${release}${shared_ext}$major'
16140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141   shlibpath_var=LD_LIBRARY_PATH
16142   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16143   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16144   ;;
16145
16146 rdos*)
16147   dynamic_linker=no
16148   ;;
16149
16150 solaris*)
16151   version_type=linux
16152   need_lib_prefix=no
16153   need_version=no
16154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155   soname_spec='${libname}${release}${shared_ext}$major'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   shlibpath_overrides_runpath=yes
16158   hardcode_into_libs=yes
16159   # ldd complains unless libraries are executable
16160   postinstall_cmds='chmod +x $lib'
16161   ;;
16162
16163 sunos4*)
16164   version_type=sunos
16165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16166   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16167   shlibpath_var=LD_LIBRARY_PATH
16168   shlibpath_overrides_runpath=yes
16169   if test "$with_gnu_ld" = yes; then
16170     need_lib_prefix=no
16171   fi
16172   need_version=yes
16173   ;;
16174
16175 sysv4 | sysv4.3*)
16176   version_type=linux
16177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178   soname_spec='${libname}${release}${shared_ext}$major'
16179   shlibpath_var=LD_LIBRARY_PATH
16180   case $host_vendor in
16181     sni)
16182       shlibpath_overrides_runpath=no
16183       need_lib_prefix=no
16184       runpath_var=LD_RUN_PATH
16185       ;;
16186     siemens)
16187       need_lib_prefix=no
16188       ;;
16189     motorola)
16190       need_lib_prefix=no
16191       need_version=no
16192       shlibpath_overrides_runpath=no
16193       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16194       ;;
16195   esac
16196   ;;
16197
16198 sysv4*MP*)
16199   if test -d /usr/nec ;then
16200     version_type=linux
16201     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16202     soname_spec='$libname${shared_ext}.$major'
16203     shlibpath_var=LD_LIBRARY_PATH
16204   fi
16205   ;;
16206
16207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16208   version_type=freebsd-elf
16209   need_lib_prefix=no
16210   need_version=no
16211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16212   soname_spec='${libname}${release}${shared_ext}$major'
16213   shlibpath_var=LD_LIBRARY_PATH
16214   shlibpath_overrides_runpath=yes
16215   hardcode_into_libs=yes
16216   if test "$with_gnu_ld" = yes; then
16217     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16218   else
16219     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16220     case $host_os in
16221       sco3.2v5*)
16222         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16223         ;;
16224     esac
16225   fi
16226   sys_lib_dlsearch_path_spec='/usr/lib'
16227   ;;
16228
16229 tpf*)
16230   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16231   version_type=linux
16232   need_lib_prefix=no
16233   need_version=no
16234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235   shlibpath_var=LD_LIBRARY_PATH
16236   shlibpath_overrides_runpath=no
16237   hardcode_into_libs=yes
16238   ;;
16239
16240 uts4*)
16241   version_type=linux
16242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243   soname_spec='${libname}${release}${shared_ext}$major'
16244   shlibpath_var=LD_LIBRARY_PATH
16245   ;;
16246
16247 *)
16248   dynamic_linker=no
16249   ;;
16250 esac
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16252 $as_echo "$dynamic_linker" >&6; }
16253 test "$dynamic_linker" = no && can_build_shared=no
16254
16255 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16256 if test "$GCC" = yes; then
16257   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16258 fi
16259
16260 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16261   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16262 fi
16263 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16264   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16265 fi
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16305 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16306 hardcode_action_CXX=
16307 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16308    test -n "$runpath_var_CXX" ||
16309    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16310
16311   # We can hardcode non-existent directories.
16312   if test "$hardcode_direct_CXX" != no &&
16313      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16314      # have to relink, otherwise we might link with an installed library
16315      # when we should be linking with a yet-to-be-installed one
16316      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16317      test "$hardcode_minus_L_CXX" != no; then
16318     # Linking always hardcodes the temporary library directory.
16319     hardcode_action_CXX=relink
16320   else
16321     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16322     hardcode_action_CXX=immediate
16323   fi
16324 else
16325   # We cannot hardcode anything, or else we can only hardcode existing
16326   # directories.
16327   hardcode_action_CXX=unsupported
16328 fi
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16330 $as_echo "$hardcode_action_CXX" >&6; }
16331
16332 if test "$hardcode_action_CXX" = relink ||
16333    test "$inherit_rpath_CXX" = yes; then
16334   # Fast installation is not supported
16335   enable_fast_install=no
16336 elif test "$shlibpath_overrides_runpath" = yes ||
16337      test "$enable_shared" = no; then
16338   # Fast installation is not necessary
16339   enable_fast_install=needless
16340 fi
16341
16342
16343
16344
16345
16346
16347
16348   fi # test -n "$compiler"
16349
16350   CC=$lt_save_CC
16351   CFLAGS=$lt_save_CFLAGS
16352   LDCXX=$LD
16353   LD=$lt_save_LD
16354   GCC=$lt_save_GCC
16355   with_gnu_ld=$lt_save_with_gnu_ld
16356   lt_cv_path_LDCXX=$lt_cv_path_LD
16357   lt_cv_path_LD=$lt_save_path_LD
16358   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16359   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16360 fi # test "$_lt_caught_CXX_error" != yes
16361
16362 ac_ext=c
16363 ac_cpp='$CPP $CPPFLAGS'
16364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380         ac_config_commands="$ac_config_commands libtool"
16381
16382
16383
16384
16385 # Only expand once:
16386
16387
16388
16389 LT_DLLOADERS=
16390
16391
16392 ac_ext=c
16393 ac_cpp='$CPP $CPPFLAGS'
16394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16397
16398
16399 LIBADD_DLOPEN=
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16401 $as_echo_n "checking for library containing dlopen... " >&6; }
16402 if ${ac_cv_search_dlopen+:} false; then :
16403   $as_echo_n "(cached) " >&6
16404 else
16405   ac_func_search_save_LIBS=$LIBS
16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h.  */
16408
16409 /* Override any GCC internal prototype to avoid an error.
16410    Use char because int might match the return type of a GCC
16411    builtin and then its argument prototype would still apply.  */
16412 #ifdef __cplusplus
16413 extern "C"
16414 #endif
16415 char dlopen ();
16416 int
16417 main ()
16418 {
16419 return dlopen ();
16420   ;
16421   return 0;
16422 }
16423 _ACEOF
16424 for ac_lib in '' dl; do
16425   if test -z "$ac_lib"; then
16426     ac_res="none required"
16427   else
16428     ac_res=-l$ac_lib
16429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16430   fi
16431   if ac_fn_c_try_link "$LINENO"; then :
16432   ac_cv_search_dlopen=$ac_res
16433 fi
16434 rm -f core conftest.err conftest.$ac_objext \
16435     conftest$ac_exeext
16436   if ${ac_cv_search_dlopen+:} false; then :
16437   break
16438 fi
16439 done
16440 if ${ac_cv_search_dlopen+:} false; then :
16441
16442 else
16443   ac_cv_search_dlopen=no
16444 fi
16445 rm conftest.$ac_ext
16446 LIBS=$ac_func_search_save_LIBS
16447 fi
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16449 $as_echo "$ac_cv_search_dlopen" >&6; }
16450 ac_res=$ac_cv_search_dlopen
16451 if test "$ac_res" != no; then :
16452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16453
16454 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16455
16456         if test "$ac_cv_search_dlopen" != "none required" ; then
16457           LIBADD_DLOPEN="-ldl"
16458         fi
16459         libltdl_cv_lib_dl_dlopen="yes"
16460         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16461 else
16462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h.  */
16464 #if HAVE_DLFCN_H
16465 #  include <dlfcn.h>
16466 #endif
16467
16468 int
16469 main ()
16470 {
16471 dlopen(0, 0);
16472   ;
16473   return 0;
16474 }
16475 _ACEOF
16476 if ac_fn_c_try_link "$LINENO"; then :
16477
16478 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16479
16480             libltdl_cv_func_dlopen="yes"
16481             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16482 else
16483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16484 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16485 if ${ac_cv_lib_svld_dlopen+:} false; then :
16486   $as_echo_n "(cached) " >&6
16487 else
16488   ac_check_lib_save_LIBS=$LIBS
16489 LIBS="-lsvld  $LIBS"
16490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491 /* end confdefs.h.  */
16492
16493 /* Override any GCC internal prototype to avoid an error.
16494    Use char because int might match the return type of a GCC
16495    builtin and then its argument prototype would still apply.  */
16496 #ifdef __cplusplus
16497 extern "C"
16498 #endif
16499 char dlopen ();
16500 int
16501 main ()
16502 {
16503 return dlopen ();
16504   ;
16505   return 0;
16506 }
16507 _ACEOF
16508 if ac_fn_c_try_link "$LINENO"; then :
16509   ac_cv_lib_svld_dlopen=yes
16510 else
16511   ac_cv_lib_svld_dlopen=no
16512 fi
16513 rm -f core conftest.err conftest.$ac_objext \
16514     conftest$ac_exeext conftest.$ac_ext
16515 LIBS=$ac_check_lib_save_LIBS
16516 fi
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16518 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16519 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16520
16521 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16522
16523                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16524                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16525 fi
16526
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext \
16529     conftest$ac_exeext conftest.$ac_ext
16530 fi
16531
16532 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16533 then
16534   lt_save_LIBS="$LIBS"
16535   LIBS="$LIBS $LIBADD_DLOPEN"
16536   for ac_func in dlerror
16537 do :
16538   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16539 if test "x$ac_cv_func_dlerror" = xyes; then :
16540   cat >>confdefs.h <<_ACEOF
16541 #define HAVE_DLERROR 1
16542 _ACEOF
16543
16544 fi
16545 done
16546
16547   LIBS="$lt_save_LIBS"
16548 fi
16549
16550
16551 LIBADD_SHL_LOAD=
16552 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16553 if test "x$ac_cv_func_shl_load" = xyes; then :
16554
16555 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16556
16557         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16558 else
16559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16560 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16561 if ${ac_cv_lib_dld_shl_load+:} false; then :
16562   $as_echo_n "(cached) " >&6
16563 else
16564   ac_check_lib_save_LIBS=$LIBS
16565 LIBS="-ldld  $LIBS"
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h.  */
16568
16569 /* Override any GCC internal prototype to avoid an error.
16570    Use char because int might match the return type of a GCC
16571    builtin and then its argument prototype would still apply.  */
16572 #ifdef __cplusplus
16573 extern "C"
16574 #endif
16575 char shl_load ();
16576 int
16577 main ()
16578 {
16579 return shl_load ();
16580   ;
16581   return 0;
16582 }
16583 _ACEOF
16584 if ac_fn_c_try_link "$LINENO"; then :
16585   ac_cv_lib_dld_shl_load=yes
16586 else
16587   ac_cv_lib_dld_shl_load=no
16588 fi
16589 rm -f core conftest.err conftest.$ac_objext \
16590     conftest$ac_exeext conftest.$ac_ext
16591 LIBS=$ac_check_lib_save_LIBS
16592 fi
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16594 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16595 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16596
16597 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16598
16599             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16600             LIBADD_SHL_LOAD="-ldld"
16601 fi
16602
16603 fi
16604
16605
16606
16607 case $host_os in
16608 darwin[1567].*)
16609 # We only want this for pre-Mac OS X 10.4.
16610   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16611 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16612
16613 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16614
16615         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16616 fi
16617
16618   ;;
16619 beos*)
16620   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16621   ;;
16622 cygwin* | mingw* | os2* | pw32*)
16623   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16624 "
16625 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16626   ac_have_decl=1
16627 else
16628   ac_have_decl=0
16629 fi
16630
16631 cat >>confdefs.h <<_ACEOF
16632 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16633 _ACEOF
16634
16635   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16636   ;;
16637 esac
16638
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16640 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16641 if ${ac_cv_lib_dld_dld_link+:} false; then :
16642   $as_echo_n "(cached) " >&6
16643 else
16644   ac_check_lib_save_LIBS=$LIBS
16645 LIBS="-ldld  $LIBS"
16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h.  */
16648
16649 /* Override any GCC internal prototype to avoid an error.
16650    Use char because int might match the return type of a GCC
16651    builtin and then its argument prototype would still apply.  */
16652 #ifdef __cplusplus
16653 extern "C"
16654 #endif
16655 char dld_link ();
16656 int
16657 main ()
16658 {
16659 return dld_link ();
16660   ;
16661   return 0;
16662 }
16663 _ACEOF
16664 if ac_fn_c_try_link "$LINENO"; then :
16665   ac_cv_lib_dld_dld_link=yes
16666 else
16667   ac_cv_lib_dld_dld_link=no
16668 fi
16669 rm -f core conftest.err conftest.$ac_objext \
16670     conftest$ac_exeext conftest.$ac_ext
16671 LIBS=$ac_check_lib_save_LIBS
16672 fi
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16674 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16675 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16676
16677 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16678
16679                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16680 fi
16681
16682
16683
16684
16685 LT_DLPREOPEN=
16686 if test -n "$LT_DLLOADERS"
16687 then
16688   for lt_loader in $LT_DLLOADERS; do
16689     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16690   done
16691
16692 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16693
16694 fi
16695
16696
16697 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16698
16699
16700 ac_ext=c
16701 ac_cpp='$CPP $CPPFLAGS'
16702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16705
16706
16707
16708
16709 if test x$use_libtool != xno; then
16710    DEFAULT_OBJECT_TYPE=".lo"
16711    DEFAULT_ARCHIVE_TYPE=".la"
16712    DEFAULT_SHARED_OBJECT_TYPE=".la"
16713    LIBTOOL="\$(LIBTOOL)"
16714    LIBTOOL_INSTALL_TARGET="libtool-install"
16715    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16716    LIBTOOL_CLEAN_TARGET="libtool-clean"
16717    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16718    FD_PLUGIN_DIR="src/plugins/fd"
16719    have_plugins=yes
16720 else
16721    DEFAULT_OBJECT_TYPE=".o"
16722    DEFAULT_ARCHIVE_TYPE=".a"
16723    DEFAULT_SHARED_OBJECT_TYPE=".so"
16724    LIBTOOL="# \$(LIBTOOL)"
16725    LIBTOOL_INSTALL_TARGET=""
16726    LIBTOOL_UNINSTALL_TARGET=""
16727    LIBTOOL_CLEAN_TARGET=""
16728    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16729    FD_PLUGIN_DIR=""
16730    have_plugins=no
16731 fi
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743 # Check whether --enable-includes was given.
16744 if test "${enable_includes+set}" = set; then :
16745   enableval=$enable_includes;
16746        if test x$enableval = xyes; then
16747           install_includes=yes
16748        fi
16749
16750
16751 fi
16752
16753
16754
16755 if test x$use_libtool != xno -a x$install_includes = xyes; then
16756    INCLUDE_INSTALL_TARGET="install-includes"
16757    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16758 else
16759    INCLUDE_INSTALL_TARGET=""
16760    INCLUDE_UNINSTALL_TARGET=""
16761 fi
16762
16763
16764
16765
16766
16767 case $host_os in
16768   *cygwin* ) CYGWIN=yes;;
16769          * ) CYGWIN=no;;
16770 esac
16771
16772 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16773 then
16774
16775
16776 if $TRUEPRG; then
16777   HAVE_SUN_OS_TRUE=
16778   HAVE_SUN_OS_FALSE='#'
16779 else
16780   HAVE_SUN_OS_TRUE='#'
16781   HAVE_SUN_OS_FALSE=
16782 fi
16783         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16784
16785 else
16786
16787
16788 if $FALSEPRG; then
16789   HAVE_SUN_OS_TRUE=
16790   HAVE_SUN_OS_FALSE='#'
16791 else
16792   HAVE_SUN_OS_TRUE='#'
16793   HAVE_SUN_OS_FALSE=
16794 fi
16795 fi
16796
16797 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16798 then
16799
16800
16801 if $TRUEPRG; then
16802   HAVE_OSF1_OS_TRUE=
16803   HAVE_OSF1_OS_FALSE='#'
16804 else
16805   HAVE_OSF1_OS_TRUE='#'
16806   HAVE_OSF1_OS_FALSE=
16807 fi
16808         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16809
16810 else
16811
16812
16813 if $FALSEPRG; then
16814   HAVE_OSF1_OS_TRUE=
16815   HAVE_OSF1_OS_FALSE='#'
16816 else
16817   HAVE_OSF1_OS_TRUE='#'
16818   HAVE_OSF1_OS_FALSE=
16819 fi
16820 fi
16821
16822 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16823 then
16824
16825
16826 if $TRUEPRG; then
16827   HAVE_AIX_OS_TRUE=
16828   HAVE_AIX_OS_FALSE='#'
16829 else
16830   HAVE_AIX_OS_TRUE='#'
16831   HAVE_AIX_OS_FALSE=
16832 fi
16833         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16834
16835 else
16836
16837
16838 if $FALSEPRG; then
16839   HAVE_AIX_OS_TRUE=
16840   HAVE_AIX_OS_FALSE='#'
16841 else
16842   HAVE_AIX_OS_TRUE='#'
16843   HAVE_AIX_OS_FALSE=
16844 fi
16845 fi
16846
16847 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16848 then
16849
16850
16851 if $TRUEPRG; then
16852   HAVE_HPUX_OS_TRUE=
16853   HAVE_HPUX_OS_FALSE='#'
16854 else
16855   HAVE_HPUX_OS_TRUE='#'
16856   HAVE_HPUX_OS_FALSE=
16857 fi
16858         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16859
16860 else
16861
16862
16863 if $FALSEPRG; then
16864   HAVE_HPUX_OS_TRUE=
16865   HAVE_HPUX_OS_FALSE='#'
16866 else
16867   HAVE_HPUX_OS_TRUE='#'
16868   HAVE_HPUX_OS_FALSE=
16869 fi
16870 fi
16871
16872 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16873 then
16874
16875
16876 if $TRUEPRG; then
16877   HAVE_LINUX_OS_TRUE=
16878   HAVE_LINUX_OS_FALSE='#'
16879 else
16880   HAVE_LINUX_OS_TRUE='#'
16881   HAVE_LINUX_OS_FALSE=
16882 fi
16883         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16884
16885 else
16886
16887
16888 if $FALSEPRG; then
16889   HAVE_LINUX_OS_TRUE=
16890   HAVE_LINUX_OS_FALSE='#'
16891 else
16892   HAVE_LINUX_OS_TRUE='#'
16893   HAVE_LINUX_OS_FALSE=
16894 fi
16895 fi
16896
16897 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16898 then
16899
16900
16901 if $TRUEPRG; then
16902   HAVE_FREEBSD_OS_TRUE=
16903   HAVE_FREEBSD_OS_FALSE='#'
16904 else
16905   HAVE_FREEBSD_OS_TRUE='#'
16906   HAVE_FREEBSD_OS_FALSE=
16907 fi
16908         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16909
16910 else
16911
16912
16913 if $FALSEPRG; then
16914   HAVE_FREEBSD_OS_TRUE=
16915   HAVE_FREEBSD_OS_FALSE='#'
16916 else
16917   HAVE_FREEBSD_OS_TRUE='#'
16918   HAVE_FREEBSD_OS_FALSE=
16919 fi
16920 fi
16921
16922 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16923 then
16924
16925
16926 if $TRUEPRG; then
16927   HAVE_NETBSD_OS_TRUE=
16928   HAVE_NETBSD_OS_FALSE='#'
16929 else
16930   HAVE_NETBSD_OS_TRUE='#'
16931   HAVE_NETBSD_OS_FALSE=
16932 fi
16933         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16934
16935 else
16936
16937
16938 if $FALSEPRG; then
16939   HAVE_NETBSD_OS_TRUE=
16940   HAVE_NETBSD_OS_FALSE='#'
16941 else
16942   HAVE_NETBSD_OS_TRUE='#'
16943   HAVE_NETBSD_OS_FALSE=
16944 fi
16945 fi
16946
16947 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16948 then
16949
16950
16951 if $TRUEPRG; then
16952   HAVE_OPENBSD_OS_TRUE=
16953   HAVE_OPENBSD_OS_FALSE='#'
16954 else
16955   HAVE_OPENBSD_OS_TRUE='#'
16956   HAVE_OPENBSD_OS_FALSE=
16957 fi
16958         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16959
16960 else
16961
16962
16963 if $FALSEPRG; then
16964   HAVE_OPENBSD_OS_TRUE=
16965   HAVE_OPENBSD_OS_FALSE='#'
16966 else
16967   HAVE_OPENBSD_OS_TRUE='#'
16968   HAVE_OPENBSD_OS_FALSE=
16969 fi
16970 fi
16971
16972 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16973 then
16974
16975
16976 if $TRUEPRG; then
16977   HAVE_BSDI_OS_TRUE=
16978   HAVE_BSDI_OS_FALSE='#'
16979 else
16980   HAVE_BSDI_OS_TRUE='#'
16981   HAVE_BSDI_OS_FALSE=
16982 fi
16983         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16984
16985 else
16986
16987
16988 if $FALSEPRG; then
16989   HAVE_BSDI_OS_TRUE=
16990   HAVE_BSDI_OS_FALSE='#'
16991 else
16992   HAVE_BSDI_OS_TRUE='#'
16993   HAVE_BSDI_OS_FALSE=
16994 fi
16995 fi
16996
16997 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16998 then
16999
17000
17001 if $TRUEPRG; then
17002   HAVE_SGI_OS_TRUE=
17003   HAVE_SGI_OS_FALSE='#'
17004 else
17005   HAVE_SGI_OS_TRUE='#'
17006   HAVE_SGI_OS_FALSE=
17007 fi
17008         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17009
17010 else
17011
17012
17013 if $FALSEPRG; then
17014   HAVE_SGI_OS_TRUE=
17015   HAVE_SGI_OS_FALSE='#'
17016 else
17017   HAVE_SGI_OS_TRUE='#'
17018   HAVE_SGI_OS_FALSE=
17019 fi
17020 fi
17021
17022 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17023 then
17024
17025
17026 if $TRUEPRG; then
17027   HAVE_IRIX_OS_TRUE=
17028   HAVE_IRIX_OS_FALSE='#'
17029 else
17030   HAVE_IRIX_OS_TRUE='#'
17031   HAVE_IRIX_OS_FALSE=
17032 fi
17033         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17034
17035 else
17036
17037
17038 if $FALSEPRG; then
17039   HAVE_IRIX_OS_TRUE=
17040   HAVE_IRIX_OS_FALSE='#'
17041 else
17042   HAVE_IRIX_OS_TRUE='#'
17043   HAVE_IRIX_OS_FALSE=
17044 fi
17045 fi
17046
17047 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17048 then
17049
17050
17051 if $TRUEPRG; then
17052   HAVE_DARWIN_OS_TRUE=
17053   HAVE_DARWIN_OS_FALSE='#'
17054 else
17055   HAVE_DARWIN_OS_TRUE='#'
17056   HAVE_DARWIN_OS_FALSE=
17057 fi
17058     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17059
17060 else
17061
17062
17063 if $FALSEPRG; then
17064   HAVE_DARWIN_OS_TRUE=
17065   HAVE_DARWIN_OS_FALSE='#'
17066 else
17067   HAVE_DARWIN_OS_TRUE='#'
17068   HAVE_DARWIN_OS_FALSE=
17069 fi
17070 fi
17071
17072
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17074 $as_echo_n "checking for Operating System Distribution... " >&6; }
17075 if test "x$DISTNAME" != "x"
17076 then
17077         echo "distname set to $DISTNAME"
17078 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17079 then
17080         DISTNAME=alpha
17081 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17082 then
17083         DISTNAME=aix
17084 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17085 then
17086         DISTNAME=hpux
17087 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17088 then
17089         DISTNAME=solaris
17090 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17091 then
17092         DISTNAME=freebsd
17093 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17094 then
17095         DISTNAME=netbsd
17096 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17097 then
17098         DISTNAME=openbsd
17099 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17100 then
17101         DISTNAME=irix
17102 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17103 then
17104         DISTNAME=bsdi
17105 elif test -f /etc/SuSE-release
17106 then
17107         DISTNAME=suse
17108 elif test -d /etc/SuSEconfig
17109 then
17110         DISTNAME=suse5
17111 elif test -f /etc/mandrake-release
17112 then
17113         DISTNAME=mandrake
17114 elif test -f /etc/whitebox-release
17115 then
17116        DISTNAME=redhat
17117 elif test -f /etc/redhat-release
17118 then
17119         DISTNAME=redhat
17120 elif test -f /etc/gentoo-release
17121 then
17122         DISTNAME=gentoo
17123 elif test -f /etc/debian_version
17124 then
17125         DISTNAME=debian
17126 elif test -f /etc/slackware-version
17127 then
17128         DISTNAME=slackware
17129 elif test x$host_vendor = xapple
17130 then
17131     DISTNAME=osx
17132 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17133 then
17134     DISTNAME=darwin
17135 elif test -f /etc/engarde-version
17136 then
17137         DISTNAME=engarde
17138 elif test -f /etc/arch-release
17139 then
17140         DISTNAME=archlinux
17141 elif test "$CYGWIN" = yes
17142 then
17143         DISTNAME=cygwin
17144         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17145
17146 else
17147         DISTNAME=unknown
17148 fi
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17150 $as_echo "done" >&6; }
17151
17152
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17154 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17155 set x ${MAKE-make}
17156 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17157 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17158   $as_echo_n "(cached) " >&6
17159 else
17160   cat >conftest.make <<\_ACEOF
17161 SHELL = /bin/sh
17162 all:
17163         @echo '@@@%%%=$(MAKE)=@@@%%%'
17164 _ACEOF
17165 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17166 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17167   *@@@%%%=?*=@@@%%%*)
17168     eval ac_cv_prog_make_${ac_make}_set=yes;;
17169   *)
17170     eval ac_cv_prog_make_${ac_make}_set=no;;
17171 esac
17172 rm -f conftest.make
17173 fi
17174 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17176 $as_echo "yes" >&6; }
17177   SET_MAKE=
17178 else
17179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17180 $as_echo "no" >&6; }
17181   SET_MAKE="MAKE=${MAKE-make}"
17182 fi
17183
17184
17185
17186         MKINSTALLDIRS=
17187   if test -n "$ac_aux_dir"; then
17188     case "$ac_aux_dir" in
17189       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17190       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17191     esac
17192   fi
17193   if test -z "$MKINSTALLDIRS"; then
17194     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17195   fi
17196
17197
17198
17199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17200 $as_echo_n "checking whether NLS is requested... " >&6; }
17201     # Check whether --enable-nls was given.
17202 if test "${enable_nls+set}" = set; then :
17203   enableval=$enable_nls; USE_NLS=$enableval
17204 else
17205   USE_NLS=yes
17206 fi
17207
17208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17209 $as_echo "$USE_NLS" >&6; }
17210
17211
17212
17213
17214
17215
17216 # Prepare PATH_SEPARATOR.
17217 # The user is always right.
17218 if test "${PATH_SEPARATOR+set}" != set; then
17219   echo "#! /bin/sh" >conf$$.sh
17220   echo  "exit 0"   >>conf$$.sh
17221   chmod +x conf$$.sh
17222   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17223     PATH_SEPARATOR=';'
17224   else
17225     PATH_SEPARATOR=:
17226   fi
17227   rm -f conf$$.sh
17228 fi
17229
17230 # Find out how to test for executable files. Don't use a zero-byte file,
17231 # as systems may use methods other than mode bits to determine executability.
17232 cat >conf$$.file <<_ASEOF
17233 #! /bin/sh
17234 exit 0
17235 _ASEOF
17236 chmod +x conf$$.file
17237 if test -x conf$$.file >/dev/null 2>&1; then
17238   ac_executable_p="test -x"
17239 else
17240   ac_executable_p="test -f"
17241 fi
17242 rm -f conf$$.file
17243
17244 # Extract the first word of "msgfmt", so it can be a program name with args.
17245 set dummy msgfmt; ac_word=$2
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17247 $as_echo_n "checking for $ac_word... " >&6; }
17248 if ${ac_cv_path_MSGFMT+:} false; then :
17249   $as_echo_n "(cached) " >&6
17250 else
17251   case "$MSGFMT" in
17252   [\\/]* | ?:[\\/]*)
17253     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17254     ;;
17255   *)
17256     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17257     for ac_dir in $PATH; do
17258       IFS="$ac_save_IFS"
17259       test -z "$ac_dir" && ac_dir=.
17260       for ac_exec_ext in '' $ac_executable_extensions; do
17261         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17262           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17263           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17264      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17265             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17266             break 2
17267           fi
17268         fi
17269       done
17270     done
17271     IFS="$ac_save_IFS"
17272   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17273     ;;
17274 esac
17275 fi
17276 MSGFMT="$ac_cv_path_MSGFMT"
17277 if test "$MSGFMT" != ":"; then
17278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17279 $as_echo "$MSGFMT" >&6; }
17280 else
17281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17283 fi
17284
17285   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17286 set dummy gmsgfmt; ac_word=$2
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17288 $as_echo_n "checking for $ac_word... " >&6; }
17289 if ${ac_cv_path_GMSGFMT+:} false; then :
17290   $as_echo_n "(cached) " >&6
17291 else
17292   case $GMSGFMT in
17293   [\\/]* | ?:[\\/]*)
17294   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17295   ;;
17296   *)
17297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17298 for as_dir in $PATH
17299 do
17300   IFS=$as_save_IFS
17301   test -z "$as_dir" && as_dir=.
17302     for ac_exec_ext in '' $ac_executable_extensions; do
17303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17304     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17306     break 2
17307   fi
17308 done
17309   done
17310 IFS=$as_save_IFS
17311
17312   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17313   ;;
17314 esac
17315 fi
17316 GMSGFMT=$ac_cv_path_GMSGFMT
17317 if test -n "$GMSGFMT"; then
17318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17319 $as_echo "$GMSGFMT" >&6; }
17320 else
17321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17322 $as_echo "no" >&6; }
17323 fi
17324
17325
17326
17327
17328 # Prepare PATH_SEPARATOR.
17329 # The user is always right.
17330 if test "${PATH_SEPARATOR+set}" != set; then
17331   echo "#! /bin/sh" >conf$$.sh
17332   echo  "exit 0"   >>conf$$.sh
17333   chmod +x conf$$.sh
17334   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17335     PATH_SEPARATOR=';'
17336   else
17337     PATH_SEPARATOR=:
17338   fi
17339   rm -f conf$$.sh
17340 fi
17341
17342 # Find out how to test for executable files. Don't use a zero-byte file,
17343 # as systems may use methods other than mode bits to determine executability.
17344 cat >conf$$.file <<_ASEOF
17345 #! /bin/sh
17346 exit 0
17347 _ASEOF
17348 chmod +x conf$$.file
17349 if test -x conf$$.file >/dev/null 2>&1; then
17350   ac_executable_p="test -x"
17351 else
17352   ac_executable_p="test -f"
17353 fi
17354 rm -f conf$$.file
17355
17356 # Extract the first word of "xgettext", so it can be a program name with args.
17357 set dummy xgettext; ac_word=$2
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17359 $as_echo_n "checking for $ac_word... " >&6; }
17360 if ${ac_cv_path_XGETTEXT+:} false; then :
17361   $as_echo_n "(cached) " >&6
17362 else
17363   case "$XGETTEXT" in
17364   [\\/]* | ?:[\\/]*)
17365     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17366     ;;
17367   *)
17368     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17369     for ac_dir in $PATH; do
17370       IFS="$ac_save_IFS"
17371       test -z "$ac_dir" && ac_dir=.
17372       for ac_exec_ext in '' $ac_executable_extensions; do
17373         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17374           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17375           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17376      (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
17377             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17378             break 2
17379           fi
17380         fi
17381       done
17382     done
17383     IFS="$ac_save_IFS"
17384   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17385     ;;
17386 esac
17387 fi
17388 XGETTEXT="$ac_cv_path_XGETTEXT"
17389 if test "$XGETTEXT" != ":"; then
17390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17391 $as_echo "$XGETTEXT" >&6; }
17392 else
17393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17394 $as_echo "no" >&6; }
17395 fi
17396
17397     rm -f messages.po
17398
17399
17400 # Prepare PATH_SEPARATOR.
17401 # The user is always right.
17402 if test "${PATH_SEPARATOR+set}" != set; then
17403   echo "#! /bin/sh" >conf$$.sh
17404   echo  "exit 0"   >>conf$$.sh
17405   chmod +x conf$$.sh
17406   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17407     PATH_SEPARATOR=';'
17408   else
17409     PATH_SEPARATOR=:
17410   fi
17411   rm -f conf$$.sh
17412 fi
17413
17414 # Find out how to test for executable files. Don't use a zero-byte file,
17415 # as systems may use methods other than mode bits to determine executability.
17416 cat >conf$$.file <<_ASEOF
17417 #! /bin/sh
17418 exit 0
17419 _ASEOF
17420 chmod +x conf$$.file
17421 if test -x conf$$.file >/dev/null 2>&1; then
17422   ac_executable_p="test -x"
17423 else
17424   ac_executable_p="test -f"
17425 fi
17426 rm -f conf$$.file
17427
17428 # Extract the first word of "msgmerge", so it can be a program name with args.
17429 set dummy msgmerge; ac_word=$2
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17431 $as_echo_n "checking for $ac_word... " >&6; }
17432 if ${ac_cv_path_MSGMERGE+:} false; then :
17433   $as_echo_n "(cached) " >&6
17434 else
17435   case "$MSGMERGE" in
17436   [\\/]* | ?:[\\/]*)
17437     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17438     ;;
17439   *)
17440     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17441     for ac_dir in $PATH; do
17442       IFS="$ac_save_IFS"
17443       test -z "$ac_dir" && ac_dir=.
17444       for ac_exec_ext in '' $ac_executable_extensions; do
17445         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17446           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17447           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17448             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17449             break 2
17450           fi
17451         fi
17452       done
17453     done
17454     IFS="$ac_save_IFS"
17455   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17456     ;;
17457 esac
17458 fi
17459 MSGMERGE="$ac_cv_path_MSGMERGE"
17460 if test "$MSGMERGE" != ":"; then
17461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17462 $as_echo "$MSGMERGE" >&6; }
17463 else
17464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17465 $as_echo "no" >&6; }
17466 fi
17467
17468
17469       if test "$GMSGFMT" != ":"; then
17470             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17471        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17472       : ;
17473     else
17474       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17475       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17476 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17477       GMSGFMT=":"
17478     fi
17479   fi
17480
17481       if test "$XGETTEXT" != ":"; then
17482             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17483        (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
17484       : ;
17485     else
17486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17487 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17488       XGETTEXT=":"
17489     fi
17490         rm -f messages.po
17491   fi
17492
17493   ac_config_commands="$ac_config_commands default-1"
17494
17495
17496
17497       if test "X$prefix" = "XNONE"; then
17498     acl_final_prefix="$ac_default_prefix"
17499   else
17500     acl_final_prefix="$prefix"
17501   fi
17502   if test "X$exec_prefix" = "XNONE"; then
17503     acl_final_exec_prefix='${prefix}'
17504   else
17505     acl_final_exec_prefix="$exec_prefix"
17506   fi
17507   acl_save_prefix="$prefix"
17508   prefix="$acl_final_prefix"
17509   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17510   prefix="$acl_save_prefix"
17511
17512
17513 # Check whether --with-gnu-ld was given.
17514 if test "${with_gnu_ld+set}" = set; then :
17515   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17516 else
17517   with_gnu_ld=no
17518 fi
17519
17520 # Prepare PATH_SEPARATOR.
17521 # The user is always right.
17522 if test "${PATH_SEPARATOR+set}" != set; then
17523   echo "#! /bin/sh" >conf$$.sh
17524   echo  "exit 0"   >>conf$$.sh
17525   chmod +x conf$$.sh
17526   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17527     PATH_SEPARATOR=';'
17528   else
17529     PATH_SEPARATOR=:
17530   fi
17531   rm -f conf$$.sh
17532 fi
17533 ac_prog=ld
17534 if test "$GCC" = yes; then
17535   # Check if gcc -print-prog-name=ld gives a path.
17536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17537 $as_echo_n "checking for ld used by GCC... " >&6; }
17538   case $host in
17539   *-*-mingw*)
17540     # gcc leaves a trailing carriage return which upsets mingw
17541     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17542   *)
17543     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17544   esac
17545   case $ac_prog in
17546     # Accept absolute paths.
17547     [\\/]* | [A-Za-z]:[\\/]*)
17548       re_direlt='/[^/][^/]*/\.\./'
17549       # Canonicalize the path of ld
17550       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17551       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17552         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17553       done
17554       test -z "$LD" && LD="$ac_prog"
17555       ;;
17556   "")
17557     # If it fails, then pretend we aren't using GCC.
17558     ac_prog=ld
17559     ;;
17560   *)
17561     # If it is relative, then search for the first ld in PATH.
17562     with_gnu_ld=unknown
17563     ;;
17564   esac
17565 elif test "$with_gnu_ld" = yes; then
17566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17567 $as_echo_n "checking for GNU ld... " >&6; }
17568 else
17569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17570 $as_echo_n "checking for non-GNU ld... " >&6; }
17571 fi
17572 if ${acl_cv_path_LD+:} false; then :
17573   $as_echo_n "(cached) " >&6
17574 else
17575   if test -z "$LD"; then
17576   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17577   for ac_dir in $PATH; do
17578     test -z "$ac_dir" && ac_dir=.
17579     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17580       acl_cv_path_LD="$ac_dir/$ac_prog"
17581       # Check to see if the program is GNU ld.  I'd rather use --version,
17582       # but apparently some GNU ld's only accept -v.
17583       # Break only if it was the GNU/non-GNU ld that we prefer.
17584       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17585       *GNU* | *'with BFD'*)
17586         test "$with_gnu_ld" != no && break ;;
17587       *)
17588         test "$with_gnu_ld" != yes && break ;;
17589       esac
17590     fi
17591   done
17592   IFS="$ac_save_ifs"
17593 else
17594   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17595 fi
17596 fi
17597
17598 LD="$acl_cv_path_LD"
17599 if test -n "$LD"; then
17600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17601 $as_echo "$LD" >&6; }
17602 else
17603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17604 $as_echo "no" >&6; }
17605 fi
17606 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17608 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17609 if ${acl_cv_prog_gnu_ld+:} false; then :
17610   $as_echo_n "(cached) " >&6
17611 else
17612   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17613 case `$LD -v 2>&1 </dev/null` in
17614 *GNU* | *'with BFD'*)
17615   acl_cv_prog_gnu_ld=yes ;;
17616 *)
17617   acl_cv_prog_gnu_ld=no ;;
17618 esac
17619 fi
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17621 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17622 with_gnu_ld=$acl_cv_prog_gnu_ld
17623
17624
17625
17626
17627                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17628 $as_echo_n "checking for shared library run path origin... " >&6; }
17629 if ${acl_cv_rpath+:} false; then :
17630   $as_echo_n "(cached) " >&6
17631 else
17632
17633     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17634     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17635     . ./conftest.sh
17636     rm -f ./conftest.sh
17637     acl_cv_rpath=done
17638
17639 fi
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17641 $as_echo "$acl_cv_rpath" >&6; }
17642   wl="$acl_cv_wl"
17643   libext="$acl_cv_libext"
17644   shlibext="$acl_cv_shlibext"
17645   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17646   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17647   hardcode_direct="$acl_cv_hardcode_direct"
17648   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17649     # Check whether --enable-rpath was given.
17650 if test "${enable_rpath+set}" = set; then :
17651   enableval=$enable_rpath; :
17652 else
17653   enable_rpath=yes
17654 fi
17655
17656
17657
17658
17659
17660
17661
17662
17663     use_additional=yes
17664
17665   acl_save_prefix="$prefix"
17666   prefix="$acl_final_prefix"
17667   acl_save_exec_prefix="$exec_prefix"
17668   exec_prefix="$acl_final_exec_prefix"
17669
17670     eval additional_includedir=\"$includedir\"
17671     eval additional_libdir=\"$libdir\"
17672
17673   exec_prefix="$acl_save_exec_prefix"
17674   prefix="$acl_save_prefix"
17675
17676
17677 # Check whether --with-libiconv-prefix was given.
17678 if test "${with_libiconv_prefix+set}" = set; then :
17679   withval=$with_libiconv_prefix;
17680     if test "X$withval" = "Xno"; then
17681       use_additional=no
17682     else
17683       if test "X$withval" = "X"; then
17684
17685   acl_save_prefix="$prefix"
17686   prefix="$acl_final_prefix"
17687   acl_save_exec_prefix="$exec_prefix"
17688   exec_prefix="$acl_final_exec_prefix"
17689
17690           eval additional_includedir=\"$includedir\"
17691           eval additional_libdir=\"$libdir\"
17692
17693   exec_prefix="$acl_save_exec_prefix"
17694   prefix="$acl_save_prefix"
17695
17696       else
17697         additional_includedir="$withval/include"
17698         additional_libdir="$withval/lib"
17699       fi
17700     fi
17701
17702 fi
17703
17704       LIBICONV=
17705   LTLIBICONV=
17706   INCICONV=
17707   rpathdirs=
17708   ltrpathdirs=
17709   names_already_handled=
17710   names_next_round='iconv '
17711   while test -n "$names_next_round"; do
17712     names_this_round="$names_next_round"
17713     names_next_round=
17714     for name in $names_this_round; do
17715       already_handled=
17716       for n in $names_already_handled; do
17717         if test "$n" = "$name"; then
17718           already_handled=yes
17719           break
17720         fi
17721       done
17722       if test -z "$already_handled"; then
17723         names_already_handled="$names_already_handled $name"
17724                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17725         eval value=\"\$HAVE_LIB$uppername\"
17726         if test -n "$value"; then
17727           if test "$value" = yes; then
17728             eval value=\"\$LIB$uppername\"
17729             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17730             eval value=\"\$LTLIB$uppername\"
17731             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17732           else
17733                                     :
17734           fi
17735         else
17736                               found_dir=
17737           found_la=
17738           found_so=
17739           found_a=
17740           if test $use_additional = yes; then
17741             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17742               found_dir="$additional_libdir"
17743               found_so="$additional_libdir/lib$name.$shlibext"
17744               if test -f "$additional_libdir/lib$name.la"; then
17745                 found_la="$additional_libdir/lib$name.la"
17746               fi
17747             else
17748               if test -f "$additional_libdir/lib$name.$libext"; then
17749                 found_dir="$additional_libdir"
17750                 found_a="$additional_libdir/lib$name.$libext"
17751                 if test -f "$additional_libdir/lib$name.la"; then
17752                   found_la="$additional_libdir/lib$name.la"
17753                 fi
17754               fi
17755             fi
17756           fi
17757           if test "X$found_dir" = "X"; then
17758             for x in $LDFLAGS $LTLIBICONV; do
17759
17760   acl_save_prefix="$prefix"
17761   prefix="$acl_final_prefix"
17762   acl_save_exec_prefix="$exec_prefix"
17763   exec_prefix="$acl_final_exec_prefix"
17764   eval x=\"$x\"
17765   exec_prefix="$acl_save_exec_prefix"
17766   prefix="$acl_save_prefix"
17767
17768               case "$x" in
17769                 -L*)
17770                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17771                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17772                     found_dir="$dir"
17773                     found_so="$dir/lib$name.$shlibext"
17774                     if test -f "$dir/lib$name.la"; then
17775                       found_la="$dir/lib$name.la"
17776                     fi
17777                   else
17778                     if test -f "$dir/lib$name.$libext"; then
17779                       found_dir="$dir"
17780                       found_a="$dir/lib$name.$libext"
17781                       if test -f "$dir/lib$name.la"; then
17782                         found_la="$dir/lib$name.la"
17783                       fi
17784                     fi
17785                   fi
17786                   ;;
17787               esac
17788               if test "X$found_dir" != "X"; then
17789                 break
17790               fi
17791             done
17792           fi
17793           if test "X$found_dir" != "X"; then
17794                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17795             if test "X$found_so" != "X"; then
17796                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17797                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17798               else
17799                                                                                 haveit=
17800                 for x in $ltrpathdirs; do
17801                   if test "X$x" = "X$found_dir"; then
17802                     haveit=yes
17803                     break
17804                   fi
17805                 done
17806                 if test -z "$haveit"; then
17807                   ltrpathdirs="$ltrpathdirs $found_dir"
17808                 fi
17809                                 if test "$hardcode_direct" = yes; then
17810                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17811                 else
17812                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17813                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17814                                                             haveit=
17815                     for x in $rpathdirs; do
17816                       if test "X$x" = "X$found_dir"; then
17817                         haveit=yes
17818                         break
17819                       fi
17820                     done
17821                     if test -z "$haveit"; then
17822                       rpathdirs="$rpathdirs $found_dir"
17823                     fi
17824                   else
17825                                                                                 haveit=
17826                     for x in $LDFLAGS $LIBICONV; do
17827
17828   acl_save_prefix="$prefix"
17829   prefix="$acl_final_prefix"
17830   acl_save_exec_prefix="$exec_prefix"
17831   exec_prefix="$acl_final_exec_prefix"
17832   eval x=\"$x\"
17833   exec_prefix="$acl_save_exec_prefix"
17834   prefix="$acl_save_prefix"
17835
17836                       if test "X$x" = "X-L$found_dir"; then
17837                         haveit=yes
17838                         break
17839                       fi
17840                     done
17841                     if test -z "$haveit"; then
17842                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17843                     fi
17844                     if test "$hardcode_minus_L" != no; then
17845                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17846                     else
17847                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17848                     fi
17849                   fi
17850                 fi
17851               fi
17852             else
17853               if test "X$found_a" != "X"; then
17854                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17855               else
17856                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17857               fi
17858             fi
17859                         additional_includedir=
17860             case "$found_dir" in
17861               */lib | */lib/)
17862                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17863                 additional_includedir="$basedir/include"
17864                 ;;
17865             esac
17866             if test "X$additional_includedir" != "X"; then
17867                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17868                 haveit=
17869                 if test "X$additional_includedir" = "X/usr/local/include"; then
17870                   if test -n "$GCC"; then
17871                     case $host_os in
17872                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17873                     esac
17874                   fi
17875                 fi
17876                 if test -z "$haveit"; then
17877                   for x in $CPPFLAGS $INCICONV; do
17878
17879   acl_save_prefix="$prefix"
17880   prefix="$acl_final_prefix"
17881   acl_save_exec_prefix="$exec_prefix"
17882   exec_prefix="$acl_final_exec_prefix"
17883   eval x=\"$x\"
17884   exec_prefix="$acl_save_exec_prefix"
17885   prefix="$acl_save_prefix"
17886
17887                     if test "X$x" = "X-I$additional_includedir"; then
17888                       haveit=yes
17889                       break
17890                     fi
17891                   done
17892                   if test -z "$haveit"; then
17893                     if test -d "$additional_includedir"; then
17894                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17895                     fi
17896                   fi
17897                 fi
17898               fi
17899             fi
17900                         if test -n "$found_la"; then
17901                                                         save_libdir="$libdir"
17902               case "$found_la" in
17903                 */* | *\\*) . "$found_la" ;;
17904                 *) . "./$found_la" ;;
17905               esac
17906               libdir="$save_libdir"
17907                             for dep in $dependency_libs; do
17908                 case "$dep" in
17909                   -L*)
17910                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17911                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17912                       haveit=
17913                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17914                         if test -n "$GCC"; then
17915                           case $host_os in
17916                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17917                           esac
17918                         fi
17919                       fi
17920                       if test -z "$haveit"; then
17921                         haveit=
17922                         for x in $LDFLAGS $LIBICONV; do
17923
17924   acl_save_prefix="$prefix"
17925   prefix="$acl_final_prefix"
17926   acl_save_exec_prefix="$exec_prefix"
17927   exec_prefix="$acl_final_exec_prefix"
17928   eval x=\"$x\"
17929   exec_prefix="$acl_save_exec_prefix"
17930   prefix="$acl_save_prefix"
17931
17932                           if test "X$x" = "X-L$additional_libdir"; then
17933                             haveit=yes
17934                             break
17935                           fi
17936                         done
17937                         if test -z "$haveit"; then
17938                           if test -d "$additional_libdir"; then
17939                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17940                           fi
17941                         fi
17942                         haveit=
17943                         for x in $LDFLAGS $LTLIBICONV; do
17944
17945   acl_save_prefix="$prefix"
17946   prefix="$acl_final_prefix"
17947   acl_save_exec_prefix="$exec_prefix"
17948   exec_prefix="$acl_final_exec_prefix"
17949   eval x=\"$x\"
17950   exec_prefix="$acl_save_exec_prefix"
17951   prefix="$acl_save_prefix"
17952
17953                           if test "X$x" = "X-L$additional_libdir"; then
17954                             haveit=yes
17955                             break
17956                           fi
17957                         done
17958                         if test -z "$haveit"; then
17959                           if test -d "$additional_libdir"; then
17960                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17961                           fi
17962                         fi
17963                       fi
17964                     fi
17965                     ;;
17966                   -R*)
17967                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17968                     if test "$enable_rpath" != no; then
17969                                                                   haveit=
17970                       for x in $rpathdirs; do
17971                         if test "X$x" = "X$dir"; then
17972                           haveit=yes
17973                           break
17974                         fi
17975                       done
17976                       if test -z "$haveit"; then
17977                         rpathdirs="$rpathdirs $dir"
17978                       fi
17979                                                                   haveit=
17980                       for x in $ltrpathdirs; do
17981                         if test "X$x" = "X$dir"; then
17982                           haveit=yes
17983                           break
17984                         fi
17985                       done
17986                       if test -z "$haveit"; then
17987                         ltrpathdirs="$ltrpathdirs $dir"
17988                       fi
17989                     fi
17990                     ;;
17991                   -l*)
17992                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17993                     ;;
17994                   *.la)
17995                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17996                     ;;
17997                   *)
17998                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17999                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18000                     ;;
18001                 esac
18002               done
18003             fi
18004           else
18005                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18006             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18007           fi
18008         fi
18009       fi
18010     done
18011   done
18012   if test "X$rpathdirs" != "X"; then
18013     if test -n "$hardcode_libdir_separator"; then
18014                         alldirs=
18015       for found_dir in $rpathdirs; do
18016         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18017       done
18018             acl_save_libdir="$libdir"
18019       libdir="$alldirs"
18020       eval flag=\"$hardcode_libdir_flag_spec\"
18021       libdir="$acl_save_libdir"
18022       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18023     else
18024             for found_dir in $rpathdirs; do
18025         acl_save_libdir="$libdir"
18026         libdir="$found_dir"
18027         eval flag=\"$hardcode_libdir_flag_spec\"
18028         libdir="$acl_save_libdir"
18029         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18030       done
18031     fi
18032   fi
18033   if test "X$ltrpathdirs" != "X"; then
18034             for found_dir in $ltrpathdirs; do
18035       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18036     done
18037   fi
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18057 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18058 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18059   $as_echo_n "(cached) " >&6
18060 else
18061   gt_save_CPPFLAGS="$CPPFLAGS"
18062      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18063      gt_save_LIBS="$LIBS"
18064      LIBS="$LIBS -framework CoreFoundation"
18065      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h.  */
18067 #include <CFPreferences.h>
18068 int
18069 main ()
18070 {
18071 CFPreferencesCopyAppValue(NULL, NULL)
18072   ;
18073   return 0;
18074 }
18075 _ACEOF
18076 if ac_fn_c_try_link "$LINENO"; then :
18077   gt_cv_func_CFPreferencesCopyAppValue=yes
18078 else
18079   gt_cv_func_CFPreferencesCopyAppValue=no
18080 fi
18081 rm -f core conftest.err conftest.$ac_objext \
18082     conftest$ac_exeext conftest.$ac_ext
18083      CPPFLAGS="$gt_save_CPPFLAGS"
18084      LIBS="$gt_save_LIBS"
18085 fi
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18087 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18088   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18089
18090 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18091
18092   fi
18093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18094 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18095 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18096   $as_echo_n "(cached) " >&6
18097 else
18098   gt_save_CPPFLAGS="$CPPFLAGS"
18099      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18100      gt_save_LIBS="$LIBS"
18101      LIBS="$LIBS -framework CoreFoundation"
18102      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h.  */
18104 #include <CFLocale.h>
18105 int
18106 main ()
18107 {
18108 CFLocaleCopyCurrent();
18109   ;
18110   return 0;
18111 }
18112 _ACEOF
18113 if ac_fn_c_try_link "$LINENO"; then :
18114   gt_cv_func_CFLocaleCopyCurrent=yes
18115 else
18116   gt_cv_func_CFLocaleCopyCurrent=no
18117 fi
18118 rm -f core conftest.err conftest.$ac_objext \
18119     conftest$ac_exeext conftest.$ac_ext
18120      CPPFLAGS="$gt_save_CPPFLAGS"
18121      LIBS="$gt_save_LIBS"
18122 fi
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18124 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18125   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18126
18127 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18128
18129   fi
18130   INTL_MACOSX_LIBS=
18131   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18132     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18133   fi
18134
18135
18136
18137
18138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18139 $as_echo_n "checking whether NLS is requested... " >&6; }
18140     # Check whether --enable-nls was given.
18141 if test "${enable_nls+set}" = set; then :
18142   enableval=$enable_nls; USE_NLS=$enableval
18143 else
18144   USE_NLS=yes
18145 fi
18146
18147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18148 $as_echo "$USE_NLS" >&6; }
18149
18150
18151
18152
18153   LIBINTL=
18154   LTLIBINTL=
18155   POSUB=
18156
18157     if test "$USE_NLS" = "yes"; then
18158     gt_use_preinstalled_gnugettext=no
18159
18160
18161
18162
18163
18164
18165         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18166 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18167 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18168   $as_echo_n "(cached) " >&6
18169 else
18170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h.  */
18172 #include <libintl.h>
18173 extern int _nl_msg_cat_cntr;
18174 extern int *_nl_domain_bindings;
18175 int
18176 main ()
18177 {
18178 bindtextdomain ("", "");
18179 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18180   ;
18181   return 0;
18182 }
18183 _ACEOF
18184 if ac_fn_c_try_link "$LINENO"; then :
18185   gt_cv_func_gnugettext1_libc=yes
18186 else
18187   gt_cv_func_gnugettext1_libc=no
18188 fi
18189 rm -f core conftest.err conftest.$ac_objext \
18190     conftest$ac_exeext conftest.$ac_ext
18191 fi
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18193 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18194
18195         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18196
18197
18198
18199
18200
18201           am_save_CPPFLAGS="$CPPFLAGS"
18202
18203   for element in $INCICONV; do
18204     haveit=
18205     for x in $CPPFLAGS; do
18206
18207   acl_save_prefix="$prefix"
18208   prefix="$acl_final_prefix"
18209   acl_save_exec_prefix="$exec_prefix"
18210   exec_prefix="$acl_final_exec_prefix"
18211   eval x=\"$x\"
18212   exec_prefix="$acl_save_exec_prefix"
18213   prefix="$acl_save_prefix"
18214
18215       if test "X$x" = "X$element"; then
18216         haveit=yes
18217         break
18218       fi
18219     done
18220     if test -z "$haveit"; then
18221       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18222     fi
18223   done
18224
18225
18226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18227 $as_echo_n "checking for iconv... " >&6; }
18228 if ${am_cv_func_iconv+:} false; then :
18229   $as_echo_n "(cached) " >&6
18230 else
18231
18232     am_cv_func_iconv="no, consider installing GNU libiconv"
18233     am_cv_lib_iconv=no
18234     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18235 /* end confdefs.h.  */
18236 #include <stdlib.h>
18237 #include <iconv.h>
18238 int
18239 main ()
18240 {
18241 iconv_t cd = iconv_open("","");
18242        iconv(cd,NULL,NULL,NULL,NULL);
18243        iconv_close(cd);
18244   ;
18245   return 0;
18246 }
18247 _ACEOF
18248 if ac_fn_c_try_link "$LINENO"; then :
18249   am_cv_func_iconv=yes
18250 fi
18251 rm -f core conftest.err conftest.$ac_objext \
18252     conftest$ac_exeext conftest.$ac_ext
18253     if test "$am_cv_func_iconv" != yes; then
18254       am_save_LIBS="$LIBS"
18255       LIBS="$LIBS $LIBICONV"
18256       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257 /* end confdefs.h.  */
18258 #include <stdlib.h>
18259 #include <iconv.h>
18260 int
18261 main ()
18262 {
18263 iconv_t cd = iconv_open("","");
18264          iconv(cd,NULL,NULL,NULL,NULL);
18265          iconv_close(cd);
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 if ac_fn_c_try_link "$LINENO"; then :
18271   am_cv_lib_iconv=yes
18272         am_cv_func_iconv=yes
18273 fi
18274 rm -f core conftest.err conftest.$ac_objext \
18275     conftest$ac_exeext conftest.$ac_ext
18276       LIBS="$am_save_LIBS"
18277     fi
18278
18279 fi
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18281 $as_echo "$am_cv_func_iconv" >&6; }
18282   if test "$am_cv_func_iconv" = yes; then
18283
18284 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18285
18286   fi
18287   if test "$am_cv_lib_iconv" = yes; then
18288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18289 $as_echo_n "checking how to link with libiconv... " >&6; }
18290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18291 $as_echo "$LIBICONV" >&6; }
18292   else
18293             CPPFLAGS="$am_save_CPPFLAGS"
18294     LIBICONV=
18295     LTLIBICONV=
18296   fi
18297
18298
18299
18300
18301
18302
18303     use_additional=yes
18304
18305   acl_save_prefix="$prefix"
18306   prefix="$acl_final_prefix"
18307   acl_save_exec_prefix="$exec_prefix"
18308   exec_prefix="$acl_final_exec_prefix"
18309
18310     eval additional_includedir=\"$includedir\"
18311     eval additional_libdir=\"$libdir\"
18312
18313   exec_prefix="$acl_save_exec_prefix"
18314   prefix="$acl_save_prefix"
18315
18316
18317 # Check whether --with-libintl-prefix was given.
18318 if test "${with_libintl_prefix+set}" = set; then :
18319   withval=$with_libintl_prefix;
18320     if test "X$withval" = "Xno"; then
18321       use_additional=no
18322     else
18323       if test "X$withval" = "X"; then
18324
18325   acl_save_prefix="$prefix"
18326   prefix="$acl_final_prefix"
18327   acl_save_exec_prefix="$exec_prefix"
18328   exec_prefix="$acl_final_exec_prefix"
18329
18330           eval additional_includedir=\"$includedir\"
18331           eval additional_libdir=\"$libdir\"
18332
18333   exec_prefix="$acl_save_exec_prefix"
18334   prefix="$acl_save_prefix"
18335
18336       else
18337         additional_includedir="$withval/include"
18338         additional_libdir="$withval/lib"
18339       fi
18340     fi
18341
18342 fi
18343
18344       LIBINTL=
18345   LTLIBINTL=
18346   INCINTL=
18347   rpathdirs=
18348   ltrpathdirs=
18349   names_already_handled=
18350   names_next_round='intl '
18351   while test -n "$names_next_round"; do
18352     names_this_round="$names_next_round"
18353     names_next_round=
18354     for name in $names_this_round; do
18355       already_handled=
18356       for n in $names_already_handled; do
18357         if test "$n" = "$name"; then
18358           already_handled=yes
18359           break
18360         fi
18361       done
18362       if test -z "$already_handled"; then
18363         names_already_handled="$names_already_handled $name"
18364                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18365         eval value=\"\$HAVE_LIB$uppername\"
18366         if test -n "$value"; then
18367           if test "$value" = yes; then
18368             eval value=\"\$LIB$uppername\"
18369             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18370             eval value=\"\$LTLIB$uppername\"
18371             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18372           else
18373                                     :
18374           fi
18375         else
18376                               found_dir=
18377           found_la=
18378           found_so=
18379           found_a=
18380           if test $use_additional = yes; then
18381             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18382               found_dir="$additional_libdir"
18383               found_so="$additional_libdir/lib$name.$shlibext"
18384               if test -f "$additional_libdir/lib$name.la"; then
18385                 found_la="$additional_libdir/lib$name.la"
18386               fi
18387             else
18388               if test -f "$additional_libdir/lib$name.$libext"; then
18389                 found_dir="$additional_libdir"
18390                 found_a="$additional_libdir/lib$name.$libext"
18391                 if test -f "$additional_libdir/lib$name.la"; then
18392                   found_la="$additional_libdir/lib$name.la"
18393                 fi
18394               fi
18395             fi
18396           fi
18397           if test "X$found_dir" = "X"; then
18398             for x in $LDFLAGS $LTLIBINTL; do
18399
18400   acl_save_prefix="$prefix"
18401   prefix="$acl_final_prefix"
18402   acl_save_exec_prefix="$exec_prefix"
18403   exec_prefix="$acl_final_exec_prefix"
18404   eval x=\"$x\"
18405   exec_prefix="$acl_save_exec_prefix"
18406   prefix="$acl_save_prefix"
18407
18408               case "$x" in
18409                 -L*)
18410                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18411                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18412                     found_dir="$dir"
18413                     found_so="$dir/lib$name.$shlibext"
18414                     if test -f "$dir/lib$name.la"; then
18415                       found_la="$dir/lib$name.la"
18416                     fi
18417                   else
18418                     if test -f "$dir/lib$name.$libext"; then
18419                       found_dir="$dir"
18420                       found_a="$dir/lib$name.$libext"
18421                       if test -f "$dir/lib$name.la"; then
18422                         found_la="$dir/lib$name.la"
18423                       fi
18424                     fi
18425                   fi
18426                   ;;
18427               esac
18428               if test "X$found_dir" != "X"; then
18429                 break
18430               fi
18431             done
18432           fi
18433           if test "X$found_dir" != "X"; then
18434                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18435             if test "X$found_so" != "X"; then
18436                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18437                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18438               else
18439                                                                                 haveit=
18440                 for x in $ltrpathdirs; do
18441                   if test "X$x" = "X$found_dir"; then
18442                     haveit=yes
18443                     break
18444                   fi
18445                 done
18446                 if test -z "$haveit"; then
18447                   ltrpathdirs="$ltrpathdirs $found_dir"
18448                 fi
18449                                 if test "$hardcode_direct" = yes; then
18450                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18451                 else
18452                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18453                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18454                                                             haveit=
18455                     for x in $rpathdirs; do
18456                       if test "X$x" = "X$found_dir"; then
18457                         haveit=yes
18458                         break
18459                       fi
18460                     done
18461                     if test -z "$haveit"; then
18462                       rpathdirs="$rpathdirs $found_dir"
18463                     fi
18464                   else
18465                                                                                 haveit=
18466                     for x in $LDFLAGS $LIBINTL; do
18467
18468   acl_save_prefix="$prefix"
18469   prefix="$acl_final_prefix"
18470   acl_save_exec_prefix="$exec_prefix"
18471   exec_prefix="$acl_final_exec_prefix"
18472   eval x=\"$x\"
18473   exec_prefix="$acl_save_exec_prefix"
18474   prefix="$acl_save_prefix"
18475
18476                       if test "X$x" = "X-L$found_dir"; then
18477                         haveit=yes
18478                         break
18479                       fi
18480                     done
18481                     if test -z "$haveit"; then
18482                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18483                     fi
18484                     if test "$hardcode_minus_L" != no; then
18485                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18486                     else
18487                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18488                     fi
18489                   fi
18490                 fi
18491               fi
18492             else
18493               if test "X$found_a" != "X"; then
18494                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18495               else
18496                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18497               fi
18498             fi
18499                         additional_includedir=
18500             case "$found_dir" in
18501               */lib | */lib/)
18502                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18503                 additional_includedir="$basedir/include"
18504                 ;;
18505             esac
18506             if test "X$additional_includedir" != "X"; then
18507                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18508                 haveit=
18509                 if test "X$additional_includedir" = "X/usr/local/include"; then
18510                   if test -n "$GCC"; then
18511                     case $host_os in
18512                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18513                     esac
18514                   fi
18515                 fi
18516                 if test -z "$haveit"; then
18517                   for x in $CPPFLAGS $INCINTL; do
18518
18519   acl_save_prefix="$prefix"
18520   prefix="$acl_final_prefix"
18521   acl_save_exec_prefix="$exec_prefix"
18522   exec_prefix="$acl_final_exec_prefix"
18523   eval x=\"$x\"
18524   exec_prefix="$acl_save_exec_prefix"
18525   prefix="$acl_save_prefix"
18526
18527                     if test "X$x" = "X-I$additional_includedir"; then
18528                       haveit=yes
18529                       break
18530                     fi
18531                   done
18532                   if test -z "$haveit"; then
18533                     if test -d "$additional_includedir"; then
18534                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18535                     fi
18536                   fi
18537                 fi
18538               fi
18539             fi
18540                         if test -n "$found_la"; then
18541                                                         save_libdir="$libdir"
18542               case "$found_la" in
18543                 */* | *\\*) . "$found_la" ;;
18544                 *) . "./$found_la" ;;
18545               esac
18546               libdir="$save_libdir"
18547                             for dep in $dependency_libs; do
18548                 case "$dep" in
18549                   -L*)
18550                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18551                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18552                       haveit=
18553                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18554                         if test -n "$GCC"; then
18555                           case $host_os in
18556                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18557                           esac
18558                         fi
18559                       fi
18560                       if test -z "$haveit"; then
18561                         haveit=
18562                         for x in $LDFLAGS $LIBINTL; do
18563
18564   acl_save_prefix="$prefix"
18565   prefix="$acl_final_prefix"
18566   acl_save_exec_prefix="$exec_prefix"
18567   exec_prefix="$acl_final_exec_prefix"
18568   eval x=\"$x\"
18569   exec_prefix="$acl_save_exec_prefix"
18570   prefix="$acl_save_prefix"
18571
18572                           if test "X$x" = "X-L$additional_libdir"; then
18573                             haveit=yes
18574                             break
18575                           fi
18576                         done
18577                         if test -z "$haveit"; then
18578                           if test -d "$additional_libdir"; then
18579                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18580                           fi
18581                         fi
18582                         haveit=
18583                         for x in $LDFLAGS $LTLIBINTL; do
18584
18585   acl_save_prefix="$prefix"
18586   prefix="$acl_final_prefix"
18587   acl_save_exec_prefix="$exec_prefix"
18588   exec_prefix="$acl_final_exec_prefix"
18589   eval x=\"$x\"
18590   exec_prefix="$acl_save_exec_prefix"
18591   prefix="$acl_save_prefix"
18592
18593                           if test "X$x" = "X-L$additional_libdir"; then
18594                             haveit=yes
18595                             break
18596                           fi
18597                         done
18598                         if test -z "$haveit"; then
18599                           if test -d "$additional_libdir"; then
18600                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18601                           fi
18602                         fi
18603                       fi
18604                     fi
18605                     ;;
18606                   -R*)
18607                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18608                     if test "$enable_rpath" != no; then
18609                                                                   haveit=
18610                       for x in $rpathdirs; do
18611                         if test "X$x" = "X$dir"; then
18612                           haveit=yes
18613                           break
18614                         fi
18615                       done
18616                       if test -z "$haveit"; then
18617                         rpathdirs="$rpathdirs $dir"
18618                       fi
18619                                                                   haveit=
18620                       for x in $ltrpathdirs; do
18621                         if test "X$x" = "X$dir"; then
18622                           haveit=yes
18623                           break
18624                         fi
18625                       done
18626                       if test -z "$haveit"; then
18627                         ltrpathdirs="$ltrpathdirs $dir"
18628                       fi
18629                     fi
18630                     ;;
18631                   -l*)
18632                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18633                     ;;
18634                   *.la)
18635                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18636                     ;;
18637                   *)
18638                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18639                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18640                     ;;
18641                 esac
18642               done
18643             fi
18644           else
18645                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18646             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18647           fi
18648         fi
18649       fi
18650     done
18651   done
18652   if test "X$rpathdirs" != "X"; then
18653     if test -n "$hardcode_libdir_separator"; then
18654                         alldirs=
18655       for found_dir in $rpathdirs; do
18656         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18657       done
18658             acl_save_libdir="$libdir"
18659       libdir="$alldirs"
18660       eval flag=\"$hardcode_libdir_flag_spec\"
18661       libdir="$acl_save_libdir"
18662       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18663     else
18664             for found_dir in $rpathdirs; do
18665         acl_save_libdir="$libdir"
18666         libdir="$found_dir"
18667         eval flag=\"$hardcode_libdir_flag_spec\"
18668         libdir="$acl_save_libdir"
18669         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18670       done
18671     fi
18672   fi
18673   if test "X$ltrpathdirs" != "X"; then
18674             for found_dir in $ltrpathdirs; do
18675       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18676     done
18677   fi
18678
18679           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18680 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18681 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18682   $as_echo_n "(cached) " >&6
18683 else
18684   gt_save_CPPFLAGS="$CPPFLAGS"
18685             CPPFLAGS="$CPPFLAGS $INCINTL"
18686             gt_save_LIBS="$LIBS"
18687             LIBS="$LIBS $LIBINTL"
18688                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18689 /* end confdefs.h.  */
18690 #include <libintl.h>
18691 extern int _nl_msg_cat_cntr;
18692 extern
18693 #ifdef __cplusplus
18694 "C"
18695 #endif
18696 const char *_nl_expand_alias (const char *);
18697 int
18698 main ()
18699 {
18700 bindtextdomain ("", "");
18701 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18702   ;
18703   return 0;
18704 }
18705 _ACEOF
18706 if ac_fn_c_try_link "$LINENO"; then :
18707   gt_cv_func_gnugettext1_libintl=yes
18708 else
18709   gt_cv_func_gnugettext1_libintl=no
18710 fi
18711 rm -f core conftest.err conftest.$ac_objext \
18712     conftest$ac_exeext conftest.$ac_ext
18713                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18714               LIBS="$LIBS $LIBICONV"
18715               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h.  */
18717 #include <libintl.h>
18718 extern int _nl_msg_cat_cntr;
18719 extern
18720 #ifdef __cplusplus
18721 "C"
18722 #endif
18723 const char *_nl_expand_alias (const char *);
18724 int
18725 main ()
18726 {
18727 bindtextdomain ("", "");
18728 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18729   ;
18730   return 0;
18731 }
18732 _ACEOF
18733 if ac_fn_c_try_link "$LINENO"; then :
18734   LIBINTL="$LIBINTL $LIBICONV"
18735                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18736                 gt_cv_func_gnugettext1_libintl=yes
18737
18738 fi
18739 rm -f core conftest.err conftest.$ac_objext \
18740     conftest$ac_exeext conftest.$ac_ext
18741             fi
18742             CPPFLAGS="$gt_save_CPPFLAGS"
18743             LIBS="$gt_save_LIBS"
18744 fi
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18746 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18747         fi
18748
18749                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18750            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18751                 && test "$PACKAGE" != gettext-runtime \
18752                 && test "$PACKAGE" != gettext-tools; }; then
18753           gt_use_preinstalled_gnugettext=yes
18754         else
18755                     LIBINTL=
18756           LTLIBINTL=
18757           INCINTL=
18758         fi
18759
18760
18761
18762     if test -n "$INTL_MACOSX_LIBS"; then
18763       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18764          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18765                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18766         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18767       fi
18768     fi
18769
18770     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18771        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18772
18773 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18774
18775     else
18776       USE_NLS=no
18777     fi
18778   fi
18779
18780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18781 $as_echo_n "checking whether to use NLS... " >&6; }
18782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18783 $as_echo "$USE_NLS" >&6; }
18784   if test "$USE_NLS" = "yes"; then
18785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18786 $as_echo_n "checking where the gettext function comes from... " >&6; }
18787     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18788       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18789         gt_source="external libintl"
18790       else
18791         gt_source="libc"
18792       fi
18793     else
18794       gt_source="included intl directory"
18795     fi
18796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18797 $as_echo "$gt_source" >&6; }
18798   fi
18799
18800   if test "$USE_NLS" = "yes"; then
18801
18802     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18803       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18804         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18805 $as_echo_n "checking how to link with libintl... " >&6; }
18806         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18807 $as_echo "$LIBINTL" >&6; }
18808
18809   for element in $INCINTL; do
18810     haveit=
18811     for x in $CPPFLAGS; do
18812
18813   acl_save_prefix="$prefix"
18814   prefix="$acl_final_prefix"
18815   acl_save_exec_prefix="$exec_prefix"
18816   exec_prefix="$acl_final_exec_prefix"
18817   eval x=\"$x\"
18818   exec_prefix="$acl_save_exec_prefix"
18819   prefix="$acl_save_prefix"
18820
18821       if test "X$x" = "X$element"; then
18822         haveit=yes
18823         break
18824       fi
18825     done
18826     if test -z "$haveit"; then
18827       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18828     fi
18829   done
18830
18831       fi
18832
18833
18834 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18835
18836
18837 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18838
18839     fi
18840
18841         POSUB=po
18842   fi
18843
18844
18845
18846     INTLLIBS="$LIBINTL"
18847
18848
18849
18850
18851
18852
18853
18854 os_name=`uname -s 2>/dev/null`
18855 if test x${prefix} = xNONE ; then
18856    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18857       sysconfdir=/etc/bacula
18858    fi
18859
18860    if test `eval echo ${libdir}` = NONE/lib ; then
18861       case ${os_name} in
18862       Linux)
18863          os_processor=`uname -p 2>/dev/null`
18864          case ${os_processor} in
18865          x86_64)
18866             libdir=/usr/lib64
18867             ;;
18868          *)
18869             libdir=/usr/lib
18870             ;;
18871          esac
18872          ;;
18873       *)
18874          libdir=/usr/lib
18875          ;;
18876       esac
18877    fi
18878
18879    if test `eval echo ${includedir}` = NONE/include ; then
18880       includedir=/usr/include
18881    fi
18882
18883    if test `eval echo ${datarootdir}` = NONE/share ; then
18884       datarootdir=/usr/share
18885    fi
18886    prefix=
18887 fi
18888
18889 if test x${exec_prefix} = xNONE ; then
18890    exec_prefix=${prefix}
18891 fi
18892
18893 sysconfdir=`eval echo ${sysconfdir}`
18894 datarootdir=`eval echo ${datarootdir}`
18895 docdir=`eval echo ${docdir}`
18896 htmldir=`eval echo ${htmldir}`
18897 libdir=`eval echo ${libdir}`
18898 includedir=`eval echo ${includedir}`
18899 localedir=`eval echo ${datarootdir}/locale`
18900 cat >>confdefs.h <<_ACEOF
18901 #define SYSCONFDIR "$sysconfdir"
18902 _ACEOF
18903
18904 cat >>confdefs.h <<_ACEOF
18905 #define LOCALEDIR "$localedir"
18906 _ACEOF
18907
18908
18909 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18910    sbindir=${exec_prefix}/sbin
18911 fi
18912 sbindir=`eval echo ${sbindir}`
18913
18914 if test x$mandir = x'${prefix}/man' ; then
18915    mandir=/usr/share/man
18916 fi
18917
18918 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18919    htmldir=`eval echo ${docdir}html`
18920 fi
18921
18922 if test x$docdir = x'/usr/share/doc/' ; then
18923    docdir=`eval echo ${docdir}bacula`
18924 fi
18925
18926
18927 for ac_prog in msgfmt
18928 do
18929   # Extract the first word of "$ac_prog", so it can be a program name with args.
18930 set dummy $ac_prog; ac_word=$2
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18932 $as_echo_n "checking for $ac_word... " >&6; }
18933 if ${ac_cv_path_MSGFMT+:} false; then :
18934   $as_echo_n "(cached) " >&6
18935 else
18936   case $MSGFMT in
18937   [\\/]* | ?:[\\/]*)
18938   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18939   ;;
18940   *)
18941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18942 for as_dir in $PATH
18943 do
18944   IFS=$as_save_IFS
18945   test -z "$as_dir" && as_dir=.
18946     for ac_exec_ext in '' $ac_executable_extensions; do
18947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18948     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18950     break 2
18951   fi
18952 done
18953   done
18954 IFS=$as_save_IFS
18955
18956   ;;
18957 esac
18958 fi
18959 MSGFMT=$ac_cv_path_MSGFMT
18960 if test -n "$MSGFMT"; then
18961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18962 $as_echo "$MSGFMT" >&6; }
18963 else
18964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18965 $as_echo "no" >&6; }
18966 fi
18967
18968
18969   test -n "$MSGFMT" && break
18970 done
18971 test -n "$MSGFMT" || MSGFMT="no"
18972
18973 if test "$MSGFMT" = "no"
18974 then
18975    echo 'msgfmt program not found, disabling NLS !'
18976    USE_NLS=no
18977    USE_INCLUDED_LIBINTL=no
18978 #else
18979
18980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18981 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18982 if ${ac_cv_gnu_library_2+:} false; then :
18983   $as_echo_n "(cached) " >&6
18984 else
18985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h.  */
18987
18988 #include <features.h>
18989 #ifdef __GNU_LIBRARY__
18990  #if (__GLIBC__ >= 2)
18991   Lucky GNU user
18992  #endif
18993 #endif
18994
18995 _ACEOF
18996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18997   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18998   ac_cv_gnu_library_2=yes
18999 else
19000   ac_cv_gnu_library_2=no
19001 fi
19002 rm -f conftest*
19003
19004
19005
19006 fi
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19008 $as_echo "$ac_cv_gnu_library_2" >&6; }
19009
19010     GLIBC2="$ac_cv_gnu_library_2"
19011
19012
19013 if test -n "$ac_tool_prefix"; then
19014   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19015 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19017 $as_echo_n "checking for $ac_word... " >&6; }
19018 if ${ac_cv_prog_RANLIB+:} false; then :
19019   $as_echo_n "(cached) " >&6
19020 else
19021   if test -n "$RANLIB"; then
19022   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19023 else
19024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19025 for as_dir in $PATH
19026 do
19027   IFS=$as_save_IFS
19028   test -z "$as_dir" && as_dir=.
19029     for ac_exec_ext in '' $ac_executable_extensions; do
19030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19031     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19033     break 2
19034   fi
19035 done
19036   done
19037 IFS=$as_save_IFS
19038
19039 fi
19040 fi
19041 RANLIB=$ac_cv_prog_RANLIB
19042 if test -n "$RANLIB"; then
19043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19044 $as_echo "$RANLIB" >&6; }
19045 else
19046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19047 $as_echo "no" >&6; }
19048 fi
19049
19050
19051 fi
19052 if test -z "$ac_cv_prog_RANLIB"; then
19053   ac_ct_RANLIB=$RANLIB
19054   # Extract the first word of "ranlib", so it can be a program name with args.
19055 set dummy ranlib; ac_word=$2
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19057 $as_echo_n "checking for $ac_word... " >&6; }
19058 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19059   $as_echo_n "(cached) " >&6
19060 else
19061   if test -n "$ac_ct_RANLIB"; then
19062   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19063 else
19064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19065 for as_dir in $PATH
19066 do
19067   IFS=$as_save_IFS
19068   test -z "$as_dir" && as_dir=.
19069     for ac_exec_ext in '' $ac_executable_extensions; do
19070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19071     ac_cv_prog_ac_ct_RANLIB="ranlib"
19072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19073     break 2
19074   fi
19075 done
19076   done
19077 IFS=$as_save_IFS
19078
19079 fi
19080 fi
19081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19082 if test -n "$ac_ct_RANLIB"; then
19083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19084 $as_echo "$ac_ct_RANLIB" >&6; }
19085 else
19086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19087 $as_echo "no" >&6; }
19088 fi
19089
19090   if test "x$ac_ct_RANLIB" = x; then
19091     RANLIB=":"
19092   else
19093     case $cross_compiling:$ac_tool_warned in
19094 yes:)
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19097 ac_tool_warned=yes ;;
19098 esac
19099     RANLIB=$ac_ct_RANLIB
19100   fi
19101 else
19102   RANLIB="$ac_cv_prog_RANLIB"
19103 fi
19104
19105
19106         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19107 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19108 if ${ac_cv_lib_cposix_strerror+:} false; then :
19109   $as_echo_n "(cached) " >&6
19110 else
19111   ac_check_lib_save_LIBS=$LIBS
19112 LIBS="-lcposix  $LIBS"
19113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h.  */
19115
19116 /* Override any GCC internal prototype to avoid an error.
19117    Use char because int might match the return type of a GCC
19118    builtin and then its argument prototype would still apply.  */
19119 #ifdef __cplusplus
19120 extern "C"
19121 #endif
19122 char strerror ();
19123 int
19124 main ()
19125 {
19126 return strerror ();
19127   ;
19128   return 0;
19129 }
19130 _ACEOF
19131 if ac_fn_c_try_link "$LINENO"; then :
19132   ac_cv_lib_cposix_strerror=yes
19133 else
19134   ac_cv_lib_cposix_strerror=no
19135 fi
19136 rm -f core conftest.err conftest.$ac_objext \
19137     conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19139 fi
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19141 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19142 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19143   LIBS="$LIBS -lcposix"
19144 fi
19145
19146
19147
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19149 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19150 if ${ac_cv_c_const+:} false; then :
19151   $as_echo_n "(cached) " >&6
19152 else
19153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h.  */
19155
19156 int
19157 main ()
19158 {
19159 /* FIXME: Include the comments suggested by Paul. */
19160 #ifndef __cplusplus
19161   /* Ultrix mips cc rejects this.  */
19162   typedef int charset[2];
19163   const charset cs;
19164   /* SunOS 4.1.1 cc rejects this.  */
19165   char const *const *pcpcc;
19166   char **ppc;
19167   /* NEC SVR4.0.2 mips cc rejects this.  */
19168   struct point {int x, y;};
19169   static struct point const zero = {0,0};
19170   /* AIX XL C 1.02.0.0 rejects this.
19171      It does not let you subtract one const X* pointer from another in
19172      an arm of an if-expression whose if-part is not a constant
19173      expression */
19174   const char *g = "string";
19175   pcpcc = &g + (g ? g-g : 0);
19176   /* HPUX 7.0 cc rejects these. */
19177   ++pcpcc;
19178   ppc = (char**) pcpcc;
19179   pcpcc = (char const *const *) ppc;
19180   { /* SCO 3.2v4 cc rejects this.  */
19181     char *t;
19182     char const *s = 0 ? (char *) 0 : (char const *) 0;
19183
19184     *t++ = 0;
19185     if (s) return 0;
19186   }
19187   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19188     int x[] = {25, 17};
19189     const int *foo = &x[0];
19190     ++foo;
19191   }
19192   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19193     typedef const int *iptr;
19194     iptr p = 0;
19195     ++p;
19196   }
19197   { /* AIX XL C 1.02.0.0 rejects this saying
19198        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19199     struct s { int j; const int *ap[3]; };
19200     struct s *b; b->j = 5;
19201   }
19202   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19203     const int foo = 10;
19204     if (!foo) return 0;
19205   }
19206   return !cs[0] && !zero.x;
19207 #endif
19208
19209   ;
19210   return 0;
19211 }
19212 _ACEOF
19213 if ac_fn_c_try_compile "$LINENO"; then :
19214   ac_cv_c_const=yes
19215 else
19216   ac_cv_c_const=no
19217 fi
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219 fi
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19221 $as_echo "$ac_cv_c_const" >&6; }
19222 if test $ac_cv_c_const = no; then
19223
19224 $as_echo "#define const /**/" >>confdefs.h
19225
19226 fi
19227
19228
19229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19230 $as_echo_n "checking for signed... " >&6; }
19231 if ${bh_cv_c_signed+:} false; then :
19232   $as_echo_n "(cached) " >&6
19233 else
19234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235 /* end confdefs.h.  */
19236
19237 int
19238 main ()
19239 {
19240 signed char x;
19241   ;
19242   return 0;
19243 }
19244 _ACEOF
19245 if ac_fn_c_try_compile "$LINENO"; then :
19246   bh_cv_c_signed=yes
19247 else
19248   bh_cv_c_signed=no
19249 fi
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19251 fi
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19253 $as_echo "$bh_cv_c_signed" >&6; }
19254   if test $bh_cv_c_signed = no; then
19255
19256 $as_echo "#define signed /**/" >>confdefs.h
19257
19258   fi
19259
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19261 $as_echo_n "checking for inline... " >&6; }
19262 if ${ac_cv_c_inline+:} false; then :
19263   $as_echo_n "(cached) " >&6
19264 else
19265   ac_cv_c_inline=no
19266 for ac_kw in inline __inline__ __inline; do
19267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h.  */
19269 #ifndef __cplusplus
19270 typedef int foo_t;
19271 static $ac_kw foo_t static_foo () {return 0; }
19272 $ac_kw foo_t foo () {return 0; }
19273 #endif
19274
19275 _ACEOF
19276 if ac_fn_c_try_compile "$LINENO"; then :
19277   ac_cv_c_inline=$ac_kw
19278 fi
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280   test "$ac_cv_c_inline" != no && break
19281 done
19282
19283 fi
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19285 $as_echo "$ac_cv_c_inline" >&6; }
19286
19287 case $ac_cv_c_inline in
19288   inline | yes) ;;
19289   *)
19290     case $ac_cv_c_inline in
19291       no) ac_val=;;
19292       *) ac_val=$ac_cv_c_inline;;
19293     esac
19294     cat >>confdefs.h <<_ACEOF
19295 #ifndef __cplusplus
19296 #define inline $ac_val
19297 #endif
19298 _ACEOF
19299     ;;
19300 esac
19301
19302 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19303 if test "x$ac_cv_type_off_t" = xyes; then :
19304
19305 else
19306
19307 cat >>confdefs.h <<_ACEOF
19308 #define off_t long int
19309 _ACEOF
19310
19311 fi
19312
19313 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19314 if test "x$ac_cv_type_size_t" = xyes; then :
19315
19316 else
19317
19318 cat >>confdefs.h <<_ACEOF
19319 #define size_t unsigned int
19320 _ACEOF
19321
19322 fi
19323
19324
19325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19326 $as_echo_n "checking for long long... " >&6; }
19327 if ${ac_cv_type_long_long+:} false; then :
19328   $as_echo_n "(cached) " >&6
19329 else
19330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h.  */
19332 long long ll = 1LL; int i = 63;
19333 int
19334 main ()
19335 {
19336 long long llmax = (long long) -1;
19337      return ll << i | ll >> i | llmax / ll | llmax % ll;
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 if ac_fn_c_try_link "$LINENO"; then :
19343   ac_cv_type_long_long=yes
19344 else
19345   ac_cv_type_long_long=no
19346 fi
19347 rm -f core conftest.err conftest.$ac_objext \
19348     conftest$ac_exeext conftest.$ac_ext
19349 fi
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19351 $as_echo "$ac_cv_type_long_long" >&6; }
19352   if test $ac_cv_type_long_long = yes; then
19353
19354 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19355
19356   fi
19357
19358
19359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19360 $as_echo_n "checking for long double... " >&6; }
19361 if ${gt_cv_c_long_double+:} false; then :
19362   $as_echo_n "(cached) " >&6
19363 else
19364   if test "$GCC" = yes; then
19365        gt_cv_c_long_double=yes
19366      else
19367        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h.  */
19369
19370          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19371          long double foo = 0.0;
19372          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19373          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19374
19375 int
19376 main ()
19377 {
19378
19379   ;
19380   return 0;
19381 }
19382 _ACEOF
19383 if ac_fn_c_try_compile "$LINENO"; then :
19384   gt_cv_c_long_double=yes
19385 else
19386   gt_cv_c_long_double=no
19387 fi
19388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19389      fi
19390 fi
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19392 $as_echo "$gt_cv_c_long_double" >&6; }
19393   if test $gt_cv_c_long_double = yes; then
19394
19395 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19396
19397   fi
19398
19399
19400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19401 $as_echo_n "checking for wchar_t... " >&6; }
19402 if ${gt_cv_c_wchar_t+:} false; then :
19403   $as_echo_n "(cached) " >&6
19404 else
19405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19406 /* end confdefs.h.  */
19407 #include <stddef.h>
19408        wchar_t foo = (wchar_t)'\0';
19409 int
19410 main ()
19411 {
19412
19413   ;
19414   return 0;
19415 }
19416 _ACEOF
19417 if ac_fn_c_try_compile "$LINENO"; then :
19418   gt_cv_c_wchar_t=yes
19419 else
19420   gt_cv_c_wchar_t=no
19421 fi
19422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19423 fi
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19425 $as_echo "$gt_cv_c_wchar_t" >&6; }
19426   if test $gt_cv_c_wchar_t = yes; then
19427
19428 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19429
19430   fi
19431
19432
19433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19434 $as_echo_n "checking for wint_t... " >&6; }
19435 if ${gt_cv_c_wint_t+:} false; then :
19436   $as_echo_n "(cached) " >&6
19437 else
19438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h.  */
19440 #include <wchar.h>
19441        wint_t foo = (wchar_t)'\0';
19442 int
19443 main ()
19444 {
19445
19446   ;
19447   return 0;
19448 }
19449 _ACEOF
19450 if ac_fn_c_try_compile "$LINENO"; then :
19451   gt_cv_c_wint_t=yes
19452 else
19453   gt_cv_c_wint_t=no
19454 fi
19455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19456 fi
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19458 $as_echo "$gt_cv_c_wint_t" >&6; }
19459   if test $gt_cv_c_wint_t = yes; then
19460
19461 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19462
19463   fi
19464
19465
19466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19467 $as_echo_n "checking for inttypes.h... " >&6; }
19468 if ${gl_cv_header_inttypes_h+:} false; then :
19469   $as_echo_n "(cached) " >&6
19470 else
19471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19472 /* end confdefs.h.  */
19473 #include <sys/types.h>
19474 #include <inttypes.h>
19475 int
19476 main ()
19477 {
19478 uintmax_t i = (uintmax_t) -1;
19479   ;
19480   return 0;
19481 }
19482 _ACEOF
19483 if ac_fn_c_try_compile "$LINENO"; then :
19484   gl_cv_header_inttypes_h=yes
19485 else
19486   gl_cv_header_inttypes_h=no
19487 fi
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489 fi
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19491 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19492   if test $gl_cv_header_inttypes_h = yes; then
19493
19494 cat >>confdefs.h <<_ACEOF
19495 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19496 _ACEOF
19497
19498   fi
19499
19500
19501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19502 $as_echo_n "checking for stdint.h... " >&6; }
19503 if ${gl_cv_header_stdint_h+:} false; then :
19504   $as_echo_n "(cached) " >&6
19505 else
19506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h.  */
19508 #include <sys/types.h>
19509 #include <stdint.h>
19510 int
19511 main ()
19512 {
19513 uintmax_t i = (uintmax_t) -1;
19514   ;
19515   return 0;
19516 }
19517 _ACEOF
19518 if ac_fn_c_try_compile "$LINENO"; then :
19519   gl_cv_header_stdint_h=yes
19520 else
19521   gl_cv_header_stdint_h=no
19522 fi
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19524 fi
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19526 $as_echo "$gl_cv_header_stdint_h" >&6; }
19527   if test $gl_cv_header_stdint_h = yes; then
19528
19529 cat >>confdefs.h <<_ACEOF
19530 #define HAVE_STDINT_H_WITH_UINTMAX 1
19531 _ACEOF
19532
19533   fi
19534
19535
19536
19537
19538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19539 $as_echo_n "checking for intmax_t... " >&6; }
19540 if ${gt_cv_c_intmax_t+:} false; then :
19541   $as_echo_n "(cached) " >&6
19542 else
19543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h.  */
19545
19546 #include <stddef.h>
19547 #include <stdlib.h>
19548 #if HAVE_STDINT_H_WITH_UINTMAX
19549 #include <stdint.h>
19550 #endif
19551 #if HAVE_INTTYPES_H_WITH_UINTMAX
19552 #include <inttypes.h>
19553 #endif
19554
19555 int
19556 main ()
19557 {
19558 intmax_t x = -1;
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 if ac_fn_c_try_compile "$LINENO"; then :
19564   gt_cv_c_intmax_t=yes
19565 else
19566   gt_cv_c_intmax_t=no
19567 fi
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569 fi
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19571 $as_echo "$gt_cv_c_intmax_t" >&6; }
19572   if test $gt_cv_c_intmax_t = yes; then
19573
19574 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19575
19576   fi
19577
19578
19579
19580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19581 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19582 if ${gt_cv_func_printf_posix+:} false; then :
19583   $as_echo_n "(cached) " >&6
19584 else
19585
19586       if test "$cross_compiling" = yes; then :
19587
19588         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h.  */
19590
19591 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19592   notposix
19593 #endif
19594
19595 _ACEOF
19596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19597   $EGREP "notposix" >/dev/null 2>&1; then :
19598   gt_cv_func_printf_posix="guessing no"
19599 else
19600   gt_cv_func_printf_posix="guessing yes"
19601 fi
19602 rm -f conftest*
19603
19604
19605 else
19606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h.  */
19608
19609 #include <stdio.h>
19610 #include <string.h>
19611 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19612    dollar expansion (possibly an autoconf bug).  */
19613 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19614 static char buf[100];
19615 int main ()
19616 {
19617   sprintf (buf, format, 33, 55);
19618   return (strcmp (buf, "55 33") != 0);
19619 }
19620 _ACEOF
19621 if ac_fn_c_try_run "$LINENO"; then :
19622   gt_cv_func_printf_posix=yes
19623 else
19624   gt_cv_func_printf_posix=no
19625 fi
19626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19627   conftest.$ac_objext conftest.beam conftest.$ac_ext
19628 fi
19629
19630
19631 fi
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19633 $as_echo "$gt_cv_func_printf_posix" >&6; }
19634   case $gt_cv_func_printf_posix in
19635     *yes)
19636
19637 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19638
19639       ;;
19640   esac
19641
19642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19643 # for constant arguments.  Useless!
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19645 $as_echo_n "checking for working alloca.h... " >&6; }
19646 if ${ac_cv_working_alloca_h+:} false; then :
19647   $as_echo_n "(cached) " >&6
19648 else
19649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h.  */
19651 #include <alloca.h>
19652 int
19653 main ()
19654 {
19655 char *p = (char *) alloca (2 * sizeof (int));
19656                           if (p) return 0;
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 if ac_fn_c_try_link "$LINENO"; then :
19662   ac_cv_working_alloca_h=yes
19663 else
19664   ac_cv_working_alloca_h=no
19665 fi
19666 rm -f core conftest.err conftest.$ac_objext \
19667     conftest$ac_exeext conftest.$ac_ext
19668 fi
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19670 $as_echo "$ac_cv_working_alloca_h" >&6; }
19671 if test $ac_cv_working_alloca_h = yes; then
19672
19673 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19674
19675 fi
19676
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19678 $as_echo_n "checking for alloca... " >&6; }
19679 if ${ac_cv_func_alloca_works+:} false; then :
19680   $as_echo_n "(cached) " >&6
19681 else
19682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683 /* end confdefs.h.  */
19684 #ifdef __GNUC__
19685 # define alloca __builtin_alloca
19686 #else
19687 # ifdef _MSC_VER
19688 #  include <malloc.h>
19689 #  define alloca _alloca
19690 # else
19691 #  ifdef HAVE_ALLOCA_H
19692 #   include <alloca.h>
19693 #  else
19694 #   ifdef _AIX
19695  #pragma alloca
19696 #   else
19697 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19698 void *alloca (size_t);
19699 #    endif
19700 #   endif
19701 #  endif
19702 # endif
19703 #endif
19704
19705 int
19706 main ()
19707 {
19708 char *p = (char *) alloca (1);
19709                                     if (p) return 0;
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 if ac_fn_c_try_link "$LINENO"; then :
19715   ac_cv_func_alloca_works=yes
19716 else
19717   ac_cv_func_alloca_works=no
19718 fi
19719 rm -f core conftest.err conftest.$ac_objext \
19720     conftest$ac_exeext conftest.$ac_ext
19721 fi
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19723 $as_echo "$ac_cv_func_alloca_works" >&6; }
19724
19725 if test $ac_cv_func_alloca_works = yes; then
19726
19727 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19728
19729 else
19730   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19731 # that cause trouble.  Some versions do not even contain alloca or
19732 # contain a buggy version.  If you still want to use their alloca,
19733 # use ar to extract alloca.o from them instead of compiling alloca.c.
19734
19735 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19736
19737 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19738
19739
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19741 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19742 if ${ac_cv_os_cray+:} false; then :
19743   $as_echo_n "(cached) " >&6
19744 else
19745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19746 /* end confdefs.h.  */
19747 #if defined CRAY && ! defined CRAY2
19748 webecray
19749 #else
19750 wenotbecray
19751 #endif
19752
19753 _ACEOF
19754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19755   $EGREP "webecray" >/dev/null 2>&1; then :
19756   ac_cv_os_cray=yes
19757 else
19758   ac_cv_os_cray=no
19759 fi
19760 rm -f conftest*
19761
19762 fi
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19764 $as_echo "$ac_cv_os_cray" >&6; }
19765 if test $ac_cv_os_cray = yes; then
19766   for ac_func in _getb67 GETB67 getb67; do
19767     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19768 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19769 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19770
19771 cat >>confdefs.h <<_ACEOF
19772 #define CRAY_STACKSEG_END $ac_func
19773 _ACEOF
19774
19775     break
19776 fi
19777
19778   done
19779 fi
19780
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19782 $as_echo_n "checking stack direction for C alloca... " >&6; }
19783 if ${ac_cv_c_stack_direction+:} false; then :
19784   $as_echo_n "(cached) " >&6
19785 else
19786   if test "$cross_compiling" = yes; then :
19787   ac_cv_c_stack_direction=0
19788 else
19789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h.  */
19791 $ac_includes_default
19792 int
19793 find_stack_direction ()
19794 {
19795   static char *addr = 0;
19796   auto char dummy;
19797   if (addr == 0)
19798     {
19799       addr = &dummy;
19800       return find_stack_direction ();
19801     }
19802   else
19803     return (&dummy > addr) ? 1 : -1;
19804 }
19805
19806 int
19807 main ()
19808 {
19809   return find_stack_direction () < 0;
19810 }
19811 _ACEOF
19812 if ac_fn_c_try_run "$LINENO"; then :
19813   ac_cv_c_stack_direction=1
19814 else
19815   ac_cv_c_stack_direction=-1
19816 fi
19817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19818   conftest.$ac_objext conftest.beam conftest.$ac_ext
19819 fi
19820
19821 fi
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19823 $as_echo "$ac_cv_c_stack_direction" >&6; }
19824 cat >>confdefs.h <<_ACEOF
19825 #define STACK_DIRECTION $ac_cv_c_stack_direction
19826 _ACEOF
19827
19828
19829 fi
19830
19831
19832
19833
19834   for ac_header in $ac_header_list
19835 do :
19836   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19838 "
19839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19840   cat >>confdefs.h <<_ACEOF
19841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19842 _ACEOF
19843
19844 fi
19845
19846 done
19847
19848
19849
19850
19851
19852
19853
19854
19855 for ac_func in getpagesize
19856 do :
19857   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19858 if test "x$ac_cv_func_getpagesize" = xyes; then :
19859   cat >>confdefs.h <<_ACEOF
19860 #define HAVE_GETPAGESIZE 1
19861 _ACEOF
19862
19863 fi
19864 done
19865
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19867 $as_echo_n "checking for working mmap... " >&6; }
19868 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19869   $as_echo_n "(cached) " >&6
19870 else
19871   if test "$cross_compiling" = yes; then :
19872   ac_cv_func_mmap_fixed_mapped=no
19873 else
19874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875 /* end confdefs.h.  */
19876 $ac_includes_default
19877 /* malloc might have been renamed as rpl_malloc. */
19878 #undef malloc
19879
19880 /* Thanks to Mike Haertel and Jim Avera for this test.
19881    Here is a matrix of mmap possibilities:
19882         mmap private not fixed
19883         mmap private fixed at somewhere currently unmapped
19884         mmap private fixed at somewhere already mapped
19885         mmap shared not fixed
19886         mmap shared fixed at somewhere currently unmapped
19887         mmap shared fixed at somewhere already mapped
19888    For private mappings, we should verify that changes cannot be read()
19889    back from the file, nor mmap's back from the file at a different
19890    address.  (There have been systems where private was not correctly
19891    implemented like the infamous i386 svr4.0, and systems where the
19892    VM page cache was not coherent with the file system buffer cache
19893    like early versions of FreeBSD and possibly contemporary NetBSD.)
19894    For shared mappings, we should conversely verify that changes get
19895    propagated back to all the places they're supposed to be.
19896
19897    Grep wants private fixed already mapped.
19898    The main things grep needs to know about mmap are:
19899    * does it exist and is it safe to write into the mmap'd area
19900    * how to use it (BSD variants)  */
19901
19902 #include <fcntl.h>
19903 #include <sys/mman.h>
19904
19905 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19906 char *malloc ();
19907 #endif
19908
19909 /* This mess was copied from the GNU getpagesize.h.  */
19910 #ifndef HAVE_GETPAGESIZE
19911 # ifdef _SC_PAGESIZE
19912 #  define getpagesize() sysconf(_SC_PAGESIZE)
19913 # else /* no _SC_PAGESIZE */
19914 #  ifdef HAVE_SYS_PARAM_H
19915 #   include <sys/param.h>
19916 #   ifdef EXEC_PAGESIZE
19917 #    define getpagesize() EXEC_PAGESIZE
19918 #   else /* no EXEC_PAGESIZE */
19919 #    ifdef NBPG
19920 #     define getpagesize() NBPG * CLSIZE
19921 #     ifndef CLSIZE
19922 #      define CLSIZE 1
19923 #     endif /* no CLSIZE */
19924 #    else /* no NBPG */
19925 #     ifdef NBPC
19926 #      define getpagesize() NBPC
19927 #     else /* no NBPC */
19928 #      ifdef PAGESIZE
19929 #       define getpagesize() PAGESIZE
19930 #      endif /* PAGESIZE */
19931 #     endif /* no NBPC */
19932 #    endif /* no NBPG */
19933 #   endif /* no EXEC_PAGESIZE */
19934 #  else /* no HAVE_SYS_PARAM_H */
19935 #   define getpagesize() 8192   /* punt totally */
19936 #  endif /* no HAVE_SYS_PARAM_H */
19937 # endif /* no _SC_PAGESIZE */
19938
19939 #endif /* no HAVE_GETPAGESIZE */
19940
19941 int
19942 main ()
19943 {
19944   char *data, *data2, *data3;
19945   const char *cdata2;
19946   int i, pagesize;
19947   int fd, fd2;
19948
19949   pagesize = getpagesize ();
19950
19951   /* First, make a file with some known garbage in it. */
19952   data = (char *) malloc (pagesize);
19953   if (!data)
19954     return 1;
19955   for (i = 0; i < pagesize; ++i)
19956     *(data + i) = rand ();
19957   umask (0);
19958   fd = creat ("conftest.mmap", 0600);
19959   if (fd < 0)
19960     return 2;
19961   if (write (fd, data, pagesize) != pagesize)
19962     return 3;
19963   close (fd);
19964
19965   /* Next, check that the tail of a page is zero-filled.  File must have
19966      non-zero length, otherwise we risk SIGBUS for entire page.  */
19967   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19968   if (fd2 < 0)
19969     return 4;
19970   cdata2 = "";
19971   if (write (fd2, cdata2, 1) != 1)
19972     return 5;
19973   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19974   if (data2 == MAP_FAILED)
19975     return 6;
19976   for (i = 0; i < pagesize; ++i)
19977     if (*(data2 + i))
19978       return 7;
19979   close (fd2);
19980   if (munmap (data2, pagesize))
19981     return 8;
19982
19983   /* Next, try to mmap the file at a fixed address which already has
19984      something else allocated at it.  If we can, also make sure that
19985      we see the same garbage.  */
19986   fd = open ("conftest.mmap", O_RDWR);
19987   if (fd < 0)
19988     return 9;
19989   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19990                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19991     return 10;
19992   for (i = 0; i < pagesize; ++i)
19993     if (*(data + i) != *(data2 + i))
19994       return 11;
19995
19996   /* Finally, make sure that changes to the mapped area do not
19997      percolate back to the file as seen by read().  (This is a bug on
19998      some variants of i386 svr4.0.)  */
19999   for (i = 0; i < pagesize; ++i)
20000     *(data2 + i) = *(data2 + i) + 1;
20001   data3 = (char *) malloc (pagesize);
20002   if (!data3)
20003     return 12;
20004   if (read (fd, data3, pagesize) != pagesize)
20005     return 13;
20006   for (i = 0; i < pagesize; ++i)
20007     if (*(data + i) != *(data3 + i))
20008       return 14;
20009   close (fd);
20010   return 0;
20011 }
20012 _ACEOF
20013 if ac_fn_c_try_run "$LINENO"; then :
20014   ac_cv_func_mmap_fixed_mapped=yes
20015 else
20016   ac_cv_func_mmap_fixed_mapped=no
20017 fi
20018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20019   conftest.$ac_objext conftest.beam conftest.$ac_ext
20020 fi
20021
20022 fi
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20024 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20025 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20026
20027 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20028
20029 fi
20030 rm -f conftest.mmap conftest.txt
20031
20032
20033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20034 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20035 if ${ac_cv_gnu_library_2_1+:} false; then :
20036   $as_echo_n "(cached) " >&6
20037 else
20038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h.  */
20040
20041 #include <features.h>
20042 #ifdef __GNU_LIBRARY__
20043  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20044   Lucky GNU user
20045  #endif
20046 #endif
20047
20048 _ACEOF
20049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20050   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20051   ac_cv_gnu_library_2_1=yes
20052 else
20053   ac_cv_gnu_library_2_1=no
20054 fi
20055 rm -f conftest*
20056
20057
20058
20059 fi
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20061 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20062
20063     GLIBC21="$ac_cv_gnu_library_2_1"
20064
20065
20066
20067
20068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20069 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20070 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20071   $as_echo_n "(cached) " >&6
20072 else
20073
20074       if test "$cross_compiling" = yes; then :
20075
20076           # Guess based on the CPU.
20077           case "$host_cpu" in
20078             alpha* | i3456786 | m68k | s390*)
20079               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20080             *)
20081               gt_cv_int_divbyzero_sigfpe="guessing no";;
20082           esac
20083
20084 else
20085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086 /* end confdefs.h.  */
20087
20088 #include <stdlib.h>
20089 #include <signal.h>
20090
20091 static void
20092 #ifdef __cplusplus
20093 sigfpe_handler (int sig)
20094 #else
20095 sigfpe_handler (sig) int sig;
20096 #endif
20097 {
20098   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20099   exit (sig != SIGFPE);
20100 }
20101
20102 int x = 1;
20103 int y = 0;
20104 int z;
20105 int nan;
20106
20107 int main ()
20108 {
20109   signal (SIGFPE, sigfpe_handler);
20110 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20111 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20112   signal (SIGTRAP, sigfpe_handler);
20113 #endif
20114 /* Linux/SPARC yields signal SIGILL.  */
20115 #if defined (__sparc__) && defined (__linux__)
20116   signal (SIGILL, sigfpe_handler);
20117 #endif
20118
20119   z = x / y;
20120   nan = y / y;
20121   exit (1);
20122 }
20123
20124 _ACEOF
20125 if ac_fn_c_try_run "$LINENO"; then :
20126   gt_cv_int_divbyzero_sigfpe=yes
20127 else
20128   gt_cv_int_divbyzero_sigfpe=no
20129 fi
20130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20131   conftest.$ac_objext conftest.beam conftest.$ac_ext
20132 fi
20133
20134
20135 fi
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20137 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20138   case "$gt_cv_int_divbyzero_sigfpe" in
20139     *yes) value=1;;
20140     *) value=0;;
20141   esac
20142
20143 cat >>confdefs.h <<_ACEOF
20144 #define INTDIV0_RAISES_SIGFPE $value
20145 _ACEOF
20146
20147
20148
20149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20150 $as_echo_n "checking for unsigned long long... " >&6; }
20151 if ${ac_cv_type_unsigned_long_long+:} false; then :
20152   $as_echo_n "(cached) " >&6
20153 else
20154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20155 /* end confdefs.h.  */
20156 unsigned long long ull = 1ULL; int i = 63;
20157 int
20158 main ()
20159 {
20160 unsigned long long ullmax = (unsigned long long) -1;
20161      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 if ac_fn_c_try_link "$LINENO"; then :
20167   ac_cv_type_unsigned_long_long=yes
20168 else
20169   ac_cv_type_unsigned_long_long=no
20170 fi
20171 rm -f core conftest.err conftest.$ac_objext \
20172     conftest$ac_exeext conftest.$ac_ext
20173 fi
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20175 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20176   if test $ac_cv_type_unsigned_long_long = yes; then
20177
20178 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20179
20180   fi
20181
20182
20183
20184
20185   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20186
20187     test $ac_cv_type_unsigned_long_long = yes \
20188       && ac_type='unsigned long long' \
20189       || ac_type='unsigned long'
20190
20191 cat >>confdefs.h <<_ACEOF
20192 #define uintmax_t $ac_type
20193 _ACEOF
20194
20195   else
20196
20197 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20198
20199   fi
20200
20201
20202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20203 $as_echo_n "checking for inttypes.h... " >&6; }
20204 if ${gt_cv_header_inttypes_h+:} false; then :
20205   $as_echo_n "(cached) " >&6
20206 else
20207
20208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209 /* end confdefs.h.  */
20210 #include <sys/types.h>
20211 #include <inttypes.h>
20212 int
20213 main ()
20214 {
20215
20216   ;
20217   return 0;
20218 }
20219 _ACEOF
20220 if ac_fn_c_try_compile "$LINENO"; then :
20221   gt_cv_header_inttypes_h=yes
20222 else
20223   gt_cv_header_inttypes_h=no
20224 fi
20225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20226
20227 fi
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20229 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20230   if test $gt_cv_header_inttypes_h = yes; then
20231
20232 cat >>confdefs.h <<_ACEOF
20233 #define HAVE_INTTYPES_H 1
20234 _ACEOF
20235
20236   fi
20237
20238
20239
20240   if test $gt_cv_header_inttypes_h = yes; then
20241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20242 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20243 if ${gt_cv_inttypes_pri_broken+:} false; then :
20244   $as_echo_n "(cached) " >&6
20245 else
20246
20247         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h.  */
20249 #include <inttypes.h>
20250 #ifdef PRId32
20251 char *p = PRId32;
20252 #endif
20253
20254 int
20255 main ()
20256 {
20257
20258   ;
20259   return 0;
20260 }
20261 _ACEOF
20262 if ac_fn_c_try_compile "$LINENO"; then :
20263   gt_cv_inttypes_pri_broken=no
20264 else
20265   gt_cv_inttypes_pri_broken=yes
20266 fi
20267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20268
20269 fi
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20271 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20272   fi
20273   if test "$gt_cv_inttypes_pri_broken" = yes; then
20274
20275 cat >>confdefs.h <<_ACEOF
20276 #define PRI_MACROS_BROKEN 1
20277 _ACEOF
20278
20279   fi
20280
20281
20282   for ac_header in stdint.h
20283 do :
20284   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20285 if test "x$ac_cv_header_stdint_h" = xyes; then :
20286   cat >>confdefs.h <<_ACEOF
20287 #define HAVE_STDINT_H 1
20288 _ACEOF
20289
20290 fi
20291
20292 done
20293
20294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20295 $as_echo_n "checking for SIZE_MAX... " >&6; }
20296   result=
20297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h.  */
20299
20300 #include <limits.h>
20301 #if HAVE_STDINT_H
20302 #include <stdint.h>
20303 #endif
20304 #ifdef SIZE_MAX
20305 Found it
20306 #endif
20307
20308 _ACEOF
20309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20310   $EGREP "Found it" >/dev/null 2>&1; then :
20311   result=yes
20312 fi
20313 rm -f conftest*
20314
20315   if test -z "$result"; then
20316                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20317
20318 else
20319   result=?
20320 fi
20321
20322
20323     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20324
20325 else
20326   result=?
20327 fi
20328
20329
20330     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20331
20332 else
20333   result=?
20334 fi
20335
20336
20337     if test "$fits_in_uint" = 1; then
20338                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h.  */
20340 #include <stddef.h>
20341         extern size_t foo;
20342         extern unsigned long foo;
20343
20344 int
20345 main ()
20346 {
20347
20348   ;
20349   return 0;
20350 }
20351 _ACEOF
20352 if ac_fn_c_try_compile "$LINENO"; then :
20353   fits_in_uint=0
20354 fi
20355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356     fi
20357     if test -z "$result"; then
20358       if test "$fits_in_uint" = 1; then
20359         result="$res_hi$res_lo"U
20360       else
20361         result="$res_hi$res_lo"UL
20362       fi
20363     else
20364             result='~(size_t)0'
20365     fi
20366   fi
20367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20368 $as_echo "$result" >&6; }
20369   if test "$result" != yes; then
20370
20371 cat >>confdefs.h <<_ACEOF
20372 #define SIZE_MAX $result
20373 _ACEOF
20374
20375   fi
20376
20377
20378
20379
20380   for ac_header in stdint.h
20381 do :
20382   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20383 if test "x$ac_cv_header_stdint_h" = xyes; then :
20384   cat >>confdefs.h <<_ACEOF
20385 #define HAVE_STDINT_H 1
20386 _ACEOF
20387
20388 fi
20389
20390 done
20391
20392
20393
20394
20395
20396
20397
20398
20399   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20400 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20401
20402 else
20403
20404 $as_echo "#define ptrdiff_t long" >>confdefs.h
20405
20406
20407 fi
20408
20409   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20410 stdlib.h string.h unistd.h sys/param.h
20411 do :
20412   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20415   cat >>confdefs.h <<_ACEOF
20416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20417 _ACEOF
20418
20419 fi
20420
20421 done
20422
20423   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20424 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20425 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20426 __fsetlocking
20427 do :
20428   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20431   cat >>confdefs.h <<_ACEOF
20432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20433 _ACEOF
20434
20435 fi
20436 done
20437
20438
20439
20440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20441 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20442 if ${ac_cv_have_decl__snprintf+:} false; then :
20443   $as_echo_n "(cached) " >&6
20444 else
20445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446 /* end confdefs.h.  */
20447 #include <stdio.h>
20448 int
20449 main ()
20450 {
20451
20452 #ifndef _snprintf
20453   char *p = (char *) _snprintf;
20454 #endif
20455
20456   ;
20457   return 0;
20458 }
20459 _ACEOF
20460 if ac_fn_c_try_compile "$LINENO"; then :
20461   ac_cv_have_decl__snprintf=yes
20462 else
20463   ac_cv_have_decl__snprintf=no
20464 fi
20465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20466 fi
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20468 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20469   if test $ac_cv_have_decl__snprintf = yes; then
20470     gt_value=1
20471   else
20472     gt_value=0
20473   fi
20474
20475 cat >>confdefs.h <<_ACEOF
20476 #define HAVE_DECL__SNPRINTF $gt_value
20477 _ACEOF
20478
20479
20480
20481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20482 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20483 if ${ac_cv_have_decl__snwprintf+:} false; then :
20484   $as_echo_n "(cached) " >&6
20485 else
20486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h.  */
20488 #include <stdio.h>
20489 int
20490 main ()
20491 {
20492
20493 #ifndef _snwprintf
20494   char *p = (char *) _snwprintf;
20495 #endif
20496
20497   ;
20498   return 0;
20499 }
20500 _ACEOF
20501 if ac_fn_c_try_compile "$LINENO"; then :
20502   ac_cv_have_decl__snwprintf=yes
20503 else
20504   ac_cv_have_decl__snwprintf=no
20505 fi
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 fi
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20509 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20510   if test $ac_cv_have_decl__snwprintf = yes; then
20511     gt_value=1
20512   else
20513     gt_value=0
20514   fi
20515
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_DECL__SNWPRINTF $gt_value
20518 _ACEOF
20519
20520
20521
20522
20523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20524 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20525 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20526   $as_echo_n "(cached) " >&6
20527 else
20528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20529 /* end confdefs.h.  */
20530 #include <stdio.h>
20531 int
20532 main ()
20533 {
20534
20535 #ifndef feof_unlocked
20536   char *p = (char *) feof_unlocked;
20537 #endif
20538
20539   ;
20540   return 0;
20541 }
20542 _ACEOF
20543 if ac_fn_c_try_compile "$LINENO"; then :
20544   ac_cv_have_decl_feof_unlocked=yes
20545 else
20546   ac_cv_have_decl_feof_unlocked=no
20547 fi
20548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549 fi
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20551 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20552   if test $ac_cv_have_decl_feof_unlocked = yes; then
20553     gt_value=1
20554   else
20555     gt_value=0
20556   fi
20557
20558 cat >>confdefs.h <<_ACEOF
20559 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20560 _ACEOF
20561
20562
20563
20564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20565 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20566 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20567   $as_echo_n "(cached) " >&6
20568 else
20569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570 /* end confdefs.h.  */
20571 #include <stdio.h>
20572 int
20573 main ()
20574 {
20575
20576 #ifndef fgets_unlocked
20577   char *p = (char *) fgets_unlocked;
20578 #endif
20579
20580   ;
20581   return 0;
20582 }
20583 _ACEOF
20584 if ac_fn_c_try_compile "$LINENO"; then :
20585   ac_cv_have_decl_fgets_unlocked=yes
20586 else
20587   ac_cv_have_decl_fgets_unlocked=no
20588 fi
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590 fi
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20592 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20593   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20594     gt_value=1
20595   else
20596     gt_value=0
20597   fi
20598
20599 cat >>confdefs.h <<_ACEOF
20600 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20601 _ACEOF
20602
20603
20604
20605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20606 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20607 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20608   $as_echo_n "(cached) " >&6
20609 else
20610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h.  */
20612 #include <stdio.h>
20613 int
20614 main ()
20615 {
20616
20617 #ifndef getc_unlocked
20618   char *p = (char *) getc_unlocked;
20619 #endif
20620
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 if ac_fn_c_try_compile "$LINENO"; then :
20626   ac_cv_have_decl_getc_unlocked=yes
20627 else
20628   ac_cv_have_decl_getc_unlocked=no
20629 fi
20630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20631 fi
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20633 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20634   if test $ac_cv_have_decl_getc_unlocked = yes; then
20635     gt_value=1
20636   else
20637     gt_value=0
20638   fi
20639
20640 cat >>confdefs.h <<_ACEOF
20641 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20642 _ACEOF
20643
20644
20645
20646   case $gt_cv_func_printf_posix in
20647     *yes) HAVE_POSIX_PRINTF=1 ;;
20648     *) HAVE_POSIX_PRINTF=0 ;;
20649   esac
20650
20651   if test "$ac_cv_func_asprintf" = yes; then
20652     HAVE_ASPRINTF=1
20653   else
20654     HAVE_ASPRINTF=0
20655   fi
20656
20657   if test "$ac_cv_func_snprintf" = yes; then
20658     HAVE_SNPRINTF=1
20659   else
20660     HAVE_SNPRINTF=0
20661   fi
20662
20663   if test "$ac_cv_func_wprintf" = yes; then
20664     HAVE_WPRINTF=1
20665   else
20666     HAVE_WPRINTF=0
20667   fi
20668
20669
20670
20671
20672
20673
20674
20675           am_save_CPPFLAGS="$CPPFLAGS"
20676
20677   for element in $INCICONV; do
20678     haveit=
20679     for x in $CPPFLAGS; do
20680
20681   acl_save_prefix="$prefix"
20682   prefix="$acl_final_prefix"
20683   acl_save_exec_prefix="$exec_prefix"
20684   exec_prefix="$acl_final_exec_prefix"
20685   eval x=\"$x\"
20686   exec_prefix="$acl_save_exec_prefix"
20687   prefix="$acl_save_prefix"
20688
20689       if test "X$x" = "X$element"; then
20690         haveit=yes
20691         break
20692       fi
20693     done
20694     if test -z "$haveit"; then
20695       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20696     fi
20697   done
20698
20699
20700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20701 $as_echo_n "checking for iconv... " >&6; }
20702 if ${am_cv_func_iconv+:} false; then :
20703   $as_echo_n "(cached) " >&6
20704 else
20705
20706     am_cv_func_iconv="no, consider installing GNU libiconv"
20707     am_cv_lib_iconv=no
20708     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20709 /* end confdefs.h.  */
20710 #include <stdlib.h>
20711 #include <iconv.h>
20712 int
20713 main ()
20714 {
20715 iconv_t cd = iconv_open("","");
20716        iconv(cd,NULL,NULL,NULL,NULL);
20717        iconv_close(cd);
20718   ;
20719   return 0;
20720 }
20721 _ACEOF
20722 if ac_fn_c_try_link "$LINENO"; then :
20723   am_cv_func_iconv=yes
20724 fi
20725 rm -f core conftest.err conftest.$ac_objext \
20726     conftest$ac_exeext conftest.$ac_ext
20727     if test "$am_cv_func_iconv" != yes; then
20728       am_save_LIBS="$LIBS"
20729       LIBS="$LIBS $LIBICONV"
20730       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20731 /* end confdefs.h.  */
20732 #include <stdlib.h>
20733 #include <iconv.h>
20734 int
20735 main ()
20736 {
20737 iconv_t cd = iconv_open("","");
20738          iconv(cd,NULL,NULL,NULL,NULL);
20739          iconv_close(cd);
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 if ac_fn_c_try_link "$LINENO"; then :
20745   am_cv_lib_iconv=yes
20746         am_cv_func_iconv=yes
20747 fi
20748 rm -f core conftest.err conftest.$ac_objext \
20749     conftest$ac_exeext conftest.$ac_ext
20750       LIBS="$am_save_LIBS"
20751     fi
20752
20753 fi
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20755 $as_echo "$am_cv_func_iconv" >&6; }
20756   if test "$am_cv_func_iconv" = yes; then
20757
20758 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20759
20760   fi
20761   if test "$am_cv_lib_iconv" = yes; then
20762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20763 $as_echo_n "checking how to link with libiconv... " >&6; }
20764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20765 $as_echo "$LIBICONV" >&6; }
20766   else
20767             CPPFLAGS="$am_save_CPPFLAGS"
20768     LIBICONV=
20769     LTLIBICONV=
20770   fi
20771
20772
20773
20774   if test "$am_cv_func_iconv" = yes; then
20775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20776 $as_echo_n "checking for iconv declaration... " >&6; }
20777     if ${am_cv_proto_iconv+:} false; then :
20778   $as_echo_n "(cached) " >&6
20779 else
20780
20781       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20782 /* end confdefs.h.  */
20783
20784 #include <stdlib.h>
20785 #include <iconv.h>
20786 extern
20787 #ifdef __cplusplus
20788 "C"
20789 #endif
20790 #if defined(__STDC__) || defined(__cplusplus)
20791 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20792 #else
20793 size_t iconv();
20794 #endif
20795
20796 int
20797 main ()
20798 {
20799
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 if ac_fn_c_try_compile "$LINENO"; then :
20805   am_cv_proto_iconv_arg1=""
20806 else
20807   am_cv_proto_iconv_arg1="const"
20808 fi
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810       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);"
20811 fi
20812
20813     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20815          }$am_cv_proto_iconv" >&5
20816 $as_echo "${ac_t:-
20817          }$am_cv_proto_iconv" >&6; }
20818
20819 cat >>confdefs.h <<_ACEOF
20820 #define ICONV_CONST $am_cv_proto_iconv_arg1
20821 _ACEOF
20822
20823   fi
20824
20825
20826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20827 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20828 if ${am_cv_langinfo_codeset+:} false; then :
20829   $as_echo_n "(cached) " >&6
20830 else
20831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832 /* end confdefs.h.  */
20833 #include <langinfo.h>
20834 int
20835 main ()
20836 {
20837 char* cs = nl_langinfo(CODESET);
20838   ;
20839   return 0;
20840 }
20841 _ACEOF
20842 if ac_fn_c_try_link "$LINENO"; then :
20843   am_cv_langinfo_codeset=yes
20844 else
20845   am_cv_langinfo_codeset=no
20846 fi
20847 rm -f core conftest.err conftest.$ac_objext \
20848     conftest$ac_exeext conftest.$ac_ext
20849
20850 fi
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20852 $as_echo "$am_cv_langinfo_codeset" >&6; }
20853   if test $am_cv_langinfo_codeset = yes; then
20854
20855 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20856
20857   fi
20858
20859   if test $ac_cv_header_locale_h = yes; then
20860
20861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20862 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20863 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20864   $as_echo_n "(cached) " >&6
20865 else
20866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20867 /* end confdefs.h.  */
20868 #include <locale.h>
20869 int
20870 main ()
20871 {
20872 return LC_MESSAGES
20873   ;
20874   return 0;
20875 }
20876 _ACEOF
20877 if ac_fn_c_try_link "$LINENO"; then :
20878   gt_cv_val_LC_MESSAGES=yes
20879 else
20880   gt_cv_val_LC_MESSAGES=no
20881 fi
20882 rm -f core conftest.err conftest.$ac_objext \
20883     conftest$ac_exeext conftest.$ac_ext
20884 fi
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20886 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20887   if test $gt_cv_val_LC_MESSAGES = yes; then
20888
20889 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20890
20891   fi
20892
20893   fi
20894
20895   if test -n "$INTL_MACOSX_LIBS"; then
20896     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20897   fi
20898
20899                       for ac_prog in bison
20900 do
20901   # Extract the first word of "$ac_prog", so it can be a program name with args.
20902 set dummy $ac_prog; ac_word=$2
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20904 $as_echo_n "checking for $ac_word... " >&6; }
20905 if ${ac_cv_prog_INTLBISON+:} false; then :
20906   $as_echo_n "(cached) " >&6
20907 else
20908   if test -n "$INTLBISON"; then
20909   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20910 else
20911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20912 for as_dir in $PATH
20913 do
20914   IFS=$as_save_IFS
20915   test -z "$as_dir" && as_dir=.
20916     for ac_exec_ext in '' $ac_executable_extensions; do
20917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20918     ac_cv_prog_INTLBISON="$ac_prog"
20919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20920     break 2
20921   fi
20922 done
20923   done
20924 IFS=$as_save_IFS
20925
20926 fi
20927 fi
20928 INTLBISON=$ac_cv_prog_INTLBISON
20929 if test -n "$INTLBISON"; then
20930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20931 $as_echo "$INTLBISON" >&6; }
20932 else
20933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20934 $as_echo "no" >&6; }
20935 fi
20936
20937
20938   test -n "$INTLBISON" && break
20939 done
20940
20941   if test -z "$INTLBISON"; then
20942     ac_verc_fail=yes
20943   else
20944         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20945 $as_echo_n "checking version of bison... " >&6; }
20946     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20947     case $ac_prog_version in
20948       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20949       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20950          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20951       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20952     esac
20953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20954 $as_echo "$ac_prog_version" >&6; }
20955   fi
20956   if test $ac_verc_fail = yes; then
20957     INTLBISON=:
20958   fi
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20976 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20977 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20978   $as_echo_n "(cached) " >&6
20979 else
20980   gt_save_CPPFLAGS="$CPPFLAGS"
20981      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20982      gt_save_LIBS="$LIBS"
20983      LIBS="$LIBS -framework CoreFoundation"
20984      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985 /* end confdefs.h.  */
20986 #include <CFPreferences.h>
20987 int
20988 main ()
20989 {
20990 CFPreferencesCopyAppValue(NULL, NULL)
20991   ;
20992   return 0;
20993 }
20994 _ACEOF
20995 if ac_fn_c_try_link "$LINENO"; then :
20996   gt_cv_func_CFPreferencesCopyAppValue=yes
20997 else
20998   gt_cv_func_CFPreferencesCopyAppValue=no
20999 fi
21000 rm -f core conftest.err conftest.$ac_objext \
21001     conftest$ac_exeext conftest.$ac_ext
21002      CPPFLAGS="$gt_save_CPPFLAGS"
21003      LIBS="$gt_save_LIBS"
21004 fi
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21006 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21007   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21008
21009 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21010
21011   fi
21012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21013 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21014 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21015   $as_echo_n "(cached) " >&6
21016 else
21017   gt_save_CPPFLAGS="$CPPFLAGS"
21018      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21019      gt_save_LIBS="$LIBS"
21020      LIBS="$LIBS -framework CoreFoundation"
21021      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21022 /* end confdefs.h.  */
21023 #include <CFLocale.h>
21024 int
21025 main ()
21026 {
21027 CFLocaleCopyCurrent();
21028   ;
21029   return 0;
21030 }
21031 _ACEOF
21032 if ac_fn_c_try_link "$LINENO"; then :
21033   gt_cv_func_CFLocaleCopyCurrent=yes
21034 else
21035   gt_cv_func_CFLocaleCopyCurrent=no
21036 fi
21037 rm -f core conftest.err conftest.$ac_objext \
21038     conftest$ac_exeext conftest.$ac_ext
21039      CPPFLAGS="$gt_save_CPPFLAGS"
21040      LIBS="$gt_save_LIBS"
21041 fi
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21043 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21044   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21045
21046 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21047
21048   fi
21049   INTL_MACOSX_LIBS=
21050   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21051     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21052   fi
21053
21054
21055
21056
21057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21058 $as_echo_n "checking whether NLS is requested... " >&6; }
21059     # Check whether --enable-nls was given.
21060 if test "${enable_nls+set}" = set; then :
21061   enableval=$enable_nls; USE_NLS=$enableval
21062 else
21063   USE_NLS=yes
21064 fi
21065
21066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21067 $as_echo "$USE_NLS" >&6; }
21068
21069
21070
21071
21072     BUILD_INCLUDED_LIBINTL=no
21073     USE_INCLUDED_LIBINTL=no
21074
21075   LIBINTL=
21076   LTLIBINTL=
21077   POSUB=
21078
21079     if test "$USE_NLS" = "yes"; then
21080     gt_use_preinstalled_gnugettext=no
21081
21082       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21083 $as_echo_n "checking whether included gettext is requested... " >&6; }
21084
21085 # Check whether --with-included-gettext was given.
21086 if test "${with_included_gettext+set}" = set; then :
21087   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21088 else
21089   nls_cv_force_use_gnu_gettext=no
21090 fi
21091
21092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21093 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21094
21095       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21096       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21097
21098
21099
21100
21101
21102
21103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21104 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21105 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21106   $as_echo_n "(cached) " >&6
21107 else
21108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h.  */
21110 #include <libintl.h>
21111 extern int _nl_msg_cat_cntr;
21112 extern int *_nl_domain_bindings;
21113 int
21114 main ()
21115 {
21116 bindtextdomain ("", "");
21117 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21118   ;
21119   return 0;
21120 }
21121 _ACEOF
21122 if ac_fn_c_try_link "$LINENO"; then :
21123   gt_cv_func_gnugettext1_libc=yes
21124 else
21125   gt_cv_func_gnugettext1_libc=no
21126 fi
21127 rm -f core conftest.err conftest.$ac_objext \
21128     conftest$ac_exeext conftest.$ac_ext
21129 fi
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21131 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21132
21133         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21134
21135
21136
21137     use_additional=yes
21138
21139   acl_save_prefix="$prefix"
21140   prefix="$acl_final_prefix"
21141   acl_save_exec_prefix="$exec_prefix"
21142   exec_prefix="$acl_final_exec_prefix"
21143
21144     eval additional_includedir=\"$includedir\"
21145     eval additional_libdir=\"$libdir\"
21146
21147   exec_prefix="$acl_save_exec_prefix"
21148   prefix="$acl_save_prefix"
21149
21150
21151 # Check whether --with-libintl-prefix was given.
21152 if test "${with_libintl_prefix+set}" = set; then :
21153   withval=$with_libintl_prefix;
21154     if test "X$withval" = "Xno"; then
21155       use_additional=no
21156     else
21157       if test "X$withval" = "X"; then
21158
21159   acl_save_prefix="$prefix"
21160   prefix="$acl_final_prefix"
21161   acl_save_exec_prefix="$exec_prefix"
21162   exec_prefix="$acl_final_exec_prefix"
21163
21164           eval additional_includedir=\"$includedir\"
21165           eval additional_libdir=\"$libdir\"
21166
21167   exec_prefix="$acl_save_exec_prefix"
21168   prefix="$acl_save_prefix"
21169
21170       else
21171         additional_includedir="$withval/include"
21172         additional_libdir="$withval/lib"
21173       fi
21174     fi
21175
21176 fi
21177
21178       LIBINTL=
21179   LTLIBINTL=
21180   INCINTL=
21181   rpathdirs=
21182   ltrpathdirs=
21183   names_already_handled=
21184   names_next_round='intl '
21185   while test -n "$names_next_round"; do
21186     names_this_round="$names_next_round"
21187     names_next_round=
21188     for name in $names_this_round; do
21189       already_handled=
21190       for n in $names_already_handled; do
21191         if test "$n" = "$name"; then
21192           already_handled=yes
21193           break
21194         fi
21195       done
21196       if test -z "$already_handled"; then
21197         names_already_handled="$names_already_handled $name"
21198                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21199         eval value=\"\$HAVE_LIB$uppername\"
21200         if test -n "$value"; then
21201           if test "$value" = yes; then
21202             eval value=\"\$LIB$uppername\"
21203             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21204             eval value=\"\$LTLIB$uppername\"
21205             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21206           else
21207                                     :
21208           fi
21209         else
21210                               found_dir=
21211           found_la=
21212           found_so=
21213           found_a=
21214           if test $use_additional = yes; then
21215             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21216               found_dir="$additional_libdir"
21217               found_so="$additional_libdir/lib$name.$shlibext"
21218               if test -f "$additional_libdir/lib$name.la"; then
21219                 found_la="$additional_libdir/lib$name.la"
21220               fi
21221             else
21222               if test -f "$additional_libdir/lib$name.$libext"; then
21223                 found_dir="$additional_libdir"
21224                 found_a="$additional_libdir/lib$name.$libext"
21225                 if test -f "$additional_libdir/lib$name.la"; then
21226                   found_la="$additional_libdir/lib$name.la"
21227                 fi
21228               fi
21229             fi
21230           fi
21231           if test "X$found_dir" = "X"; then
21232             for x in $LDFLAGS $LTLIBINTL; do
21233
21234   acl_save_prefix="$prefix"
21235   prefix="$acl_final_prefix"
21236   acl_save_exec_prefix="$exec_prefix"
21237   exec_prefix="$acl_final_exec_prefix"
21238   eval x=\"$x\"
21239   exec_prefix="$acl_save_exec_prefix"
21240   prefix="$acl_save_prefix"
21241
21242               case "$x" in
21243                 -L*)
21244                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21245                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21246                     found_dir="$dir"
21247                     found_so="$dir/lib$name.$shlibext"
21248                     if test -f "$dir/lib$name.la"; then
21249                       found_la="$dir/lib$name.la"
21250                     fi
21251                   else
21252                     if test -f "$dir/lib$name.$libext"; then
21253                       found_dir="$dir"
21254                       found_a="$dir/lib$name.$libext"
21255                       if test -f "$dir/lib$name.la"; then
21256                         found_la="$dir/lib$name.la"
21257                       fi
21258                     fi
21259                   fi
21260                   ;;
21261               esac
21262               if test "X$found_dir" != "X"; then
21263                 break
21264               fi
21265             done
21266           fi
21267           if test "X$found_dir" != "X"; then
21268                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21269             if test "X$found_so" != "X"; then
21270                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21271                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21272               else
21273                                                                                 haveit=
21274                 for x in $ltrpathdirs; do
21275                   if test "X$x" = "X$found_dir"; then
21276                     haveit=yes
21277                     break
21278                   fi
21279                 done
21280                 if test -z "$haveit"; then
21281                   ltrpathdirs="$ltrpathdirs $found_dir"
21282                 fi
21283                                 if test "$hardcode_direct" = yes; then
21284                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21285                 else
21286                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21287                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21288                                                             haveit=
21289                     for x in $rpathdirs; do
21290                       if test "X$x" = "X$found_dir"; then
21291                         haveit=yes
21292                         break
21293                       fi
21294                     done
21295                     if test -z "$haveit"; then
21296                       rpathdirs="$rpathdirs $found_dir"
21297                     fi
21298                   else
21299                                                                                 haveit=
21300                     for x in $LDFLAGS $LIBINTL; do
21301
21302   acl_save_prefix="$prefix"
21303   prefix="$acl_final_prefix"
21304   acl_save_exec_prefix="$exec_prefix"
21305   exec_prefix="$acl_final_exec_prefix"
21306   eval x=\"$x\"
21307   exec_prefix="$acl_save_exec_prefix"
21308   prefix="$acl_save_prefix"
21309
21310                       if test "X$x" = "X-L$found_dir"; then
21311                         haveit=yes
21312                         break
21313                       fi
21314                     done
21315                     if test -z "$haveit"; then
21316                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21317                     fi
21318                     if test "$hardcode_minus_L" != no; then
21319                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21320                     else
21321                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21322                     fi
21323                   fi
21324                 fi
21325               fi
21326             else
21327               if test "X$found_a" != "X"; then
21328                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21329               else
21330                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21331               fi
21332             fi
21333                         additional_includedir=
21334             case "$found_dir" in
21335               */lib | */lib/)
21336                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21337                 additional_includedir="$basedir/include"
21338                 ;;
21339             esac
21340             if test "X$additional_includedir" != "X"; then
21341                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21342                 haveit=
21343                 if test "X$additional_includedir" = "X/usr/local/include"; then
21344                   if test -n "$GCC"; then
21345                     case $host_os in
21346                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21347                     esac
21348                   fi
21349                 fi
21350                 if test -z "$haveit"; then
21351                   for x in $CPPFLAGS $INCINTL; do
21352
21353   acl_save_prefix="$prefix"
21354   prefix="$acl_final_prefix"
21355   acl_save_exec_prefix="$exec_prefix"
21356   exec_prefix="$acl_final_exec_prefix"
21357   eval x=\"$x\"
21358   exec_prefix="$acl_save_exec_prefix"
21359   prefix="$acl_save_prefix"
21360
21361                     if test "X$x" = "X-I$additional_includedir"; then
21362                       haveit=yes
21363                       break
21364                     fi
21365                   done
21366                   if test -z "$haveit"; then
21367                     if test -d "$additional_includedir"; then
21368                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21369                     fi
21370                   fi
21371                 fi
21372               fi
21373             fi
21374                         if test -n "$found_la"; then
21375                                                         save_libdir="$libdir"
21376               case "$found_la" in
21377                 */* | *\\*) . "$found_la" ;;
21378                 *) . "./$found_la" ;;
21379               esac
21380               libdir="$save_libdir"
21381                             for dep in $dependency_libs; do
21382                 case "$dep" in
21383                   -L*)
21384                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21385                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21386                       haveit=
21387                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21388                         if test -n "$GCC"; then
21389                           case $host_os in
21390                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21391                           esac
21392                         fi
21393                       fi
21394                       if test -z "$haveit"; then
21395                         haveit=
21396                         for x in $LDFLAGS $LIBINTL; do
21397
21398   acl_save_prefix="$prefix"
21399   prefix="$acl_final_prefix"
21400   acl_save_exec_prefix="$exec_prefix"
21401   exec_prefix="$acl_final_exec_prefix"
21402   eval x=\"$x\"
21403   exec_prefix="$acl_save_exec_prefix"
21404   prefix="$acl_save_prefix"
21405
21406                           if test "X$x" = "X-L$additional_libdir"; then
21407                             haveit=yes
21408                             break
21409                           fi
21410                         done
21411                         if test -z "$haveit"; then
21412                           if test -d "$additional_libdir"; then
21413                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21414                           fi
21415                         fi
21416                         haveit=
21417                         for x in $LDFLAGS $LTLIBINTL; do
21418
21419   acl_save_prefix="$prefix"
21420   prefix="$acl_final_prefix"
21421   acl_save_exec_prefix="$exec_prefix"
21422   exec_prefix="$acl_final_exec_prefix"
21423   eval x=\"$x\"
21424   exec_prefix="$acl_save_exec_prefix"
21425   prefix="$acl_save_prefix"
21426
21427                           if test "X$x" = "X-L$additional_libdir"; then
21428                             haveit=yes
21429                             break
21430                           fi
21431                         done
21432                         if test -z "$haveit"; then
21433                           if test -d "$additional_libdir"; then
21434                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21435                           fi
21436                         fi
21437                       fi
21438                     fi
21439                     ;;
21440                   -R*)
21441                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21442                     if test "$enable_rpath" != no; then
21443                                                                   haveit=
21444                       for x in $rpathdirs; do
21445                         if test "X$x" = "X$dir"; then
21446                           haveit=yes
21447                           break
21448                         fi
21449                       done
21450                       if test -z "$haveit"; then
21451                         rpathdirs="$rpathdirs $dir"
21452                       fi
21453                                                                   haveit=
21454                       for x in $ltrpathdirs; do
21455                         if test "X$x" = "X$dir"; then
21456                           haveit=yes
21457                           break
21458                         fi
21459                       done
21460                       if test -z "$haveit"; then
21461                         ltrpathdirs="$ltrpathdirs $dir"
21462                       fi
21463                     fi
21464                     ;;
21465                   -l*)
21466                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21467                     ;;
21468                   *.la)
21469                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21470                     ;;
21471                   *)
21472                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21473                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21474                     ;;
21475                 esac
21476               done
21477             fi
21478           else
21479                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21480             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21481           fi
21482         fi
21483       fi
21484     done
21485   done
21486   if test "X$rpathdirs" != "X"; then
21487     if test -n "$hardcode_libdir_separator"; then
21488                         alldirs=
21489       for found_dir in $rpathdirs; do
21490         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21491       done
21492             acl_save_libdir="$libdir"
21493       libdir="$alldirs"
21494       eval flag=\"$hardcode_libdir_flag_spec\"
21495       libdir="$acl_save_libdir"
21496       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21497     else
21498             for found_dir in $rpathdirs; do
21499         acl_save_libdir="$libdir"
21500         libdir="$found_dir"
21501         eval flag=\"$hardcode_libdir_flag_spec\"
21502         libdir="$acl_save_libdir"
21503         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21504       done
21505     fi
21506   fi
21507   if test "X$ltrpathdirs" != "X"; then
21508             for found_dir in $ltrpathdirs; do
21509       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21510     done
21511   fi
21512
21513           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21514 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21515 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21516   $as_echo_n "(cached) " >&6
21517 else
21518   gt_save_CPPFLAGS="$CPPFLAGS"
21519             CPPFLAGS="$CPPFLAGS $INCINTL"
21520             gt_save_LIBS="$LIBS"
21521             LIBS="$LIBS $LIBINTL"
21522                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h.  */
21524 #include <libintl.h>
21525 extern int _nl_msg_cat_cntr;
21526 extern
21527 #ifdef __cplusplus
21528 "C"
21529 #endif
21530 const char *_nl_expand_alias (const char *);
21531 int
21532 main ()
21533 {
21534 bindtextdomain ("", "");
21535 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21536   ;
21537   return 0;
21538 }
21539 _ACEOF
21540 if ac_fn_c_try_link "$LINENO"; then :
21541   gt_cv_func_gnugettext1_libintl=yes
21542 else
21543   gt_cv_func_gnugettext1_libintl=no
21544 fi
21545 rm -f core conftest.err conftest.$ac_objext \
21546     conftest$ac_exeext conftest.$ac_ext
21547                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21548               LIBS="$LIBS $LIBICONV"
21549               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21550 /* end confdefs.h.  */
21551 #include <libintl.h>
21552 extern int _nl_msg_cat_cntr;
21553 extern
21554 #ifdef __cplusplus
21555 "C"
21556 #endif
21557 const char *_nl_expand_alias (const char *);
21558 int
21559 main ()
21560 {
21561 bindtextdomain ("", "");
21562 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21563   ;
21564   return 0;
21565 }
21566 _ACEOF
21567 if ac_fn_c_try_link "$LINENO"; then :
21568   LIBINTL="$LIBINTL $LIBICONV"
21569                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21570                 gt_cv_func_gnugettext1_libintl=yes
21571
21572 fi
21573 rm -f core conftest.err conftest.$ac_objext \
21574     conftest$ac_exeext conftest.$ac_ext
21575             fi
21576             CPPFLAGS="$gt_save_CPPFLAGS"
21577             LIBS="$gt_save_LIBS"
21578 fi
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21580 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21581         fi
21582
21583                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21584            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21585                 && test "$PACKAGE" != gettext-runtime \
21586                 && test "$PACKAGE" != gettext-tools; }; then
21587           gt_use_preinstalled_gnugettext=yes
21588         else
21589                     LIBINTL=
21590           LTLIBINTL=
21591           INCINTL=
21592         fi
21593
21594
21595         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21596                               nls_cv_use_gnu_gettext=yes
21597         fi
21598       fi
21599
21600       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21601                 BUILD_INCLUDED_LIBINTL=yes
21602         USE_INCLUDED_LIBINTL=yes
21603         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21604         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21605         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21606       fi
21607
21608       CATOBJEXT=
21609       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21610          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21611                 CATOBJEXT=.gmo
21612       fi
21613
21614
21615     if test -n "$INTL_MACOSX_LIBS"; then
21616       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21617          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21618                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21619         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21620       fi
21621     fi
21622
21623     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21624        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21625
21626 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21627
21628     else
21629       USE_NLS=no
21630     fi
21631   fi
21632
21633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21634 $as_echo_n "checking whether to use NLS... " >&6; }
21635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21636 $as_echo "$USE_NLS" >&6; }
21637   if test "$USE_NLS" = "yes"; then
21638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21639 $as_echo_n "checking where the gettext function comes from... " >&6; }
21640     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21641       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21642         gt_source="external libintl"
21643       else
21644         gt_source="libc"
21645       fi
21646     else
21647       gt_source="included intl directory"
21648     fi
21649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21650 $as_echo "$gt_source" >&6; }
21651   fi
21652
21653   if test "$USE_NLS" = "yes"; then
21654
21655     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21656       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21657         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21658 $as_echo_n "checking how to link with libintl... " >&6; }
21659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21660 $as_echo "$LIBINTL" >&6; }
21661
21662   for element in $INCINTL; do
21663     haveit=
21664     for x in $CPPFLAGS; do
21665
21666   acl_save_prefix="$prefix"
21667   prefix="$acl_final_prefix"
21668   acl_save_exec_prefix="$exec_prefix"
21669   exec_prefix="$acl_final_exec_prefix"
21670   eval x=\"$x\"
21671   exec_prefix="$acl_save_exec_prefix"
21672   prefix="$acl_save_prefix"
21673
21674       if test "X$x" = "X$element"; then
21675         haveit=yes
21676         break
21677       fi
21678     done
21679     if test -z "$haveit"; then
21680       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21681     fi
21682   done
21683
21684       fi
21685
21686
21687 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21688
21689
21690 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21691
21692     fi
21693
21694         POSUB=po
21695   fi
21696
21697
21698             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21699       BUILD_INCLUDED_LIBINTL=yes
21700     fi
21701
21702
21703
21704
21705
21706         nls_cv_header_intl=
21707     nls_cv_header_libgt=
21708
21709         DATADIRNAME=share
21710
21711
21712         INSTOBJEXT=.mo
21713
21714
21715         GENCAT=gencat
21716
21717
21718         INTLOBJS=
21719     if test "$USE_INCLUDED_LIBINTL" = yes; then
21720       INTLOBJS="\$(GETTOBJS)"
21721     fi
21722
21723
21724         INTL_LIBTOOL_SUFFIX_PREFIX=
21725
21726
21727
21728     INTLLIBS="$LIBINTL"
21729
21730
21731
21732
21733
21734
21735 fi
21736
21737 support_smartalloc=yes
21738 support_readline=yes
21739 support_conio=yes
21740 support_gnome=no
21741 support_bat=no
21742 support_wx_console=no
21743 support_tray_monitor=no
21744 support_tls=no
21745 support_crypto=no
21746 gnome_version=
21747 wx_version=
21748 support_static_tools=no
21749 support_static_fd=no
21750 support_static_sd=no
21751 support_static_dir=no
21752 support_static_cons=no
21753 support_python=no
21754 build_client_only=no
21755 build_dird=yes
21756 build_stored=yes
21757 db_backends=""
21758 batch_insert_db_backends=""
21759 support_lockmgr=no
21760
21761
21762 # Check whether --enable-gnome was given.
21763 if test "${enable_gnome+set}" = set; then :
21764   enableval=$enable_gnome;
21765        if test x$enableval = xyes; then
21766           support_gnome=yes
21767        fi
21768
21769
21770 fi
21771
21772
21773 GNOME_DIR=
21774 if test x$support_gnome = xyes; then
21775    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21776    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21777 fi
21778 # AC_SUBST(GNOME_DIR)
21779
21780 # Check whether --enable-bat was given.
21781 if test "${enable_bat+set}" = set; then :
21782   enableval=$enable_bat;
21783        if test x$enableval = xyes; then
21784
21785 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21786
21787           support_bat=yes
21788        fi
21789
21790
21791 fi
21792
21793
21794 BAT_DIR=
21795 if test x$support_bat = xyes; then
21796    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21797    pkg=$?
21798    if test $pkg = 0; then
21799       BAT_DIR=src/qt-console
21800    else
21801       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21802    fi
21803 fi
21804
21805 got_qwt=no
21806 QWT_INC=
21807 QWT_LDFLAGS=
21808 QWT_LIB=
21809 QWT=
21810 no_qwt=no
21811
21812
21813
21814
21815
21816
21817
21818
21819 # Check whether --enable-bwx-console was given.
21820 if test "${enable_bwx_console+set}" = set; then :
21821   enableval=$enable_bwx_console;
21822        if test x$enableval = xyes; then
21823           support_wx_console=yes
21824        fi
21825
21826
21827 fi
21828
21829
21830 WX_DIR=
21831 if test x$support_wx_console = xyes; then
21832    abc=`$WXCONFIG $WXFLAGS --cppflags`
21833    pkg=$?
21834    if test $pkg = 0; then
21835       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21836       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21837       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21838
21839
21840
21841       WX_DIR="src/wx-console"
21842    else
21843       echo " "
21844       echo "wx-config program not found. bwx-console disabled."
21845       echo " "
21846       support_wx_console=no
21847    fi
21848 fi
21849
21850
21851 # Check whether --enable-tray-monitor was given.
21852 if test "${enable_tray_monitor+set}" = set; then :
21853   enableval=$enable_tray_monitor;
21854        if test x$enableval = xyes; then
21855           support_tray_monitor=yes
21856        fi
21857
21858
21859 fi
21860
21861
21862 TRAY_MONITOR_DIR=
21863 if test x$support_tray_monitor = xyes; then
21864    abc=`$PKGCONFIG --exists gtk+-2.0`
21865    pkg=$?
21866    if test $pkg = 0; then
21867       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21868       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21869
21870
21871       TRAY_MONITOR_DIR=src/tray-monitor
21872       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21873       pkg=$?
21874       if test $pkg = 0; then
21875
21876 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21877
21878       fi
21879    fi
21880 fi
21881
21882
21883 # Check whether --enable-smartalloc was given.
21884 if test "${enable_smartalloc+set}" = set; then :
21885   enableval=$enable_smartalloc;
21886        if test x$enableval = xno; then
21887           support_smartalloc=no
21888        fi
21889
21890
21891 fi
21892
21893
21894 if test x$support_smartalloc = xyes; then
21895
21896 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21897
21898 fi
21899
21900 # Check whether --enable-lockmgr was given.
21901 if test "${enable_lockmgr+set}" = set; then :
21902   enableval=$enable_lockmgr;
21903        if test x$enableval = xyes; then
21904           support_lockmgr=yes
21905        fi
21906
21907
21908 fi
21909
21910
21911 if test x$support_lockmgr = xyes; then
21912
21913 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21914
21915 fi
21916
21917
21918 # Check whether --enable-static-tools was given.
21919 if test "${enable_static_tools+set}" = set; then :
21920   enableval=$enable_static_tools;
21921        if test x$enableval = xyes; then
21922           if test x$use_libtool = xyes; then
21923              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21924   please rerun configure with --disable-libtool" "$LINENO" 5
21925           fi
21926           support_static_tools=yes
21927        fi
21928
21929
21930 fi
21931
21932
21933 TTOOL_LDFLAGS=
21934 if test x$support_static_tools = xyes; then
21935    TTOOL_LDFLAGS="-static"
21936 fi
21937
21938
21939 # Check whether --enable-static-fd was given.
21940 if test "${enable_static_fd+set}" = set; then :
21941   enableval=$enable_static_fd;
21942        if test x$enableval = xyes; then
21943           if test x$use_libtool = xyes; then
21944              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21945   please rerun configure with --disable-libtool" "$LINENO" 5
21946           fi
21947           support_static_fd=yes
21948        fi
21949
21950
21951 fi
21952
21953
21954 STATIC_FD=
21955 if test x$support_static_fd = xyes; then
21956    STATIC_FD="static-bacula-fd"
21957 fi
21958
21959
21960 # Check whether --enable-static-sd was given.
21961 if test "${enable_static_sd+set}" = set; then :
21962   enableval=$enable_static_sd;
21963        if test x$enableval = xyes; then
21964           if test x$use_libtool = xyes; then
21965              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21966   please rerun configure with --disable-libtool" "$LINENO" 5
21967           fi
21968           support_static_sd=yes
21969        fi
21970
21971
21972 fi
21973
21974
21975 STATIC_SD=
21976 if test x$support_static_sd = xyes; then
21977    STATIC_SD="static-bacula-sd"
21978 fi
21979
21980
21981 # Check whether --enable-static-dir was given.
21982 if test "${enable_static_dir+set}" = set; then :
21983   enableval=$enable_static_dir;
21984        if test x$enableval = xyes; then
21985           if test x$use_libtool = xyes; then
21986              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21987   please rerun configure with --disable-libtool" "$LINENO" 5
21988           fi
21989           support_static_dir=yes
21990        fi
21991
21992
21993 fi
21994
21995
21996 STATIC_DIR=
21997 if test x$support_static_dir = xyes; then
21998    STATIC_DIR="static-bacula-dir"
21999 fi
22000
22001
22002 # Check whether --enable-static-cons was given.
22003 if test "${enable_static_cons+set}" = set; then :
22004   enableval=$enable_static_cons;
22005        if test x$enableval = xyes; then
22006           if test x$use_libtool = xyes; then
22007              as_fn_error $? "Libtool is enabled, not compatible with static tools,
22008   please rerun configure with --disable-libtool" "$LINENO" 5
22009           fi
22010           support_static_cons=yes
22011        fi
22012
22013
22014 fi
22015
22016
22017 STATIC_CONS=
22018 STATIC_GNOME_CONS=
22019 STATIC_WX_CONS=
22020 if test x$support_static_cons = xyes; then
22021    STATIC_CONS="static-bconsole"
22022    STATIC_GNOME_CONS="static-bgnome-console"
22023    STATIC_WX_CONS="static-bwx-console"
22024 fi
22025
22026
22027
22028
22029 # Check whether --enable-client-only was given.
22030 if test "${enable_client_only+set}" = set; then :
22031   enableval=$enable_client_only;
22032        if test x$enableval = xyes; then
22033           build_client_only=yes
22034           db_backends="None"
22035           DB_BACKENDS="none"
22036        fi
22037
22038
22039 fi
22040
22041 if test x$build_client_only = xno; then
22042    ALL_DIRS="subdirs"
22043 else
22044    ALL_DIRS=""
22045 fi
22046
22047
22048 # Check whether --enable-build-dird was given.
22049 if test "${enable_build_dird+set}" = set; then :
22050   enableval=$enable_build_dird;
22051        if test x$enableval = xno; then
22052           build_dird=no
22053        fi
22054
22055
22056 fi
22057
22058 if test x$build_dird = xyes; then
22059    DIRD_DIR="src/dird"
22060    DIR_TOOLS="DIRTOOLS"
22061 else
22062    DIRD_DIR=""
22063    DIR_TOOLS="NODIRTOOLS"
22064 fi
22065
22066
22067
22068 # Check whether --enable-build-stored was given.
22069 if test "${enable_build_stored+set}" = set; then :
22070   enableval=$enable_build_stored;
22071       if test x$enableval = xno; then
22072          build_stored=no
22073       fi
22074
22075
22076 fi
22077
22078 if test x$build_stored = xyes; then
22079    STORED_DIR="src/stored"
22080 else
22081    STORED_DIR=""
22082 fi
22083
22084
22085 # Check whether --enable-conio was given.
22086 if test "${enable_conio+set}" = set; then :
22087   enableval=$enable_conio;
22088        if test x$enableval = xno; then
22089           support_conio=no
22090        fi
22091
22092
22093 fi
22094
22095
22096
22097 support_ipv6=yes
22098 # Check whether --enable-ipv6 was given.
22099 if test "${enable_ipv6+set}" = set; then :
22100   enableval=$enable_ipv6;
22101        if test x$enableval = xno; then
22102           support_ipv6=no
22103        fi
22104
22105
22106 fi
22107
22108
22109 if test x$support_ipv6 = xyes; then
22110     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h.  */
22112  #include <sys/types.h>
22113 #include <sys/socket.h>
22114 #include <netinet/in.h>
22115 int
22116 main ()
22117 {
22118 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22119   ;
22120   return 0;
22121 }
22122 _ACEOF
22123 if ac_fn_c_try_link "$LINENO"; then :
22124   support_ipv6=yes
22125 else
22126   support_ipv6=no
22127 fi
22128 rm -f core conftest.err conftest.$ac_objext \
22129     conftest$ac_exeext conftest.$ac_ext
22130 fi
22131
22132 if test x$support_ipv6 = xyes; then
22133
22134 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22135
22136 fi
22137
22138 TERM_LIB=""
22139 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22140 if test "x$ac_cv_header_curses_h" = xyes; then :
22141
22142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22143 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22144 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22145   $as_echo_n "(cached) " >&6
22146 else
22147   ac_check_lib_save_LIBS=$LIBS
22148 LIBS="-ltinfo  $LIBS"
22149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150 /* end confdefs.h.  */
22151
22152 /* Override any GCC internal prototype to avoid an error.
22153    Use char because int might match the return type of a GCC
22154    builtin and then its argument prototype would still apply.  */
22155 #ifdef __cplusplus
22156 extern "C"
22157 #endif
22158 char tgetent ();
22159 int
22160 main ()
22161 {
22162 return tgetent ();
22163   ;
22164   return 0;
22165 }
22166 _ACEOF
22167 if ac_fn_c_try_link "$LINENO"; then :
22168   ac_cv_lib_tinfo_tgetent=yes
22169 else
22170   ac_cv_lib_tinfo_tgetent=no
22171 fi
22172 rm -f core conftest.err conftest.$ac_objext \
22173     conftest$ac_exeext conftest.$ac_ext
22174 LIBS=$ac_check_lib_save_LIBS
22175 fi
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22177 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22178 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22179    TERM_LIB="-ltinfo"
22180 else
22181
22182       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22183 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22184 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22185   $as_echo_n "(cached) " >&6
22186 else
22187   ac_check_lib_save_LIBS=$LIBS
22188 LIBS="-lncurses  $LIBS"
22189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22190 /* end confdefs.h.  */
22191
22192 /* Override any GCC internal prototype to avoid an error.
22193    Use char because int might match the return type of a GCC
22194    builtin and then its argument prototype would still apply.  */
22195 #ifdef __cplusplus
22196 extern "C"
22197 #endif
22198 char tgetent ();
22199 int
22200 main ()
22201 {
22202 return tgetent ();
22203   ;
22204   return 0;
22205 }
22206 _ACEOF
22207 if ac_fn_c_try_link "$LINENO"; then :
22208   ac_cv_lib_ncurses_tgetent=yes
22209 else
22210   ac_cv_lib_ncurses_tgetent=no
22211 fi
22212 rm -f core conftest.err conftest.$ac_objext \
22213     conftest$ac_exeext conftest.$ac_ext
22214 LIBS=$ac_check_lib_save_LIBS
22215 fi
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22217 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22218 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22219    TERM_LIB="-lncurses"
22220 else
22221
22222         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22223 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22224 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22225   $as_echo_n "(cached) " >&6
22226 else
22227   ac_check_lib_save_LIBS=$LIBS
22228 LIBS="-ltermcap  $LIBS"
22229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h.  */
22231
22232 /* Override any GCC internal prototype to avoid an error.
22233    Use char because int might match the return type of a GCC
22234    builtin and then its argument prototype would still apply.  */
22235 #ifdef __cplusplus
22236 extern "C"
22237 #endif
22238 char tgetent ();
22239 int
22240 main ()
22241 {
22242 return tgetent ();
22243   ;
22244   return 0;
22245 }
22246 _ACEOF
22247 if ac_fn_c_try_link "$LINENO"; then :
22248   ac_cv_lib_termcap_tgetent=yes
22249 else
22250   ac_cv_lib_termcap_tgetent=no
22251 fi
22252 rm -f core conftest.err conftest.$ac_objext \
22253     conftest$ac_exeext conftest.$ac_ext
22254 LIBS=$ac_check_lib_save_LIBS
22255 fi
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22257 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22258 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22259    TERM_LIB="-ltermcap"
22260 fi
22261
22262
22263 fi
22264
22265
22266 fi
22267
22268
22269 else
22270     for ac_header in curses.h
22271 do :
22272   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22273 if test "x$ac_cv_header_curses_h" = xyes; then :
22274   cat >>confdefs.h <<_ACEOF
22275 #define HAVE_CURSES_H 1
22276 _ACEOF
22277
22278 fi
22279
22280 done
22281
22282      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22283 if test "x$ac_cv_header_term_h" = xyes; then :
22284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22285 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22286 if ${ac_cv_lib_curses_tgetent+:} false; then :
22287   $as_echo_n "(cached) " >&6
22288 else
22289   ac_check_lib_save_LIBS=$LIBS
22290 LIBS="-lcurses  $LIBS"
22291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22292 /* end confdefs.h.  */
22293
22294 /* Override any GCC internal prototype to avoid an error.
22295    Use char because int might match the return type of a GCC
22296    builtin and then its argument prototype would still apply.  */
22297 #ifdef __cplusplus
22298 extern "C"
22299 #endif
22300 char tgetent ();
22301 int
22302 main ()
22303 {
22304 return tgetent ();
22305   ;
22306   return 0;
22307 }
22308 _ACEOF
22309 if ac_fn_c_try_link "$LINENO"; then :
22310   ac_cv_lib_curses_tgetent=yes
22311 else
22312   ac_cv_lib_curses_tgetent=no
22313 fi
22314 rm -f core conftest.err conftest.$ac_objext \
22315     conftest$ac_exeext conftest.$ac_ext
22316 LIBS=$ac_check_lib_save_LIBS
22317 fi
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22319 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22320 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22321    TERM_LIB="-lcurses"
22322 fi
22323
22324
22325 fi
22326
22327
22328
22329 fi
22330
22331
22332
22333
22334 got_conio="no"
22335 if test x$support_conio = xyes; then
22336    if test x$TERM_LIB != x; then
22337       CONS_LIBS=$TERM_LIB
22338       CONS_OBJ="conio.o"
22339       CONS_SRC="conio.c"
22340       got_conio="yes"
22341       support_readline=no
22342
22343 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22344
22345    else
22346       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22347    fi
22348 fi
22349
22350
22351 # Check whether --enable-readline was given.
22352 if test "${enable_readline+set}" = set; then :
22353   enableval=$enable_readline;
22354        if test x$enableval = xno; then
22355           support_readline=no
22356        fi
22357
22358
22359 fi
22360
22361 if test x$TERM_LIB = x ; then
22362    support_readline=no
22363 fi
22364
22365 got_readline="no"
22366 READLINE_SRC=
22367 if test x$support_readline = xyes; then
22368
22369 # Check whether --with-readline was given.
22370 if test "${with_readline+set}" = set; then :
22371   withval=$with_readline;
22372           case "$with_readline" in
22373           no)
22374              :
22375              ;;
22376           yes|*)
22377              if test -f ${with_readline}/readline.h; then
22378                 CONS_INC="-I${with_readline}"
22379                 CONS_LDFLAGS="-L$with_readline"
22380              elif test -f ${with_readline}/include/readline/readline.h; then
22381                 CONS_INC="-I${with_readline}/include/readline"
22382                 CONS_LDFLAGS="-L${with_readline}/lib"
22383                 with_readline="${with_readline}/include/readline"
22384              else
22385                 with_readline="/usr/include/readline"
22386              fi
22387
22388              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22389 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22391
22392
22393 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22394
22395                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22396                     got_readline="yes"
22397
22398 else
22399
22400                     echo " "
22401                     echo "readline.h not found. readline turned off ..."
22402                     echo " "
22403
22404
22405 fi
22406
22407
22408              ;;
22409           esac
22410
22411 else
22412
22413                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22414 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22415
22416
22417 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22418
22419                 got_readline="yes"
22420                 CONS_INC="-I/usr/include/readline"
22421                 CONS_LIBS="-lreadline $TERM_LIB"
22422
22423 else
22424
22425                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22426 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22428
22429
22430 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22431
22432                         got_readline="yes"
22433                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22434                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22435                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22436                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22437
22438 else
22439
22440                         echo " "
22441                         echo "readline.h not found. readline turned off ..."
22442                         echo " "
22443
22444
22445 fi
22446
22447
22448
22449
22450 fi
22451
22452
22453
22454
22455 fi
22456
22457 fi
22458
22459
22460
22461
22462
22463
22464
22465
22466 MAKE_SHELL=/bin/sh
22467
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22469 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22470 if ${ac_cv_header_stat_broken+:} false; then :
22471   $as_echo_n "(cached) " >&6
22472 else
22473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h.  */
22475 #include <sys/types.h>
22476 #include <sys/stat.h>
22477
22478 #if defined S_ISBLK && defined S_IFDIR
22479 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22480 #endif
22481
22482 #if defined S_ISBLK && defined S_IFCHR
22483 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22484 #endif
22485
22486 #if defined S_ISLNK && defined S_IFREG
22487 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22488 #endif
22489
22490 #if defined S_ISSOCK && defined S_IFREG
22491 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22492 #endif
22493
22494 _ACEOF
22495 if ac_fn_c_try_compile "$LINENO"; then :
22496   ac_cv_header_stat_broken=no
22497 else
22498   ac_cv_header_stat_broken=yes
22499 fi
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 fi
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22503 $as_echo "$ac_cv_header_stat_broken" >&6; }
22504 if test $ac_cv_header_stat_broken = yes; then
22505
22506 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22507
22508 fi
22509
22510 ac_header_dirent=no
22511 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22512   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22514 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22515 if eval \${$as_ac_Header+:} false; then :
22516   $as_echo_n "(cached) " >&6
22517 else
22518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519 /* end confdefs.h.  */
22520 #include <sys/types.h>
22521 #include <$ac_hdr>
22522
22523 int
22524 main ()
22525 {
22526 if ((DIR *) 0)
22527 return 0;
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 if ac_fn_c_try_compile "$LINENO"; then :
22533   eval "$as_ac_Header=yes"
22534 else
22535   eval "$as_ac_Header=no"
22536 fi
22537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22538 fi
22539 eval ac_res=\$$as_ac_Header
22540                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22541 $as_echo "$ac_res" >&6; }
22542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22543   cat >>confdefs.h <<_ACEOF
22544 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22545 _ACEOF
22546
22547 ac_header_dirent=$ac_hdr; break
22548 fi
22549
22550 done
22551 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22552 if test $ac_header_dirent = dirent.h; then
22553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22554 $as_echo_n "checking for library containing opendir... " >&6; }
22555 if ${ac_cv_search_opendir+:} false; then :
22556   $as_echo_n "(cached) " >&6
22557 else
22558   ac_func_search_save_LIBS=$LIBS
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h.  */
22561
22562 /* Override any GCC internal prototype to avoid an error.
22563    Use char because int might match the return type of a GCC
22564    builtin and then its argument prototype would still apply.  */
22565 #ifdef __cplusplus
22566 extern "C"
22567 #endif
22568 char opendir ();
22569 int
22570 main ()
22571 {
22572 return opendir ();
22573   ;
22574   return 0;
22575 }
22576 _ACEOF
22577 for ac_lib in '' dir; do
22578   if test -z "$ac_lib"; then
22579     ac_res="none required"
22580   else
22581     ac_res=-l$ac_lib
22582     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22583   fi
22584   if ac_fn_c_try_link "$LINENO"; then :
22585   ac_cv_search_opendir=$ac_res
22586 fi
22587 rm -f core conftest.err conftest.$ac_objext \
22588     conftest$ac_exeext
22589   if ${ac_cv_search_opendir+:} false; then :
22590   break
22591 fi
22592 done
22593 if ${ac_cv_search_opendir+:} false; then :
22594
22595 else
22596   ac_cv_search_opendir=no
22597 fi
22598 rm conftest.$ac_ext
22599 LIBS=$ac_func_search_save_LIBS
22600 fi
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22602 $as_echo "$ac_cv_search_opendir" >&6; }
22603 ac_res=$ac_cv_search_opendir
22604 if test "$ac_res" != no; then :
22605   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22606
22607 fi
22608
22609 else
22610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22611 $as_echo_n "checking for library containing opendir... " >&6; }
22612 if ${ac_cv_search_opendir+:} false; then :
22613   $as_echo_n "(cached) " >&6
22614 else
22615   ac_func_search_save_LIBS=$LIBS
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h.  */
22618
22619 /* Override any GCC internal prototype to avoid an error.
22620    Use char because int might match the return type of a GCC
22621    builtin and then its argument prototype would still apply.  */
22622 #ifdef __cplusplus
22623 extern "C"
22624 #endif
22625 char opendir ();
22626 int
22627 main ()
22628 {
22629 return opendir ();
22630   ;
22631   return 0;
22632 }
22633 _ACEOF
22634 for ac_lib in '' x; do
22635   if test -z "$ac_lib"; then
22636     ac_res="none required"
22637   else
22638     ac_res=-l$ac_lib
22639     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22640   fi
22641   if ac_fn_c_try_link "$LINENO"; then :
22642   ac_cv_search_opendir=$ac_res
22643 fi
22644 rm -f core conftest.err conftest.$ac_objext \
22645     conftest$ac_exeext
22646   if ${ac_cv_search_opendir+:} false; then :
22647   break
22648 fi
22649 done
22650 if ${ac_cv_search_opendir+:} false; then :
22651
22652 else
22653   ac_cv_search_opendir=no
22654 fi
22655 rm conftest.$ac_ext
22656 LIBS=$ac_func_search_save_LIBS
22657 fi
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22659 $as_echo "$ac_cv_search_opendir" >&6; }
22660 ac_res=$ac_cv_search_opendir
22661 if test "$ac_res" != no; then :
22662   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22663
22664 fi
22665
22666 fi
22667
22668 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22669 do :
22670   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22671 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22672 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22673   cat >>confdefs.h <<_ACEOF
22674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22675 _ACEOF
22676
22677 fi
22678 done
22679
22680 for ac_func in nanosleep nl_langinfo
22681 do :
22682   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22683 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22684 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22685   cat >>confdefs.h <<_ACEOF
22686 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22687 _ACEOF
22688
22689 fi
22690 done
22691
22692 for ac_header in varargs.h
22693 do :
22694   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22695 if test "x$ac_cv_header_varargs_h" = xyes; then :
22696   cat >>confdefs.h <<_ACEOF
22697 #define HAVE_VARARGS_H 1
22698 _ACEOF
22699
22700 fi
22701
22702 done
22703
22704
22705
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22707 $as_echo_n "checking for Python support... " >&6; }
22708
22709 # Check whether --with-python was given.
22710 if test "${with_python+set}" = set; then :
22711   withval=$with_python;
22712        PYTHON_INCDIR=
22713        PYTHON_LIBS=
22714        if test "$withval" != "no"; then
22715           if test "$withval" = "yes"; then
22716              if test -e /usr/bin/python-config ; then
22717                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22718                 PYTHON_LIBS=`/usr/bin/python-config --libs`
22719              else
22720                 for python_root in /usr /usr/local /usr/sfw; do
22721                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python2.7 python3; do
22722                       if test -f $python_root/include/${ver}/Python.h; then
22723                          PYTHON_INCDIR=-I$python_root/include/${ver}
22724                          if test -d $python_root/lib64/${ver}/config; then
22725                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22726                          else
22727                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22728                          fi
22729                          break
22730                       fi
22731                    done
22732                 done
22733
22734                 if test x$PYTHON_INCDIR = x; then
22735                    if test -f $prefix/include/Python.h; then
22736                       PYTHON_INCDIR=-I$prefix/include
22737                       if test -d $prefix/lib64/config; then
22738                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22739                       else
22740                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
22741                       fi
22742                    else
22743                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22744 $as_echo "no" >&6; }
22745                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22746                    fi
22747                 fi
22748              fi
22749           else
22750              if test -e $withval/bin/python-config ; then
22751                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22752                 PYTHON_LIBS=`$withval/bin/python-config --libs`
22753              elif test -f $withval/Python.h; then
22754                 PYTHON_INCDIR=-I$withval
22755                 PYTHON_LIBS="-L$withval/config -lpython"
22756              elif test -f $withval/include/Python.h; then
22757                 PYTHON_INCDIR=-I$withval/include
22758                 if test -d $withval/lib64/config; then
22759                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
22760                 else
22761                    PYTHON_LIBS="-L$withval/lib/config -lpython"
22762                 fi
22763              elif test -f $withval/include/python/Python.h; then
22764                 PYTHON_INCDIR=-I$withval/include/python
22765                 if test -d $withval/lib64/python/config; then
22766                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22767                 else
22768                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22769                 fi
22770              else
22771                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22772 $as_echo "no" >&6; }
22773                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22774              fi
22775           fi
22776
22777           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22778
22779           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22780 $as_echo "yes" >&6; }
22781           support_python=yes
22782           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22783 $as_echo "$as_me: checking for more Python libs" >&6;}
22784           saved_LIBS="$LIBS"; LIBS=
22785           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22786 $as_echo_n "checking for library containing shm_open... " >&6; }
22787 if ${ac_cv_search_shm_open+:} false; then :
22788   $as_echo_n "(cached) " >&6
22789 else
22790   ac_func_search_save_LIBS=$LIBS
22791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22792 /* end confdefs.h.  */
22793
22794 /* Override any GCC internal prototype to avoid an error.
22795    Use char because int might match the return type of a GCC
22796    builtin and then its argument prototype would still apply.  */
22797 #ifdef __cplusplus
22798 extern "C"
22799 #endif
22800 char shm_open ();
22801 int
22802 main ()
22803 {
22804 return shm_open ();
22805   ;
22806   return 0;
22807 }
22808 _ACEOF
22809 for ac_lib in '' rt; do
22810   if test -z "$ac_lib"; then
22811     ac_res="none required"
22812   else
22813     ac_res=-l$ac_lib
22814     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22815   fi
22816   if ac_fn_c_try_link "$LINENO"; then :
22817   ac_cv_search_shm_open=$ac_res
22818 fi
22819 rm -f core conftest.err conftest.$ac_objext \
22820     conftest$ac_exeext
22821   if ${ac_cv_search_shm_open+:} false; then :
22822   break
22823 fi
22824 done
22825 if ${ac_cv_search_shm_open+:} false; then :
22826
22827 else
22828   ac_cv_search_shm_open=no
22829 fi
22830 rm conftest.$ac_ext
22831 LIBS=$ac_func_search_save_LIBS
22832 fi
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22834 $as_echo "$ac_cv_search_shm_open" >&6; }
22835 ac_res=$ac_cv_search_shm_open
22836 if test "$ac_res" != no; then :
22837   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22838
22839 fi
22840
22841           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22842 $as_echo_n "checking for openpty in -lutil... " >&6; }
22843 if ${ac_cv_lib_util_openpty+:} false; then :
22844   $as_echo_n "(cached) " >&6
22845 else
22846   ac_check_lib_save_LIBS=$LIBS
22847 LIBS="-lutil  $LIBS"
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h.  */
22850
22851 /* Override any GCC internal prototype to avoid an error.
22852    Use char because int might match the return type of a GCC
22853    builtin and then its argument prototype would still apply.  */
22854 #ifdef __cplusplus
22855 extern "C"
22856 #endif
22857 char openpty ();
22858 int
22859 main ()
22860 {
22861 return openpty ();
22862   ;
22863   return 0;
22864 }
22865 _ACEOF
22866 if ac_fn_c_try_link "$LINENO"; then :
22867   ac_cv_lib_util_openpty=yes
22868 else
22869   ac_cv_lib_util_openpty=no
22870 fi
22871 rm -f core conftest.err conftest.$ac_objext \
22872     conftest$ac_exeext conftest.$ac_ext
22873 LIBS=$ac_check_lib_save_LIBS
22874 fi
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22876 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22877 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22878   cat >>confdefs.h <<_ACEOF
22879 #define HAVE_LIBUTIL 1
22880 _ACEOF
22881
22882   LIBS="-lutil $LIBS"
22883
22884 fi
22885
22886           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22887           LIBS="$saved_LIBS"
22888        else
22889           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890 $as_echo "no" >&6; }
22891        fi
22892
22893 else
22894
22895        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22896 $as_echo "no" >&6; }
22897
22898
22899 fi
22900
22901
22902
22903
22904 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22905 if test "x$ac_cv_func_socket" = xyes; then :
22906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22907 $as_echo "using libc's socket" >&6; }
22908 else
22909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22910 $as_echo_n "checking for socket in -lxnet... " >&6; }
22911 if ${ac_cv_lib_xnet_socket+:} false; then :
22912   $as_echo_n "(cached) " >&6
22913 else
22914   ac_check_lib_save_LIBS=$LIBS
22915 LIBS="-lxnet  $LIBS"
22916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22917 /* end confdefs.h.  */
22918
22919 /* Override any GCC internal prototype to avoid an error.
22920    Use char because int might match the return type of a GCC
22921    builtin and then its argument prototype would still apply.  */
22922 #ifdef __cplusplus
22923 extern "C"
22924 #endif
22925 char socket ();
22926 int
22927 main ()
22928 {
22929 return socket ();
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 if ac_fn_c_try_link "$LINENO"; then :
22935   ac_cv_lib_xnet_socket=yes
22936 else
22937   ac_cv_lib_xnet_socket=no
22938 fi
22939 rm -f core conftest.err conftest.$ac_objext \
22940     conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22942 fi
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22944 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22945 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22946   cat >>confdefs.h <<_ACEOF
22947 #define HAVE_LIBXNET 1
22948 _ACEOF
22949
22950   LIBS="-lxnet $LIBS"
22951
22952 fi
22953
22954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22955 $as_echo_n "checking for socket in -lsocket... " >&6; }
22956 if ${ac_cv_lib_socket_socket+:} false; then :
22957   $as_echo_n "(cached) " >&6
22958 else
22959   ac_check_lib_save_LIBS=$LIBS
22960 LIBS="-lsocket  $LIBS"
22961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22962 /* end confdefs.h.  */
22963
22964 /* Override any GCC internal prototype to avoid an error.
22965    Use char because int might match the return type of a GCC
22966    builtin and then its argument prototype would still apply.  */
22967 #ifdef __cplusplus
22968 extern "C"
22969 #endif
22970 char socket ();
22971 int
22972 main ()
22973 {
22974 return socket ();
22975   ;
22976   return 0;
22977 }
22978 _ACEOF
22979 if ac_fn_c_try_link "$LINENO"; then :
22980   ac_cv_lib_socket_socket=yes
22981 else
22982   ac_cv_lib_socket_socket=no
22983 fi
22984 rm -f core conftest.err conftest.$ac_objext \
22985     conftest$ac_exeext conftest.$ac_ext
22986 LIBS=$ac_check_lib_save_LIBS
22987 fi
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22989 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22990 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22991   cat >>confdefs.h <<_ACEOF
22992 #define HAVE_LIBSOCKET 1
22993 _ACEOF
22994
22995   LIBS="-lsocket $LIBS"
22996
22997 fi
22998
22999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
23000 $as_echo_n "checking for socket in -linet... " >&6; }
23001 if ${ac_cv_lib_inet_socket+:} false; then :
23002   $as_echo_n "(cached) " >&6
23003 else
23004   ac_check_lib_save_LIBS=$LIBS
23005 LIBS="-linet  $LIBS"
23006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23007 /* end confdefs.h.  */
23008
23009 /* Override any GCC internal prototype to avoid an error.
23010    Use char because int might match the return type of a GCC
23011    builtin and then its argument prototype would still apply.  */
23012 #ifdef __cplusplus
23013 extern "C"
23014 #endif
23015 char socket ();
23016 int
23017 main ()
23018 {
23019 return socket ();
23020   ;
23021   return 0;
23022 }
23023 _ACEOF
23024 if ac_fn_c_try_link "$LINENO"; then :
23025   ac_cv_lib_inet_socket=yes
23026 else
23027   ac_cv_lib_inet_socket=no
23028 fi
23029 rm -f core conftest.err conftest.$ac_objext \
23030     conftest$ac_exeext conftest.$ac_ext
23031 LIBS=$ac_check_lib_save_LIBS
23032 fi
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
23034 $as_echo "$ac_cv_lib_inet_socket" >&6; }
23035 if test "x$ac_cv_lib_inet_socket" = xyes; then :
23036   cat >>confdefs.h <<_ACEOF
23037 #define HAVE_LIBINET 1
23038 _ACEOF
23039
23040   LIBS="-linet $LIBS"
23041
23042 fi
23043
23044 fi
23045
23046
23047 TCPW_MSG="no"
23048 WRAPLIBS=""
23049
23050 # Check whether --with-tcp-wrappers was given.
23051 if test "${with_tcp_wrappers+set}" = set; then :
23052   withval=$with_tcp_wrappers;
23053        if test "x$withval" != "xno" ; then
23054           saved_LIBS="$LIBS"
23055           LIBS="$saved_LIBS -lwrap"
23056           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
23057 $as_echo_n "checking for library containing nanosleep... " >&6; }
23058 if ${ac_cv_search_nanosleep+:} false; then :
23059   $as_echo_n "(cached) " >&6
23060 else
23061   ac_func_search_save_LIBS=$LIBS
23062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23063 /* end confdefs.h.  */
23064
23065 /* Override any GCC internal prototype to avoid an error.
23066    Use char because int might match the return type of a GCC
23067    builtin and then its argument prototype would still apply.  */
23068 #ifdef __cplusplus
23069 extern "C"
23070 #endif
23071 char nanosleep ();
23072 int
23073 main ()
23074 {
23075 return nanosleep ();
23076   ;
23077   return 0;
23078 }
23079 _ACEOF
23080 for ac_lib in '' rt; do
23081   if test -z "$ac_lib"; then
23082     ac_res="none required"
23083   else
23084     ac_res=-l$ac_lib
23085     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23086   fi
23087   if ac_fn_c_try_link "$LINENO"; then :
23088   ac_cv_search_nanosleep=$ac_res
23089 fi
23090 rm -f core conftest.err conftest.$ac_objext \
23091     conftest$ac_exeext
23092   if ${ac_cv_search_nanosleep+:} false; then :
23093   break
23094 fi
23095 done
23096 if ${ac_cv_search_nanosleep+:} false; then :
23097
23098 else
23099   ac_cv_search_nanosleep=no
23100 fi
23101 rm conftest.$ac_ext
23102 LIBS=$ac_func_search_save_LIBS
23103 fi
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
23105 $as_echo "$ac_cv_search_nanosleep" >&6; }
23106 ac_res=$ac_cv_search_nanosleep
23107 if test "$ac_res" != no; then :
23108   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23109
23110 fi
23111
23112           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
23113 $as_echo_n "checking for libwrap... " >&6; }
23114           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23115 /* end confdefs.h.  */
23116
23117                #include <sys/types.h>
23118                #include <tcpd.h>
23119                int deny_severity = 0;
23120                int allow_severity = 0;
23121                struct request_info *req;
23122
23123 int
23124 main ()
23125 {
23126
23127                 hosts_access(req);
23128
23129   ;
23130   return 0;
23131 }
23132 _ACEOF
23133 if ac_fn_c_try_link "$LINENO"; then :
23134
23135                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23136 $as_echo "yes" >&6; }
23137
23138 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23139
23140                  TCPW_MSG="yes"
23141                  LIBS="$saved_LIBS"
23142                  WRAPLIBS="-lwrap"
23143
23144 else
23145
23146                  LIBS="$saved_LIBS -lwrap -lnsl"
23147                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
23148                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23149 /* end confdefs.h.  */
23150
23151                        #include <sys/types.h>
23152                        #include <tcpd.h>
23153                        int deny_severity = 0;
23154                        int allow_severity = 0;
23155                        struct request_info *req;
23156
23157 int
23158 main ()
23159 {
23160
23161                        hosts_access(req);
23162
23163   ;
23164   return 0;
23165 }
23166 _ACEOF
23167 if ac_fn_c_try_link "$LINENO"; then :
23168
23169                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23170 $as_echo "yes" >&6; }
23171
23172 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23173
23174                       TCPW_MSG="yes"
23175                       LIBS="$saved_LIBS"
23176                       WRAPLIBS="-lwrap"
23177
23178 else
23179
23180                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
23181
23182
23183 fi
23184 rm -f core conftest.err conftest.$ac_objext \
23185     conftest$ac_exeext conftest.$ac_ext
23186
23187
23188 fi
23189 rm -f core conftest.err conftest.$ac_objext \
23190     conftest$ac_exeext conftest.$ac_ext
23191        fi
23192
23193
23194 fi
23195
23196
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23198 $as_echo_n "checking for OpenSSL... " >&6; }
23199
23200 # Check whether --with-openssl was given.
23201 if test "${with_openssl+set}" = set; then :
23202   withval=$with_openssl;
23203         with_openssl_directory=${withval}
23204
23205
23206 fi
23207
23208
23209 if test "x$with_openssl_directory" != "xno"; then
23210    OPENSSL_LIBS="-lssl -lcrypto"
23211    OPENSSL_INC=""
23212
23213    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23214       #
23215       # Make sure the $with_openssl_directory also makes sense
23216       #
23217       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23218          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23219          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23220       fi
23221    fi
23222
23223    saved_LIBS="${LIBS}"
23224    saved_CFLAGS="${CFLAGS}"
23225    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23226    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23227
23228    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229 /* end confdefs.h.  */
23230
23231           #include <openssl/ssl.h>
23232
23233 int
23234 main ()
23235 {
23236
23237            CRYPTO_set_id_callback(NULL);
23238
23239   ;
23240   return 0;
23241 }
23242 _ACEOF
23243 if ac_fn_c_try_link "$LINENO"; then :
23244
23245           support_tls="yes"
23246           support_crypto="yes"
23247
23248 else
23249
23250           support_tls="no"
23251           support_crypto="no"
23252
23253
23254 fi
23255 rm -f core conftest.err conftest.$ac_objext \
23256     conftest$ac_exeext conftest.$ac_ext
23257
23258    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259 /* end confdefs.h.  */
23260
23261           #include <openssl/evp.h>
23262
23263 int
23264 main ()
23265 {
23266
23267           EVP_sha512();
23268
23269   ;
23270   return 0;
23271 }
23272 _ACEOF
23273 if ac_fn_c_try_link "$LINENO"; then :
23274
23275           ac_cv_openssl_sha2="yes"
23276
23277 else
23278
23279           ac_cv_openssl_sha2="no"
23280
23281
23282 fi
23283 rm -f core conftest.err conftest.$ac_objext \
23284     conftest$ac_exeext conftest.$ac_ext
23285
23286                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23287 /* end confdefs.h.  */
23288
23289           #include <openssl/evp.h>
23290
23291 int
23292 main ()
23293 {
23294
23295           EVP_aes_192_cbc();
23296
23297   ;
23298   return 0;
23299 }
23300 _ACEOF
23301 if ac_fn_c_try_link "$LINENO"; then :
23302
23303           ac_cv_openssl_export="no"
23304
23305 else
23306
23307           ac_cv_openssl_export="yes"
23308
23309
23310 fi
23311 rm -f core conftest.err conftest.$ac_objext \
23312     conftest$ac_exeext conftest.$ac_ext
23313
23314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23315 $as_echo "$support_tls" >&6; }
23316    if test "$support_tls" = "yes"; then
23317
23318 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23319
23320
23321 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23322
23323
23324 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23325
23326    fi
23327
23328    if test "$ac_cv_openssl_sha2" = "yes"; then
23329
23330 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23331
23332    fi
23333
23334    if test "$ac_cv_openssl_export" = "yes"; then
23335
23336 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23337
23338    fi
23339
23340    if test "$support_crypto" = "yes"; then
23341       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23342 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23343 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23344   $as_echo_n "(cached) " >&6
23345 else
23346   ac_check_lib_save_LIBS=$LIBS
23347 LIBS="-lcrypto  $LIBS"
23348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23349 /* end confdefs.h.  */
23350
23351 /* Override any GCC internal prototype to avoid an error.
23352    Use char because int might match the return type of a GCC
23353    builtin and then its argument prototype would still apply.  */
23354 #ifdef __cplusplus
23355 extern "C"
23356 #endif
23357 char EVP_PKEY_encrypt_old ();
23358 int
23359 main ()
23360 {
23361 return EVP_PKEY_encrypt_old ();
23362   ;
23363   return 0;
23364 }
23365 _ACEOF
23366 if ac_fn_c_try_link "$LINENO"; then :
23367   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23368 else
23369   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23370 fi
23371 rm -f core conftest.err conftest.$ac_objext \
23372     conftest$ac_exeext conftest.$ac_ext
23373 LIBS=$ac_check_lib_save_LIBS
23374 fi
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23376 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23377 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23378
23379 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23380
23381 fi
23382
23383    fi
23384
23385    LIBS="${saved_LIBS}"
23386    CFLAGS="${saved_CFLAGS}"
23387 else
23388    support_tls="no"
23389    support_crypto="no"
23390    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23391 $as_echo "$support_tls" >&6; }
23392 fi
23393
23394 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23395    OPENSSL_LIBS=""
23396    OPENSSL_INC=""
23397 fi
23398
23399
23400
23401
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23403 $as_echo_n "checking for library containing dlopen... " >&6; }
23404 if ${ac_cv_search_dlopen+:} false; then :
23405   $as_echo_n "(cached) " >&6
23406 else
23407   ac_func_search_save_LIBS=$LIBS
23408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23409 /* end confdefs.h.  */
23410
23411 /* Override any GCC internal prototype to avoid an error.
23412    Use char because int might match the return type of a GCC
23413    builtin and then its argument prototype would still apply.  */
23414 #ifdef __cplusplus
23415 extern "C"
23416 #endif
23417 char dlopen ();
23418 int
23419 main ()
23420 {
23421 return dlopen ();
23422   ;
23423   return 0;
23424 }
23425 _ACEOF
23426 for ac_lib in '' dl; do
23427   if test -z "$ac_lib"; then
23428     ac_res="none required"
23429   else
23430     ac_res=-l$ac_lib
23431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23432   fi
23433   if ac_fn_c_try_link "$LINENO"; then :
23434   ac_cv_search_dlopen=$ac_res
23435 fi
23436 rm -f core conftest.err conftest.$ac_objext \
23437     conftest$ac_exeext
23438   if ${ac_cv_search_dlopen+:} false; then :
23439   break
23440 fi
23441 done
23442 if ${ac_cv_search_dlopen+:} false; then :
23443
23444 else
23445   ac_cv_search_dlopen=no
23446 fi
23447 rm conftest.$ac_ext
23448 LIBS=$ac_func_search_save_LIBS
23449 fi
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23451 $as_echo "$ac_cv_search_dlopen" >&6; }
23452 ac_res=$ac_cv_search_dlopen
23453 if test "$ac_res" != no; then :
23454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23455
23456 fi
23457
23458
23459 working_dir=`eval echo ${prefix}/var/bacula/working`
23460
23461 # Check whether --with-working-dir was given.
23462 if test "${with_working_dir+set}" = set; then :
23463   withval=$with_working_dir;
23464        if test "x$withval" != "xno" ; then
23465          working_dir=$withval
23466        fi
23467
23468
23469 fi
23470
23471
23472
23473
23474 archivedir=/tmp
23475
23476 # Check whether --with-archivedir was given.
23477 if test "${with_archivedir+set}" = set; then :
23478   withval=$with_archivedir;
23479        if test "x$withval" != "xno" ; then
23480           archivedir=$withval
23481        fi
23482
23483
23484 fi
23485
23486
23487
23488
23489 basename=`hostname`
23490
23491 # Check whether --with-basename was given.
23492 if test "${with_basename+set}" = set; then :
23493   withval=$with_basename;
23494        if test "x$withval" != "xno" ; then
23495           basename=$withval
23496        fi
23497
23498
23499 fi
23500
23501
23502
23503
23504 hostname=`uname -n | cut -d '.' -f 1`
23505 if test x${hostname} = x ; then
23506   hostname="localhost"
23507 fi
23508 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23509 if test ! $? = 0; then
23510   hostname="localhost"
23511 fi
23512
23513 # Check whether --with-hostname was given.
23514 if test "${with_hostname+set}" = set; then :
23515   withval=$with_hostname;
23516        if test "x$withval" != "xno" ; then
23517          hostname=$withval
23518        fi
23519
23520
23521 fi
23522
23523
23524
23525
23526
23527 scriptdir=`eval echo ${sysconfdir}`
23528
23529 # Check whether --with-scriptdir was given.
23530 if test "${with_scriptdir+set}" = set; then :
23531   withval=$with_scriptdir;
23532        if test "x$withval" != "xno" ; then
23533           scriptdir=$withval
23534        fi
23535
23536
23537 fi
23538
23539
23540
23541
23542
23543 bsrdir=/tmp
23544
23545 # Check whether --with-bsrdir was given.
23546 if test "${with_bsrdir+set}" = set; then :
23547   withval=$with_bsrdir;
23548        if test "x$withval" != "xno" ; then
23549           bsrdir=$withval
23550        fi
23551
23552
23553 fi
23554
23555
23556
23557
23558 logdir=/tmp
23559
23560 # Check whether --with-logdir was given.
23561 if test "${with_logdir+set}" = set; then :
23562   withval=$with_logdir;
23563        if test "x$withval" != "xno" ; then
23564           logdir=$withval
23565        fi
23566
23567
23568 fi
23569
23570
23571
23572
23573
23574 # ------------------------------------------
23575 # Where to place plugindir (plugin files)
23576 # ------------------------------------------
23577 plugindir=`eval echo ${libdir}`
23578
23579 # Check whether --with-plugindir was given.
23580 if test "${with_plugindir+set}" = set; then :
23581   withval=$with_plugindir;
23582        if test "x$withval" != "xno" ; then
23583           plugindir=$withval
23584        fi
23585
23586
23587 fi
23588
23589
23590
23591
23592 dump_email=root@localhost
23593
23594 # Check whether --with-dump-email was given.
23595 if test "${with_dump_email+set}" = set; then :
23596   withval=$with_dump_email;
23597        if test "x$withval" != "xno" ; then
23598           dump_email=$withval
23599        fi
23600
23601
23602 fi
23603
23604
23605
23606
23607 job_email=root@localhost
23608
23609 # Check whether --with-job-email was given.
23610 if test "${with_job_email+set}" = set; then :
23611   withval=$with_job_email;
23612        if test "x$withval" != "xno" ; then
23613           job_email=$withval
23614        fi
23615
23616
23617 fi
23618
23619
23620
23621
23622 smtp_host=localhost
23623
23624 # Check whether --with-smtp_host was given.
23625 if test "${with_smtp_host+set}" = set; then :
23626   withval=$with_smtp_host;
23627        if test "x$withval" != "xno" ; then
23628           smtp_host=$withval
23629        fi
23630
23631
23632 fi
23633
23634
23635
23636
23637 piddir=/var/run
23638
23639 # Check whether --with-pid-dir was given.
23640 if test "${with_pid_dir+set}" = set; then :
23641   withval=$with_pid_dir;
23642        if test "x$withval" != "xno" ; then
23643           piddir=$withval
23644        fi
23645
23646
23647 fi
23648
23649
23650 cat >>confdefs.h <<_ACEOF
23651 #define _PATH_BACULA_PIDDIR "$piddir"
23652 _ACEOF
23653
23654
23655
23656 subsysdir=/var/run/subsys
23657 if test -d /var/run/subsys; then
23658    subsysdir=/var/run/subsys
23659 elif test -d /var/lock/subsys; then
23660    subsysdir=/var/lock/subsys
23661 else
23662    subsysdir=/var/run/subsys
23663 fi
23664
23665 # Check whether --with-subsys-dir was given.
23666 if test "${with_subsys_dir+set}" = set; then :
23667   withval=$with_subsys_dir;
23668        if test "x$withval" != "xno" ; then
23669           subsysdir=$withval
23670        fi
23671
23672
23673 fi
23674
23675
23676
23677
23678 baseport=9101
23679
23680 # Check whether --with-baseport was given.
23681 if test "${with_baseport+set}" = set; then :
23682   withval=$with_baseport;
23683        if test "x$withval" != "xno" ; then
23684           baseport=$withval
23685        fi
23686
23687
23688 fi
23689
23690
23691
23692 dir_port=`expr $baseport`
23693 fd_port=`expr $baseport + 1`
23694 sd_port=`expr $fd_port + 1`
23695
23696
23697
23698
23699
23700 dir_password=
23701
23702 # Check whether --with-dir-password was given.
23703 if test "${with_dir_password+set}" = set; then :
23704   withval=$with_dir_password;
23705        if test "x$withval" != "xno" ; then
23706           dir_password=$withval
23707        fi
23708
23709
23710 fi
23711
23712
23713 if test "x$dir_password" = "x" ; then
23714    if test "x$OPENSSL" = "xnone" ; then
23715       key=`autoconf/randpass 33`
23716    else
23717       key=`openssl rand -base64 33`
23718    fi
23719    dir_password=$key
23720 fi
23721
23722 fd_password=
23723
23724 # Check whether --with-fd-password was given.
23725 if test "${with_fd_password+set}" = set; then :
23726   withval=$with_fd_password;
23727        if test "x$withval" != "xno" ; then
23728           fd_password=$withval
23729        fi
23730
23731
23732 fi
23733
23734
23735 if test "x$fd_password" = "x" ; then
23736    if test "x$OPENSSL" = "xnone" ; then
23737       key=`autoconf/randpass 37`
23738    else
23739       key=`openssl rand -base64 33`
23740    fi
23741    fd_password=$key
23742 fi
23743
23744 sd_password=
23745
23746 # Check whether --with-sd-password was given.
23747 if test "${with_sd_password+set}" = set; then :
23748   withval=$with_sd_password;
23749        if test "x$withval" != "xno" ; then
23750           sd_password=$withval
23751        fi
23752
23753
23754 fi
23755
23756
23757 if test "x$sd_password" = "x" ; then
23758    if test "x$OPENSSL" = "xnone" ; then
23759       key=`autoconf/randpass 41`
23760    else
23761       key=`openssl rand -base64 33`
23762    fi
23763    sd_password=$key
23764 fi
23765
23766 mon_dir_password=
23767
23768 # Check whether --with-mon-dir-password was given.
23769 if test "${with_mon_dir_password+set}" = set; then :
23770   withval=$with_mon_dir_password;
23771        if test "x$withval" != "xno" ; then
23772           mon_dir_password=$withval
23773        fi
23774
23775
23776 fi
23777
23778
23779 if test "x$mon_dir_password" = "x" ; then
23780    if test "x$OPENSSL" = "xnone" ; then
23781       key=`autoconf/randpass 33`
23782    else
23783       key=`openssl rand -base64 33`
23784    fi
23785    mon_dir_password=$key
23786 fi
23787
23788 mon_fd_password=
23789
23790 # Check whether --with-mon-fd-password was given.
23791 if test "${with_mon_fd_password+set}" = set; then :
23792   withval=$with_mon_fd_password;
23793        if test "x$withval" != "xno" ; then
23794           mon_fd_password=$withval
23795        fi
23796
23797
23798 fi
23799
23800
23801 if test "x$mon_fd_password" = "x" ; then
23802    if test "x$OPENSSL" = "xnone" ; then
23803       key=`autoconf/randpass 37`
23804    else
23805       key=`openssl rand -base64 33`
23806    fi
23807    mon_fd_password=$key
23808 fi
23809
23810 mon_sd_password=
23811
23812 # Check whether --with-mon-sd-password was given.
23813 if test "${with_mon_sd_password+set}" = set; then :
23814   withval=$with_mon_sd_password;
23815        if test "x$withval" != "xno" ; then
23816           mon_sd_password=$withval
23817        fi
23818
23819
23820 fi
23821
23822
23823 if test "x$mon_sd_password" = "x" ; then
23824    if test "x$OPENSSL" = "xnone" ; then
23825       key=`autoconf/randpass 41`
23826    else
23827       key=`openssl rand -base64 33`
23828    fi
23829    mon_sd_password=$key
23830 fi
23831
23832
23833
23834
23835
23836
23837
23838
23839 db_name=bacula
23840
23841 # Check whether --with-db_name was given.
23842 if test "${with_db_name+set}" = set; then :
23843   withval=$with_db_name;
23844        if test "x$withval" != "x" ; then
23845           db_name=$withval
23846        fi
23847
23848
23849 fi
23850
23851
23852
23853 db_user=bacula
23854
23855 # Check whether --with-db_user was given.
23856 if test "${with_db_user+set}" = set; then :
23857   withval=$with_db_user;
23858        if test "x$withval" != "x" ; then
23859           db_user=$withval
23860        fi
23861
23862
23863 fi
23864
23865
23866
23867 db_password=
23868
23869 # Check whether --with-db_password was given.
23870 if test "${with_db_password+set}" = set; then :
23871   withval=$with_db_password;
23872        if test "x$withval" != "x" ; then
23873           db_password=$withval
23874        fi
23875
23876
23877 fi
23878
23879
23880
23881 db_port=" "
23882
23883 # Check whether --with-db_port was given.
23884 if test "${with_db_port+set}" = set; then :
23885   withval=$with_db_port;
23886        if test "x$withval" != "x" ; then
23887           db_port=$withval
23888        fi
23889
23890
23891 fi
23892
23893
23894
23895 #
23896 # Handle users and groups for each daemon
23897 #
23898 dir_user=
23899
23900 # Check whether --with-dir_user was given.
23901 if test "${with_dir_user+set}" = set; then :
23902   withval=$with_dir_user;
23903        if test "x$withval" != "x" ; then
23904            dir_user=$withval
23905        fi
23906
23907
23908 fi
23909
23910
23911 dir_group=
23912
23913 # Check whether --with-dir_group was given.
23914 if test "${with_dir_group+set}" = set; then :
23915   withval=$with_dir_group;
23916        if test "x$withval" != "x" ; then
23917           dir_group=$withval
23918        fi
23919
23920
23921 fi
23922
23923
23924 sd_user=
23925
23926 # Check whether --with-sd_user was given.
23927 if test "${with_sd_user+set}" = set; then :
23928   withval=$with_sd_user;
23929        if test "x$withval" != "x" ; then
23930           sd_user=$withval
23931        fi
23932
23933
23934 fi
23935
23936
23937 sd_group=
23938
23939 # Check whether --with-sd_group was given.
23940 if test "${with_sd_group+set}" = set; then :
23941   withval=$with_sd_group;
23942        if test "x$withval" != "x" ; then
23943           sd_group=$withval
23944        fi
23945
23946
23947 fi
23948
23949
23950 fd_user=
23951
23952 # Check whether --with-fd_user was given.
23953 if test "${with_fd_user+set}" = set; then :
23954   withval=$with_fd_user;
23955        if test "x$withval" != "x" ; then
23956           fd_user=$withval
23957        fi
23958
23959
23960 fi
23961
23962
23963 fd_group=
23964
23965 # Check whether --with-fd_group was given.
23966 if test "${with_fd_group+set}" = set; then :
23967   withval=$with_fd_group;
23968        if test "x$withval" != "x" ; then
23969           fd_group=$withval
23970        fi
23971
23972
23973 fi
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983 SBINPERM=0750
23984
23985 # Check whether --with-sbin-perm was given.
23986 if test "${with_sbin_perm+set}" = set; then :
23987   withval=$with_sbin_perm;
23988        if test "x$withval" != "x" ; then
23989           SBINPERM=$withval
23990        fi
23991
23992
23993 fi
23994
23995
23996
23997
23998 support_batch_insert=yes
23999 # Check whether --enable-batch-insert was given.
24000 if test "${enable_batch_insert+set}" = set; then :
24001   enableval=$enable_batch_insert;
24002        if test x$enableval = xno; then
24003           support_batch_insert=no
24004        fi
24005
24006
24007 fi
24008
24009
24010 if test x$support_batch_insert = xyes; then
24011
24012 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24013
24014 fi
24015
24016
24017 uncomment_dbi="#"
24018
24019
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
24021 $as_echo_n "checking for PostgreSQL support... " >&6; }
24022
24023 # Check whether --with-postgresql was given.
24024 if test "${with_postgresql+set}" = set; then :
24025   withval=$with_postgresql;
24026   if test "$withval" != "no"; then
24027       if test "$withval" = "yes"; then
24028           PG_CONFIG=`which pg_config 2>/dev/null`
24029           if test -n "$PG_CONFIG"; then
24030               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
24031               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
24032               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
24033           elif test -f /usr/local/include/libpq-fe.h; then
24034               POSTGRESQL_INCDIR=/usr/local/include
24035               if test -d /usr/local/lib64; then
24036                  POSTGRESQL_LIBDIR=/usr/local/lib64
24037               else
24038                  POSTGRESQL_LIBDIR=/usr/local/lib
24039               fi
24040               POSTGRESQL_BINDIR=/usr/local/bin
24041           elif test -f /usr/include/libpq-fe.h; then
24042               POSTGRESQL_INCDIR=/usr/include
24043               if test -d /usr/lib64; then
24044                  POSTGRESQL_LIBDIR=/usr/lib64
24045               else
24046                  POSTGRESQL_LIBDIR=/usr/lib
24047               fi
24048               POSTGRESQL_BINDIR=/usr/bin
24049           elif test -f /usr/include/pgsql/libpq-fe.h; then
24050               POSTGRESQL_INCDIR=/usr/include/pgsql
24051               if test -d /usr/lib64/pgsql; then
24052                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
24053               else
24054                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
24055               fi
24056               POSTGRESQL_BINDIR=/usr/bin
24057           elif test -f /usr/include/postgresql/libpq-fe.h; then
24058               POSTGRESQL_INCDIR=/usr/include/postgresql
24059               if test -d /usr/lib64/postgresql; then
24060                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
24061               else
24062                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
24063               fi
24064               POSTGRESQL_BINDIR=/usr/bin
24065           else
24066               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24067 $as_echo "no" >&6; }
24068               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
24069           fi
24070       elif test -f $withval/include/libpq-fe.h; then
24071           POSTGRESQL_INCDIR=$withval/include
24072           POSTGRESQL_LIBDIR=$withval/lib
24073           POSTGRESQL_BINDIR=$withval/bin
24074       elif test -f $withval/include/postgresql/libpq-fe.h; then
24075           POSTGRESQL_INCDIR=$withval/include/postgresql
24076           if test -d $withval/lib64; then
24077               POSTGRESQL_LIBDIR=$withval/lib64
24078           else
24079               POSTGRESQL_LIBDIR=$withval/lib
24080           fi
24081           POSTGRESQL_BINDIR=$withval/bin
24082       else
24083           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24084 $as_echo "no" >&6; }
24085           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
24086       fi
24087
24088 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
24089
24090      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24091 $as_echo "yes" >&6; }
24092
24093      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
24094      if test x$use_libtool != xno; then
24095         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
24096      else
24097         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
24098      fi
24099      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
24100 if test "x$ac_cv_func_crypt" = xyes; then :
24101
24102 else
24103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
24104 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
24105 if ${ac_cv_lib_crypt_crypt+:} false; then :
24106   $as_echo_n "(cached) " >&6
24107 else
24108   ac_check_lib_save_LIBS=$LIBS
24109 LIBS="-lcrypt  $LIBS"
24110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111 /* end confdefs.h.  */
24112
24113 /* Override any GCC internal prototype to avoid an error.
24114    Use char because int might match the return type of a GCC
24115    builtin and then its argument prototype would still apply.  */
24116 #ifdef __cplusplus
24117 extern "C"
24118 #endif
24119 char crypt ();
24120 int
24121 main ()
24122 {
24123 return crypt ();
24124   ;
24125   return 0;
24126 }
24127 _ACEOF
24128 if ac_fn_c_try_link "$LINENO"; then :
24129   ac_cv_lib_crypt_crypt=yes
24130 else
24131   ac_cv_lib_crypt_crypt=no
24132 fi
24133 rm -f core conftest.err conftest.$ac_objext \
24134     conftest$ac_exeext conftest.$ac_ext
24135 LIBS=$ac_check_lib_save_LIBS
24136 fi
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
24138 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
24139 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
24140   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
24141 fi
24142
24143 fi
24144
24145      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
24146      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
24147
24148      if test -z "${db_backends}"; then
24149          db_backends="PostgreSQL"
24150      else
24151          db_backends="${db_backends} PostgreSQL"
24152      fi
24153      if test -z "${DB_BACKENDS}"; then
24154          DB_BACKENDS="postgresql"
24155      else
24156          DB_BACKENDS="${DB_BACKENDS} postgresql"
24157      fi
24158
24159                     if test "x$support_batch_insert" = "xyes"; then
24160                   saved_LDFLAGS="${LDFLAGS}"
24161          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
24162          saved_LIBS="${LIBS}"
24163          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
24164             LIBS="${saved_LIBS} -lcrypt"
24165          fi
24166
24167          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24168 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24169 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24170   $as_echo_n "(cached) " >&6
24171 else
24172   ac_check_lib_save_LIBS=$LIBS
24173 LIBS="-lpq  $LIBS"
24174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24175 /* end confdefs.h.  */
24176
24177 /* Override any GCC internal prototype to avoid an error.
24178    Use char because int might match the return type of a GCC
24179    builtin and then its argument prototype would still apply.  */
24180 #ifdef __cplusplus
24181 extern "C"
24182 #endif
24183 char PQisthreadsafe ();
24184 int
24185 main ()
24186 {
24187 return PQisthreadsafe ();
24188   ;
24189   return 0;
24190 }
24191 _ACEOF
24192 if ac_fn_c_try_link "$LINENO"; then :
24193   ac_cv_lib_pq_PQisthreadsafe=yes
24194 else
24195   ac_cv_lib_pq_PQisthreadsafe=no
24196 fi
24197 rm -f core conftest.err conftest.$ac_objext \
24198     conftest$ac_exeext conftest.$ac_ext
24199 LIBS=$ac_check_lib_save_LIBS
24200 fi
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24202 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24203 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24204
24205 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24206
24207 fi
24208
24209          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24210 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24211 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24212   $as_echo_n "(cached) " >&6
24213 else
24214   ac_check_lib_save_LIBS=$LIBS
24215 LIBS="-lpq  $LIBS"
24216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24217 /* end confdefs.h.  */
24218
24219 /* Override any GCC internal prototype to avoid an error.
24220    Use char because int might match the return type of a GCC
24221    builtin and then its argument prototype would still apply.  */
24222 #ifdef __cplusplus
24223 extern "C"
24224 #endif
24225 char PQputCopyData ();
24226 int
24227 main ()
24228 {
24229 return PQputCopyData ();
24230   ;
24231   return 0;
24232 }
24233 _ACEOF
24234 if ac_fn_c_try_link "$LINENO"; then :
24235   ac_cv_lib_pq_PQputCopyData=yes
24236 else
24237   ac_cv_lib_pq_PQputCopyData=no
24238 fi
24239 rm -f core conftest.err conftest.$ac_objext \
24240     conftest$ac_exeext conftest.$ac_ext
24241 LIBS=$ac_check_lib_save_LIBS
24242 fi
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24244 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24245 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24246
24247 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24248
24249 fi
24250
24251          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24252              if test $support_batch_insert = yes ; then
24253
24254 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24255
24256                  if test -z "${batch_insert_db_backends}"; then
24257                      batch_insert_db_backends="PostgreSQL"
24258                  else
24259                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24260                  fi
24261              fi
24262          fi
24263
24264          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24265          then
24266              echo "WARNING: Your PostgreSQL client library is too old to detect "
24267              echo "if it was compiled with --enable-thread-safety, consider to "
24268              echo "upgrade it in order to avoid problems with Batch insert mode"
24269          fi
24270
24271                   LDFLAGS="${saved_LDFLAGS}"
24272          LIBS="${saved_LIBS}"
24273      fi
24274   else
24275      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24276 $as_echo "no" >&6; }
24277   fi
24278
24279 else
24280
24281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24282 $as_echo "no" >&6; }
24283
24284 fi
24285
24286
24287
24288
24289
24290
24291
24292
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24294 $as_echo_n "checking for MySQL support... " >&6; }
24295
24296 # Check whether --with-mysql was given.
24297 if test "${with_mysql+set}" = set; then :
24298   withval=$with_mysql;
24299   if test "$withval" != "no"; then
24300         if test "$withval" = "yes"; then
24301 #
24302 # This code is very broken on older systems
24303 #
24304 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24305 #           if test "x${MYSQL_CONFIG}" != x; then
24306 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24307 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24308 #              if test $? = 0 ; then
24309 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24310 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24311 #              else
24312 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
24313 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24314 #              fi
24315 #           elif test -f /usr/local/mysql/include/mysql/mysql.h; then
24316            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24317               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24318               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24319                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24320                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24321               else
24322                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24323               fi
24324               MYSQL_BINDIR=/usr/local/mysql/bin
24325            elif test -f /usr/include/mysql/mysql.h; then
24326               MYSQL_INCDIR=/usr/include/mysql
24327               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24328                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24329                  MYSQL_LIBDIR=/usr/lib64/mysql
24330               elif test -f /usr/lib64/libmysqlclient_r.a \
24331                         -o -f /usr/lib64/libmysqlclient_r.so; then
24332                  MYSQL_LIBDIR=/usr/lib64
24333               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24334                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24335                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24336               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24337                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24338                  MYSQL_LIBDIR=/usr/lib/mysql
24339               else
24340                  MYSQL_LIBDIR=/usr/lib
24341               fi
24342               MYSQL_BINDIR=/usr/bin
24343            elif test -f /usr/include/mysql.h; then
24344               MYSQL_INCDIR=/usr/include
24345               if test -f /usr/lib64/libmysqlclient_r.a \
24346                       -o -f /usr/lib64/libmysqlclient_r.so; then
24347                  MYSQL_LIBDIR=/usr/lib64
24348               else
24349                  MYSQL_LIBDIR=/usr/lib
24350               fi
24351               MYSQL_BINDIR=/usr/bin
24352            elif test -f /usr/local/include/mysql/mysql.h; then
24353               MYSQL_INCDIR=/usr/local/include/mysql
24354               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24355                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24356                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24357               else
24358                  MYSQL_LIBDIR=/usr/local/lib/mysql
24359               fi
24360               MYSQL_BINDIR=/usr/local/bin
24361            elif test -f /usr/local/include/mysql.h; then
24362               MYSQL_INCDIR=/usr/local/include
24363               if test -f /usr/local/lib64/libmysqlclient_r.a \
24364                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24365                  MYSQL_LIBDIR=/usr/local/lib64
24366               else
24367                  MYSQL_LIBDIR=/usr/local/lib
24368               fi
24369               MYSQL_BINDIR=/usr/local/bin
24370            else
24371               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24372 $as_echo "no" >&6; }
24373               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24374            fi
24375         else
24376            if test -f $withval/include/mysql/mysql.h; then
24377               MYSQL_INCDIR=$withval/include/mysql
24378               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24379                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24380                  MYSQL_LIBDIR=$withval/lib64/mysql
24381               elif test -f $withval/lib64/libmysqlclient_r.a \
24382                    -o -f $withval/lib64/libmysqlclient_r.so; then
24383                  MYSQL_LIBDIR=$withval/lib64
24384               elif test -f $withval/lib/libmysqlclient_r.a \
24385                    -o -f $withval/lib/libmysqlclient_r.so; then
24386                  MYSQL_LIBDIR=$withval/lib
24387               else
24388                  MYSQL_LIBDIR=$withval/lib/mysql
24389               fi
24390               MYSQL_BINDIR=$withval/bin
24391            elif test -f $withval/include/mysql.h; then
24392               MYSQL_INCDIR=$withval/include
24393               if test -f $withval/lib64/libmysqlclient_r.a \
24394                    -o -f $withval/lib64/libmysqlclient_r.so; then
24395                  MYSQL_LIBDIR=$withval/lib64
24396               else
24397                  MYSQL_LIBDIR=$withval/lib
24398               fi
24399               MYSQL_BINDIR=$withval/bin
24400            else
24401               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24402 $as_echo "no" >&6; }
24403               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24404            fi
24405         fi
24406      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24407      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24408           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24409         if test x$use_libtool != xno; then
24410            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24411         else
24412            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24413         fi
24414         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24415      fi
24416      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24417
24418
24419 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24420
24421      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24422 $as_echo "yes" >&6; }
24423
24424      if test -z "${db_backends}" ; then
24425          db_backends="MySQL"
24426      else
24427          db_backends="${db_backends} MySQL"
24428      fi
24429      if test -z "${DB_BACKENDS}" ; then
24430          DB_BACKENDS="mysql"
24431      else
24432          DB_BACKENDS="${DB_BACKENDS} mysql"
24433      fi
24434
24435                     if test "x$support_batch_insert" = "xyes"; then
24436                   saved_LDFLAGS="${LDFLAGS}"
24437          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24438          saved_LIBS="${LIBS}"
24439          LIBS="${saved_LIBS} -lz"
24440
24441          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24442 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24443 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24444   $as_echo_n "(cached) " >&6
24445 else
24446   ac_check_lib_save_LIBS=$LIBS
24447 LIBS="-lmysqlclient_r  $LIBS"
24448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24449 /* end confdefs.h.  */
24450
24451 /* Override any GCC internal prototype to avoid an error.
24452    Use char because int might match the return type of a GCC
24453    builtin and then its argument prototype would still apply.  */
24454 #ifdef __cplusplus
24455 extern "C"
24456 #endif
24457 char mysql_thread_safe ();
24458 int
24459 main ()
24460 {
24461 return mysql_thread_safe ();
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 if ac_fn_c_try_link "$LINENO"; then :
24467   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24468 else
24469   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24470 fi
24471 rm -f core conftest.err conftest.$ac_objext \
24472     conftest$ac_exeext conftest.$ac_ext
24473 LIBS=$ac_check_lib_save_LIBS
24474 fi
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24476 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24477 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24478
24479 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24480
24481 fi
24482
24483          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24484              if test -z "${batch_insert_db_backends}"; then
24485                  batch_insert_db_backends="MySQL"
24486              else
24487                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24488              fi
24489          fi
24490
24491                   LDFLAGS="${saved_LDFLAGS}"
24492          LIBS="${saved_LIBS}"
24493      fi
24494   else
24495      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24496 $as_echo "no" >&6; }
24497   fi
24498
24499 else
24500
24501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24502 $as_echo "no" >&6; }
24503
24504 fi
24505
24506
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24508 $as_echo_n "checking for MySQL embedded support... " >&6; }
24509
24510 # Check whether --with-embedded-mysql was given.
24511 if test "${with_embedded_mysql+set}" = set; then :
24512   withval=$with_embedded_mysql;
24513   if test "$withval" != "no"; then
24514         if test "$withval" = "yes"; then
24515                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24516                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24517                         if test -d /usr/local/mysql/lib64/mysql; then
24518                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24519                         else
24520                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24521                         fi
24522                         MYSQL_BINDIR=/usr/local/mysql/bin
24523                 elif test -f /usr/include/mysql/mysql.h; then
24524                         MYSQL_INCDIR=/usr/include/mysql
24525                         if test -d /usr/lib64/mysql; then
24526                                 MYSQL_LIBDIR=/usr/lib64/mysql
24527                         else
24528                                 MYSQL_LIBDIR=/usr/lib/mysql
24529                         fi
24530                         MYSQL_BINDIR=/usr/bin
24531                 elif test -f /usr/include/mysql.h; then
24532                         MYSQL_INCDIR=/usr/include
24533                         if test -d /usr/lib64; then
24534                                 MYSQL_LIBDIR=/usr/lib64
24535                         else
24536                                 MYSQL_LIBDIR=/usr/lib
24537                         fi
24538                         MYSQL_BINDIR=/usr/bin
24539                 elif test -f /usr/local/include/mysql/mysql.h; then
24540                         MYSQL_INCDIR=/usr/local/include/mysql
24541                         if test -d /usr/local/lib64/mysql; then
24542                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24543                         else
24544                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24545                         fi
24546                         MYSQL_BINDIR=/usr/local/bin
24547                 elif test -f /usr/local/include/mysql.h; then
24548                         MYSQL_INCDIR=/usr/local/include
24549                         if test -d /usr/local/lib64; then
24550                                 MYSQL_LIBDIR=/usr/local/lib64
24551                         else
24552                                 MYSQL_LIBDIR=/usr/local/lib
24553                         fi
24554                         MYSQL_BINDIR=/usr/local/bin
24555                 else
24556                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24557 $as_echo "no" >&6; }
24558                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24559                 fi
24560         else
24561                 if test -f $withval/include/mysql/mysql.h; then
24562                         MYSQL_INCDIR=$withval/include/mysql
24563                         if test -d $withval/lib64/mysql; then
24564                                 MYSQL_LIBDIR=$withval/lib64/mysql
24565                         else
24566                                 MYSQL_LIBDIR=$withval/lib/mysql
24567                         fi
24568                         MYSQL_BINDIR=$withval/bin
24569                 elif test -f $withval/include/mysql.h; then
24570                         MYSQL_INCDIR=$withval/include
24571                         if test -d $withval/lib64; then
24572                                 MYSQL_LIBDIR=$withval/lib64
24573                         else
24574                                 MYSQL_LIBDIR=$withval/lib
24575                         fi
24576                         MYSQL_BINDIR=$withval/bin
24577                 else
24578                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24579 $as_echo "no" >&6; }
24580                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24581                 fi
24582         fi
24583      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24584      if test x$use_libtool != xno; then
24585         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24586      else
24587         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24588      fi
24589      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24590      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24591
24592
24593 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24594
24595
24596 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24597
24598      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24599 $as_echo "yes" >&6; }
24600
24601      if test -z "${db_backends}"; then
24602          db_backends="MySQL"
24603      else
24604          db_backends="${db_backends} MySQL"
24605      fi
24606      if test -z "${DB_BACKENDS}"; then
24607          DB_BACKENDS="mysql"
24608      else
24609          DB_BACKENDS="${DB_BACKENDS} mysql"
24610      fi
24611
24612                     if test "x$support_batch_insert" = "xyes"; then
24613                   saved_LDFLAGS="${LDFLAGS}"
24614          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24615          saved_LIBS="${LIBS}"
24616          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24617
24618          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24619 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24620 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24621   $as_echo_n "(cached) " >&6
24622 else
24623   ac_check_lib_save_LIBS=$LIBS
24624 LIBS="-lmysqlclient_r  $LIBS"
24625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626 /* end confdefs.h.  */
24627
24628 /* Override any GCC internal prototype to avoid an error.
24629    Use char because int might match the return type of a GCC
24630    builtin and then its argument prototype would still apply.  */
24631 #ifdef __cplusplus
24632 extern "C"
24633 #endif
24634 char mysql_thread_safe ();
24635 int
24636 main ()
24637 {
24638 return mysql_thread_safe ();
24639   ;
24640   return 0;
24641 }
24642 _ACEOF
24643 if ac_fn_c_try_link "$LINENO"; then :
24644   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24645 else
24646   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24647 fi
24648 rm -f core conftest.err conftest.$ac_objext \
24649     conftest$ac_exeext conftest.$ac_ext
24650 LIBS=$ac_check_lib_save_LIBS
24651 fi
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24653 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24654 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24655
24656 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24657
24658 fi
24659
24660          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24661              if test -z "${batch_insert_db_backends}"; then
24662                  batch_insert_db_backends="MySQL"
24663              else
24664                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24665              fi
24666          fi
24667
24668                   LDFLAGS="${saved_LDFLAGS}"
24669          LIBS="${saved_LIBS}"
24670      fi
24671   else
24672      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24673 $as_echo "no" >&6; }
24674   fi
24675
24676 else
24677
24678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24679 $as_echo "no" >&6; }
24680
24681 fi
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24692 $as_echo_n "checking for SQLite3 support... " >&6; }
24693
24694 # Check whether --with-sqlite3 was given.
24695 if test "${with_sqlite3+set}" = set; then :
24696   withval=$with_sqlite3;
24697   if test "$withval" != "no"; then
24698      if test "$withval" = "yes"; then
24699         if test -f /usr/local/include/sqlite3.h; then
24700            SQLITE_INCDIR=/usr/local/include
24701            if test -d /usr/local/lib64; then
24702               SQLITE_LIBDIR=/usr/local/lib64
24703            else
24704               SQLITE_LIBDIR=/usr/local/lib
24705            fi
24706            SQLITE_BINDIR=/usr/local/bin
24707         elif test -f /usr/include/sqlite3.h; then
24708            SQLITE_INCDIR=/usr/include
24709            if test -d /usr/lib64; then
24710               SQLITE_LIBDIR=/usr/lib64
24711            else
24712               SQLITE_LIBDIR=/usr/lib
24713            fi
24714            SQLITE_BINDIR=/usr/bin
24715         elif test -f $prefix/include/sqlite3.h; then
24716            SQLITE_INCDIR=$prefix/include
24717            if test -d $prefix/lib64; then
24718               SQLITE_LIBDIR=$prefix/lib64
24719            else
24720               SQLITE_LIBDIR=$prefix/lib
24721            fi
24722            SQLITE_BINDIR=$prefix/bin
24723         else
24724            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24725 $as_echo "no" >&6; }
24726            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24727         fi
24728      else
24729         if test -f $withval/sqlite3.h; then
24730            SQLITE_INCDIR=$withval
24731            SQLITE_LIBDIR=$withval
24732            SQLITE_BINDIR=$withval
24733         elif test -f $withval/include/sqlite3.h; then
24734            SQLITE_INCDIR=$withval/include
24735            if test -d $withval/lib64; then
24736               SQLITE_LIBDIR=$withval/lib64
24737            else
24738               SQLITE_LIBDIR=$withval/lib
24739            fi
24740            SQLITE_BINDIR=$withval/bin
24741         else
24742            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24743 $as_echo "no" >&6; }
24744            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24745         fi
24746      fi
24747      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24748      if test x$use_libtool != xno; then
24749         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24750      else
24751         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24752      fi
24753      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24754      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24755
24756
24757 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24758
24759      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24760 $as_echo "yes" >&6; }
24761
24762      if test -z "${db_backends}"; then
24763          db_backends="SQLite3"
24764      else
24765          db_backends="${db_backends} SQLite3"
24766      fi
24767      if test -z "${DB_BACKENDS}"; then
24768          DB_BACKENDS="sqlite3"
24769      else
24770          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24771      fi
24772
24773                     if test "x$support_batch_insert" = "xyes"; then
24774                   saved_LDFLAGS="${LDFLAGS}"
24775          LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24776
24777          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24778 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24779 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24780   $as_echo_n "(cached) " >&6
24781 else
24782   ac_check_lib_save_LIBS=$LIBS
24783 LIBS="-lsqlite3  $LIBS"
24784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h.  */
24786
24787 /* Override any GCC internal prototype to avoid an error.
24788    Use char because int might match the return type of a GCC
24789    builtin and then its argument prototype would still apply.  */
24790 #ifdef __cplusplus
24791 extern "C"
24792 #endif
24793 char sqlite3_threadsafe ();
24794 int
24795 main ()
24796 {
24797 return sqlite3_threadsafe ();
24798   ;
24799   return 0;
24800 }
24801 _ACEOF
24802 if ac_fn_c_try_link "$LINENO"; then :
24803   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24804 else
24805   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24806 fi
24807 rm -f core conftest.err conftest.$ac_objext \
24808     conftest$ac_exeext conftest.$ac_ext
24809 LIBS=$ac_check_lib_save_LIBS
24810 fi
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24812 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24813 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24814
24815 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24816
24817 fi
24818
24819          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24820              if test -z "${batch_insert_db_backends}"; then
24821                  batch_insert_db_backends="SQLite3"
24822              else
24823                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24824              fi
24825          fi
24826
24827                   LDFLAGS="${saved_LDFLAGS}"
24828      fi
24829   else
24830      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24831 $as_echo "no" >&6; }
24832   fi
24833
24834 else
24835
24836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24837 $as_echo "no" >&6; }
24838
24839 fi
24840
24841
24842
24843
24844
24845
24846
24847 #BA_CHECK_INGRES_DB
24848
24849 #BA_CHECK_DBI_DB
24850
24851 #BA_CHECK_DBI_DRIVER
24852
24853 if test -z "${batch_insert_db_backends}"; then
24854    batch_insert_db_backends="None"
24855 fi
24856
24857 if test "x${db_backends}" = "x" ; then
24858    echo " "
24859    echo " "
24860    echo "You have not specified either --enable-client-only or one of the"
24861    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24862    echo "This is not permitted. Please reconfigure."
24863    echo " "
24864    echo "Aborting the configuration ..."
24865    echo " "
24866    echo " "
24867    exit 1
24868 fi
24869
24870 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24871    1)
24872       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24873       if test x$use_libtool = xno; then
24874          SHARED_CATALOG_TARGETS=""
24875       else
24876          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24877       fi
24878       ;;
24879    *)
24880                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24881
24882                         if test x$use_libtool = xno; then
24883          echo " "
24884          echo " "
24885          echo "You have specified two or more of the"
24886          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24887          echo "This is not permitted when not using libtool Please reconfigure."
24888          echo " "
24889          echo "Aborting the configuration ..."
24890          echo " "
24891          echo " "
24892          exit 1
24893       fi
24894
24895       SHARED_CATALOG_TARGETS=""
24896       for db_type in ${DB_BACKENDS}
24897       do
24898          if test -z "${SHARED_CATALOG_TARGETS}"; then
24899             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24900          else
24901             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24902          fi
24903       done
24904       ;;
24905 esac
24906
24907 if test x$use_libtool = xyes; then
24908    DB_LIBS=""
24909 fi
24910
24911
24912
24913
24914
24915
24916
24917 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24918
24919
24920 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24921    if test -z "$CCOPTS"; then
24922       CCOPTS='-g -O2 -Wall'
24923    fi
24924    CFLAGS="$CCOPTS"
24925 fi
24926
24927
24928
24929 largefile_support="no"
24930
24931    # Check whether --enable-largefile was given.
24932 if test "${enable_largefile+set}" = set; then :
24933   enableval=$enable_largefile;
24934 fi
24935
24936    if test "$enable_largefile" != no; then
24937      if test -n "$ac_tool_prefix"; then
24938   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24939 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24941 $as_echo_n "checking for $ac_word... " >&6; }
24942 if ${ac_cv_prog_GETCONF+:} false; then :
24943   $as_echo_n "(cached) " >&6
24944 else
24945   if test -n "$GETCONF"; then
24946   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24947 else
24948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24949 for as_dir in $PATH
24950 do
24951   IFS=$as_save_IFS
24952   test -z "$as_dir" && as_dir=.
24953     for ac_exec_ext in '' $ac_executable_extensions; do
24954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24955     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24957     break 2
24958   fi
24959 done
24960   done
24961 IFS=$as_save_IFS
24962
24963 fi
24964 fi
24965 GETCONF=$ac_cv_prog_GETCONF
24966 if test -n "$GETCONF"; then
24967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24968 $as_echo "$GETCONF" >&6; }
24969 else
24970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24971 $as_echo "no" >&6; }
24972 fi
24973
24974
24975 fi
24976 if test -z "$ac_cv_prog_GETCONF"; then
24977   ac_ct_GETCONF=$GETCONF
24978   # Extract the first word of "getconf", so it can be a program name with args.
24979 set dummy getconf; ac_word=$2
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24981 $as_echo_n "checking for $ac_word... " >&6; }
24982 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24983   $as_echo_n "(cached) " >&6
24984 else
24985   if test -n "$ac_ct_GETCONF"; then
24986   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24987 else
24988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24989 for as_dir in $PATH
24990 do
24991   IFS=$as_save_IFS
24992   test -z "$as_dir" && as_dir=.
24993     for ac_exec_ext in '' $ac_executable_extensions; do
24994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24995     ac_cv_prog_ac_ct_GETCONF="getconf"
24996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24997     break 2
24998   fi
24999 done
25000   done
25001 IFS=$as_save_IFS
25002
25003 fi
25004 fi
25005 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
25006 if test -n "$ac_ct_GETCONF"; then
25007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
25008 $as_echo "$ac_ct_GETCONF" >&6; }
25009 else
25010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25011 $as_echo "no" >&6; }
25012 fi
25013
25014   if test "x$ac_ct_GETCONF" = x; then
25015     GETCONF=""
25016   else
25017     case $cross_compiling:$ac_tool_warned in
25018 yes:)
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25021 ac_tool_warned=yes ;;
25022 esac
25023     GETCONF=$ac_ct_GETCONF
25024   fi
25025 else
25026   GETCONF="$ac_cv_prog_GETCONF"
25027 fi
25028
25029      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
25030 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
25031 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
25032   $as_echo_n "(cached) " >&6
25033 else
25034   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
25035         ac_cv_sys_largefile_CFLAGS=no
25036         case "$host_os" in
25037            # IRIX 6.2 and later require cc -n32.
25038            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
25039              if test "$GCC" != yes; then
25040                ac_cv_sys_largefile_CFLAGS=-n32
25041              fi
25042              ac_save_CC="$CC"
25043              CC="$CC $ac_cv_sys_largefile_CFLAGS"
25044              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25045 /* end confdefs.h.  */
25046
25047 int
25048 main ()
25049 {
25050
25051   ;
25052   return 0;
25053 }
25054 _ACEOF
25055 if ac_fn_c_try_link "$LINENO"; then :
25056
25057 else
25058   ac_cv_sys_largefile_CFLAGS=no
25059 fi
25060 rm -f core conftest.err conftest.$ac_objext \
25061     conftest$ac_exeext conftest.$ac_ext
25062              CC="$ac_save_CC"
25063            esac
25064       }
25065 fi
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
25067 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
25068      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
25069 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
25070 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
25071   $as_echo_n "(cached) " >&6
25072 else
25073   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
25074         ac_cv_sys_largefile_LDFLAGS=no
25075
25076       }
25077 fi
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
25079 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
25080      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
25081 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
25082 if ${ac_cv_sys_largefile_LIBS+:} false; then :
25083   $as_echo_n "(cached) " >&6
25084 else
25085   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
25086         ac_cv_sys_largefile_LIBS=no
25087
25088       }
25089 fi
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
25091 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
25092
25093      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25094        case "$ac_flag" in
25095        no) ;;
25096        -D_FILE_OFFSET_BITS=*) ;;
25097        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
25098        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
25099        -D?* | -I?*)
25100          case "$ac_flag" in
25101    no) ;;
25102    ?*)
25103      case "$CPPFLAGS" in
25104      '') CPPFLAGS="$ac_flag" ;;
25105      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
25106      esac ;;
25107    esac ;;
25108        *)
25109          case "$ac_flag" in
25110    no) ;;
25111    ?*)
25112      case "$CFLAGS" in
25113      '') CFLAGS="$ac_flag" ;;
25114      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25115      esac ;;
25116    esac ;;
25117        esac
25118      done
25119      case "$ac_cv_sys_largefile_LDFLAGS" in
25120    no) ;;
25121    ?*)
25122      case "$LDFLAGS" in
25123      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25124      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25125      esac ;;
25126    esac
25127      case "$ac_cv_sys_largefile_LIBS" in
25128    no) ;;
25129    ?*)
25130      case "$LIBS" in
25131      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25132      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25133      esac ;;
25134    esac
25135      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25136 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25137 if ${ac_cv_sys_file_offset_bits+:} false; then :
25138   $as_echo_n "(cached) " >&6
25139 else
25140   ac_cv_sys_file_offset_bits=no
25141       ac_cv_sys_file_offset_bits=64
25142       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25143         case "$ac_flag" in
25144         -D_FILE_OFFSET_BITS)
25145           ac_cv_sys_file_offset_bits=1 ;;
25146         -D_FILE_OFFSET_BITS=*)
25147           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25148         esac
25149       done
25150
25151 fi
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25153 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25154    if test "$ac_cv_sys_file_offset_bits" != no; then
25155
25156 cat >>confdefs.h <<_ACEOF
25157 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25158 _ACEOF
25159
25160    fi
25161      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25162 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25163 if ${ac_cv_sys_largefile_source+:} false; then :
25164   $as_echo_n "(cached) " >&6
25165 else
25166   ac_cv_sys_largefile_source=no
25167       ac_cv_sys_largefile_source=1
25168       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25169         case "$ac_flag" in
25170         -D_LARGEFILE_SOURCE)
25171           ac_cv_sys_largefile_source=1 ;;
25172         -D_LARGEFILE_SOURCE=*)
25173           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25174         esac
25175       done
25176
25177 fi
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25179 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25180    if test "$ac_cv_sys_largefile_source" != no; then
25181
25182 cat >>confdefs.h <<_ACEOF
25183 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25184 _ACEOF
25185
25186    fi
25187      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25188 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25189 if ${ac_cv_sys_large_files+:} false; then :
25190   $as_echo_n "(cached) " >&6
25191 else
25192   ac_cv_sys_large_files=no
25193       ac_cv_sys_large_files=1
25194       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25195         case "$ac_flag" in
25196         -D_LARGE_FILES)
25197           ac_cv_sys_large_files=1 ;;
25198         -D_LARGE_FILES=*)
25199           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25200         esac
25201       done
25202
25203 fi
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25205 $as_echo "$ac_cv_sys_large_files" >&6; }
25206    if test "$ac_cv_sys_large_files" != no; then
25207
25208 cat >>confdefs.h <<_ACEOF
25209 #define _LARGE_FILES $ac_cv_sys_large_files
25210 _ACEOF
25211
25212    fi
25213    fi
25214
25215
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25217 $as_echo_n "checking for X... " >&6; }
25218
25219
25220 # Check whether --with-x was given.
25221 if test "${with_x+set}" = set; then :
25222   withval=$with_x;
25223 fi
25224
25225 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25226 if test "x$with_x" = xno; then
25227   # The user explicitly disabled X.
25228   have_x=disabled
25229 else
25230   case $x_includes,$x_libraries in #(
25231     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25232     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25233   $as_echo_n "(cached) " >&6
25234 else
25235   # One or both of the vars are not set, and there is no cached value.
25236 ac_x_includes=no ac_x_libraries=no
25237 rm -f -r conftest.dir
25238 if mkdir conftest.dir; then
25239   cd conftest.dir
25240   cat >Imakefile <<'_ACEOF'
25241 incroot:
25242         @echo incroot='${INCROOT}'
25243 usrlibdir:
25244         @echo usrlibdir='${USRLIBDIR}'
25245 libdir:
25246         @echo libdir='${LIBDIR}'
25247 _ACEOF
25248   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25249     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25250     for ac_var in incroot usrlibdir libdir; do
25251       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25252     done
25253     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25254     for ac_extension in a so sl dylib la dll; do
25255       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25256          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25257         ac_im_usrlibdir=$ac_im_libdir; break
25258       fi
25259     done
25260     # Screen out bogus values from the imake configuration.  They are
25261     # bogus both because they are the default anyway, and because
25262     # using them would break gcc on systems where it needs fixed includes.
25263     case $ac_im_incroot in
25264         /usr/include) ac_x_includes= ;;
25265         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25266     esac
25267     case $ac_im_usrlibdir in
25268         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25269         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25270     esac
25271   fi
25272   cd ..
25273   rm -f -r conftest.dir
25274 fi
25275
25276 # Standard set of common directories for X headers.
25277 # Check X11 before X11Rn because it is often a symlink to the current release.
25278 ac_x_header_dirs='
25279 /usr/X11/include
25280 /usr/X11R7/include
25281 /usr/X11R6/include
25282 /usr/X11R5/include
25283 /usr/X11R4/include
25284
25285 /usr/include/X11
25286 /usr/include/X11R7
25287 /usr/include/X11R6
25288 /usr/include/X11R5
25289 /usr/include/X11R4
25290
25291 /usr/local/X11/include
25292 /usr/local/X11R7/include
25293 /usr/local/X11R6/include
25294 /usr/local/X11R5/include
25295 /usr/local/X11R4/include
25296
25297 /usr/local/include/X11
25298 /usr/local/include/X11R7
25299 /usr/local/include/X11R6
25300 /usr/local/include/X11R5
25301 /usr/local/include/X11R4
25302
25303 /usr/X386/include
25304 /usr/x386/include
25305 /usr/XFree86/include/X11
25306
25307 /usr/include
25308 /usr/local/include
25309 /usr/unsupported/include
25310 /usr/athena/include
25311 /usr/local/x11r5/include
25312 /usr/lpp/Xamples/include
25313
25314 /usr/openwin/include
25315 /usr/openwin/share/include'
25316
25317 if test "$ac_x_includes" = no; then
25318   # Guess where to find include files, by looking for Xlib.h.
25319   # First, try using that file with no special directory specified.
25320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25321 /* end confdefs.h.  */
25322 #include <X11/Xlib.h>
25323 _ACEOF
25324 if ac_fn_c_try_cpp "$LINENO"; then :
25325   # We can compile using X headers with no special include directory.
25326 ac_x_includes=
25327 else
25328   for ac_dir in $ac_x_header_dirs; do
25329   if test -r "$ac_dir/X11/Xlib.h"; then
25330     ac_x_includes=$ac_dir
25331     break
25332   fi
25333 done
25334 fi
25335 rm -f conftest.err conftest.i conftest.$ac_ext
25336 fi # $ac_x_includes = no
25337
25338 if test "$ac_x_libraries" = no; then
25339   # Check for the libraries.
25340   # See if we find them without any special options.
25341   # Don't add to $LIBS permanently.
25342   ac_save_LIBS=$LIBS
25343   LIBS="-lX11 $LIBS"
25344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345 /* end confdefs.h.  */
25346 #include <X11/Xlib.h>
25347 int
25348 main ()
25349 {
25350 XrmInitialize ()
25351   ;
25352   return 0;
25353 }
25354 _ACEOF
25355 if ac_fn_c_try_link "$LINENO"; then :
25356   LIBS=$ac_save_LIBS
25357 # We can link X programs with no special library path.
25358 ac_x_libraries=
25359 else
25360   LIBS=$ac_save_LIBS
25361 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25362 do
25363   # Don't even attempt the hair of trying to link an X program!
25364   for ac_extension in a so sl dylib la dll; do
25365     if test -r "$ac_dir/libX11.$ac_extension"; then
25366       ac_x_libraries=$ac_dir
25367       break 2
25368     fi
25369   done
25370 done
25371 fi
25372 rm -f core conftest.err conftest.$ac_objext \
25373     conftest$ac_exeext conftest.$ac_ext
25374 fi # $ac_x_libraries = no
25375
25376 case $ac_x_includes,$ac_x_libraries in #(
25377   no,* | *,no | *\'*)
25378     # Didn't find X, or a directory has "'" in its name.
25379     ac_cv_have_x="have_x=no";; #(
25380   *)
25381     # Record where we found X for the cache.
25382     ac_cv_have_x="have_x=yes\
25383         ac_x_includes='$ac_x_includes'\
25384         ac_x_libraries='$ac_x_libraries'"
25385 esac
25386 fi
25387 ;; #(
25388     *) have_x=yes;;
25389   esac
25390   eval "$ac_cv_have_x"
25391 fi # $with_x != no
25392
25393 if test "$have_x" != yes; then
25394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25395 $as_echo "$have_x" >&6; }
25396   no_x=yes
25397 else
25398   # If each of the values was on the command line, it overrides each guess.
25399   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25400   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25401   # Update the cache value to reflect the command line values.
25402   ac_cv_have_x="have_x=yes\
25403         ac_x_includes='$x_includes'\
25404         ac_x_libraries='$x_libraries'"
25405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25406 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25407 fi
25408
25409 if test "$no_x" = yes; then
25410   # Not all programs may use this symbol, but it does not hurt to define it.
25411
25412 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25413
25414   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25415 else
25416   if test -n "$x_includes"; then
25417     X_CFLAGS="$X_CFLAGS -I$x_includes"
25418   fi
25419
25420   # It would also be nice to do this for all -L options, not just this one.
25421   if test -n "$x_libraries"; then
25422     X_LIBS="$X_LIBS -L$x_libraries"
25423     # For Solaris; some versions of Sun CC require a space after -R and
25424     # others require no space.  Words are not sufficient . . . .
25425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25426 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25427     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25428     ac_xsave_c_werror_flag=$ac_c_werror_flag
25429     ac_c_werror_flag=yes
25430     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25431 /* end confdefs.h.  */
25432
25433 int
25434 main ()
25435 {
25436
25437   ;
25438   return 0;
25439 }
25440 _ACEOF
25441 if ac_fn_c_try_link "$LINENO"; then :
25442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25443 $as_echo "no" >&6; }
25444        X_LIBS="$X_LIBS -R$x_libraries"
25445 else
25446   LIBS="$ac_xsave_LIBS -R $x_libraries"
25447        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25448 /* end confdefs.h.  */
25449
25450 int
25451 main ()
25452 {
25453
25454   ;
25455   return 0;
25456 }
25457 _ACEOF
25458 if ac_fn_c_try_link "$LINENO"; then :
25459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25460 $as_echo "yes" >&6; }
25461           X_LIBS="$X_LIBS -R $x_libraries"
25462 else
25463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25464 $as_echo "neither works" >&6; }
25465 fi
25466 rm -f core conftest.err conftest.$ac_objext \
25467     conftest$ac_exeext conftest.$ac_ext
25468 fi
25469 rm -f core conftest.err conftest.$ac_objext \
25470     conftest$ac_exeext conftest.$ac_ext
25471     ac_c_werror_flag=$ac_xsave_c_werror_flag
25472     LIBS=$ac_xsave_LIBS
25473   fi
25474
25475   # Check for system-dependent libraries X programs must link with.
25476   # Do this before checking for the system-independent R6 libraries
25477   # (-lICE), since we may need -lsocket or whatever for X linking.
25478
25479   if test "$ISC" = yes; then
25480     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25481   else
25482     # Martyn Johnson says this is needed for Ultrix, if the X
25483     # libraries were built with DECnet support.  And Karl Berry says
25484     # the Alpha needs dnet_stub (dnet does not exist).
25485     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25487 /* end confdefs.h.  */
25488
25489 /* Override any GCC internal prototype to avoid an error.
25490    Use char because int might match the return type of a GCC
25491    builtin and then its argument prototype would still apply.  */
25492 #ifdef __cplusplus
25493 extern "C"
25494 #endif
25495 char XOpenDisplay ();
25496 int
25497 main ()
25498 {
25499 return XOpenDisplay ();
25500   ;
25501   return 0;
25502 }
25503 _ACEOF
25504 if ac_fn_c_try_link "$LINENO"; then :
25505
25506 else
25507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25508 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25509 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25510   $as_echo_n "(cached) " >&6
25511 else
25512   ac_check_lib_save_LIBS=$LIBS
25513 LIBS="-ldnet  $LIBS"
25514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25515 /* end confdefs.h.  */
25516
25517 /* Override any GCC internal prototype to avoid an error.
25518    Use char because int might match the return type of a GCC
25519    builtin and then its argument prototype would still apply.  */
25520 #ifdef __cplusplus
25521 extern "C"
25522 #endif
25523 char dnet_ntoa ();
25524 int
25525 main ()
25526 {
25527 return dnet_ntoa ();
25528   ;
25529   return 0;
25530 }
25531 _ACEOF
25532 if ac_fn_c_try_link "$LINENO"; then :
25533   ac_cv_lib_dnet_dnet_ntoa=yes
25534 else
25535   ac_cv_lib_dnet_dnet_ntoa=no
25536 fi
25537 rm -f core conftest.err conftest.$ac_objext \
25538     conftest$ac_exeext conftest.$ac_ext
25539 LIBS=$ac_check_lib_save_LIBS
25540 fi
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25542 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25543 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25544   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25545 fi
25546
25547     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25548       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25549 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25550 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25551   $as_echo_n "(cached) " >&6
25552 else
25553   ac_check_lib_save_LIBS=$LIBS
25554 LIBS="-ldnet_stub  $LIBS"
25555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25556 /* end confdefs.h.  */
25557
25558 /* Override any GCC internal prototype to avoid an error.
25559    Use char because int might match the return type of a GCC
25560    builtin and then its argument prototype would still apply.  */
25561 #ifdef __cplusplus
25562 extern "C"
25563 #endif
25564 char dnet_ntoa ();
25565 int
25566 main ()
25567 {
25568 return dnet_ntoa ();
25569   ;
25570   return 0;
25571 }
25572 _ACEOF
25573 if ac_fn_c_try_link "$LINENO"; then :
25574   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25575 else
25576   ac_cv_lib_dnet_stub_dnet_ntoa=no
25577 fi
25578 rm -f core conftest.err conftest.$ac_objext \
25579     conftest$ac_exeext conftest.$ac_ext
25580 LIBS=$ac_check_lib_save_LIBS
25581 fi
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25583 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25584 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25585   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25586 fi
25587
25588     fi
25589 fi
25590 rm -f core conftest.err conftest.$ac_objext \
25591     conftest$ac_exeext conftest.$ac_ext
25592     LIBS="$ac_xsave_LIBS"
25593
25594     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25595     # to get the SysV transport functions.
25596     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25597     # needs -lnsl.
25598     # The nsl library prevents programs from opening the X display
25599     # on Irix 5.2, according to T.E. Dickey.
25600     # The functions gethostbyname, getservbyname, and inet_addr are
25601     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25602     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25603 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25604
25605 fi
25606
25607     if test $ac_cv_func_gethostbyname = no; then
25608       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25609 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25610 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25611   $as_echo_n "(cached) " >&6
25612 else
25613   ac_check_lib_save_LIBS=$LIBS
25614 LIBS="-lnsl  $LIBS"
25615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25616 /* end confdefs.h.  */
25617
25618 /* Override any GCC internal prototype to avoid an error.
25619    Use char because int might match the return type of a GCC
25620    builtin and then its argument prototype would still apply.  */
25621 #ifdef __cplusplus
25622 extern "C"
25623 #endif
25624 char gethostbyname ();
25625 int
25626 main ()
25627 {
25628 return gethostbyname ();
25629   ;
25630   return 0;
25631 }
25632 _ACEOF
25633 if ac_fn_c_try_link "$LINENO"; then :
25634   ac_cv_lib_nsl_gethostbyname=yes
25635 else
25636   ac_cv_lib_nsl_gethostbyname=no
25637 fi
25638 rm -f core conftest.err conftest.$ac_objext \
25639     conftest$ac_exeext conftest.$ac_ext
25640 LIBS=$ac_check_lib_save_LIBS
25641 fi
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25643 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25644 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25645   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25646 fi
25647
25648       if test $ac_cv_lib_nsl_gethostbyname = no; then
25649         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25650 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25651 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25652   $as_echo_n "(cached) " >&6
25653 else
25654   ac_check_lib_save_LIBS=$LIBS
25655 LIBS="-lbsd  $LIBS"
25656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25657 /* end confdefs.h.  */
25658
25659 /* Override any GCC internal prototype to avoid an error.
25660    Use char because int might match the return type of a GCC
25661    builtin and then its argument prototype would still apply.  */
25662 #ifdef __cplusplus
25663 extern "C"
25664 #endif
25665 char gethostbyname ();
25666 int
25667 main ()
25668 {
25669 return gethostbyname ();
25670   ;
25671   return 0;
25672 }
25673 _ACEOF
25674 if ac_fn_c_try_link "$LINENO"; then :
25675   ac_cv_lib_bsd_gethostbyname=yes
25676 else
25677   ac_cv_lib_bsd_gethostbyname=no
25678 fi
25679 rm -f core conftest.err conftest.$ac_objext \
25680     conftest$ac_exeext conftest.$ac_ext
25681 LIBS=$ac_check_lib_save_LIBS
25682 fi
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25684 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25685 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25686   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25687 fi
25688
25689       fi
25690     fi
25691
25692     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25693     # socket/setsockopt and other routines are undefined under SCO ODT
25694     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25695     # on later versions), says Simon Leinen: it contains gethostby*
25696     # variants that don't use the name server (or something).  -lsocket
25697     # must be given before -lnsl if both are needed.  We assume that
25698     # if connect needs -lnsl, so does gethostbyname.
25699     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25700 if test "x$ac_cv_func_connect" = xyes; then :
25701
25702 fi
25703
25704     if test $ac_cv_func_connect = no; then
25705       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25706 $as_echo_n "checking for connect in -lsocket... " >&6; }
25707 if ${ac_cv_lib_socket_connect+:} false; then :
25708   $as_echo_n "(cached) " >&6
25709 else
25710   ac_check_lib_save_LIBS=$LIBS
25711 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25713 /* end confdefs.h.  */
25714
25715 /* Override any GCC internal prototype to avoid an error.
25716    Use char because int might match the return type of a GCC
25717    builtin and then its argument prototype would still apply.  */
25718 #ifdef __cplusplus
25719 extern "C"
25720 #endif
25721 char connect ();
25722 int
25723 main ()
25724 {
25725 return connect ();
25726   ;
25727   return 0;
25728 }
25729 _ACEOF
25730 if ac_fn_c_try_link "$LINENO"; then :
25731   ac_cv_lib_socket_connect=yes
25732 else
25733   ac_cv_lib_socket_connect=no
25734 fi
25735 rm -f core conftest.err conftest.$ac_objext \
25736     conftest$ac_exeext conftest.$ac_ext
25737 LIBS=$ac_check_lib_save_LIBS
25738 fi
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25740 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25741 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25742   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25743 fi
25744
25745     fi
25746
25747     # Guillermo Gomez says -lposix is necessary on A/UX.
25748     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25749 if test "x$ac_cv_func_remove" = xyes; then :
25750
25751 fi
25752
25753     if test $ac_cv_func_remove = no; then
25754       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25755 $as_echo_n "checking for remove in -lposix... " >&6; }
25756 if ${ac_cv_lib_posix_remove+:} false; then :
25757   $as_echo_n "(cached) " >&6
25758 else
25759   ac_check_lib_save_LIBS=$LIBS
25760 LIBS="-lposix  $LIBS"
25761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762 /* end confdefs.h.  */
25763
25764 /* Override any GCC internal prototype to avoid an error.
25765    Use char because int might match the return type of a GCC
25766    builtin and then its argument prototype would still apply.  */
25767 #ifdef __cplusplus
25768 extern "C"
25769 #endif
25770 char remove ();
25771 int
25772 main ()
25773 {
25774 return remove ();
25775   ;
25776   return 0;
25777 }
25778 _ACEOF
25779 if ac_fn_c_try_link "$LINENO"; then :
25780   ac_cv_lib_posix_remove=yes
25781 else
25782   ac_cv_lib_posix_remove=no
25783 fi
25784 rm -f core conftest.err conftest.$ac_objext \
25785     conftest$ac_exeext conftest.$ac_ext
25786 LIBS=$ac_check_lib_save_LIBS
25787 fi
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25789 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25790 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25791   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25792 fi
25793
25794     fi
25795
25796     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25797     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25798 if test "x$ac_cv_func_shmat" = xyes; then :
25799
25800 fi
25801
25802     if test $ac_cv_func_shmat = no; then
25803       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25804 $as_echo_n "checking for shmat in -lipc... " >&6; }
25805 if ${ac_cv_lib_ipc_shmat+:} false; then :
25806   $as_echo_n "(cached) " >&6
25807 else
25808   ac_check_lib_save_LIBS=$LIBS
25809 LIBS="-lipc  $LIBS"
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h.  */
25812
25813 /* Override any GCC internal prototype to avoid an error.
25814    Use char because int might match the return type of a GCC
25815    builtin and then its argument prototype would still apply.  */
25816 #ifdef __cplusplus
25817 extern "C"
25818 #endif
25819 char shmat ();
25820 int
25821 main ()
25822 {
25823 return shmat ();
25824   ;
25825   return 0;
25826 }
25827 _ACEOF
25828 if ac_fn_c_try_link "$LINENO"; then :
25829   ac_cv_lib_ipc_shmat=yes
25830 else
25831   ac_cv_lib_ipc_shmat=no
25832 fi
25833 rm -f core conftest.err conftest.$ac_objext \
25834     conftest$ac_exeext conftest.$ac_ext
25835 LIBS=$ac_check_lib_save_LIBS
25836 fi
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25838 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25839 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25840   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25841 fi
25842
25843     fi
25844   fi
25845
25846   # Check for libraries that X11R6 Xt/Xaw programs need.
25847   ac_save_LDFLAGS=$LDFLAGS
25848   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25849   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25850   # check for ICE first), but we must link in the order -lSM -lICE or
25851   # we get undefined symbols.  So assume we have SM if we have ICE.
25852   # These have to be linked with before -lX11, unlike the other
25853   # libraries we check for below, so use a different variable.
25854   # John Interrante, Karl Berry
25855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25856 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25857 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25858   $as_echo_n "(cached) " >&6
25859 else
25860   ac_check_lib_save_LIBS=$LIBS
25861 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h.  */
25864
25865 /* Override any GCC internal prototype to avoid an error.
25866    Use char because int might match the return type of a GCC
25867    builtin and then its argument prototype would still apply.  */
25868 #ifdef __cplusplus
25869 extern "C"
25870 #endif
25871 char IceConnectionNumber ();
25872 int
25873 main ()
25874 {
25875 return IceConnectionNumber ();
25876   ;
25877   return 0;
25878 }
25879 _ACEOF
25880 if ac_fn_c_try_link "$LINENO"; then :
25881   ac_cv_lib_ICE_IceConnectionNumber=yes
25882 else
25883   ac_cv_lib_ICE_IceConnectionNumber=no
25884 fi
25885 rm -f core conftest.err conftest.$ac_objext \
25886     conftest$ac_exeext conftest.$ac_ext
25887 LIBS=$ac_check_lib_save_LIBS
25888 fi
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25890 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25891 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25892   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25893 fi
25894
25895   LDFLAGS=$ac_save_LDFLAGS
25896
25897 fi
25898
25899
25900 for ac_header in \
25901    assert.h \
25902    fcntl.h \
25903    grp.h \
25904    pwd.h \
25905    libc.h \
25906    limits.h \
25907    stdarg.h \
25908    stdlib.h \
25909    stdint.h \
25910    inttypes.h \
25911    string.h \
25912    strings.h \
25913    termios.h \
25914    termcap.h \
25915    term.h \
25916    unistd.h \
25917    sys/bitypes.h \
25918    sys/byteorder.h \
25919    sys/ioctl.h \
25920    sys/select.h \
25921    sys/socket.h \
25922    sys/sockio.h \
25923    sys/stat.h \
25924    sys/time.h \
25925    sys/types.h \
25926    arpa/nameser.h \
25927    mtio.h \
25928    sys/mtio.h \
25929    sys/tape.h \
25930    regex.h \
25931
25932 do :
25933   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25934 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25935 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25936   cat >>confdefs.h <<_ACEOF
25937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25938 _ACEOF
25939
25940 fi
25941
25942 done
25943
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25945 $as_echo_n "checking for ANSI C header files... " >&6; }
25946 if ${ac_cv_header_stdc+:} false; then :
25947   $as_echo_n "(cached) " >&6
25948 else
25949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25950 /* end confdefs.h.  */
25951 #include <stdlib.h>
25952 #include <stdarg.h>
25953 #include <string.h>
25954 #include <float.h>
25955
25956 int
25957 main ()
25958 {
25959
25960   ;
25961   return 0;
25962 }
25963 _ACEOF
25964 if ac_fn_c_try_compile "$LINENO"; then :
25965   ac_cv_header_stdc=yes
25966 else
25967   ac_cv_header_stdc=no
25968 fi
25969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25970
25971 if test $ac_cv_header_stdc = yes; then
25972   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25974 /* end confdefs.h.  */
25975 #include <string.h>
25976
25977 _ACEOF
25978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25979   $EGREP "memchr" >/dev/null 2>&1; then :
25980
25981 else
25982   ac_cv_header_stdc=no
25983 fi
25984 rm -f conftest*
25985
25986 fi
25987
25988 if test $ac_cv_header_stdc = yes; then
25989   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h.  */
25992 #include <stdlib.h>
25993
25994 _ACEOF
25995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25996   $EGREP "free" >/dev/null 2>&1; then :
25997
25998 else
25999   ac_cv_header_stdc=no
26000 fi
26001 rm -f conftest*
26002
26003 fi
26004
26005 if test $ac_cv_header_stdc = yes; then
26006   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26007   if test "$cross_compiling" = yes; then :
26008   :
26009 else
26010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26011 /* end confdefs.h.  */
26012 #include <ctype.h>
26013 #include <stdlib.h>
26014 #if ((' ' & 0x0FF) == 0x020)
26015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26017 #else
26018 # define ISLOWER(c) \
26019                    (('a' <= (c) && (c) <= 'i') \
26020                      || ('j' <= (c) && (c) <= 'r') \
26021                      || ('s' <= (c) && (c) <= 'z'))
26022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26023 #endif
26024
26025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26026 int
26027 main ()
26028 {
26029   int i;
26030   for (i = 0; i < 256; i++)
26031     if (XOR (islower (i), ISLOWER (i))
26032         || toupper (i) != TOUPPER (i))
26033       return 2;
26034   return 0;
26035 }
26036 _ACEOF
26037 if ac_fn_c_try_run "$LINENO"; then :
26038
26039 else
26040   ac_cv_header_stdc=no
26041 fi
26042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26043   conftest.$ac_objext conftest.beam conftest.$ac_ext
26044 fi
26045
26046 fi
26047 fi
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
26049 $as_echo "$ac_cv_header_stdc" >&6; }
26050 if test $ac_cv_header_stdc = yes; then
26051
26052 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
26053
26054 fi
26055
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
26057 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
26058 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
26059   $as_echo_n "(cached) " >&6
26060 else
26061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26062 /* end confdefs.h.  */
26063 #include <sys/types.h>
26064 int
26065 main ()
26066 {
26067 return makedev(0, 0);
26068   ;
26069   return 0;
26070 }
26071 _ACEOF
26072 if ac_fn_c_try_link "$LINENO"; then :
26073   ac_cv_header_sys_types_h_makedev=yes
26074 else
26075   ac_cv_header_sys_types_h_makedev=no
26076 fi
26077 rm -f core conftest.err conftest.$ac_objext \
26078     conftest$ac_exeext conftest.$ac_ext
26079
26080 fi
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
26082 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
26083
26084 if test $ac_cv_header_sys_types_h_makedev = no; then
26085 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
26086 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
26087
26088 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
26089
26090 fi
26091
26092
26093
26094   if test $ac_cv_header_sys_mkdev_h = no; then
26095     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
26096 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
26097
26098 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
26099
26100 fi
26101
26102
26103   fi
26104 fi
26105
26106 ac_header_dirent=no
26107 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26108   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
26110 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26111 if eval \${$as_ac_Header+:} false; then :
26112   $as_echo_n "(cached) " >&6
26113 else
26114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26115 /* end confdefs.h.  */
26116 #include <sys/types.h>
26117 #include <$ac_hdr>
26118
26119 int
26120 main ()
26121 {
26122 if ((DIR *) 0)
26123 return 0;
26124   ;
26125   return 0;
26126 }
26127 _ACEOF
26128 if ac_fn_c_try_compile "$LINENO"; then :
26129   eval "$as_ac_Header=yes"
26130 else
26131   eval "$as_ac_Header=no"
26132 fi
26133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26134 fi
26135 eval ac_res=\$$as_ac_Header
26136                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26137 $as_echo "$ac_res" >&6; }
26138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26139   cat >>confdefs.h <<_ACEOF
26140 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26141 _ACEOF
26142
26143 ac_header_dirent=$ac_hdr; break
26144 fi
26145
26146 done
26147 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26148 if test $ac_header_dirent = dirent.h; then
26149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26150 $as_echo_n "checking for library containing opendir... " >&6; }
26151 if ${ac_cv_search_opendir+:} false; then :
26152   $as_echo_n "(cached) " >&6
26153 else
26154   ac_func_search_save_LIBS=$LIBS
26155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26156 /* end confdefs.h.  */
26157
26158 /* Override any GCC internal prototype to avoid an error.
26159    Use char because int might match the return type of a GCC
26160    builtin and then its argument prototype would still apply.  */
26161 #ifdef __cplusplus
26162 extern "C"
26163 #endif
26164 char opendir ();
26165 int
26166 main ()
26167 {
26168 return opendir ();
26169   ;
26170   return 0;
26171 }
26172 _ACEOF
26173 for ac_lib in '' dir; do
26174   if test -z "$ac_lib"; then
26175     ac_res="none required"
26176   else
26177     ac_res=-l$ac_lib
26178     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26179   fi
26180   if ac_fn_c_try_link "$LINENO"; then :
26181   ac_cv_search_opendir=$ac_res
26182 fi
26183 rm -f core conftest.err conftest.$ac_objext \
26184     conftest$ac_exeext
26185   if ${ac_cv_search_opendir+:} false; then :
26186   break
26187 fi
26188 done
26189 if ${ac_cv_search_opendir+:} false; then :
26190
26191 else
26192   ac_cv_search_opendir=no
26193 fi
26194 rm conftest.$ac_ext
26195 LIBS=$ac_func_search_save_LIBS
26196 fi
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26198 $as_echo "$ac_cv_search_opendir" >&6; }
26199 ac_res=$ac_cv_search_opendir
26200 if test "$ac_res" != no; then :
26201   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26202
26203 fi
26204
26205 else
26206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26207 $as_echo_n "checking for library containing opendir... " >&6; }
26208 if ${ac_cv_search_opendir+:} false; then :
26209   $as_echo_n "(cached) " >&6
26210 else
26211   ac_func_search_save_LIBS=$LIBS
26212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26213 /* end confdefs.h.  */
26214
26215 /* Override any GCC internal prototype to avoid an error.
26216    Use char because int might match the return type of a GCC
26217    builtin and then its argument prototype would still apply.  */
26218 #ifdef __cplusplus
26219 extern "C"
26220 #endif
26221 char opendir ();
26222 int
26223 main ()
26224 {
26225 return opendir ();
26226   ;
26227   return 0;
26228 }
26229 _ACEOF
26230 for ac_lib in '' x; do
26231   if test -z "$ac_lib"; then
26232     ac_res="none required"
26233   else
26234     ac_res=-l$ac_lib
26235     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26236   fi
26237   if ac_fn_c_try_link "$LINENO"; then :
26238   ac_cv_search_opendir=$ac_res
26239 fi
26240 rm -f core conftest.err conftest.$ac_objext \
26241     conftest$ac_exeext
26242   if ${ac_cv_search_opendir+:} false; then :
26243   break
26244 fi
26245 done
26246 if ${ac_cv_search_opendir+:} false; then :
26247
26248 else
26249   ac_cv_search_opendir=no
26250 fi
26251 rm conftest.$ac_ext
26252 LIBS=$ac_func_search_save_LIBS
26253 fi
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26255 $as_echo "$ac_cv_search_opendir" >&6; }
26256 ac_res=$ac_cv_search_opendir
26257 if test "$ac_res" != no; then :
26258   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26259
26260 fi
26261
26262 fi
26263
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26265 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26266 if ${ac_cv_header_stat_broken+:} false; then :
26267   $as_echo_n "(cached) " >&6
26268 else
26269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26270 /* end confdefs.h.  */
26271 #include <sys/types.h>
26272 #include <sys/stat.h>
26273
26274 #if defined S_ISBLK && defined S_IFDIR
26275 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26276 #endif
26277
26278 #if defined S_ISBLK && defined S_IFCHR
26279 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26280 #endif
26281
26282 #if defined S_ISLNK && defined S_IFREG
26283 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26284 #endif
26285
26286 #if defined S_ISSOCK && defined S_IFREG
26287 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26288 #endif
26289
26290 _ACEOF
26291 if ac_fn_c_try_compile "$LINENO"; then :
26292   ac_cv_header_stat_broken=no
26293 else
26294   ac_cv_header_stat_broken=yes
26295 fi
26296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26297 fi
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26299 $as_echo "$ac_cv_header_stat_broken" >&6; }
26300 if test $ac_cv_header_stat_broken = yes; then
26301
26302 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26303
26304 fi
26305
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26307 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26308 if ${ac_cv_header_sys_wait_h+:} false; then :
26309   $as_echo_n "(cached) " >&6
26310 else
26311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312 /* end confdefs.h.  */
26313 #include <sys/types.h>
26314 #include <sys/wait.h>
26315 #ifndef WEXITSTATUS
26316 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26317 #endif
26318 #ifndef WIFEXITED
26319 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26320 #endif
26321
26322 int
26323 main ()
26324 {
26325   int s;
26326   wait (&s);
26327   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26328   ;
26329   return 0;
26330 }
26331 _ACEOF
26332 if ac_fn_c_try_compile "$LINENO"; then :
26333   ac_cv_header_sys_wait_h=yes
26334 else
26335   ac_cv_header_sys_wait_h=no
26336 fi
26337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26338 fi
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26340 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26341 if test $ac_cv_header_sys_wait_h = yes; then
26342
26343 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26344
26345 fi
26346
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26348 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26349 if ${ac_cv_header_time+:} false; then :
26350   $as_echo_n "(cached) " >&6
26351 else
26352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26353 /* end confdefs.h.  */
26354 #include <sys/types.h>
26355 #include <sys/time.h>
26356 #include <time.h>
26357
26358 int
26359 main ()
26360 {
26361 if ((struct tm *) 0)
26362 return 0;
26363   ;
26364   return 0;
26365 }
26366 _ACEOF
26367 if ac_fn_c_try_compile "$LINENO"; then :
26368   ac_cv_header_time=yes
26369 else
26370   ac_cv_header_time=no
26371 fi
26372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26373 fi
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26375 $as_echo "$ac_cv_header_time" >&6; }
26376 if test $ac_cv_header_time = yes; then
26377
26378 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26379
26380 fi
26381
26382 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26383 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26384
26385 cat >>confdefs.h <<_ACEOF
26386 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26387 _ACEOF
26388
26389
26390 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26391
26392 fi
26393
26394
26395 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26396 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26397
26398 cat >>confdefs.h <<_ACEOF
26399 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26400 _ACEOF
26401
26402
26403 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26404
26405 else
26406   case " $LIBOBJS " in
26407   *" fileblocks.$ac_objext "* ) ;;
26408   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26409  ;;
26410 esac
26411
26412 fi
26413
26414
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26416 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26417 if ${ac_cv_struct_tm+:} false; then :
26418   $as_echo_n "(cached) " >&6
26419 else
26420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26421 /* end confdefs.h.  */
26422 #include <sys/types.h>
26423 #include <time.h>
26424
26425 int
26426 main ()
26427 {
26428 struct tm tm;
26429                                      int *p = &tm.tm_sec;
26430                                      return !p;
26431   ;
26432   return 0;
26433 }
26434 _ACEOF
26435 if ac_fn_c_try_compile "$LINENO"; then :
26436   ac_cv_struct_tm=time.h
26437 else
26438   ac_cv_struct_tm=sys/time.h
26439 fi
26440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26441 fi
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26443 $as_echo "$ac_cv_struct_tm" >&6; }
26444 if test $ac_cv_struct_tm = sys/time.h; then
26445
26446 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26447
26448 fi
26449
26450 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26451 #include <$ac_cv_struct_tm>
26452
26453 "
26454 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26455
26456 cat >>confdefs.h <<_ACEOF
26457 #define HAVE_STRUCT_TM_TM_ZONE 1
26458 _ACEOF
26459
26460
26461 fi
26462
26463 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26464
26465 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26466
26467 else
26468   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26469 "
26470 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26471   ac_have_decl=1
26472 else
26473   ac_have_decl=0
26474 fi
26475
26476 cat >>confdefs.h <<_ACEOF
26477 #define HAVE_DECL_TZNAME $ac_have_decl
26478 _ACEOF
26479
26480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26481 $as_echo_n "checking for tzname... " >&6; }
26482 if ${ac_cv_var_tzname+:} false; then :
26483   $as_echo_n "(cached) " >&6
26484 else
26485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26486 /* end confdefs.h.  */
26487 #include <time.h>
26488 #if !HAVE_DECL_TZNAME
26489 extern char *tzname[];
26490 #endif
26491
26492 int
26493 main ()
26494 {
26495 return tzname[0][0];
26496   ;
26497   return 0;
26498 }
26499 _ACEOF
26500 if ac_fn_c_try_link "$LINENO"; then :
26501   ac_cv_var_tzname=yes
26502 else
26503   ac_cv_var_tzname=no
26504 fi
26505 rm -f core conftest.err conftest.$ac_objext \
26506     conftest$ac_exeext conftest.$ac_ext
26507 fi
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26509 $as_echo "$ac_cv_var_tzname" >&6; }
26510   if test $ac_cv_var_tzname = yes; then
26511
26512 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26513
26514   fi
26515 fi
26516
26517
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26519 $as_echo_n "checking for utime.h... " >&6; }
26520 if ${ba_cv_header_utime_h+:} false; then :
26521   $as_echo_n "(cached) " >&6
26522 else
26523
26524        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26525 /* end confdefs.h.  */
26526
26527               #include <sys/types.h>
26528               #include <utime.h>
26529
26530 int
26531 main ()
26532 {
26533
26534               struct utimbuf foo
26535
26536   ;
26537   return 0;
26538 }
26539 _ACEOF
26540 if ac_fn_c_try_compile "$LINENO"; then :
26541
26542               ba_cv_header_utime_h=yes
26543
26544 else
26545
26546               ba_cv_header_utime_h=no
26547
26548
26549 fi
26550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26551
26552
26553 fi
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26555 $as_echo "$ba_cv_header_utime_h" >&6; }
26556 test $ba_cv_header_utime_h = yes &&
26557 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26558
26559
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26561 $as_echo_n "checking for socklen_t... " >&6; }
26562 if ${ba_cv_header_socklen_t+:} false; then :
26563   $as_echo_n "(cached) " >&6
26564 else
26565
26566        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26567 /* end confdefs.h.  */
26568
26569               #include <sys/types.h>
26570               #include <sys/socket.h>
26571
26572 int
26573 main ()
26574 {
26575
26576               socklen_t x
26577
26578   ;
26579   return 0;
26580 }
26581 _ACEOF
26582 if ac_fn_c_try_compile "$LINENO"; then :
26583
26584              ba_cv_header_socklen_t=yes
26585
26586 else
26587
26588              ba_cv_header_socklen_t=no
26589
26590
26591 fi
26592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26593
26594
26595 fi
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26597 $as_echo "$ba_cv_header_socklen_t" >&6; }
26598 test $ba_cv_header_socklen_t = yes &&
26599 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26600
26601
26602 ac_ext=cpp
26603 ac_cpp='$CXXCPP $CPPFLAGS'
26604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26607
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26609 $as_echo_n "checking for ioctl_req_t... " >&6; }
26610 if ${ba_cv_header_ioctl_req_t+:} false; then :
26611   $as_echo_n "(cached) " >&6
26612 else
26613
26614        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26615 /* end confdefs.h.  */
26616
26617               #include <unistd.h>
26618               #include <sys/types.h>
26619               #include <sys/ioctl.h>
26620
26621 int
26622 main ()
26623 {
26624
26625               int (*d_ioctl)(int fd, unsigned long int request, ...);
26626               d_ioctl = ::ioctl;
26627
26628   ;
26629   return 0;
26630 }
26631 _ACEOF
26632 if ac_fn_cxx_try_compile "$LINENO"; then :
26633
26634              ba_cv_header_ioctl_req_t=yes
26635
26636 else
26637
26638              ba_cv_header_ioctl_req_t=no
26639
26640
26641 fi
26642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26643
26644
26645 fi
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26647 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26648 test $ba_cv_header_ioctl_req_t = yes &&
26649 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26650
26651
26652 ac_ext=c
26653 ac_cpp='$CPP $CPPFLAGS'
26654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26657
26658
26659 ac_ext=cpp
26660 ac_cpp='$CXXCPP $CPPFLAGS'
26661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26664
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26666 $as_echo_n "checking for typeof... " >&6; }
26667 if ${ba_cv_have_typeof+:} false; then :
26668   $as_echo_n "(cached) " >&6
26669 else
26670
26671        if test "$cross_compiling" = yes; then :
26672
26673               ba_cv_have_typeof=no
26674
26675
26676 else
26677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26678 /* end confdefs.h.  */
26679
26680               main(){char *a = 0; a = (typeof a)a;}
26681
26682 _ACEOF
26683 if ac_fn_cxx_try_run "$LINENO"; then :
26684
26685               ba_cv_have_typeof=yes
26686
26687 else
26688
26689               ba_cv_have_typeof=no
26690
26691 fi
26692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26693   conftest.$ac_objext conftest.beam conftest.$ac_ext
26694 fi
26695
26696
26697
26698 fi
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26700 $as_echo "$ba_cv_have_typeof" >&6; }
26701 test $ba_cv_have_typeof = yes &&
26702 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26703
26704 ac_ext=c
26705 ac_cpp='$CPP $CPPFLAGS'
26706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26709
26710
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26712 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26713 if ${ac_cv_c_const+:} false; then :
26714   $as_echo_n "(cached) " >&6
26715 else
26716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26717 /* end confdefs.h.  */
26718
26719 int
26720 main ()
26721 {
26722 /* FIXME: Include the comments suggested by Paul. */
26723 #ifndef __cplusplus
26724   /* Ultrix mips cc rejects this.  */
26725   typedef int charset[2];
26726   const charset cs;
26727   /* SunOS 4.1.1 cc rejects this.  */
26728   char const *const *pcpcc;
26729   char **ppc;
26730   /* NEC SVR4.0.2 mips cc rejects this.  */
26731   struct point {int x, y;};
26732   static struct point const zero = {0,0};
26733   /* AIX XL C 1.02.0.0 rejects this.
26734      It does not let you subtract one const X* pointer from another in
26735      an arm of an if-expression whose if-part is not a constant
26736      expression */
26737   const char *g = "string";
26738   pcpcc = &g + (g ? g-g : 0);
26739   /* HPUX 7.0 cc rejects these. */
26740   ++pcpcc;
26741   ppc = (char**) pcpcc;
26742   pcpcc = (char const *const *) ppc;
26743   { /* SCO 3.2v4 cc rejects this.  */
26744     char *t;
26745     char const *s = 0 ? (char *) 0 : (char const *) 0;
26746
26747     *t++ = 0;
26748     if (s) return 0;
26749   }
26750   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26751     int x[] = {25, 17};
26752     const int *foo = &x[0];
26753     ++foo;
26754   }
26755   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26756     typedef const int *iptr;
26757     iptr p = 0;
26758     ++p;
26759   }
26760   { /* AIX XL C 1.02.0.0 rejects this saying
26761        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26762     struct s { int j; const int *ap[3]; };
26763     struct s *b; b->j = 5;
26764   }
26765   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26766     const int foo = 10;
26767     if (!foo) return 0;
26768   }
26769   return !cs[0] && !zero.x;
26770 #endif
26771
26772   ;
26773   return 0;
26774 }
26775 _ACEOF
26776 if ac_fn_c_try_compile "$LINENO"; then :
26777   ac_cv_c_const=yes
26778 else
26779   ac_cv_c_const=no
26780 fi
26781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26782 fi
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26784 $as_echo "$ac_cv_c_const" >&6; }
26785 if test $ac_cv_c_const = no; then
26786
26787 $as_echo "#define const /**/" >>confdefs.h
26788
26789 fi
26790
26791
26792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26793 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26794 if ${ac_cv_c_bigendian+:} false; then :
26795   $as_echo_n "(cached) " >&6
26796 else
26797   ac_cv_c_bigendian=unknown
26798     # See if we're dealing with a universal compiler.
26799     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26800 /* end confdefs.h.  */
26801 #ifndef __APPLE_CC__
26802                not a universal capable compiler
26803              #endif
26804              typedef int dummy;
26805
26806 _ACEOF
26807 if ac_fn_c_try_compile "$LINENO"; then :
26808
26809         # Check for potential -arch flags.  It is not universal unless
26810         # there are at least two -arch flags with different values.
26811         ac_arch=
26812         ac_prev=
26813         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26814          if test -n "$ac_prev"; then
26815            case $ac_word in
26816              i?86 | x86_64 | ppc | ppc64)
26817                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26818                  ac_arch=$ac_word
26819                else
26820                  ac_cv_c_bigendian=universal
26821                  break
26822                fi
26823                ;;
26824            esac
26825            ac_prev=
26826          elif test "x$ac_word" = "x-arch"; then
26827            ac_prev=arch
26828          fi
26829        done
26830 fi
26831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26832     if test $ac_cv_c_bigendian = unknown; then
26833       # See if sys/param.h defines the BYTE_ORDER macro.
26834       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26835 /* end confdefs.h.  */
26836 #include <sys/types.h>
26837              #include <sys/param.h>
26838
26839 int
26840 main ()
26841 {
26842 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26843                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26844                      && LITTLE_ENDIAN)
26845               bogus endian macros
26846              #endif
26847
26848   ;
26849   return 0;
26850 }
26851 _ACEOF
26852 if ac_fn_c_try_compile "$LINENO"; then :
26853   # It does; now see whether it defined to BIG_ENDIAN or not.
26854          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26855 /* end confdefs.h.  */
26856 #include <sys/types.h>
26857                 #include <sys/param.h>
26858
26859 int
26860 main ()
26861 {
26862 #if BYTE_ORDER != BIG_ENDIAN
26863                  not big endian
26864                 #endif
26865
26866   ;
26867   return 0;
26868 }
26869 _ACEOF
26870 if ac_fn_c_try_compile "$LINENO"; then :
26871   ac_cv_c_bigendian=yes
26872 else
26873   ac_cv_c_bigendian=no
26874 fi
26875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26876 fi
26877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26878     fi
26879     if test $ac_cv_c_bigendian = unknown; then
26880       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26881       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26882 /* end confdefs.h.  */
26883 #include <limits.h>
26884
26885 int
26886 main ()
26887 {
26888 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26889               bogus endian macros
26890              #endif
26891
26892   ;
26893   return 0;
26894 }
26895 _ACEOF
26896 if ac_fn_c_try_compile "$LINENO"; then :
26897   # It does; now see whether it defined to _BIG_ENDIAN or not.
26898          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26899 /* end confdefs.h.  */
26900 #include <limits.h>
26901
26902 int
26903 main ()
26904 {
26905 #ifndef _BIG_ENDIAN
26906                  not big endian
26907                 #endif
26908
26909   ;
26910   return 0;
26911 }
26912 _ACEOF
26913 if ac_fn_c_try_compile "$LINENO"; then :
26914   ac_cv_c_bigendian=yes
26915 else
26916   ac_cv_c_bigendian=no
26917 fi
26918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26919 fi
26920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26921     fi
26922     if test $ac_cv_c_bigendian = unknown; then
26923       # Compile a test program.
26924       if test "$cross_compiling" = yes; then :
26925   # Try to guess by grepping values from an object file.
26926          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26927 /* end confdefs.h.  */
26928 short int ascii_mm[] =
26929                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26930                 short int ascii_ii[] =
26931                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26932                 int use_ascii (int i) {
26933                   return ascii_mm[i] + ascii_ii[i];
26934                 }
26935                 short int ebcdic_ii[] =
26936                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26937                 short int ebcdic_mm[] =
26938                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26939                 int use_ebcdic (int i) {
26940                   return ebcdic_mm[i] + ebcdic_ii[i];
26941                 }
26942                 extern int foo;
26943
26944 int
26945 main ()
26946 {
26947 return use_ascii (foo) == use_ebcdic (foo);
26948   ;
26949   return 0;
26950 }
26951 _ACEOF
26952 if ac_fn_c_try_compile "$LINENO"; then :
26953   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26954               ac_cv_c_bigendian=yes
26955             fi
26956             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26957               if test "$ac_cv_c_bigendian" = unknown; then
26958                 ac_cv_c_bigendian=no
26959               else
26960                 # finding both strings is unlikely to happen, but who knows?
26961                 ac_cv_c_bigendian=unknown
26962               fi
26963             fi
26964 fi
26965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26966 else
26967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26968 /* end confdefs.h.  */
26969 $ac_includes_default
26970 int
26971 main ()
26972 {
26973
26974              /* Are we little or big endian?  From Harbison&Steele.  */
26975              union
26976              {
26977                long int l;
26978                char c[sizeof (long int)];
26979              } u;
26980              u.l = 1;
26981              return u.c[sizeof (long int) - 1] == 1;
26982
26983   ;
26984   return 0;
26985 }
26986 _ACEOF
26987 if ac_fn_c_try_run "$LINENO"; then :
26988   ac_cv_c_bigendian=no
26989 else
26990   ac_cv_c_bigendian=yes
26991 fi
26992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26993   conftest.$ac_objext conftest.beam conftest.$ac_ext
26994 fi
26995
26996     fi
26997 fi
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26999 $as_echo "$ac_cv_c_bigendian" >&6; }
27000  case $ac_cv_c_bigendian in #(
27001    yes)
27002
27003 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
27004 ;; #(
27005    no)
27006
27007 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
27008  ;; #(
27009    universal)
27010
27011 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27012
27013      ;; #(
27014    *)
27015      as_fn_error $? "unknown endianness
27016  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
27017  esac
27018
27019
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
27021 $as_echo_n "checking how to get filesystem type... " >&6; }
27022 fstype=no
27023 # The order of these tests is important.
27024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27025 /* end confdefs.h.  */
27026
27027        #include <sys/statvfs.h>
27028        #include <sys/fstyp.h>
27029
27030 _ACEOF
27031 if ac_fn_c_try_cpp "$LINENO"; then :
27032   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
27033  fstype=SVR4
27034
27035 fi
27036 rm -f conftest.err conftest.i conftest.$ac_ext
27037 if test $fstype = no; then
27038    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039 /* end confdefs.h.  */
27040
27041           #include <sys/statfs.h>
27042           #include <sys/fstyp.h>
27043
27044 _ACEOF
27045 if ac_fn_c_try_cpp "$LINENO"; then :
27046   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
27047  fstype=SVR3
27048
27049 fi
27050 rm -f conftest.err conftest.i conftest.$ac_ext
27051 fi
27052 if test $fstype = no; then
27053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27054 /* end confdefs.h.  */
27055
27056           #include <sys/statfs.h>
27057           #include <sys/vmount.h>
27058
27059 _ACEOF
27060 if ac_fn_c_try_cpp "$LINENO"; then :
27061   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
27062  fstype=AIX
27063
27064 fi
27065 rm -f conftest.err conftest.i conftest.$ac_ext
27066 fi
27067 if test $fstype = no; then
27068    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27069 /* end confdefs.h.  */
27070
27071           #include <mntent.h>
27072
27073 _ACEOF
27074 if ac_fn_c_try_cpp "$LINENO"; then :
27075   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
27076  fstype=4.3BSD
27077
27078 fi
27079 rm -f conftest.err conftest.i conftest.$ac_ext
27080 fi
27081 if test $fstype = no; then
27082    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27083 /* end confdefs.h.  */
27084 #include <sys/mount.h>
27085
27086 _ACEOF
27087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27088   $EGREP "f_type;" >/dev/null 2>&1; then :
27089   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
27090  fstype=4.4BSD/OSF1
27091 fi
27092 rm -f conftest*
27093
27094 fi
27095 if test $fstype = no; then
27096    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27097 /* end confdefs.h.  */
27098
27099           #include <sys/mount.h>
27100           #include <sys/fs_types.h>
27101
27102 _ACEOF
27103 if ac_fn_c_try_cpp "$LINENO"; then :
27104   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
27105  fstype=Ultrix
27106
27107 fi
27108 rm -f conftest.err conftest.i conftest.$ac_ext
27109 fi
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
27111 $as_echo "$fstype" >&6; }
27112
27113 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
27114 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
27115
27116 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27117
27118 fi
27119
27120
27121
27122 ac_ext=cpp
27123 ac_cpp='$CXXCPP $CPPFLAGS'
27124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27127
27128 for ac_func in backtrace
27129 do :
27130   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27131 if test "x$ac_cv_func_backtrace" = xyes; then :
27132   cat >>confdefs.h <<_ACEOF
27133 #define HAVE_BACKTRACE 1
27134 _ACEOF
27135
27136 fi
27137 done
27138
27139 ac_ext=c
27140 ac_cpp='$CPP $CPPFLAGS'
27141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27144
27145
27146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27147 $as_echo_n "checking return type of signal handlers... " >&6; }
27148 if ${ac_cv_type_signal+:} false; then :
27149   $as_echo_n "(cached) " >&6
27150 else
27151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27152 /* end confdefs.h.  */
27153 #include <sys/types.h>
27154 #include <signal.h>
27155
27156 int
27157 main ()
27158 {
27159 return *(signal (0, 0)) (0) == 1;
27160   ;
27161   return 0;
27162 }
27163 _ACEOF
27164 if ac_fn_c_try_compile "$LINENO"; then :
27165   ac_cv_type_signal=int
27166 else
27167   ac_cv_type_signal=void
27168 fi
27169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27170 fi
27171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27172 $as_echo "$ac_cv_type_signal" >&6; }
27173
27174 cat >>confdefs.h <<_ACEOF
27175 #define RETSIGTYPE $ac_cv_type_signal
27176 _ACEOF
27177
27178
27179
27180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27181 $as_echo_n "checking for type of signal functions... " >&6; }
27182   if ${bash_cv_signal_vintage+:} false; then :
27183   $as_echo_n "(cached) " >&6
27184 else
27185
27186     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27187 /* end confdefs.h.  */
27188 #include <signal.h>
27189 int
27190 main ()
27191 {
27192
27193       sigset_t ss;
27194       struct sigaction sa;
27195       sigemptyset(&ss); sigsuspend(&ss);
27196       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27197       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27198
27199   ;
27200   return 0;
27201 }
27202 _ACEOF
27203 if ac_fn_c_try_link "$LINENO"; then :
27204   bash_cv_signal_vintage="posix"
27205 else
27206
27207       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h.  */
27209 #include <signal.h>
27210 int
27211 main ()
27212 {
27213
27214           int mask = sigmask(SIGINT);
27215           sigsetmask(mask); sigblock(mask); sigpause(mask);
27216
27217   ;
27218   return 0;
27219 }
27220 _ACEOF
27221 if ac_fn_c_try_link "$LINENO"; then :
27222   bash_cv_signal_vintage="4.2bsd"
27223 else
27224
27225         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27226 /* end confdefs.h.  */
27227
27228           #include <signal.h>
27229           RETSIGTYPE foo() { }
27230 int
27231 main ()
27232 {
27233
27234                   int mask = sigmask(SIGINT);
27235                   sigset(SIGINT, foo); sigrelse(SIGINT);
27236                   sighold(SIGINT); sigpause(SIGINT);
27237
27238   ;
27239   return 0;
27240 }
27241 _ACEOF
27242 if ac_fn_c_try_link "$LINENO"; then :
27243   bash_cv_signal_vintage="svr3"
27244 else
27245   bash_cv_signal_vintage="v7"
27246
27247 fi
27248 rm -f core conftest.err conftest.$ac_objext \
27249     conftest$ac_exeext conftest.$ac_ext
27250
27251 fi
27252 rm -f core conftest.err conftest.$ac_objext \
27253     conftest$ac_exeext conftest.$ac_ext
27254
27255 fi
27256 rm -f core conftest.err conftest.$ac_objext \
27257     conftest$ac_exeext conftest.$ac_ext
27258
27259 fi
27260
27261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27262 $as_echo "$bash_cv_signal_vintage" >&6; }
27263   if test "$bash_cv_signal_vintage" = "posix"; then
27264     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27265
27266   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27267     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27268
27269   elif test "$bash_cv_signal_vintage" = "svr3"; then
27270     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27271
27272   fi
27273
27274 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27275 if test "x$ac_cv_type_mode_t" = xyes; then :
27276
27277 else
27278
27279 cat >>confdefs.h <<_ACEOF
27280 #define mode_t int
27281 _ACEOF
27282
27283 fi
27284
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27286 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27287 if ${ac_cv_type_uid_t+:} false; then :
27288   $as_echo_n "(cached) " >&6
27289 else
27290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27291 /* end confdefs.h.  */
27292 #include <sys/types.h>
27293
27294 _ACEOF
27295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27296   $EGREP "uid_t" >/dev/null 2>&1; then :
27297   ac_cv_type_uid_t=yes
27298 else
27299   ac_cv_type_uid_t=no
27300 fi
27301 rm -f conftest*
27302
27303 fi
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27305 $as_echo "$ac_cv_type_uid_t" >&6; }
27306 if test $ac_cv_type_uid_t = no; then
27307
27308 $as_echo "#define uid_t int" >>confdefs.h
27309
27310
27311 $as_echo "#define gid_t int" >>confdefs.h
27312
27313 fi
27314
27315 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27316 if test "x$ac_cv_type_size_t" = xyes; then :
27317
27318 else
27319
27320 cat >>confdefs.h <<_ACEOF
27321 #define size_t unsigned int
27322 _ACEOF
27323
27324 fi
27325
27326 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27327 if test "x$ac_cv_type_pid_t" = xyes; then :
27328
27329 else
27330
27331 cat >>confdefs.h <<_ACEOF
27332 #define pid_t int
27333 _ACEOF
27334
27335 fi
27336
27337 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27338 if test "x$ac_cv_type_off_t" = xyes; then :
27339
27340 else
27341
27342 cat >>confdefs.h <<_ACEOF
27343 #define off_t long int
27344 _ACEOF
27345
27346 fi
27347
27348
27349   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27350 if test "x$ac_cv_type_intptr_t" = xyes; then :
27351
27352 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27353
27354 else
27355   for ac_type in 'int' 'long int' 'long long int'; do
27356        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27357 /* end confdefs.h.  */
27358 $ac_includes_default
27359 int
27360 main ()
27361 {
27362 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27363 test_array [0] = 0
27364
27365   ;
27366   return 0;
27367 }
27368 _ACEOF
27369 if ac_fn_c_try_compile "$LINENO"; then :
27370
27371 cat >>confdefs.h <<_ACEOF
27372 #define intptr_t $ac_type
27373 _ACEOF
27374
27375           ac_type=
27376 fi
27377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27378        test -z "$ac_type" && break
27379      done
27380 fi
27381
27382
27383
27384   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27385 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27386
27387 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27388
27389 else
27390   for ac_type in 'unsigned int' 'unsigned long int' \
27391         'unsigned long long int'; do
27392        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27393 /* end confdefs.h.  */
27394 $ac_includes_default
27395 int
27396 main ()
27397 {
27398 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27399 test_array [0] = 0
27400
27401   ;
27402   return 0;
27403 }
27404 _ACEOF
27405 if ac_fn_c_try_compile "$LINENO"; then :
27406
27407 cat >>confdefs.h <<_ACEOF
27408 #define uintptr_t $ac_type
27409 _ACEOF
27410
27411           ac_type=
27412 fi
27413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27414        test -z "$ac_type" && break
27415      done
27416 fi
27417
27418
27419 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27420 if test "x$ac_cv_type_ino_t" = xyes; then :
27421
27422 else
27423
27424 cat >>confdefs.h <<_ACEOF
27425 #define ino_t unsigned long
27426 _ACEOF
27427
27428 fi
27429
27430 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27431 if test "x$ac_cv_type_dev_t" = xyes; then :
27432
27433 else
27434
27435 cat >>confdefs.h <<_ACEOF
27436 #define dev_t unsigned long
27437 _ACEOF
27438
27439 fi
27440
27441 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27442 if test "x$ac_cv_type_daddr_t" = xyes; then :
27443
27444 else
27445
27446 cat >>confdefs.h <<_ACEOF
27447 #define daddr_t long
27448 _ACEOF
27449
27450 fi
27451
27452 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27453 if test "x$ac_cv_type_major_t" = xyes; then :
27454
27455 else
27456
27457 cat >>confdefs.h <<_ACEOF
27458 #define major_t int
27459 _ACEOF
27460
27461 fi
27462
27463 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27464 if test "x$ac_cv_type_minor_t" = xyes; then :
27465
27466 else
27467
27468 cat >>confdefs.h <<_ACEOF
27469 #define minor_t int
27470 _ACEOF
27471
27472 fi
27473
27474 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27475 if test "x$ac_cv_type_ssize_t" = xyes; then :
27476
27477 else
27478
27479 cat >>confdefs.h <<_ACEOF
27480 #define ssize_t int
27481 _ACEOF
27482
27483 fi
27484
27485 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27486 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27487
27488 cat >>confdefs.h <<_ACEOF
27489 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27490 _ACEOF
27491
27492
27493 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27494
27495 else
27496   case " $LIBOBJS " in
27497   *" fileblocks.$ac_objext "* ) ;;
27498   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27499  ;;
27500 esac
27501
27502 fi
27503
27504
27505 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27506 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27507
27508 cat >>confdefs.h <<_ACEOF
27509 #define HAVE_STRUCT_STAT_ST_RDEV 1
27510 _ACEOF
27511
27512
27513 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27514
27515 fi
27516
27517
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27519 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27520 if ${ac_cv_struct_tm+:} false; then :
27521   $as_echo_n "(cached) " >&6
27522 else
27523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27524 /* end confdefs.h.  */
27525 #include <sys/types.h>
27526 #include <time.h>
27527
27528 int
27529 main ()
27530 {
27531 struct tm tm;
27532                                      int *p = &tm.tm_sec;
27533                                      return !p;
27534   ;
27535   return 0;
27536 }
27537 _ACEOF
27538 if ac_fn_c_try_compile "$LINENO"; then :
27539   ac_cv_struct_tm=time.h
27540 else
27541   ac_cv_struct_tm=sys/time.h
27542 fi
27543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27544 fi
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27546 $as_echo "$ac_cv_struct_tm" >&6; }
27547 if test $ac_cv_struct_tm = sys/time.h; then
27548
27549 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27550
27551 fi
27552
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27554 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27555 if ${ac_cv_c_const+:} false; then :
27556   $as_echo_n "(cached) " >&6
27557 else
27558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27559 /* end confdefs.h.  */
27560
27561 int
27562 main ()
27563 {
27564 /* FIXME: Include the comments suggested by Paul. */
27565 #ifndef __cplusplus
27566   /* Ultrix mips cc rejects this.  */
27567   typedef int charset[2];
27568   const charset cs;
27569   /* SunOS 4.1.1 cc rejects this.  */
27570   char const *const *pcpcc;
27571   char **ppc;
27572   /* NEC SVR4.0.2 mips cc rejects this.  */
27573   struct point {int x, y;};
27574   static struct point const zero = {0,0};
27575   /* AIX XL C 1.02.0.0 rejects this.
27576      It does not let you subtract one const X* pointer from another in
27577      an arm of an if-expression whose if-part is not a constant
27578      expression */
27579   const char *g = "string";
27580   pcpcc = &g + (g ? g-g : 0);
27581   /* HPUX 7.0 cc rejects these. */
27582   ++pcpcc;
27583   ppc = (char**) pcpcc;
27584   pcpcc = (char const *const *) ppc;
27585   { /* SCO 3.2v4 cc rejects this.  */
27586     char *t;
27587     char const *s = 0 ? (char *) 0 : (char const *) 0;
27588
27589     *t++ = 0;
27590     if (s) return 0;
27591   }
27592   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27593     int x[] = {25, 17};
27594     const int *foo = &x[0];
27595     ++foo;
27596   }
27597   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27598     typedef const int *iptr;
27599     iptr p = 0;
27600     ++p;
27601   }
27602   { /* AIX XL C 1.02.0.0 rejects this saying
27603        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27604     struct s { int j; const int *ap[3]; };
27605     struct s *b; b->j = 5;
27606   }
27607   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27608     const int foo = 10;
27609     if (!foo) return 0;
27610   }
27611   return !cs[0] && !zero.x;
27612 #endif
27613
27614   ;
27615   return 0;
27616 }
27617 _ACEOF
27618 if ac_fn_c_try_compile "$LINENO"; then :
27619   ac_cv_c_const=yes
27620 else
27621   ac_cv_c_const=no
27622 fi
27623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27624 fi
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27626 $as_echo "$ac_cv_c_const" >&6; }
27627 if test $ac_cv_c_const = no; then
27628
27629 $as_echo "#define const /**/" >>confdefs.h
27630
27631 fi
27632
27633
27634 # The cast to long int works around a bug in the HP C Compiler
27635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27637 # This bug is HP SR number 8606223364.
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27639 $as_echo_n "checking size of char... " >&6; }
27640 if ${ac_cv_sizeof_char+:} false; then :
27641   $as_echo_n "(cached) " >&6
27642 else
27643   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27644
27645 else
27646   if test "$ac_cv_type_char" = yes; then
27647      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27649 as_fn_error 77 "cannot compute sizeof (char)
27650 See \`config.log' for more details" "$LINENO" 5; }
27651    else
27652      ac_cv_sizeof_char=0
27653    fi
27654 fi
27655
27656 fi
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27658 $as_echo "$ac_cv_sizeof_char" >&6; }
27659
27660
27661
27662 cat >>confdefs.h <<_ACEOF
27663 #define SIZEOF_CHAR $ac_cv_sizeof_char
27664 _ACEOF
27665
27666
27667 # The cast to long int works around a bug in the HP C Compiler
27668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27670 # This bug is HP SR number 8606223364.
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27672 $as_echo_n "checking size of short int... " >&6; }
27673 if ${ac_cv_sizeof_short_int+:} false; then :
27674   $as_echo_n "(cached) " >&6
27675 else
27676   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27677
27678 else
27679   if test "$ac_cv_type_short_int" = yes; then
27680      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27682 as_fn_error 77 "cannot compute sizeof (short int)
27683 See \`config.log' for more details" "$LINENO" 5; }
27684    else
27685      ac_cv_sizeof_short_int=0
27686    fi
27687 fi
27688
27689 fi
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27691 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27692
27693
27694
27695 cat >>confdefs.h <<_ACEOF
27696 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27697 _ACEOF
27698
27699
27700 # The cast to long int works around a bug in the HP C Compiler
27701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27703 # This bug is HP SR number 8606223364.
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27705 $as_echo_n "checking size of int... " >&6; }
27706 if ${ac_cv_sizeof_int+:} false; then :
27707   $as_echo_n "(cached) " >&6
27708 else
27709   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27710
27711 else
27712   if test "$ac_cv_type_int" = yes; then
27713      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27715 as_fn_error 77 "cannot compute sizeof (int)
27716 See \`config.log' for more details" "$LINENO" 5; }
27717    else
27718      ac_cv_sizeof_int=0
27719    fi
27720 fi
27721
27722 fi
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27724 $as_echo "$ac_cv_sizeof_int" >&6; }
27725
27726
27727
27728 cat >>confdefs.h <<_ACEOF
27729 #define SIZEOF_INT $ac_cv_sizeof_int
27730 _ACEOF
27731
27732
27733 # The cast to long int works around a bug in the HP C Compiler
27734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27736 # This bug is HP SR number 8606223364.
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27738 $as_echo_n "checking size of long int... " >&6; }
27739 if ${ac_cv_sizeof_long_int+:} false; then :
27740   $as_echo_n "(cached) " >&6
27741 else
27742   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27743
27744 else
27745   if test "$ac_cv_type_long_int" = yes; then
27746      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27748 as_fn_error 77 "cannot compute sizeof (long int)
27749 See \`config.log' for more details" "$LINENO" 5; }
27750    else
27751      ac_cv_sizeof_long_int=0
27752    fi
27753 fi
27754
27755 fi
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27757 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27758
27759
27760
27761 cat >>confdefs.h <<_ACEOF
27762 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27763 _ACEOF
27764
27765
27766 # The cast to long int works around a bug in the HP C Compiler
27767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27769 # This bug is HP SR number 8606223364.
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27771 $as_echo_n "checking size of long long int... " >&6; }
27772 if ${ac_cv_sizeof_long_long_int+:} false; then :
27773   $as_echo_n "(cached) " >&6
27774 else
27775   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27776
27777 else
27778   if test "$ac_cv_type_long_long_int" = yes; then
27779      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27781 as_fn_error 77 "cannot compute sizeof (long long int)
27782 See \`config.log' for more details" "$LINENO" 5; }
27783    else
27784      ac_cv_sizeof_long_long_int=0
27785    fi
27786 fi
27787
27788 fi
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27790 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27791
27792
27793
27794 cat >>confdefs.h <<_ACEOF
27795 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27796 _ACEOF
27797
27798
27799 # The cast to long int works around a bug in the HP C Compiler
27800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27802 # This bug is HP SR number 8606223364.
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27804 $as_echo_n "checking size of int *... " >&6; }
27805 if ${ac_cv_sizeof_int_p+:} false; then :
27806   $as_echo_n "(cached) " >&6
27807 else
27808   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27809
27810 else
27811   if test "$ac_cv_type_int_p" = yes; then
27812      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27814 as_fn_error 77 "cannot compute sizeof (int *)
27815 See \`config.log' for more details" "$LINENO" 5; }
27816    else
27817      ac_cv_sizeof_int_p=0
27818    fi
27819 fi
27820
27821 fi
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27823 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27824
27825
27826
27827 cat >>confdefs.h <<_ACEOF
27828 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27829 _ACEOF
27830
27831
27832
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27834 $as_echo_n "checking for u_int type... " >&6; }
27835 if ${ac_cv_have_u_int+:} false; then :
27836   $as_echo_n "(cached) " >&6
27837 else
27838
27839        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27840 /* end confdefs.h.  */
27841
27842               #include <sys/types.h>
27843
27844 int
27845 main ()
27846 {
27847
27848               u_int a; a = 1;
27849
27850   ;
27851   return 0;
27852 }
27853 _ACEOF
27854 if ac_fn_c_try_compile "$LINENO"; then :
27855
27856               ac_cv_have_u_int="yes"
27857
27858 else
27859
27860               ac_cv_have_u_int="no"
27861
27862
27863 fi
27864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27865
27866
27867 fi
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27869 $as_echo "$ac_cv_have_u_int" >&6; }
27870 if test "x$ac_cv_have_u_int" = "xyes" ; then
27871    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27872
27873    have_u_int=1
27874 fi
27875
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27877 $as_echo_n "checking for intmax_t type... " >&6; }
27878 if ${ac_cv_have_intmax_t+:} false; then :
27879   $as_echo_n "(cached) " >&6
27880 else
27881
27882        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27883 /* end confdefs.h.  */
27884
27885               #include <sys/types.h>
27886
27887 int
27888 main ()
27889 {
27890
27891               intmax_t a; a = 1;
27892
27893   ;
27894   return 0;
27895 }
27896 _ACEOF
27897 if ac_fn_c_try_compile "$LINENO"; then :
27898
27899               ac_cv_have_intmax_t="yes"
27900
27901 else
27902
27903               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27904 /* end confdefs.h.  */
27905
27906                      #include <stdint.h>
27907
27908 int
27909 main ()
27910 {
27911
27912                      intmax_t a; a = 1;
27913
27914   ;
27915   return 0;
27916 }
27917 _ACEOF
27918 if ac_fn_c_try_compile "$LINENO"; then :
27919
27920                      ac_cv_have_intmax_t="yes"
27921
27922 else
27923
27924                      ac_cv_have_intmax_t="no"
27925
27926
27927 fi
27928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27929
27930
27931 fi
27932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27933
27934
27935 fi
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27937 $as_echo "$ac_cv_have_intmax_t" >&6; }
27938 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27939    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27940
27941    have_intmax_t=1
27942 fi
27943
27944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27945 $as_echo_n "checking for u_intmax_t type... " >&6; }
27946 if ${ac_cv_have_u_intmax_t+:} false; then :
27947   $as_echo_n "(cached) " >&6
27948 else
27949
27950        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27951 /* end confdefs.h.  */
27952
27953               #include <sys/types.h>
27954
27955 int
27956 main ()
27957 {
27958
27959               u_intmax_t a; a = 1;
27960
27961   ;
27962   return 0;
27963 }
27964 _ACEOF
27965 if ac_fn_c_try_compile "$LINENO"; then :
27966
27967               ac_cv_have_u_intmax_t="yes"
27968
27969 else
27970
27971               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27972 /* end confdefs.h.  */
27973
27974                      #include <stdint.h>
27975
27976 int
27977 main ()
27978 {
27979
27980                     u_intmax_t a; a = 1;
27981
27982   ;
27983   return 0;
27984 }
27985 _ACEOF
27986 if ac_fn_c_try_compile "$LINENO"; then :
27987
27988                     ac_cv_have_u_intmax_t="yes"
27989
27990 else
27991
27992                     ac_cv_have_u_intmax_t="no"
27993
27994
27995 fi
27996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27997
27998
27999 fi
28000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28001
28002
28003 fi
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28005 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28006 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28007    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28008
28009    have_u_intmax_t=1
28010 fi
28011
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28013 $as_echo_n "checking for intXX_t types... " >&6; }
28014 if ${ac_cv_have_intxx_t+:} false; then :
28015   $as_echo_n "(cached) " >&6
28016 else
28017
28018        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28019 /* end confdefs.h.  */
28020
28021               #include <sys/types.h>
28022
28023 int
28024 main ()
28025 {
28026
28027               int8_t a; int16_t b; int32_t c; a = b = c = 1;
28028
28029   ;
28030   return 0;
28031 }
28032 _ACEOF
28033 if ac_fn_c_try_compile "$LINENO"; then :
28034
28035               ac_cv_have_intxx_t="yes"
28036
28037 else
28038
28039               ac_cv_have_intxx_t="no"
28040
28041
28042 fi
28043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28044
28045
28046 fi
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28048 $as_echo "$ac_cv_have_intxx_t" >&6; }
28049 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28050    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28051
28052    have_intxx_t=1
28053 fi
28054
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28056 $as_echo_n "checking for int64_t type... " >&6; }
28057 if ${ac_cv_have_int64_t+:} false; then :
28058   $as_echo_n "(cached) " >&6
28059 else
28060
28061        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28062 /* end confdefs.h.  */
28063
28064               #include <sys/types.h>
28065
28066 int
28067 main ()
28068 {
28069
28070               int64_t a; a = 1;
28071
28072   ;
28073   return 0;
28074 }
28075 _ACEOF
28076 if ac_fn_c_try_compile "$LINENO"; then :
28077
28078               ac_cv_have_int64_t="yes"
28079
28080 else
28081
28082               ac_cv_have_int64_t="no"
28083
28084
28085 fi
28086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28087
28088
28089 fi
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28091 $as_echo "$ac_cv_have_int64_t" >&6; }
28092 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28093    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28094
28095    have_int64_t=1
28096 fi
28097
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28099 $as_echo_n "checking for u_intXX_t types... " >&6; }
28100 if ${ac_cv_have_u_intxx_t+:} false; then :
28101   $as_echo_n "(cached) " >&6
28102 else
28103
28104        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28105 /* end confdefs.h.  */
28106
28107               #include <sys/types.h>
28108
28109 int
28110 main ()
28111 {
28112
28113               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28114
28115   ;
28116   return 0;
28117 }
28118 _ACEOF
28119 if ac_fn_c_try_compile "$LINENO"; then :
28120
28121              ac_cv_have_u_intxx_t="yes"
28122
28123 else
28124
28125              ac_cv_have_u_intxx_t="no"
28126
28127
28128 fi
28129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28130
28131
28132 fi
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28134 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28135 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28136    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28137
28138    have_u_intxx_t=1
28139 fi
28140
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28142 $as_echo_n "checking for u_int64_t types... " >&6; }
28143 if ${ac_cv_have_u_int64_t+:} false; then :
28144   $as_echo_n "(cached) " >&6
28145 else
28146
28147        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28148 /* end confdefs.h.  */
28149
28150               #include <sys/types.h>
28151
28152 int
28153 main ()
28154 {
28155
28156               u_int64_t a; a = 1;
28157
28158   ;
28159   return 0;
28160 }
28161 _ACEOF
28162 if ac_fn_c_try_compile "$LINENO"; then :
28163
28164              ac_cv_have_u_int64_t="yes"
28165
28166 else
28167
28168              ac_cv_have_u_int64_t="no"
28169
28170
28171 fi
28172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28173
28174
28175 fi
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28177 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28178 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28179    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28180
28181    have_u_int64_t=1
28182 fi
28183
28184 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28185     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28186 then
28187    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28188 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28189    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28190 /* end confdefs.h.  */
28191
28192           #include <sys/bitypes.h>
28193
28194 int
28195 main ()
28196 {
28197
28198           int8_t a; int16_t b; int32_t c;
28199           u_int8_t e; u_int16_t f; u_int32_t g;
28200           a = b = c = e = f = g = 1;
28201
28202   ;
28203   return 0;
28204 }
28205 _ACEOF
28206 if ac_fn_c_try_compile "$LINENO"; then :
28207
28208           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28209
28210           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28211
28212           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28213
28214           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28215 $as_echo "yes" >&6; }
28216
28217 else
28218
28219           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28220 $as_echo "no" >&6; }
28221
28222
28223 fi
28224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28225 fi
28226
28227 if test -z "$have_u_intxx_t" ; then
28228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28229 $as_echo_n "checking for uintXX_t types... " >&6; }
28230 if ${ac_cv_have_uintxx_t+:} false; then :
28231   $as_echo_n "(cached) " >&6
28232 else
28233
28234           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28235 /* end confdefs.h.  */
28236
28237                  #include <sys/types.h>
28238
28239 int
28240 main ()
28241 {
28242
28243                  uint8_t a; uint16_t b;
28244                  uint32_t c; a = b = c = 1;
28245
28246   ;
28247   return 0;
28248 }
28249 _ACEOF
28250 if ac_fn_c_try_compile "$LINENO"; then :
28251
28252                 ac_cv_have_uintxx_t="yes"
28253
28254 else
28255
28256                 ac_cv_have_uintxx_t="no"
28257
28258
28259 fi
28260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28261
28262
28263 fi
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28265 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28266    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28267       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28268
28269    fi
28270 fi
28271
28272 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28273     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28274 then
28275    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28276 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28278 /* end confdefs.h.  */
28279
28280           #include <sys/bitypes.h>
28281
28282 int
28283 main ()
28284 {
28285
28286           int64_t a; u_int64_t b;
28287           a = b = 1;
28288
28289   ;
28290   return 0;
28291 }
28292 _ACEOF
28293 if ac_fn_c_try_compile "$LINENO"; then :
28294
28295           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28296
28297           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28298
28299           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28300 $as_echo "yes" >&6; }
28301
28302 else
28303
28304           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28305 $as_echo "no" >&6; }
28306
28307
28308 fi
28309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28310 fi
28311
28312 if (test -z "$have_uintxx_t" && \
28313     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28314 then
28315    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28316 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28317    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28318 /* end confdefs.h.  */
28319
28320           #include <sys/bitypes.h>
28321
28322 int
28323 main ()
28324 {
28325
28326           uint8_t a; uint16_t b;
28327           uint32_t c; a = b = c = 1;
28328
28329   ;
28330   return 0;
28331 }
28332 _ACEOF
28333 if ac_fn_c_try_compile "$LINENO"; then :
28334
28335           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28336
28337           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28338 $as_echo "yes" >&6; }
28339
28340 else
28341
28342           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28343 $as_echo "no" >&6; }
28344
28345
28346 fi
28347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28348 fi
28349
28350 for ac_func in \
28351    fork \
28352    getcwd \
28353    gethostname \
28354    getpid \
28355    gettimeofday \
28356    setpgid \
28357    setpgrp \
28358    setsid \
28359    signal \
28360    strerror \
28361    strncmp \
28362    strncpy \
28363    vfprintf \
28364
28365 do :
28366   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28369   cat >>confdefs.h <<_ACEOF
28370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28371 _ACEOF
28372
28373 else
28374   echo 'configure: cannot find needed function.'; exit 1
28375
28376 fi
28377 done
28378
28379
28380 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28381
28382 "
28383 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28384
28385 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28386
28387 fi
28388
28389
28390 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28391 if test "x$ac_cv_func_closefrom" = xyes; then :
28392
28393 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28394
28395 fi
28396
28397 for ac_func in getpagesize
28398 do :
28399   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28400 if test "x$ac_cv_func_getpagesize" = xyes; then :
28401   cat >>confdefs.h <<_ACEOF
28402 #define HAVE_GETPAGESIZE 1
28403 _ACEOF
28404
28405 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28406
28407 fi
28408 done
28409
28410 for ac_func in malloc_trim
28411 do :
28412   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28413 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28414   cat >>confdefs.h <<_ACEOF
28415 #define HAVE_MALLOC_TRIM 1
28416 _ACEOF
28417
28418 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28419
28420 fi
28421 done
28422
28423
28424 for ac_func in fchdir
28425 do :
28426   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28427 if test "x$ac_cv_func_fchdir" = xyes; then :
28428   cat >>confdefs.h <<_ACEOF
28429 #define HAVE_FCHDIR 1
28430 _ACEOF
28431  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28432
28433 fi
28434 done
28435
28436 for ac_func in strtoll
28437 do :
28438   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28439 if test "x$ac_cv_func_strtoll" = xyes; then :
28440   cat >>confdefs.h <<_ACEOF
28441 #define HAVE_STRTOLL 1
28442 _ACEOF
28443  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28444
28445 fi
28446 done
28447
28448 for ac_func in posix_fadvise
28449 do :
28450   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28451 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28452   cat >>confdefs.h <<_ACEOF
28453 #define HAVE_POSIX_FADVISE 1
28454 _ACEOF
28455
28456 fi
28457 done
28458
28459 for ac_func in fdatasync
28460 do :
28461   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28462 if test "x$ac_cv_func_fdatasync" = xyes; then :
28463   cat >>confdefs.h <<_ACEOF
28464 #define HAVE_FDATASYNC 1
28465 _ACEOF
28466
28467 fi
28468 done
28469
28470
28471 for ac_func in chflags
28472 do :
28473   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28474 if test "x$ac_cv_func_chflags" = xyes; then :
28475   cat >>confdefs.h <<_ACEOF
28476 #define HAVE_CHFLAGS 1
28477 _ACEOF
28478
28479 fi
28480 done
28481
28482
28483 for ac_func in snprintf vsnprintf gethostid fseeko
28484 do :
28485   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28487 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28488   cat >>confdefs.h <<_ACEOF
28489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28490 _ACEOF
28491
28492 fi
28493 done
28494
28495
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28497 $as_echo_n "checking for va_copy... " >&6; }
28498 if ${ba_cv_va_copy+:} false; then :
28499   $as_echo_n "(cached) " >&6
28500 else
28501
28502        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28503 /* end confdefs.h.  */
28504
28505               #include <stdarg.h>
28506               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28507               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28508
28509 int
28510 main ()
28511 {
28512
28513               call_use_va_copy(1,2,3)
28514
28515   ;
28516   return 0;
28517 }
28518 _ACEOF
28519 if ac_fn_c_try_link "$LINENO"; then :
28520
28521               ba_cv_va_copy=yes,
28522
28523 else
28524
28525               ba_cv_va_copy=no
28526
28527
28528 fi
28529 rm -f core conftest.err conftest.$ac_objext \
28530     conftest$ac_exeext conftest.$ac_ext
28531
28532
28533 fi
28534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28535 $as_echo "$ba_cv_va_copy" >&6; }
28536 test $ba_cv_va_copy = yes &&
28537 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28538
28539
28540 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28541 do :
28542   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28543 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28544 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28545   cat >>confdefs.h <<_ACEOF
28546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28547 _ACEOF
28548
28549 fi
28550 done
28551
28552
28553 # If resolver functions are not in libc check for -lnsl or -lresolv.
28554 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28555 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28557 $as_echo "using libc's resolver" >&6; }
28558 else
28559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28560 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28561 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28562   $as_echo_n "(cached) " >&6
28563 else
28564   ac_check_lib_save_LIBS=$LIBS
28565 LIBS="-lnsl  $LIBS"
28566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28567 /* end confdefs.h.  */
28568
28569 /* Override any GCC internal prototype to avoid an error.
28570    Use char because int might match the return type of a GCC
28571    builtin and then its argument prototype would still apply.  */
28572 #ifdef __cplusplus
28573 extern "C"
28574 #endif
28575 char gethostbyname_r ();
28576 int
28577 main ()
28578 {
28579 return gethostbyname_r ();
28580   ;
28581   return 0;
28582 }
28583 _ACEOF
28584 if ac_fn_c_try_link "$LINENO"; then :
28585   ac_cv_lib_nsl_gethostbyname_r=yes
28586 else
28587   ac_cv_lib_nsl_gethostbyname_r=no
28588 fi
28589 rm -f core conftest.err conftest.$ac_objext \
28590     conftest$ac_exeext conftest.$ac_ext
28591 LIBS=$ac_check_lib_save_LIBS
28592 fi
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28594 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28595 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28596   cat >>confdefs.h <<_ACEOF
28597 #define HAVE_LIBNSL 1
28598 _ACEOF
28599
28600   LIBS="-lnsl $LIBS"
28601
28602 fi
28603
28604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28605 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28606 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28607   $as_echo_n "(cached) " >&6
28608 else
28609   ac_check_lib_save_LIBS=$LIBS
28610 LIBS="-lresolv  $LIBS"
28611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28612 /* end confdefs.h.  */
28613
28614 /* Override any GCC internal prototype to avoid an error.
28615    Use char because int might match the return type of a GCC
28616    builtin and then its argument prototype would still apply.  */
28617 #ifdef __cplusplus
28618 extern "C"
28619 #endif
28620 char gethostbyname_r ();
28621 int
28622 main ()
28623 {
28624 return gethostbyname_r ();
28625   ;
28626   return 0;
28627 }
28628 _ACEOF
28629 if ac_fn_c_try_link "$LINENO"; then :
28630   ac_cv_lib_resolv_gethostbyname_r=yes
28631 else
28632   ac_cv_lib_resolv_gethostbyname_r=no
28633 fi
28634 rm -f core conftest.err conftest.$ac_objext \
28635     conftest$ac_exeext conftest.$ac_ext
28636 LIBS=$ac_check_lib_save_LIBS
28637 fi
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28639 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28640 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28641   cat >>confdefs.h <<_ACEOF
28642 #define HAVE_LIBRESOLV 1
28643 _ACEOF
28644
28645   LIBS="-lresolv $LIBS"
28646
28647 fi
28648
28649 fi
28650
28651
28652 for ac_func in inet_pton
28653 do :
28654   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28655 if test "x$ac_cv_func_inet_pton" = xyes; then :
28656   cat >>confdefs.h <<_ACEOF
28657 #define HAVE_INET_PTON 1
28658 _ACEOF
28659  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28660
28661 fi
28662 done
28663
28664 for ac_func in inet_ntop
28665 do :
28666   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28667 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28668   cat >>confdefs.h <<_ACEOF
28669 #define HAVE_INET_NTOP 1
28670 _ACEOF
28671  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28672
28673 fi
28674 done
28675
28676 for ac_func in gethostbyname2
28677 do :
28678   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28679 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28680   cat >>confdefs.h <<_ACEOF
28681 #define HAVE_GETHOSTBYNAME2 1
28682 _ACEOF
28683  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28684
28685 fi
28686 done
28687
28688
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28690 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28691 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28692   $as_echo_n "(cached) " >&6
28693 else
28694
28695        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28696 /* end confdefs.h.  */
28697
28698               #include <sys/socket.h>
28699
28700 int
28701 main ()
28702 {
28703
28704               struct sockaddr s; s.sa_len;
28705
28706   ;
28707   return 0;
28708 }
28709 _ACEOF
28710 if ac_fn_c_try_compile "$LINENO"; then :
28711
28712              ac_cv_struct_sockaddr_sa_len=yes
28713
28714 else
28715   ac_cv_struct_sockaddr_sa_len=no
28716
28717
28718 fi
28719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28720
28721
28722 fi
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28724 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28725
28726 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28727
28728 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28729
28730 fi
28731
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28733 $as_echo_n "checking for working getaddrinfo... " >&6; }
28734 if ${ac_cv_working_getaddrinfo+:} false; then :
28735   $as_echo_n "(cached) " >&6
28736 else
28737
28738        if test "$cross_compiling" = yes; then :
28739
28740               ac_cv_working_getaddrinfo="yes"
28741
28742
28743 else
28744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28745 /* end confdefs.h.  */
28746
28747               #include <netdb.h>
28748               #include <string.h>
28749               #include <sys/types.h>
28750               #include <sys/socket.h>
28751
28752               void main(void) {
28753                   struct addrinfo hints, *ai;
28754                   int error;
28755
28756                   memset(&hints, 0, sizeof(hints));
28757                   hints.ai_family = AF_UNSPEC;
28758                   hints.ai_socktype = SOCK_STREAM;
28759                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28760                   if (error) {
28761                       exit(1);
28762                   }
28763                   if (ai->ai_addr->sa_family != AF_INET) {
28764                       exit(1);
28765                   }
28766                   exit(0);
28767               }
28768
28769 _ACEOF
28770 if ac_fn_c_try_run "$LINENO"; then :
28771
28772               ac_cv_working_getaddrinfo="yes"
28773
28774 else
28775
28776               ac_cv_working_getaddrinfo="no"
28777
28778 fi
28779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28780   conftest.$ac_objext conftest.beam conftest.$ac_ext
28781 fi
28782
28783
28784
28785 fi
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28787 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28788 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28789 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28790
28791 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28792
28793 fi
28794
28795
28796 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28797   if test "$ac_cv_func_gai_strerror" != "yes"; then
28798     ac_cv_working_getaddrinfo="no"
28799   else
28800
28801 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28802
28803   fi
28804 fi
28805
28806 for ac_func in strftime
28807 do :
28808   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28809 if test "x$ac_cv_func_strftime" = xyes; then :
28810   cat >>confdefs.h <<_ACEOF
28811 #define HAVE_STRFTIME 1
28812 _ACEOF
28813
28814 else
28815   # strftime is in -lintl on SCO UNIX.
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28817 $as_echo_n "checking for strftime in -lintl... " >&6; }
28818 if ${ac_cv_lib_intl_strftime+:} false; then :
28819   $as_echo_n "(cached) " >&6
28820 else
28821   ac_check_lib_save_LIBS=$LIBS
28822 LIBS="-lintl  $LIBS"
28823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28824 /* end confdefs.h.  */
28825
28826 /* Override any GCC internal prototype to avoid an error.
28827    Use char because int might match the return type of a GCC
28828    builtin and then its argument prototype would still apply.  */
28829 #ifdef __cplusplus
28830 extern "C"
28831 #endif
28832 char strftime ();
28833 int
28834 main ()
28835 {
28836 return strftime ();
28837   ;
28838   return 0;
28839 }
28840 _ACEOF
28841 if ac_fn_c_try_link "$LINENO"; then :
28842   ac_cv_lib_intl_strftime=yes
28843 else
28844   ac_cv_lib_intl_strftime=no
28845 fi
28846 rm -f core conftest.err conftest.$ac_objext \
28847     conftest$ac_exeext conftest.$ac_ext
28848 LIBS=$ac_check_lib_save_LIBS
28849 fi
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28851 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28852 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28853   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28854
28855 LIBS="-lintl $LIBS"
28856 fi
28857
28858 fi
28859 done
28860
28861 for ac_func in vprintf
28862 do :
28863   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28864 if test "x$ac_cv_func_vprintf" = xyes; then :
28865   cat >>confdefs.h <<_ACEOF
28866 #define HAVE_VPRINTF 1
28867 _ACEOF
28868
28869 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28870 if test "x$ac_cv_func__doprnt" = xyes; then :
28871
28872 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28873
28874 fi
28875
28876 fi
28877 done
28878
28879
28880 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28881 # for constant arguments.  Useless!
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28883 $as_echo_n "checking for working alloca.h... " >&6; }
28884 if ${ac_cv_working_alloca_h+:} false; then :
28885   $as_echo_n "(cached) " >&6
28886 else
28887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28888 /* end confdefs.h.  */
28889 #include <alloca.h>
28890 int
28891 main ()
28892 {
28893 char *p = (char *) alloca (2 * sizeof (int));
28894                           if (p) return 0;
28895   ;
28896   return 0;
28897 }
28898 _ACEOF
28899 if ac_fn_c_try_link "$LINENO"; then :
28900   ac_cv_working_alloca_h=yes
28901 else
28902   ac_cv_working_alloca_h=no
28903 fi
28904 rm -f core conftest.err conftest.$ac_objext \
28905     conftest$ac_exeext conftest.$ac_ext
28906 fi
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28908 $as_echo "$ac_cv_working_alloca_h" >&6; }
28909 if test $ac_cv_working_alloca_h = yes; then
28910
28911 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28912
28913 fi
28914
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28916 $as_echo_n "checking for alloca... " >&6; }
28917 if ${ac_cv_func_alloca_works+:} false; then :
28918   $as_echo_n "(cached) " >&6
28919 else
28920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28921 /* end confdefs.h.  */
28922 #ifdef __GNUC__
28923 # define alloca __builtin_alloca
28924 #else
28925 # ifdef _MSC_VER
28926 #  include <malloc.h>
28927 #  define alloca _alloca
28928 # else
28929 #  ifdef HAVE_ALLOCA_H
28930 #   include <alloca.h>
28931 #  else
28932 #   ifdef _AIX
28933  #pragma alloca
28934 #   else
28935 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28936 void *alloca (size_t);
28937 #    endif
28938 #   endif
28939 #  endif
28940 # endif
28941 #endif
28942
28943 int
28944 main ()
28945 {
28946 char *p = (char *) alloca (1);
28947                                     if (p) return 0;
28948   ;
28949   return 0;
28950 }
28951 _ACEOF
28952 if ac_fn_c_try_link "$LINENO"; then :
28953   ac_cv_func_alloca_works=yes
28954 else
28955   ac_cv_func_alloca_works=no
28956 fi
28957 rm -f core conftest.err conftest.$ac_objext \
28958     conftest$ac_exeext conftest.$ac_ext
28959 fi
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28961 $as_echo "$ac_cv_func_alloca_works" >&6; }
28962
28963 if test $ac_cv_func_alloca_works = yes; then
28964
28965 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28966
28967 else
28968   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28969 # that cause trouble.  Some versions do not even contain alloca or
28970 # contain a buggy version.  If you still want to use their alloca,
28971 # use ar to extract alloca.o from them instead of compiling alloca.c.
28972
28973 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28974
28975 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28976
28977
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28979 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28980 if ${ac_cv_os_cray+:} false; then :
28981   $as_echo_n "(cached) " >&6
28982 else
28983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28984 /* end confdefs.h.  */
28985 #if defined CRAY && ! defined CRAY2
28986 webecray
28987 #else
28988 wenotbecray
28989 #endif
28990
28991 _ACEOF
28992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28993   $EGREP "webecray" >/dev/null 2>&1; then :
28994   ac_cv_os_cray=yes
28995 else
28996   ac_cv_os_cray=no
28997 fi
28998 rm -f conftest*
28999
29000 fi
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29002 $as_echo "$ac_cv_os_cray" >&6; }
29003 if test $ac_cv_os_cray = yes; then
29004   for ac_func in _getb67 GETB67 getb67; do
29005     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29006 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29007 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29008
29009 cat >>confdefs.h <<_ACEOF
29010 #define CRAY_STACKSEG_END $ac_func
29011 _ACEOF
29012
29013     break
29014 fi
29015
29016   done
29017 fi
29018
29019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29020 $as_echo_n "checking stack direction for C alloca... " >&6; }
29021 if ${ac_cv_c_stack_direction+:} false; then :
29022   $as_echo_n "(cached) " >&6
29023 else
29024   if test "$cross_compiling" = yes; then :
29025   ac_cv_c_stack_direction=0
29026 else
29027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29028 /* end confdefs.h.  */
29029 $ac_includes_default
29030 int
29031 find_stack_direction ()
29032 {
29033   static char *addr = 0;
29034   auto char dummy;
29035   if (addr == 0)
29036     {
29037       addr = &dummy;
29038       return find_stack_direction ();
29039     }
29040   else
29041     return (&dummy > addr) ? 1 : -1;
29042 }
29043
29044 int
29045 main ()
29046 {
29047   return find_stack_direction () < 0;
29048 }
29049 _ACEOF
29050 if ac_fn_c_try_run "$LINENO"; then :
29051   ac_cv_c_stack_direction=1
29052 else
29053   ac_cv_c_stack_direction=-1
29054 fi
29055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29056   conftest.$ac_objext conftest.beam conftest.$ac_ext
29057 fi
29058
29059 fi
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29061 $as_echo "$ac_cv_c_stack_direction" >&6; }
29062 cat >>confdefs.h <<_ACEOF
29063 #define STACK_DIRECTION $ac_cv_c_stack_direction
29064 _ACEOF
29065
29066
29067 fi
29068
29069 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29070 # -lseq on Dynix/PTX, -lgen on Unixware.
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29072 $as_echo_n "checking for library containing getmntent... " >&6; }
29073 if ${ac_cv_search_getmntent+:} false; then :
29074   $as_echo_n "(cached) " >&6
29075 else
29076   ac_func_search_save_LIBS=$LIBS
29077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29078 /* end confdefs.h.  */
29079
29080 /* Override any GCC internal prototype to avoid an error.
29081    Use char because int might match the return type of a GCC
29082    builtin and then its argument prototype would still apply.  */
29083 #ifdef __cplusplus
29084 extern "C"
29085 #endif
29086 char getmntent ();
29087 int
29088 main ()
29089 {
29090 return getmntent ();
29091   ;
29092   return 0;
29093 }
29094 _ACEOF
29095 for ac_lib in '' sun seq gen; do
29096   if test -z "$ac_lib"; then
29097     ac_res="none required"
29098   else
29099     ac_res=-l$ac_lib
29100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29101   fi
29102   if ac_fn_c_try_link "$LINENO"; then :
29103   ac_cv_search_getmntent=$ac_res
29104 fi
29105 rm -f core conftest.err conftest.$ac_objext \
29106     conftest$ac_exeext
29107   if ${ac_cv_search_getmntent+:} false; then :
29108   break
29109 fi
29110 done
29111 if ${ac_cv_search_getmntent+:} false; then :
29112
29113 else
29114   ac_cv_search_getmntent=no
29115 fi
29116 rm conftest.$ac_ext
29117 LIBS=$ac_func_search_save_LIBS
29118 fi
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29120 $as_echo "$ac_cv_search_getmntent" >&6; }
29121 ac_res=$ac_cv_search_getmntent
29122 if test "$ac_res" != no; then :
29123   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29124   ac_cv_func_getmntent=yes
29125
29126 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29127
29128 else
29129   ac_cv_func_getmntent=no
29130 fi
29131
29132
29133 for ac_func in getmntinfo
29134 do :
29135   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29136 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29137   cat >>confdefs.h <<_ACEOF
29138 #define HAVE_GETMNTINFO 1
29139 _ACEOF
29140  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29141
29142 fi
29143 done
29144
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29146 $as_echo_n "checking whether closedir returns void... " >&6; }
29147 if ${ac_cv_func_closedir_void+:} false; then :
29148   $as_echo_n "(cached) " >&6
29149 else
29150   if test "$cross_compiling" = yes; then :
29151   ac_cv_func_closedir_void=yes
29152 else
29153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29154 /* end confdefs.h.  */
29155 $ac_includes_default
29156 #include <$ac_header_dirent>
29157 #ifndef __cplusplus
29158 int closedir ();
29159 #endif
29160
29161 int
29162 main ()
29163 {
29164 return closedir (opendir (".")) != 0;
29165   ;
29166   return 0;
29167 }
29168 _ACEOF
29169 if ac_fn_c_try_run "$LINENO"; then :
29170   ac_cv_func_closedir_void=no
29171 else
29172   ac_cv_func_closedir_void=yes
29173 fi
29174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29175   conftest.$ac_objext conftest.beam conftest.$ac_ext
29176 fi
29177
29178 fi
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29180 $as_echo "$ac_cv_func_closedir_void" >&6; }
29181 if test $ac_cv_func_closedir_void = yes; then
29182
29183 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29184
29185 fi
29186
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29188 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29189 if ${ac_cv_func_setpgrp_void+:} false; then :
29190   $as_echo_n "(cached) " >&6
29191 else
29192   if test "$cross_compiling" = yes; then :
29193   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29194 else
29195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29196 /* end confdefs.h.  */
29197 $ac_includes_default
29198 int
29199 main ()
29200 {
29201 /* If this system has a BSD-style setpgrp which takes arguments,
29202   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29203   exit successfully. */
29204   return setpgrp (1,1) != -1;
29205   ;
29206   return 0;
29207 }
29208 _ACEOF
29209 if ac_fn_c_try_run "$LINENO"; then :
29210   ac_cv_func_setpgrp_void=no
29211 else
29212   ac_cv_func_setpgrp_void=yes
29213 fi
29214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29215   conftest.$ac_objext conftest.beam conftest.$ac_ext
29216 fi
29217
29218 fi
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29220 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29221 if test $ac_cv_func_setpgrp_void = yes; then
29222
29223 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29224
29225 fi
29226             # AC_FUNC_FNMATCH    dnl use local version
29227
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29229 $as_echo_n "checking for gettext in -lintl... " >&6; }
29230 if ${ac_cv_lib_intl_gettext+:} false; then :
29231   $as_echo_n "(cached) " >&6
29232 else
29233   ac_check_lib_save_LIBS=$LIBS
29234 LIBS="-lintl  $LIBS"
29235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29236 /* end confdefs.h.  */
29237
29238 /* Override any GCC internal prototype to avoid an error.
29239    Use char because int might match the return type of a GCC
29240    builtin and then its argument prototype would still apply.  */
29241 #ifdef __cplusplus
29242 extern "C"
29243 #endif
29244 char gettext ();
29245 int
29246 main ()
29247 {
29248 return gettext ();
29249   ;
29250   return 0;
29251 }
29252 _ACEOF
29253 if ac_fn_c_try_link "$LINENO"; then :
29254   ac_cv_lib_intl_gettext=yes
29255 else
29256   ac_cv_lib_intl_gettext=no
29257 fi
29258 rm -f core conftest.err conftest.$ac_objext \
29259     conftest$ac_exeext conftest.$ac_ext
29260 LIBS=$ac_check_lib_save_LIBS
29261 fi
29262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29263 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29264 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29265   LIBS="$LIBS -lintl"
29266 fi
29267
29268
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29270 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29271 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29272   $as_echo_n "(cached) " >&6
29273 else
29274   ac_check_lib_save_LIBS=$LIBS
29275 LIBS="-lsun  $LIBS"
29276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29277 /* end confdefs.h.  */
29278
29279 /* Override any GCC internal prototype to avoid an error.
29280    Use char because int might match the return type of a GCC
29281    builtin and then its argument prototype would still apply.  */
29282 #ifdef __cplusplus
29283 extern "C"
29284 #endif
29285 char getpwnam ();
29286 int
29287 main ()
29288 {
29289 return getpwnam ();
29290   ;
29291   return 0;
29292 }
29293 _ACEOF
29294 if ac_fn_c_try_link "$LINENO"; then :
29295   ac_cv_lib_sun_getpwnam=yes
29296 else
29297   ac_cv_lib_sun_getpwnam=no
29298 fi
29299 rm -f core conftest.err conftest.$ac_objext \
29300     conftest$ac_exeext conftest.$ac_ext
29301 LIBS=$ac_check_lib_save_LIBS
29302 fi
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29304 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29305 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29306   cat >>confdefs.h <<_ACEOF
29307 #define HAVE_LIBSUN 1
29308 _ACEOF
29309
29310   LIBS="-lsun $LIBS"
29311
29312 fi
29313
29314
29315 for ac_header in zlib.h
29316 do :
29317   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29318 if test "x$ac_cv_header_zlib_h" = xyes; then :
29319   cat >>confdefs.h <<_ACEOF
29320 #define HAVE_ZLIB_H 1
29321 _ACEOF
29322
29323 fi
29324
29325 done
29326
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29328 $as_echo_n "checking for deflate in -lz... " >&6; }
29329 if ${ac_cv_lib_z_deflate+:} false; then :
29330   $as_echo_n "(cached) " >&6
29331 else
29332   ac_check_lib_save_LIBS=$LIBS
29333 LIBS="-lz  $LIBS"
29334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29335 /* end confdefs.h.  */
29336
29337 /* Override any GCC internal prototype to avoid an error.
29338    Use char because int might match the return type of a GCC
29339    builtin and then its argument prototype would still apply.  */
29340 #ifdef __cplusplus
29341 extern "C"
29342 #endif
29343 char deflate ();
29344 int
29345 main ()
29346 {
29347 return deflate ();
29348   ;
29349   return 0;
29350 }
29351 _ACEOF
29352 if ac_fn_c_try_link "$LINENO"; then :
29353   ac_cv_lib_z_deflate=yes
29354 else
29355   ac_cv_lib_z_deflate=no
29356 fi
29357 rm -f core conftest.err conftest.$ac_objext \
29358     conftest$ac_exeext conftest.$ac_ext
29359 LIBS=$ac_check_lib_save_LIBS
29360 fi
29361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29362 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29363 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29364   ZLIBS="-lz"
29365 fi
29366
29367 have_zlib=no
29368 if test x$ZLIBS = x-lz; then
29369    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29370
29371    have_zlib=yes
29372 fi
29373
29374
29375 have_lzo=no
29376 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29377 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29378
29379    ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29380 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29381
29382       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29383 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29384 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29385   $as_echo_n "(cached) " >&6
29386 else
29387   ac_check_lib_save_LIBS=$LIBS
29388 LIBS="-llzo2  $LIBS"
29389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29390 /* end confdefs.h.  */
29391
29392 /* Override any GCC internal prototype to avoid an error.
29393    Use char because int might match the return type of a GCC
29394    builtin and then its argument prototype would still apply.  */
29395 #ifdef __cplusplus
29396 extern "C"
29397 #endif
29398 char lzo1x_1_compress ();
29399 int
29400 main ()
29401 {
29402 return lzo1x_1_compress ();
29403   ;
29404   return 0;
29405 }
29406 _ACEOF
29407 if ac_fn_c_try_link "$LINENO"; then :
29408   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29409 else
29410   ac_cv_lib_lzo2_lzo1x_1_compress=no
29411 fi
29412 rm -f core conftest.err conftest.$ac_objext \
29413     conftest$ac_exeext conftest.$ac_ext
29414 LIBS=$ac_check_lib_save_LIBS
29415 fi
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29417 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29418 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29419
29420          LZOLIBS="-llzo2"
29421
29422 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29423
29424          have_lzo=yes
29425
29426 fi
29427
29428
29429 fi
29430
29431
29432
29433 fi
29434
29435
29436
29437
29438 AFS_CFLAGS=""
29439 AFS_LIBS=""
29440 support_afs=auto
29441 # Check whether --enable-afs was given.
29442 if test "${enable_afs+set}" = set; then :
29443   enableval=$enable_afs;
29444        if test x$enableval = xyes; then
29445           support_afs=yes
29446        elif test x$enableval = xno; then
29447           support_afs=no
29448        fi
29449
29450
29451 fi
29452
29453
29454 have_afs=no
29455 if test x$support_afs = xyes -o x$support_afs = xauto; then
29456
29457 # Check whether --with-afsdir was given.
29458 if test "${with_afsdir+set}" = set; then :
29459   withval=$with_afsdir; with_afsdir=$withval
29460
29461 fi
29462
29463
29464             if test x$with_afsdir = x; then
29465       for root in /usr /usr/local; do
29466          if test -d ${root}/include/afs/ ; then
29467             with_afsdir=${root}
29468             break
29469          fi
29470          if test -d ${root}/include/openafs/afs/ ; then
29471             with_afsdir=${root}
29472             break
29473          fi
29474       done
29475    fi
29476
29477    if test -d ${with_afsdir}/include/afs/ ; then
29478       AFS_CFLAGS="-I${with_afsdir}/include"
29479    else
29480       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29481          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29482       fi
29483    fi
29484
29485    saved_CFLAGS="${CFLAGS}"
29486    saved_CPPFLAGS="${CPPFLAGS}"
29487    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29488    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29489
29490    for ac_header in afs/afsint.h
29491 do :
29492   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29493 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29494   cat >>confdefs.h <<_ACEOF
29495 #define HAVE_AFS_AFSINT_H 1
29496 _ACEOF
29497
29498 fi
29499
29500 done
29501
29502    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29503 /* end confdefs.h.  */
29504
29505           #include <afs/afsint.h>
29506           #include <afs/venus.h>
29507
29508 _ACEOF
29509 if ac_fn_c_try_cpp "$LINENO"; then :
29510
29511 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29512
29513
29514 fi
29515 rm -f conftest.err conftest.i conftest.$ac_ext
29516
29517    CFLAGS="${saved_CFLAGS}"
29518    CPPFLAGS="${saved_CPPFLAGS}"
29519
29520             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29521 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29522    for dir in ${with_afsdir}/lib \
29523               ${with_afsdir}/lib/afs \
29524               ${with_afsdir}/lib/openafs \
29525               ${with_afsdir}/lib64 \
29526               ${with_afsdir}/lib64/afs \
29527               ${with_afsdir}/lib64/openafs
29528    do
29529       for arch_type in .a .so
29530       do
29531          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29532          pkg=$?
29533          if test $pkg = 0; then
29534             have_afs=yes
29535             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29536             break
29537          fi
29538       done
29539    done
29540
29541    if test $have_afs = yes; then
29542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29543 $as_echo "yes" >&6; }
29544    else
29545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546 $as_echo "no" >&6; }
29547    fi
29548
29549    if test x$support_afs = xyes -a $have_afs != yes; then
29550       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29551   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29552    else
29553       if test $have_afs = yes; then
29554
29555 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29556
29557
29558 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29559
29560       fi
29561    fi
29562 fi
29563
29564
29565
29566 support_acl=auto
29567 # Check whether --enable-acl was given.
29568 if test "${enable_acl+set}" = set; then :
29569   enableval=$enable_acl;
29570        if test x$enableval = xyes; then
29571           support_acl=yes
29572        elif test x$enableval = xno; then
29573           support_acl=no
29574        fi
29575
29576
29577 fi
29578
29579
29580 have_acl=no
29581 have_extended_acl=no
29582 if test x$support_acl = xyes -o x$support_acl = xauto; then
29583    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29584 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29585
29586 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29587
29588 fi
29589
29590
29591
29592             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29593 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29594
29595           have_acl=yes
29596
29597
29598 fi
29599
29600
29601             if test $have_acl = no; then
29602       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29603 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29604 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29605   $as_echo_n "(cached) " >&6
29606 else
29607   ac_check_lib_save_LIBS=$LIBS
29608 LIBS="-lacl  $LIBS"
29609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29610 /* end confdefs.h.  */
29611
29612 /* Override any GCC internal prototype to avoid an error.
29613    Use char because int might match the return type of a GCC
29614    builtin and then its argument prototype would still apply.  */
29615 #ifdef __cplusplus
29616 extern "C"
29617 #endif
29618 char acl_get_file ();
29619 int
29620 main ()
29621 {
29622 return acl_get_file ();
29623   ;
29624   return 0;
29625 }
29626 _ACEOF
29627 if ac_fn_c_try_link "$LINENO"; then :
29628   ac_cv_lib_acl_acl_get_file=yes
29629 else
29630   ac_cv_lib_acl_acl_get_file=no
29631 fi
29632 rm -f core conftest.err conftest.$ac_objext \
29633     conftest$ac_exeext conftest.$ac_ext
29634 LIBS=$ac_check_lib_save_LIBS
29635 fi
29636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29637 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29638 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29639
29640              have_acl=yes
29641              if test $have_afs = yes; then
29642                                                                 if test -d /usr/lib64/; then
29643                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29644                 else
29645                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29646                 fi
29647              else
29648                 FDLIBS="-lacl $FDLIBS"
29649              fi
29650
29651
29652 fi
29653
29654    fi
29655
29656                if test $have_acl = no -a \
29657            x${HAVE_OSF1_OS_TRUE} = x; then
29658       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29659 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29660 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29661   $as_echo_n "(cached) " >&6
29662 else
29663   ac_check_lib_save_LIBS=$LIBS
29664 LIBS="-lpacl  $LIBS"
29665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29666 /* end confdefs.h.  */
29667
29668 /* Override any GCC internal prototype to avoid an error.
29669    Use char because int might match the return type of a GCC
29670    builtin and then its argument prototype would still apply.  */
29671 #ifdef __cplusplus
29672 extern "C"
29673 #endif
29674 char acl_get_file ();
29675 int
29676 main ()
29677 {
29678 return acl_get_file ();
29679   ;
29680   return 0;
29681 }
29682 _ACEOF
29683 if ac_fn_c_try_link "$LINENO"; then :
29684   ac_cv_lib_pacl_acl_get_file=yes
29685 else
29686   ac_cv_lib_pacl_acl_get_file=no
29687 fi
29688 rm -f core conftest.err conftest.$ac_objext \
29689     conftest$ac_exeext conftest.$ac_ext
29690 LIBS=$ac_check_lib_save_LIBS
29691 fi
29692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29693 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29694 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29695
29696              have_acl=yes
29697              FDLIBS="-lpacl $FDLIBS"
29698
29699
29700 fi
29701
29702
29703       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29704 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29705       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29706       if test $? = 0; then
29707
29708 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29709
29710          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29711 $as_echo "yes" >&6; }
29712       else
29713          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29714 $as_echo "no" >&6; }
29715       fi
29716    fi
29717
29718             if test $have_acl = yes -a \
29719            x${HAVE_DARWIN_OS_TRUE} = x; then
29720       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29721 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29722       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29723       if test $? = 0; then
29724
29725 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29726
29727          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29728 $as_echo "yes" >&6; }
29729       else
29730          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29731 $as_echo "no" >&6; }
29732       fi
29733    fi
29734
29735             if test $have_acl = yes -a \
29736            x${HAVE_FREEBSD_OS_TRUE} = x; then
29737       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29738 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29739       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29740       if test $? = 0; then
29741
29742 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29743
29744          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29745 $as_echo "yes" >&6; }
29746       else
29747          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29748 $as_echo "no" >&6; }
29749       fi
29750    fi
29751
29752             if test $have_acl = no -a \
29753            x${HAVE_SUN_OS_TRUE} = x; then
29754       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29755 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29756 if ${ac_cv_lib_sec_acltotext+:} false; then :
29757   $as_echo_n "(cached) " >&6
29758 else
29759   ac_check_lib_save_LIBS=$LIBS
29760 LIBS="-lsec  $LIBS"
29761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29762 /* end confdefs.h.  */
29763
29764 /* Override any GCC internal prototype to avoid an error.
29765    Use char because int might match the return type of a GCC
29766    builtin and then its argument prototype would still apply.  */
29767 #ifdef __cplusplus
29768 extern "C"
29769 #endif
29770 char acltotext ();
29771 int
29772 main ()
29773 {
29774 return acltotext ();
29775   ;
29776   return 0;
29777 }
29778 _ACEOF
29779 if ac_fn_c_try_link "$LINENO"; then :
29780   ac_cv_lib_sec_acltotext=yes
29781 else
29782   ac_cv_lib_sec_acltotext=no
29783 fi
29784 rm -f core conftest.err conftest.$ac_objext \
29785     conftest$ac_exeext conftest.$ac_ext
29786 LIBS=$ac_check_lib_save_LIBS
29787 fi
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29789 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29790 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29791
29792              have_acl=yes
29793              FDLIBS="-lsec $FDLIBS"
29794
29795              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29796 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29797 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29798   $as_echo_n "(cached) " >&6
29799 else
29800   ac_check_lib_save_LIBS=$LIBS
29801 LIBS="-lsec  $LIBS"
29802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29803 /* end confdefs.h.  */
29804
29805 /* Override any GCC internal prototype to avoid an error.
29806    Use char because int might match the return type of a GCC
29807    builtin and then its argument prototype would still apply.  */
29808 #ifdef __cplusplus
29809 extern "C"
29810 #endif
29811 char acl_totext ();
29812 int
29813 main ()
29814 {
29815 return acl_totext ();
29816   ;
29817   return 0;
29818 }
29819 _ACEOF
29820 if ac_fn_c_try_link "$LINENO"; then :
29821   ac_cv_lib_sec_acl_totext=yes
29822 else
29823   ac_cv_lib_sec_acl_totext=no
29824 fi
29825 rm -f core conftest.err conftest.$ac_objext \
29826     conftest$ac_exeext conftest.$ac_ext
29827 LIBS=$ac_check_lib_save_LIBS
29828 fi
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29830 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29831 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29832
29833                     have_extended_acl=yes
29834
29835
29836 fi
29837
29838
29839
29840 fi
29841
29842    fi
29843
29844             if test $have_acl = no -a \
29845            x${HAVE_AIX_OS_TRUE} = x; then
29846       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29847 if test "x$ac_cv_func_acl_get" = xyes; then :
29848
29849              have_acl=yes
29850
29851              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29852 if test "x$ac_cv_func_aclx_get" = xyes; then :
29853
29854                     have_extended_acl=yes
29855
29856
29857 fi
29858
29859
29860
29861 fi
29862
29863    fi
29864
29865    if test x$support_acl = xyes -a $have_acl != yes; then
29866       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29867   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29868    else
29869       if test $have_acl = yes; then
29870
29871 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29872
29873       fi
29874
29875       if test $have_extended_acl = yes; then
29876
29877 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29878
29879       fi
29880    fi
29881 fi
29882
29883 support_xattr=auto
29884 # Check whether --enable-xattr was given.
29885 if test "${enable_xattr+set}" = set; then :
29886   enableval=$enable_xattr;
29887        if test x$enableval = xyes; then
29888           support_xattr=yes
29889        elif test x$enableval = xno; then
29890           support_xattr=no
29891        fi
29892
29893
29894 fi
29895
29896
29897 have_xattr=no
29898 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29899                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29900            x${HAVE_NETBSD_OS_TRUE} = x -o \
29901            x${HAVE_OPENBSD_OS_TRUE} = x; then
29902       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29903 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29904
29905 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29906
29907 fi
29908
29909
29910       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29911 if test "x$ac_cv_header_libutil_h" = xyes; then :
29912
29913 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29914
29915 fi
29916
29917
29918       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29919 do :
29920   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29921 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29922 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29923   cat >>confdefs.h <<_ACEOF
29924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29925 _ACEOF
29926
29927              have_xattr=yes
29928
29929 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29930
29931
29932 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29933
29934
29935 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29936
29937
29938
29939 fi
29940 done
29941
29942
29943       if test $have_xattr = no; then
29944          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29945 do :
29946   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29948 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29949   cat >>confdefs.h <<_ACEOF
29950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29951 _ACEOF
29952
29953                 have_xattr=yes
29954
29955 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29956
29957
29958 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29959
29960
29961 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29962
29963
29964
29965 fi
29966 done
29967
29968       fi
29969
29970       if test $have_xattr = yes; then
29971          have_extattr_string_in_libc=no
29972          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29973 do :
29974   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29975 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29976 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29977   cat >>confdefs.h <<_ACEOF
29978 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29979 _ACEOF
29980
29981                 have_extattr_string_in_libc=yes
29982
29983 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29984
29985
29986 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29987
29988
29989
29990 fi
29991 done
29992
29993
29994                                  if test $have_extattr_string_in_libc = no; then
29995             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29996 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29997 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29998   $as_echo_n "(cached) " >&6
29999 else
30000   ac_check_lib_save_LIBS=$LIBS
30001 LIBS="-lutil  $LIBS"
30002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30003 /* end confdefs.h.  */
30004
30005 /* Override any GCC internal prototype to avoid an error.
30006    Use char because int might match the return type of a GCC
30007    builtin and then its argument prototype would still apply.  */
30008 #ifdef __cplusplus
30009 extern "C"
30010 #endif
30011 char extattr_namespace_to_string extattr_string_to_namespace ();
30012 int
30013 main ()
30014 {
30015 return extattr_namespace_to_string extattr_string_to_namespace ();
30016   ;
30017   return 0;
30018 }
30019 _ACEOF
30020 if ac_fn_c_try_link "$LINENO"; then :
30021   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30022 else
30023   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30024 fi
30025 rm -f core conftest.err conftest.$ac_objext \
30026     conftest$ac_exeext conftest.$ac_ext
30027 LIBS=$ac_check_lib_save_LIBS
30028 fi
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30030 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30031 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30032
30033
30034 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30035
30036
30037 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30038
30039                    FDLIBS="-lutil $FDLIBS"
30040
30041
30042 fi
30043
30044          fi
30045       fi
30046    fi
30047
30048                if test $have_xattr = no -a \
30049            x${HAVE_AIX_OS_TRUE} = x; then
30050       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30051 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30052
30053 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30054
30055 fi
30056
30057
30058       for ac_func in llistea lgetea lsetea
30059 do :
30060   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30061 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30062 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30063   cat >>confdefs.h <<_ACEOF
30064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30065 _ACEOF
30066
30067              have_xattr=yes
30068
30069 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30070
30071
30072 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30073
30074
30075 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30076
30077
30078
30079 fi
30080 done
30081
30082
30083       if test $have_xattr = no; then
30084          for ac_func in listea getea setea
30085 do :
30086   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30087 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30088 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30089   cat >>confdefs.h <<_ACEOF
30090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30091 _ACEOF
30092
30093                 have_xattr=yes
30094
30095 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30096
30097
30098 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30099
30100
30101 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30102
30103
30104
30105 fi
30106 done
30107
30108       fi
30109    fi
30110
30111                if test $have_xattr = no -a \
30112            x${HAVE_OSF1_OS_TRUE} = x; then
30113       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30114 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30115
30116 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30117
30118 fi
30119
30120
30121       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30122 do :
30123   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30124 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30125 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30126   cat >>confdefs.h <<_ACEOF
30127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30128 _ACEOF
30129
30130              have_xattr=yes
30131
30132 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30133
30134
30135 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30136
30137
30138 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30139
30140
30141 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30142
30143
30144 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30145
30146
30147
30148 fi
30149 done
30150
30151    fi
30152
30153                if test $have_xattr = no -a \
30154            x${HAVE_SUN_OS_TRUE} = x; then
30155       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30156 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30157
30158 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30159
30160 fi
30161
30162
30163       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30164 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30165
30166 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30167
30168 fi
30169
30170
30171       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30172 if test "x$ac_cv_header_attr_h" = xyes; then :
30173
30174 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30175
30176 fi
30177
30178
30179
30180       for ac_func in openat fstatat unlinkat fchownat futimesat
30181 do :
30182   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30184 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30185   cat >>confdefs.h <<_ACEOF
30186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30187 _ACEOF
30188
30189              have_xattr=yes
30190
30191 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30192
30193
30194 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30195
30196
30197 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30198
30199
30200 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30201
30202
30203 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30204
30205
30206
30207 fi
30208 done
30209
30210
30211       if test $have_xattr = yes; then
30212          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30213 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30214 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30215   $as_echo_n "(cached) " >&6
30216 else
30217   ac_check_lib_save_LIBS=$LIBS
30218 LIBS="-lnvpair  $LIBS"
30219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30220 /* end confdefs.h.  */
30221
30222 /* Override any GCC internal prototype to avoid an error.
30223    Use char because int might match the return type of a GCC
30224    builtin and then its argument prototype would still apply.  */
30225 #ifdef __cplusplus
30226 extern "C"
30227 #endif
30228 char nvlist_next_nvpair ();
30229 int
30230 main ()
30231 {
30232 return nvlist_next_nvpair ();
30233   ;
30234   return 0;
30235 }
30236 _ACEOF
30237 if ac_fn_c_try_link "$LINENO"; then :
30238   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30239 else
30240   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30241 fi
30242 rm -f core conftest.err conftest.$ac_objext \
30243     conftest$ac_exeext conftest.$ac_ext
30244 LIBS=$ac_check_lib_save_LIBS
30245 fi
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30247 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30248 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30249
30250
30251 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30252
30253                 FDLIBS="-lnvpair $FDLIBS"
30254
30255
30256 fi
30257
30258       fi
30259    fi
30260
30261             if test $have_xattr = no; then
30262       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30263 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30264
30265 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30266
30267 fi
30268
30269
30270       for ac_func in llistxattr lgetxattr lsetxattr
30271 do :
30272   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30274 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30275   cat >>confdefs.h <<_ACEOF
30276 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30277 _ACEOF
30278
30279              have_xattr=yes
30280
30281 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30282
30283
30284 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30285
30286
30287 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30288
30289
30290
30291 fi
30292 done
30293
30294
30295       if test $have_xattr = no; then
30296          for ac_func in listxattr getxattr setxattr
30297 do :
30298   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30299 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30300 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30301   cat >>confdefs.h <<_ACEOF
30302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30303 _ACEOF
30304
30305                 have_xattr=yes
30306
30307 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30308
30309
30310 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30311
30312
30313 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30314
30315
30316
30317 fi
30318 done
30319
30320       fi
30321    fi
30322
30323    if test x$support_xattr = xyes -a $have_xattr != yes; then
30324       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30325   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30326    else
30327       if test $have_xattr = yes; then
30328
30329 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30330
30331       fi
30332    fi
30333 fi
30334
30335 PTHREAD_LIB=""
30336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30337 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30338 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30339   $as_echo_n "(cached) " >&6
30340 else
30341   ac_check_lib_save_LIBS=$LIBS
30342 LIBS="-lpthread  $LIBS"
30343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30344 /* end confdefs.h.  */
30345
30346 /* Override any GCC internal prototype to avoid an error.
30347    Use char because int might match the return type of a GCC
30348    builtin and then its argument prototype would still apply.  */
30349 #ifdef __cplusplus
30350 extern "C"
30351 #endif
30352 char pthread_create ();
30353 int
30354 main ()
30355 {
30356 return pthread_create ();
30357   ;
30358   return 0;
30359 }
30360 _ACEOF
30361 if ac_fn_c_try_link "$LINENO"; then :
30362   ac_cv_lib_pthread_pthread_create=yes
30363 else
30364   ac_cv_lib_pthread_pthread_create=no
30365 fi
30366 rm -f core conftest.err conftest.$ac_objext \
30367     conftest$ac_exeext conftest.$ac_ext
30368 LIBS=$ac_check_lib_save_LIBS
30369 fi
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30371 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30372 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30373   PTHREAD_LIB="-lpthread"
30374 else
30375
30376        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30377 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30378 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30379   $as_echo_n "(cached) " >&6
30380 else
30381   ac_check_lib_save_LIBS=$LIBS
30382 LIBS="-lpthreads  $LIBS"
30383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30384 /* end confdefs.h.  */
30385
30386 /* Override any GCC internal prototype to avoid an error.
30387    Use char because int might match the return type of a GCC
30388    builtin and then its argument prototype would still apply.  */
30389 #ifdef __cplusplus
30390 extern "C"
30391 #endif
30392 char pthread_create ();
30393 int
30394 main ()
30395 {
30396 return pthread_create ();
30397   ;
30398   return 0;
30399 }
30400 _ACEOF
30401 if ac_fn_c_try_link "$LINENO"; then :
30402   ac_cv_lib_pthreads_pthread_create=yes
30403 else
30404   ac_cv_lib_pthreads_pthread_create=no
30405 fi
30406 rm -f core conftest.err conftest.$ac_objext \
30407     conftest$ac_exeext conftest.$ac_ext
30408 LIBS=$ac_check_lib_save_LIBS
30409 fi
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30411 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30412 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30413   PTHREAD_LIB="-lpthreads"
30414 else
30415
30416               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30417 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30418 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30419   $as_echo_n "(cached) " >&6
30420 else
30421   ac_check_lib_save_LIBS=$LIBS
30422 LIBS="-lc_r  $LIBS"
30423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30424 /* end confdefs.h.  */
30425
30426 /* Override any GCC internal prototype to avoid an error.
30427    Use char because int might match the return type of a GCC
30428    builtin and then its argument prototype would still apply.  */
30429 #ifdef __cplusplus
30430 extern "C"
30431 #endif
30432 char pthread_create ();
30433 int
30434 main ()
30435 {
30436 return pthread_create ();
30437   ;
30438   return 0;
30439 }
30440 _ACEOF
30441 if ac_fn_c_try_link "$LINENO"; then :
30442   ac_cv_lib_c_r_pthread_create=yes
30443 else
30444   ac_cv_lib_c_r_pthread_create=no
30445 fi
30446 rm -f core conftest.err conftest.$ac_objext \
30447     conftest$ac_exeext conftest.$ac_ext
30448 LIBS=$ac_check_lib_save_LIBS
30449 fi
30450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30451 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30452 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30453   PTHREAD_LIB="-lc_r"
30454 else
30455
30456                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30457 if test "x$ac_cv_func_pthread_create" = xyes; then :
30458
30459 fi
30460
30461
30462
30463 fi
30464
30465
30466
30467 fi
30468
30469
30470
30471 fi
30472
30473
30474 for ac_header in sys/prctl.h sys/capability.h
30475 do :
30476   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30479   cat >>confdefs.h <<_ACEOF
30480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30481 _ACEOF
30482
30483 fi
30484
30485 done
30486
30487 for ac_func in prctl setreuid
30488 do :
30489   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30492   cat >>confdefs.h <<_ACEOF
30493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30494 _ACEOF
30495
30496 fi
30497 done
30498
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30500 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30501 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30502   $as_echo_n "(cached) " >&6
30503 else
30504   ac_check_lib_save_LIBS=$LIBS
30505 LIBS="-lcap  $LIBS"
30506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30507 /* end confdefs.h.  */
30508
30509 /* Override any GCC internal prototype to avoid an error.
30510    Use char because int might match the return type of a GCC
30511    builtin and then its argument prototype would still apply.  */
30512 #ifdef __cplusplus
30513 extern "C"
30514 #endif
30515 char cap_set_proc ();
30516 int
30517 main ()
30518 {
30519 return cap_set_proc ();
30520   ;
30521   return 0;
30522 }
30523 _ACEOF
30524 if ac_fn_c_try_link "$LINENO"; then :
30525   ac_cv_lib_cap_cap_set_proc=yes
30526 else
30527   ac_cv_lib_cap_cap_set_proc=no
30528 fi
30529 rm -f core conftest.err conftest.$ac_objext \
30530     conftest$ac_exeext conftest.$ac_ext
30531 LIBS=$ac_check_lib_save_LIBS
30532 fi
30533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30534 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30535 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30536   CAP_LIBS="-lcap"
30537 else
30538   CAP_LIBS=
30539 fi
30540
30541 if test x$CAP_LIBS = x-lcap; then
30542
30543 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30544
30545 fi
30546
30547
30548
30549 $as_echo "#define FDLIBS 1" >>confdefs.h
30550
30551
30552 CFLAGS=${CFLAGS--O}
30553
30554 if test x$have_gcc = xyes ; then
30555    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30556    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30557 fi
30558 LDFLAGS=${LDFLAGS--O}
30559 CPPFLAGS="$CPPFLAGS"
30560 CFLAGS="$CFLAGS"
30561
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576 OBJLIST=
30577
30578
30579 lld="lld"
30580 llu="llu"
30581
30582 WCFLAGS=
30583 WLDFLAGS=
30584
30585 PFILES="platforms/Makefile"
30586 PSCMD="ps -e"
30587 WIN32=
30588 MACOSX=
30589 COMPRESS_MANPAGES=yes
30590
30591 case "$DISTNAME" in
30592 aix)
30593    DISTVER=`uname -r`
30594    PSCMD="ps -e -o pid,comm"
30595    PFILES="${PFILES} \
30596       platforms/aix/Makefile"
30597    TAPEDRIVE="/dev/rmt0.1"
30598   ;;
30599 alpha)
30600    DISTVER=`uname -r`
30601    PTHREAD_LIB="-lpthread -lexc"
30602    if test "${CC}" = "gcc" ; then
30603       lld="lld"
30604       llu="llu"
30605    else
30606       lld="ld"
30607       llu="lu"
30608    fi
30609    TAPEDRIVE="/dev/nrmt0"
30610   ;;
30611 bsdi)
30612    DISTVER=`uname -a |awk '{print $3}'`
30613    TAPEDRIVE="/dev/nrmt0"
30614    PTHREAD_LIB="-pthread"
30615    CFLAGS="${CFLAGS} -pthread"
30616    PSCMD="ps -ax -o pid,command"
30617    lld="qd"
30618    llu="qu"
30619    PFILES="${PFILES} \
30620        platforms/bsdi/Makefile \
30621        platforms/bsdi/bacula-fd \
30622        platforms/bsdi/bacula-sd \
30623        platforms/bsdi/bacula-dir"
30624    largefile_support="yes"
30625   ;;
30626 cygwin)
30627    DISTVER=`uname -a |awk '{print $3}'`
30628    TAPEDRIVE="/dev/nrst0"
30629    WIN32=win32
30630    WCFLAGS="-mwindows"
30631    WLDFLAGS="-mwindows"
30632   ;;
30633 darwin)
30634    DISTVER=`uname -r`
30635    TAPEDRIVE="/dev/nst0"
30636    PSCMD="ps -e -o pid,command"
30637    MACOSX=macosx
30638    PFILES="${PFILES} \
30639       platforms/darwin/Makefile"
30640   ;;
30641 osx)
30642    DISTVER=`uname -r`
30643    TAPEDRIVE="/dev/nst0"
30644    PSCMD="ps -e -o pid,command"
30645    MACOSX=macosx
30646    PFILES="${PFILES} \
30647       platforms/osx/Makefile"
30648   ;;
30649 debian)
30650    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30651       DISTNAME="ubuntu"
30652    fi
30653    DISTVER=`cat /etc/debian_version`
30654    if test -f /etc/lsb-release ; then
30655       . /etc/lsb-release
30656       if test "x$DISTRIB_ID" != "x" ; then
30657          DISTNAME=$DISTRIB_ID
30658       fi
30659       if test "x$DISTRIB_RELEASE" != "x" ; then
30660          DISTVER=$DISTRIB_RELEASE
30661       fi
30662    fi
30663    if test "$DISTNAME" = "Ubuntu" ; then
30664       DISTNAME="ubuntu"
30665    fi
30666    TAPEDRIVE="/dev/nst0"
30667    PSCMD="ps -e -o pid,command"
30668    if test "$DISTNAME" = "ubuntu" ; then
30669       PFILES="${PFILES} \
30670          platforms/ubuntu/Makefile \
30671          platforms/ubuntu/bacula-fd \
30672          platforms/ubuntu/bacula-sd \
30673          platforms/ubuntu/bacula-dir"
30674    else
30675       PFILES="${PFILES} \
30676          platforms/debian/Makefile \
30677          platforms/debian/bacula-fd \
30678          platforms/debian/bacula-sd \
30679          platforms/debian/bacula-dir"
30680    fi
30681   ;;
30682 freebsd)
30683    DISTVER=`uname -a |awk '{print $3}'`
30684    VER=`echo $DISTVER | cut -c 1`
30685    if test x$VER = x4 ; then
30686       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30687       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30688    fi
30689    lld="qd"
30690    llu="qu"
30691    TAPEDRIVE="/dev/nrsa0"
30692    PSCMD="ps -ax -o pid,command"
30693    PFILES="${PFILES} \
30694        platforms/freebsd/Makefile \
30695        platforms/freebsd/bacula-fd \
30696        platforms/freebsd/bacula-sd \
30697        platforms/freebsd/bacula-dir"
30698    largefile_support="yes"
30699   ;;
30700 hpux)
30701    PSCMD="UNIX95=1; ps -e -o pid,comm"
30702    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30703    DISTVER=`uname -r`
30704    TAPEDRIVE="/dev/rmt/0hnb"
30705    PTHREAD_LIB="-lpthread"
30706    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30707
30708   ;;
30709 irix)
30710    DISTVER=`uname -r`
30711    TAPEDRIVE="/dev/rmt/0cbn"
30712    PSCMD="ps -e -o pid,comm"
30713    PFILES="${PFILES} \
30714        platforms/irix/Makefile \
30715        platforms/irix/bacula-fd \
30716        platforms/irix/bacula-sd \
30717        platforms/irix/bacula-dir"
30718   ;;
30719 netbsd)
30720    DISTVER=`uname -a |awk '{print $3}'`
30721    lld="qd"
30722    llu="qu"
30723    TAPEDRIVE="/dev/nrst0"
30724    PSCMD="ps -ax -o pid,command"
30725    PTHREAD_LIB="-pthread"
30726    CFLAGS="${CFLAGS} -pthread"
30727   ;;
30728 openbsd)
30729    DISTVER=`uname -a |awk '{print $3}'`
30730    lld="qd"
30731    llu="qu"
30732    TAPEDRIVE="/dev/nrst0"
30733    PSCMD="ps -ax -o pid,command"
30734    PTHREAD_LIB="-pthread"
30735    CFLAGS="${CFLAGS} -pthread"
30736    PFILES="${PFILES} \
30737        platforms/openbsd/Makefile \
30738        platforms/openbsd/bacula-fd \
30739        platforms/openbsd/bacula-sd \
30740        platforms/openbsd/bacula-dir"
30741   ;;
30742 redhat)
30743    if test -f /etc/whitebox-release ; then
30744       f=/etc/whitebox-release
30745    else
30746       f=/etc/redhat-release
30747    fi
30748    if test `cat $f | grep release |\
30749          cut -f 3 -d ' '`x = "Enterprise"x ; then
30750       DISTVER="Enterprise "`cat $f | grep release |\
30751           cut -f 6 -d ' '`
30752    else
30753        DISTVER=`cat /etc/redhat-release | grep release |\
30754            cut -f 5 -d ' '`
30755    fi
30756    TAPEDRIVE="/dev/nst0"
30757    PSCMD="ps -e -o pid,command"
30758    PFILES="${PFILES} \
30759        platforms/redhat/Makefile \
30760        platforms/redhat/bacula-fd \
30761        platforms/redhat/bacula-sd \
30762        platforms/redhat/bacula-dir
30763        "
30764   ;;
30765 mandrake)
30766    DISTVER=`cat /etc/mandrake-release | grep release |\
30767       cut -f 5 -d ' '`
30768    TAPEDRIVE="/dev/nst0"
30769    PSCMD="ps -e -o pid,command"
30770    PFILES="${PFILES} \
30771        platforms/mandrake/Makefile \
30772        platforms/mandrake/bacula-fd \
30773        platforms/mandrake/bacula-sd \
30774        platforms/mandrake/bacula-dir \
30775        "
30776   ;;
30777 gentoo)
30778    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30779    TAPEDRIVE="/dev/nst0"
30780    PSCMD="ps -e -o pid,command"
30781    PFILES="${PFILES} \
30782        platforms/gentoo/Makefile \
30783     platforms/gentoo/bacula-init \
30784        platforms/gentoo/bacula-fd \
30785        platforms/gentoo/bacula-sd \
30786        platforms/gentoo/bacula-dir"
30787   ;;
30788 slackware)
30789    DISTVER=`cat /etc/slackware-version`
30790    TAPEDRIVE="/dev/nst0"
30791    PSCMD="ps -e -o pid,command"
30792    PFILES="${PFILES} \
30793        platforms/slackware/Makefile \
30794        platforms/slackware/rc.bacula-fd \
30795        platforms/slackware/rc.bacula-sd \
30796        platforms/slackware/rc.bacula-dir\
30797        platforms/slackware/functions.bacula"
30798   ;;
30799 solaris)
30800    DISTVER=`uname -r`
30801    TAPEDRIVE="/dev/rmt/0cbn"
30802    PSCMD="ps -e -o pid,comm"
30803    PFILES="${PFILES} \
30804        platforms/solaris/Makefile \
30805        platforms/solaris/bacula-fd \
30806        platforms/solaris/bacula-sd \
30807        platforms/solaris/bacula-dir"
30808    COMPRESS_MANPAGES=
30809    case ${DISTVER} in
30810    5.5|5.6)
30811       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30812
30813       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30814
30815       ;;
30816    5.7|5.8)
30817       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30818
30819       ;;
30820    *)
30821       ;;
30822    esac
30823    LIBS="$LIBS -lresolv -lrt"
30824   ;;
30825 suse)
30826    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30827        cut -f 3 -d ' '`
30828    TAPEDRIVE="/dev/nst0"
30829    PSCMD="ps -e -o pid,command"
30830    PFILES="${PFILES} \
30831        platforms/suse/Makefile \
30832        platforms/suse/bacula-fd \
30833        platforms/suse/bacula-sd \
30834        platforms/suse/bacula-dir \
30835        platforms/suse/bacula"
30836   ;;
30837 suse5)
30838    DISTNAME=suse
30839    DISTVER=5.x
30840    TAPEDRIVE="/dev/nst0"
30841    PSCMD="ps -e -o pid,command"
30842    PFILES="${PFILES} \
30843        platforms/suse/Makefile \
30844        platforms/suse/bacula-fd \
30845        platforms/suse/bacula-sd \
30846        platforms/suse/bacula-dir"
30847   ;;
30848 unknown)
30849    DISTVER=unknown
30850    TAPEDRIVE="/dev/nst0"
30851   ;;
30852 *)
30853   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30854   ;;
30855 esac
30856
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30858 $as_echo_n "checking for systemd support... " >&6; }
30859
30860 # Check whether --with-systemd was given.
30861 if test "${with_systemd+set}" = set; then :
30862   withval=$with_systemd;
30863        if test "$withval" != "no"; then
30864            if test "$withval" = "yes"; then
30865                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30866            else
30867                SYSTEMD_UNITDIR="${withval}"
30868            fi
30869
30870            PFILES="${PFILES} \
30871                    platforms/systemd/Makefile \
30872                    platforms/systemd/bacula.conf \
30873                    platforms/systemd/bacula-dir.service \
30874                    platforms/systemd/bacula-fd.service \
30875                    platforms/systemd/bacula-sd.service"
30876
30877 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30878
30879            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30880 $as_echo "yes" >&6; }
30881            support_systemd="yes"
30882        else
30883            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30884 $as_echo "no" >&6; }
30885            support_systemd="no"
30886        fi
30887
30888 else
30889
30890        support_systemd="no"
30891        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30892 $as_echo "no" >&6; }
30893
30894
30895 fi
30896
30897
30898
30899
30900
30901 LIBS="$PTHREAD_LIB $LIBS"
30902
30903 cat >>confdefs.h <<_ACEOF
30904 #define lld "$lld"
30905 _ACEOF
30906
30907 cat >>confdefs.h <<_ACEOF
30908 #define llu "$llu"
30909 _ACEOF
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919 MCOMMON=./autoconf/Make.common
30920
30921
30922 if test "x${subsysdir}" = "x${sbindir}" ; then
30923    echo " "
30924    echo " "
30925    echo "You have set both --sbindir and --with-subsys-dir"
30926    echo "  equal to: ${subsysdir} "
30927    echo "This is not permitted. Please reconfigure."
30928    echo " "
30929    echo "Aborting configuration ..."
30930    echo " "
30931    echo " "
30932    exit 1
30933 fi
30934
30935 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 platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec $PFILES"
30936
30937 ac_config_commands="$ac_config_commands default"
30938
30939 cat >confcache <<\_ACEOF
30940 # This file is a shell script that caches the results of configure
30941 # tests run on this system so they can be shared between configure
30942 # scripts and configure runs, see configure's option --config-cache.
30943 # It is not useful on other systems.  If it contains results you don't
30944 # want to keep, you may remove or edit it.
30945 #
30946 # config.status only pays attention to the cache file if you give it
30947 # the --recheck option to rerun configure.
30948 #
30949 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30951 # following values.
30952
30953 _ACEOF
30954
30955 # The following way of writing the cache mishandles newlines in values,
30956 # but we know of no workaround that is simple, portable, and efficient.
30957 # So, we kill variables containing newlines.
30958 # Ultrix sh set writes to stderr and can't be redirected directly,
30959 # and sets the high bit in the cache file unless we assign to the vars.
30960 (
30961   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30962     eval ac_val=\$$ac_var
30963     case $ac_val in #(
30964     *${as_nl}*)
30965       case $ac_var in #(
30966       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30967 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30968       esac
30969       case $ac_var in #(
30970       _ | IFS | as_nl) ;; #(
30971       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30972       *) { eval $ac_var=; unset $ac_var;} ;;
30973       esac ;;
30974     esac
30975   done
30976
30977   (set) 2>&1 |
30978     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30979     *${as_nl}ac_space=\ *)
30980       # `set' does not quote correctly, so add quotes: double-quote
30981       # substitution turns \\\\ into \\, and sed turns \\ into \.
30982       sed -n \
30983         "s/'/'\\\\''/g;
30984           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30985       ;; #(
30986     *)
30987       # `set' quotes correctly as required by POSIX, so do not add quotes.
30988       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30989       ;;
30990     esac |
30991     sort
30992 ) |
30993   sed '
30994      /^ac_cv_env_/b end
30995      t clear
30996      :clear
30997      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30998      t end
30999      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31000      :end' >>confcache
31001 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31002   if test -w "$cache_file"; then
31003     if test "x$cache_file" != "x/dev/null"; then
31004       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31005 $as_echo "$as_me: updating cache $cache_file" >&6;}
31006       if test ! -f "$cache_file" || test -h "$cache_file"; then
31007         cat confcache >"$cache_file"
31008       else
31009         case $cache_file in #(
31010         */* | ?:*)
31011           mv -f confcache "$cache_file"$$ &&
31012           mv -f "$cache_file"$$ "$cache_file" ;; #(
31013         *)
31014           mv -f confcache "$cache_file" ;;
31015         esac
31016       fi
31017     fi
31018   else
31019     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31020 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31021   fi
31022 fi
31023 rm -f confcache
31024
31025 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31026 # Let make expand exec_prefix.
31027 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31028
31029 DEFS=-DHAVE_CONFIG_H
31030
31031 ac_libobjs=
31032 ac_ltlibobjs=
31033 U=
31034 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31035   # 1. Remove the extension, and $U if already installed.
31036   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31037   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31038   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31039   #    will be set to the directory where LIBOBJS objects are built.
31040   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31041   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31042 done
31043 LIBOBJS=$ac_libobjs
31044
31045 LTLIBOBJS=$ac_ltlibobjs
31046
31047
31048
31049
31050 : "${CONFIG_STATUS=./config.status}"
31051 ac_write_fail=0
31052 ac_clean_files_save=$ac_clean_files
31053 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31055 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31056 as_write_fail=0
31057 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31058 #! $SHELL
31059 # Generated by $as_me.
31060 # Run this file to recreate the current configuration.
31061 # Compiler output produced by configure, useful for debugging
31062 # configure, is in config.log if it exists.
31063
31064 debug=false
31065 ac_cs_recheck=false
31066 ac_cs_silent=false
31067
31068 SHELL=\${CONFIG_SHELL-$SHELL}
31069 export SHELL
31070 _ASEOF
31071 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31072 ## -------------------- ##
31073 ## M4sh Initialization. ##
31074 ## -------------------- ##
31075
31076 # Be more Bourne compatible
31077 DUALCASE=1; export DUALCASE # for MKS sh
31078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31079   emulate sh
31080   NULLCMD=:
31081   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31082   # is contrary to our usage.  Disable this feature.
31083   alias -g '${1+"$@"}'='"$@"'
31084   setopt NO_GLOB_SUBST
31085 else
31086   case `(set -o) 2>/dev/null` in #(
31087   *posix*) :
31088     set -o posix ;; #(
31089   *) :
31090      ;;
31091 esac
31092 fi
31093
31094
31095 as_nl='
31096 '
31097 export as_nl
31098 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31099 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31101 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31102 # Prefer a ksh shell builtin over an external printf program on Solaris,
31103 # but without wasting forks for bash or zsh.
31104 if test -z "$BASH_VERSION$ZSH_VERSION" \
31105     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31106   as_echo='print -r --'
31107   as_echo_n='print -rn --'
31108 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31109   as_echo='printf %s\n'
31110   as_echo_n='printf %s'
31111 else
31112   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31113     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31114     as_echo_n='/usr/ucb/echo -n'
31115   else
31116     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31117     as_echo_n_body='eval
31118       arg=$1;
31119       case $arg in #(
31120       *"$as_nl"*)
31121         expr "X$arg" : "X\\(.*\\)$as_nl";
31122         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31123       esac;
31124       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31125     '
31126     export as_echo_n_body
31127     as_echo_n='sh -c $as_echo_n_body as_echo'
31128   fi
31129   export as_echo_body
31130   as_echo='sh -c $as_echo_body as_echo'
31131 fi
31132
31133 # The user is always right.
31134 if test "${PATH_SEPARATOR+set}" != set; then
31135   PATH_SEPARATOR=:
31136   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31137     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31138       PATH_SEPARATOR=';'
31139   }
31140 fi
31141
31142
31143 # IFS
31144 # We need space, tab and new line, in precisely that order.  Quoting is
31145 # there to prevent editors from complaining about space-tab.
31146 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31147 # splitting by setting IFS to empty value.)
31148 IFS=" ""        $as_nl"
31149
31150 # Find who we are.  Look in the path if we contain no directory separator.
31151 as_myself=
31152 case $0 in #((
31153   *[\\/]* ) as_myself=$0 ;;
31154   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31155 for as_dir in $PATH
31156 do
31157   IFS=$as_save_IFS
31158   test -z "$as_dir" && as_dir=.
31159     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31160   done
31161 IFS=$as_save_IFS
31162
31163      ;;
31164 esac
31165 # We did not find ourselves, most probably we were run as `sh COMMAND'
31166 # in which case we are not to be found in the path.
31167 if test "x$as_myself" = x; then
31168   as_myself=$0
31169 fi
31170 if test ! -f "$as_myself"; then
31171   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31172   exit 1
31173 fi
31174
31175 # Unset variables that we do not need and which cause bugs (e.g. in
31176 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31177 # suppresses any "Segmentation fault" message there.  '((' could
31178 # trigger a bug in pdksh 5.2.14.
31179 for as_var in BASH_ENV ENV MAIL MAILPATH
31180 do eval test x\${$as_var+set} = xset \
31181   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31182 done
31183 PS1='$ '
31184 PS2='> '
31185 PS4='+ '
31186
31187 # NLS nuisances.
31188 LC_ALL=C
31189 export LC_ALL
31190 LANGUAGE=C
31191 export LANGUAGE
31192
31193 # CDPATH.
31194 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31195
31196
31197 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31198 # ----------------------------------------
31199 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31200 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31201 # script with STATUS, using 1 if that was 0.
31202 as_fn_error ()
31203 {
31204   as_status=$1; test $as_status -eq 0 && as_status=1
31205   if test "$4"; then
31206     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31207     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31208   fi
31209   $as_echo "$as_me: error: $2" >&2
31210   as_fn_exit $as_status
31211 } # as_fn_error
31212
31213
31214 # as_fn_set_status STATUS
31215 # -----------------------
31216 # Set $? to STATUS, without forking.
31217 as_fn_set_status ()
31218 {
31219   return $1
31220 } # as_fn_set_status
31221
31222 # as_fn_exit STATUS
31223 # -----------------
31224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31225 as_fn_exit ()
31226 {
31227   set +e
31228   as_fn_set_status $1
31229   exit $1
31230 } # as_fn_exit
31231
31232 # as_fn_unset VAR
31233 # ---------------
31234 # Portably unset VAR.
31235 as_fn_unset ()
31236 {
31237   { eval $1=; unset $1;}
31238 }
31239 as_unset=as_fn_unset
31240 # as_fn_append VAR VALUE
31241 # ----------------------
31242 # Append the text in VALUE to the end of the definition contained in VAR. Take
31243 # advantage of any shell optimizations that allow amortized linear growth over
31244 # repeated appends, instead of the typical quadratic growth present in naive
31245 # implementations.
31246 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31247   eval 'as_fn_append ()
31248   {
31249     eval $1+=\$2
31250   }'
31251 else
31252   as_fn_append ()
31253   {
31254     eval $1=\$$1\$2
31255   }
31256 fi # as_fn_append
31257
31258 # as_fn_arith ARG...
31259 # ------------------
31260 # Perform arithmetic evaluation on the ARGs, and store the result in the
31261 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31262 # must be portable across $(()) and expr.
31263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31264   eval 'as_fn_arith ()
31265   {
31266     as_val=$(( $* ))
31267   }'
31268 else
31269   as_fn_arith ()
31270   {
31271     as_val=`expr "$@" || test $? -eq 1`
31272   }
31273 fi # as_fn_arith
31274
31275
31276 if expr a : '\(a\)' >/dev/null 2>&1 &&
31277    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31278   as_expr=expr
31279 else
31280   as_expr=false
31281 fi
31282
31283 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31284   as_basename=basename
31285 else
31286   as_basename=false
31287 fi
31288
31289 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31290   as_dirname=dirname
31291 else
31292   as_dirname=false
31293 fi
31294
31295 as_me=`$as_basename -- "$0" ||
31296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31297          X"$0" : 'X\(//\)$' \| \
31298          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31299 $as_echo X/"$0" |
31300     sed '/^.*\/\([^/][^/]*\)\/*$/{
31301             s//\1/
31302             q
31303           }
31304           /^X\/\(\/\/\)$/{
31305             s//\1/
31306             q
31307           }
31308           /^X\/\(\/\).*/{
31309             s//\1/
31310             q
31311           }
31312           s/.*/./; q'`
31313
31314 # Avoid depending upon Character Ranges.
31315 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31316 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31317 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31318 as_cr_digits='0123456789'
31319 as_cr_alnum=$as_cr_Letters$as_cr_digits
31320
31321 ECHO_C= ECHO_N= ECHO_T=
31322 case `echo -n x` in #(((((
31323 -n*)
31324   case `echo 'xy\c'` in
31325   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31326   xy)  ECHO_C='\c';;
31327   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31328        ECHO_T=' ';;
31329   esac;;
31330 *)
31331   ECHO_N='-n';;
31332 esac
31333
31334 rm -f conf$$ conf$$.exe conf$$.file
31335 if test -d conf$$.dir; then
31336   rm -f conf$$.dir/conf$$.file
31337 else
31338   rm -f conf$$.dir
31339   mkdir conf$$.dir 2>/dev/null
31340 fi
31341 if (echo >conf$$.file) 2>/dev/null; then
31342   if ln -s conf$$.file conf$$ 2>/dev/null; then
31343     as_ln_s='ln -s'
31344     # ... but there are two gotchas:
31345     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31346     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31347     # In both cases, we have to default to `cp -p'.
31348     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31349       as_ln_s='cp -p'
31350   elif ln conf$$.file conf$$ 2>/dev/null; then
31351     as_ln_s=ln
31352   else
31353     as_ln_s='cp -p'
31354   fi
31355 else
31356   as_ln_s='cp -p'
31357 fi
31358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31359 rmdir conf$$.dir 2>/dev/null
31360
31361
31362 # as_fn_mkdir_p
31363 # -------------
31364 # Create "$as_dir" as a directory, including parents if necessary.
31365 as_fn_mkdir_p ()
31366 {
31367
31368   case $as_dir in #(
31369   -*) as_dir=./$as_dir;;
31370   esac
31371   test -d "$as_dir" || eval $as_mkdir_p || {
31372     as_dirs=
31373     while :; do
31374       case $as_dir in #(
31375       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31376       *) as_qdir=$as_dir;;
31377       esac
31378       as_dirs="'$as_qdir' $as_dirs"
31379       as_dir=`$as_dirname -- "$as_dir" ||
31380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31381          X"$as_dir" : 'X\(//\)[^/]' \| \
31382          X"$as_dir" : 'X\(//\)$' \| \
31383          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31384 $as_echo X"$as_dir" |
31385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31386             s//\1/
31387             q
31388           }
31389           /^X\(\/\/\)[^/].*/{
31390             s//\1/
31391             q
31392           }
31393           /^X\(\/\/\)$/{
31394             s//\1/
31395             q
31396           }
31397           /^X\(\/\).*/{
31398             s//\1/
31399             q
31400           }
31401           s/.*/./; q'`
31402       test -d "$as_dir" && break
31403     done
31404     test -z "$as_dirs" || eval "mkdir $as_dirs"
31405   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31406
31407
31408 } # as_fn_mkdir_p
31409 if mkdir -p . 2>/dev/null; then
31410   as_mkdir_p='mkdir -p "$as_dir"'
31411 else
31412   test -d ./-p && rmdir ./-p
31413   as_mkdir_p=false
31414 fi
31415
31416 if test -x / >/dev/null 2>&1; then
31417   as_test_x='test -x'
31418 else
31419   if ls -dL / >/dev/null 2>&1; then
31420     as_ls_L_option=L
31421   else
31422     as_ls_L_option=
31423   fi
31424   as_test_x='
31425     eval sh -c '\''
31426       if test -d "$1"; then
31427         test -d "$1/.";
31428       else
31429         case $1 in #(
31430         -*)set "./$1";;
31431         esac;
31432         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31433         ???[sx]*):;;*)false;;esac;fi
31434     '\'' sh
31435   '
31436 fi
31437 as_executable_p=$as_test_x
31438
31439 # Sed expression to map a string onto a valid CPP name.
31440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31441
31442 # Sed expression to map a string onto a valid variable name.
31443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31444
31445
31446 exec 6>&1
31447 ## ----------------------------------- ##
31448 ## Main body of $CONFIG_STATUS script. ##
31449 ## ----------------------------------- ##
31450 _ASEOF
31451 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31452
31453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31454 # Save the log message, to keep $0 and so on meaningful, and to
31455 # report actual input values of CONFIG_FILES etc. instead of their
31456 # values after options handling.
31457 ac_log="
31458 This file was extended by bacula $as_me 5.2.9, which was
31459 generated by GNU Autoconf 2.68.  Invocation command line was
31460
31461   CONFIG_FILES    = $CONFIG_FILES
31462   CONFIG_HEADERS  = $CONFIG_HEADERS
31463   CONFIG_LINKS    = $CONFIG_LINKS
31464   CONFIG_COMMANDS = $CONFIG_COMMANDS
31465   $ $0 $@
31466
31467 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31468 "
31469
31470 _ACEOF
31471
31472 case $ac_config_files in *"
31473 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31474 esac
31475
31476 case $ac_config_headers in *"
31477 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31478 esac
31479
31480
31481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31482 # Files that config.status was made for.
31483 config_files="$ac_config_files"
31484 config_headers="$ac_config_headers"
31485 config_commands="$ac_config_commands"
31486
31487 _ACEOF
31488
31489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31490 ac_cs_usage="\
31491 \`$as_me' instantiates files and other configuration actions
31492 from templates according to the current configuration.  Unless the files
31493 and actions are specified as TAGs, all are instantiated by default.
31494
31495 Usage: $0 [OPTION]... [TAG]...
31496
31497   -h, --help       print this help, then exit
31498   -V, --version    print version number and configuration settings, then exit
31499       --config     print configuration, then exit
31500   -q, --quiet, --silent
31501                    do not print progress messages
31502   -d, --debug      don't remove temporary files
31503       --recheck    update $as_me by reconfiguring in the same conditions
31504       --file=FILE[:TEMPLATE]
31505                    instantiate the configuration file FILE
31506       --header=FILE[:TEMPLATE]
31507                    instantiate the configuration header FILE
31508
31509 Configuration files:
31510 $config_files
31511
31512 Configuration headers:
31513 $config_headers
31514
31515 Configuration commands:
31516 $config_commands
31517
31518 Report bugs to the package provider."
31519
31520 _ACEOF
31521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31522 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31523 ac_cs_version="\\
31524 bacula config.status 5.2.9
31525 configured by $0, generated by GNU Autoconf 2.68,
31526   with options \\"\$ac_cs_config\\"
31527
31528 Copyright (C) 2010 Free Software Foundation, Inc.
31529 This config.status script is free software; the Free Software Foundation
31530 gives unlimited permission to copy, distribute and modify it."
31531
31532 ac_pwd='$ac_pwd'
31533 srcdir='$srcdir'
31534 INSTALL='$INSTALL'
31535 AWK='$AWK'
31536 test -n "\$AWK" || AWK=awk
31537 _ACEOF
31538
31539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31540 # The default lists apply if the user does not specify any file.
31541 ac_need_defaults=:
31542 while test $# != 0
31543 do
31544   case $1 in
31545   --*=?*)
31546     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31547     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31548     ac_shift=:
31549     ;;
31550   --*=)
31551     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31552     ac_optarg=
31553     ac_shift=:
31554     ;;
31555   *)
31556     ac_option=$1
31557     ac_optarg=$2
31558     ac_shift=shift
31559     ;;
31560   esac
31561
31562   case $ac_option in
31563   # Handling of the options.
31564   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31565     ac_cs_recheck=: ;;
31566   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31567     $as_echo "$ac_cs_version"; exit ;;
31568   --config | --confi | --conf | --con | --co | --c )
31569     $as_echo "$ac_cs_config"; exit ;;
31570   --debug | --debu | --deb | --de | --d | -d )
31571     debug=: ;;
31572   --file | --fil | --fi | --f )
31573     $ac_shift
31574     case $ac_optarg in
31575     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31576     '') as_fn_error $? "missing file argument" ;;
31577     esac
31578     as_fn_append CONFIG_FILES " '$ac_optarg'"
31579     ac_need_defaults=false;;
31580   --header | --heade | --head | --hea )
31581     $ac_shift
31582     case $ac_optarg in
31583     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31584     esac
31585     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31586     ac_need_defaults=false;;
31587   --he | --h)
31588     # Conflict between --help and --header
31589     as_fn_error $? "ambiguous option: \`$1'
31590 Try \`$0 --help' for more information.";;
31591   --help | --hel | -h )
31592     $as_echo "$ac_cs_usage"; exit ;;
31593   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31594   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31595     ac_cs_silent=: ;;
31596
31597   # This is an error.
31598   -*) as_fn_error $? "unrecognized option: \`$1'
31599 Try \`$0 --help' for more information." ;;
31600
31601   *) as_fn_append ac_config_targets " $1"
31602      ac_need_defaults=false ;;
31603
31604   esac
31605   shift
31606 done
31607
31608 ac_configure_extra_args=
31609
31610 if $ac_cs_silent; then
31611   exec 6>/dev/null
31612   ac_configure_extra_args="$ac_configure_extra_args --silent"
31613 fi
31614
31615 _ACEOF
31616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31617 if \$ac_cs_recheck; then
31618   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31619   shift
31620   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31621   CONFIG_SHELL='$SHELL'
31622   export CONFIG_SHELL
31623   exec "\$@"
31624 fi
31625
31626 _ACEOF
31627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31628 exec 5>>config.log
31629 {
31630   echo
31631   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31632 ## Running $as_me. ##
31633 _ASBOX
31634   $as_echo "$ac_log"
31635 } >&5
31636
31637 _ACEOF
31638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31639 #
31640 # INIT-COMMANDS
31641 #
31642
31643
31644 # The HP-UX ksh and POSIX shell print the target directory to stdout
31645 # if CDPATH is set.
31646 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31647
31648 sed_quote_subst='$sed_quote_subst'
31649 double_quote_subst='$double_quote_subst'
31650 delay_variable_subst='$delay_variable_subst'
31651 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31652 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31653 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31654 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31655 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31656 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31657 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31658 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31659 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31660 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31661 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31662 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31663 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31664 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31665 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31666 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31667 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31668 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31669 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31670 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31671 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31672 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31673 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31674 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31675 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31676 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31677 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31678 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31679 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31680 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31681 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31682 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31683 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31684 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31685 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31686 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31687 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31688 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31689 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31690 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31691 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31692 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31693 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31694 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31695 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31696 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31697 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31698 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31699 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31700 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31701 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31702 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31703 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31704 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31705 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31706 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"`'
31707 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31708 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31709 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31710 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31711 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31712 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31713 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31714 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31715 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31716 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31717 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31718 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31719 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31720 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31721 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31722 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31723 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31724 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31725 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31726 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31727 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31728 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31729 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31730 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31731 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31732 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31733 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31734 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31735 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31736 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31737 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31738 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31739 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31740 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31741 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31742 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31743 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31744 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31745 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31746 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31747 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31748 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31749 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31750 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31751 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31752 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31753 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31754 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31755 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31756 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31757 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31758 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31759 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31760 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31761 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31762 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31763 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31764 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31765 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31766 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31767 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31768 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31769 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31770 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31771 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31772 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31773 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31774 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31775 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31776 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31777 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31778 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31779 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31780 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31781 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31782 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31783 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31784 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31785 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31786 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31787 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31788 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31789 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31790 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31791 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31792 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31793 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31794 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31795 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31796 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31797 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31798 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31799 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31800 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31801 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31802 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31803 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31804 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31805 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31806 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31807 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31808 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31809 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31810 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31811 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31812 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31813 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31814 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31815 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31816 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31817 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31818 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31819 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31820 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31821 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31822 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31823 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31824 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31825 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31826 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31827 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31828 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31829 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31830 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31831 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31832 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31833 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31834 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31835 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31836
31837 LTCC='$LTCC'
31838 LTCFLAGS='$LTCFLAGS'
31839 compiler='$compiler_DEFAULT'
31840
31841 # A function that is used when there is no print builtin or printf.
31842 func_fallback_echo ()
31843 {
31844   eval 'cat <<_LTECHO_EOF
31845 \$1
31846 _LTECHO_EOF'
31847 }
31848
31849 # Quote evaled strings.
31850 for var in SHELL \
31851 ECHO \
31852 SED \
31853 GREP \
31854 EGREP \
31855 FGREP \
31856 LD \
31857 NM \
31858 LN_S \
31859 lt_SP2NL \
31860 lt_NL2SP \
31861 reload_flag \
31862 OBJDUMP \
31863 deplibs_check_method \
31864 file_magic_cmd \
31865 file_magic_glob \
31866 want_nocaseglob \
31867 DLLTOOL \
31868 sharedlib_from_linklib_cmd \
31869 AR \
31870 AR_FLAGS \
31871 archiver_list_spec \
31872 STRIP \
31873 RANLIB \
31874 CC \
31875 CFLAGS \
31876 compiler \
31877 lt_cv_sys_global_symbol_pipe \
31878 lt_cv_sys_global_symbol_to_cdecl \
31879 lt_cv_sys_global_symbol_to_c_name_address \
31880 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31881 nm_file_list_spec \
31882 lt_prog_compiler_no_builtin_flag \
31883 lt_prog_compiler_pic \
31884 lt_prog_compiler_wl \
31885 lt_prog_compiler_static \
31886 lt_cv_prog_compiler_c_o \
31887 need_locks \
31888 MANIFEST_TOOL \
31889 DSYMUTIL \
31890 NMEDIT \
31891 LIPO \
31892 OTOOL \
31893 OTOOL64 \
31894 shrext_cmds \
31895 export_dynamic_flag_spec \
31896 whole_archive_flag_spec \
31897 compiler_needs_object \
31898 with_gnu_ld \
31899 allow_undefined_flag \
31900 no_undefined_flag \
31901 hardcode_libdir_flag_spec \
31902 hardcode_libdir_flag_spec_ld \
31903 hardcode_libdir_separator \
31904 exclude_expsyms \
31905 include_expsyms \
31906 file_list_spec \
31907 variables_saved_for_relink \
31908 libname_spec \
31909 library_names_spec \
31910 soname_spec \
31911 install_override_mode \
31912 finish_eval \
31913 old_striplib \
31914 striplib \
31915 compiler_lib_search_dirs \
31916 predep_objects \
31917 postdep_objects \
31918 predeps \
31919 postdeps \
31920 compiler_lib_search_path \
31921 LD_CXX \
31922 reload_flag_CXX \
31923 compiler_CXX \
31924 lt_prog_compiler_no_builtin_flag_CXX \
31925 lt_prog_compiler_pic_CXX \
31926 lt_prog_compiler_wl_CXX \
31927 lt_prog_compiler_static_CXX \
31928 lt_cv_prog_compiler_c_o_CXX \
31929 export_dynamic_flag_spec_CXX \
31930 whole_archive_flag_spec_CXX \
31931 compiler_needs_object_CXX \
31932 with_gnu_ld_CXX \
31933 allow_undefined_flag_CXX \
31934 no_undefined_flag_CXX \
31935 hardcode_libdir_flag_spec_CXX \
31936 hardcode_libdir_flag_spec_ld_CXX \
31937 hardcode_libdir_separator_CXX \
31938 exclude_expsyms_CXX \
31939 include_expsyms_CXX \
31940 file_list_spec_CXX \
31941 compiler_lib_search_dirs_CXX \
31942 predep_objects_CXX \
31943 postdep_objects_CXX \
31944 predeps_CXX \
31945 postdeps_CXX \
31946 compiler_lib_search_path_CXX; do
31947     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31948     *[\\\\\\\`\\"\\\$]*)
31949       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31950       ;;
31951     *)
31952       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31953       ;;
31954     esac
31955 done
31956
31957 # Double-quote double-evaled strings.
31958 for var in reload_cmds \
31959 old_postinstall_cmds \
31960 old_postuninstall_cmds \
31961 old_archive_cmds \
31962 extract_expsyms_cmds \
31963 old_archive_from_new_cmds \
31964 old_archive_from_expsyms_cmds \
31965 archive_cmds \
31966 archive_expsym_cmds \
31967 module_cmds \
31968 module_expsym_cmds \
31969 export_symbols_cmds \
31970 prelink_cmds \
31971 postlink_cmds \
31972 postinstall_cmds \
31973 postuninstall_cmds \
31974 finish_cmds \
31975 sys_lib_search_path_spec \
31976 sys_lib_dlsearch_path_spec \
31977 reload_cmds_CXX \
31978 old_archive_cmds_CXX \
31979 old_archive_from_new_cmds_CXX \
31980 old_archive_from_expsyms_cmds_CXX \
31981 archive_cmds_CXX \
31982 archive_expsym_cmds_CXX \
31983 module_cmds_CXX \
31984 module_expsym_cmds_CXX \
31985 export_symbols_cmds_CXX \
31986 prelink_cmds_CXX \
31987 postlink_cmds_CXX; do
31988     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31989     *[\\\\\\\`\\"\\\$]*)
31990       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31991       ;;
31992     *)
31993       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31994       ;;
31995     esac
31996 done
31997
31998 ac_aux_dir='$ac_aux_dir'
31999 xsi_shell='$xsi_shell'
32000 lt_shell_append='$lt_shell_append'
32001
32002 # See if we are running on zsh, and set the options which allow our
32003 # commands through without removal of \ escapes INIT.
32004 if test -n "\${ZSH_VERSION+set}" ; then
32005    setopt NO_GLOB_SUBST
32006 fi
32007
32008
32009     PACKAGE='$PACKAGE'
32010     VERSION='$VERSION'
32011     TIMESTAMP='$TIMESTAMP'
32012     RM='$RM'
32013     ofile='$ofile'
32014
32015
32016
32017
32018
32019 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32020     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32021     # from automake.
32022     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32023     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32024     LINGUAS="${LINGUAS-%UNSET%}"
32025
32026
32027 _ACEOF
32028
32029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32030
32031 # Handling of arguments.
32032 for ac_config_target in $ac_config_targets
32033 do
32034   case $ac_config_target in
32035     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32036     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32037     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32038     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32039     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32040     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32041     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32042     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32043     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32044     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32045     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32046     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32047     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32048     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32049     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32050     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
32051     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
32052     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
32053     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
32054     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
32055     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
32056     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32057     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32058     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32059     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32060     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32061     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32062     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32063     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
32064     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
32065     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
32066     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32067     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32068     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32069     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32070     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32071     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32072     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32073     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32074     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32075     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32076     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32077     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32078     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32079     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32080     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
32081     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
32082     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
32083     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
32084     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32085     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32086     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32087     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32088     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32089     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32090     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32091     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32092     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32093     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32094     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32095     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32096     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32097     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32098     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32099     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32100     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32101     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32102     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32103     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32104     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32105     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32106     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32107     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32108     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32109     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32110     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32111     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32112     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32113     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32114     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32115     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32116     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32117     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32118     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32119     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32120     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32121     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32122     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32123     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32124     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32125     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32126     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32127     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
32128     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32129     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32130     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32131     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32132     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32133     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32134     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32135     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32136     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32137     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32138     "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
32139     "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
32140     "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
32141     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32142     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32143     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32144     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32145     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32146     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32147     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32148
32149   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32150   esac
32151 done
32152
32153
32154 # If the user did not use the arguments to specify the items to instantiate,
32155 # then the envvar interface is used.  Set only those that are not.
32156 # We use the long form for the default assignment because of an extremely
32157 # bizarre bug on SunOS 4.1.3.
32158 if $ac_need_defaults; then
32159   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32160   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32161   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32162 fi
32163
32164 # Have a temporary directory for convenience.  Make it in the build tree
32165 # simply because there is no reason against having it here, and in addition,
32166 # creating and moving files from /tmp can sometimes cause problems.
32167 # Hook for its removal unless debugging.
32168 # Note that there is a small window in which the directory will not be cleaned:
32169 # after its creation but before its name has been assigned to `$tmp'.
32170 $debug ||
32171 {
32172   tmp= ac_tmp=
32173   trap 'exit_status=$?
32174   : "${ac_tmp:=$tmp}"
32175   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32176 ' 0
32177   trap 'as_fn_exit 1' 1 2 13 15
32178 }
32179 # Create a (secure) tmp directory for tmp files.
32180
32181 {
32182   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32183   test -d "$tmp"
32184 }  ||
32185 {
32186   tmp=./conf$$-$RANDOM
32187   (umask 077 && mkdir "$tmp")
32188 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32189 ac_tmp=$tmp
32190
32191 # Set up the scripts for CONFIG_FILES section.
32192 # No need to generate them if there are no CONFIG_FILES.
32193 # This happens for instance with `./config.status config.h'.
32194 if test -n "$CONFIG_FILES"; then
32195
32196 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32197   ac_cs_awk_getline=:
32198   ac_cs_awk_pipe_init=
32199   ac_cs_awk_read_file='
32200       while ((getline aline < (F[key])) > 0)
32201         print(aline)
32202       close(F[key])'
32203   ac_cs_awk_pipe_fini=
32204 else
32205   ac_cs_awk_getline=false
32206   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32207   ac_cs_awk_read_file='
32208       print "|#_!!_#|"
32209       print "cat " F[key] " &&"
32210       '$ac_cs_awk_pipe_init
32211   # The final `:' finishes the AND list.
32212   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32213 fi
32214 ac_cr=`echo X | tr X '\015'`
32215 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32216 # But we know of no other shell where ac_cr would be empty at this
32217 # point, so we can use a bashism as a fallback.
32218 if test "x$ac_cr" = x; then
32219   eval ac_cr=\$\'\\r\'
32220 fi
32221 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32222 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32223   ac_cs_awk_cr='\\r'
32224 else
32225   ac_cs_awk_cr=$ac_cr
32226 fi
32227
32228 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32229 _ACEOF
32230
32231 # Create commands to substitute file output variables.
32232 {
32233   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32234   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32235   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32236   echo "_ACAWK" &&
32237   echo "_ACEOF"
32238 } >conf$$files.sh &&
32239 . ./conf$$files.sh ||
32240   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32241 rm -f conf$$files.sh
32242
32243 {
32244   echo "cat >conf$$subs.awk <<_ACEOF" &&
32245   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32246   echo "_ACEOF"
32247 } >conf$$subs.sh ||
32248   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32249 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32250 ac_delim='%!_!# '
32251 for ac_last_try in false false false false false :; do
32252   . ./conf$$subs.sh ||
32253     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32254
32255   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32256   if test $ac_delim_n = $ac_delim_num; then
32257     break
32258   elif $ac_last_try; then
32259     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32260   else
32261     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32262   fi
32263 done
32264 rm -f conf$$subs.sh
32265
32266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32267 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32268 _ACEOF
32269 sed -n '
32270 h
32271 s/^/S["/; s/!.*/"]=/
32272 p
32273 g
32274 s/^[^!]*!//
32275 :repl
32276 t repl
32277 s/'"$ac_delim"'$//
32278 t delim
32279 :nl
32280 h
32281 s/\(.\{148\}\)..*/\1/
32282 t more1
32283 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32284 p
32285 n
32286 b repl
32287 :more1
32288 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32289 p
32290 g
32291 s/.\{148\}//
32292 t nl
32293 :delim
32294 h
32295 s/\(.\{148\}\)..*/\1/
32296 t more2
32297 s/["\\]/\\&/g; s/^/"/; s/$/"/
32298 p
32299 b
32300 :more2
32301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32302 p
32303 g
32304 s/.\{148\}//
32305 t delim
32306 ' <conf$$subs.awk | sed '
32307 /^[^""]/{
32308   N
32309   s/\n//
32310 }
32311 ' >>$CONFIG_STATUS || ac_write_fail=1
32312 rm -f conf$$subs.awk
32313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32314 _ACAWK
32315 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32316   for (key in S) S_is_set[key] = 1
32317   FS = "\a"
32318   \$ac_cs_awk_pipe_init
32319 }
32320 {
32321   line = $ 0
32322   nfields = split(line, field, "@")
32323   substed = 0
32324   len = length(field[1])
32325   for (i = 2; i < nfields; i++) {
32326     key = field[i]
32327     keylen = length(key)
32328     if (S_is_set[key]) {
32329       value = S[key]
32330       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32331       len += length(value) + length(field[++i])
32332       substed = 1
32333     } else
32334       len += 1 + keylen
32335   }
32336   if (nfields == 3 && !substed) {
32337     key = field[2]
32338     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32339       \$ac_cs_awk_read_file
32340       next
32341     }
32342   }
32343   print line
32344 }
32345 \$ac_cs_awk_pipe_fini
32346 _ACAWK
32347 _ACEOF
32348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32349 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32350   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32351 else
32352   cat
32353 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32354   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32355 _ACEOF
32356
32357 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32358 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32359 # trailing colons and then remove the whole line if VPATH becomes empty
32360 # (actually we leave an empty line to preserve line numbers).
32361 if test "x$srcdir" = x.; then
32362   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32363 h
32364 s///
32365 s/^/:/
32366 s/[      ]*$/:/
32367 s/:\$(srcdir):/:/g
32368 s/:\${srcdir}:/:/g
32369 s/:@srcdir@:/:/g
32370 s/^:*//
32371 s/:*$//
32372 x
32373 s/\(=[   ]*\).*/\1/
32374 G
32375 s/\n//
32376 s/^[^=]*=[       ]*$//
32377 }'
32378 fi
32379
32380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32381 fi # test -n "$CONFIG_FILES"
32382
32383 # Set up the scripts for CONFIG_HEADERS section.
32384 # No need to generate them if there are no CONFIG_HEADERS.
32385 # This happens for instance with `./config.status Makefile'.
32386 if test -n "$CONFIG_HEADERS"; then
32387 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32388 BEGIN {
32389 _ACEOF
32390
32391 # Transform confdefs.h into an awk script `defines.awk', embedded as
32392 # here-document in config.status, that substitutes the proper values into
32393 # config.h.in to produce config.h.
32394
32395 # Create a delimiter string that does not exist in confdefs.h, to ease
32396 # handling of long lines.
32397 ac_delim='%!_!# '
32398 for ac_last_try in false false :; do
32399   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32400   if test -z "$ac_tt"; then
32401     break
32402   elif $ac_last_try; then
32403     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32404   else
32405     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32406   fi
32407 done
32408
32409 # For the awk script, D is an array of macro values keyed by name,
32410 # likewise P contains macro parameters if any.  Preserve backslash
32411 # newline sequences.
32412
32413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32414 sed -n '
32415 s/.\{148\}/&'"$ac_delim"'/g
32416 t rset
32417 :rset
32418 s/^[     ]*#[    ]*define[       ][      ]*/ /
32419 t def
32420 d
32421 :def
32422 s/\\$//
32423 t bsnl
32424 s/["\\]/\\&/g
32425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32426 D["\1"]=" \3"/p
32427 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32428 d
32429 :bsnl
32430 s/["\\]/\\&/g
32431 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32432 D["\1"]=" \3\\\\\\n"\\/p
32433 t cont
32434 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32435 t cont
32436 d
32437 :cont
32438 n
32439 s/.\{148\}/&'"$ac_delim"'/g
32440 t clear
32441 :clear
32442 s/\\$//
32443 t bsnlc
32444 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32445 d
32446 :bsnlc
32447 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32448 b cont
32449 ' <confdefs.h | sed '
32450 s/'"$ac_delim"'/"\\\
32451 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32452
32453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32454   for (key in D) D_is_set[key] = 1
32455   FS = "\a"
32456 }
32457 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32458   line = \$ 0
32459   split(line, arg, " ")
32460   if (arg[1] == "#") {
32461     defundef = arg[2]
32462     mac1 = arg[3]
32463   } else {
32464     defundef = substr(arg[1], 2)
32465     mac1 = arg[2]
32466   }
32467   split(mac1, mac2, "(") #)
32468   macro = mac2[1]
32469   prefix = substr(line, 1, index(line, defundef) - 1)
32470   if (D_is_set[macro]) {
32471     # Preserve the white space surrounding the "#".
32472     print prefix "define", macro P[macro] D[macro]
32473     next
32474   } else {
32475     # Replace #undef with comments.  This is necessary, for example,
32476     # in the case of _POSIX_SOURCE, which is predefined and required
32477     # on some systems where configure will not decide to define it.
32478     if (defundef == "undef") {
32479       print "/*", prefix defundef, macro, "*/"
32480       next
32481     }
32482   }
32483 }
32484 { print }
32485 _ACAWK
32486 _ACEOF
32487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32488   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32489 fi # test -n "$CONFIG_HEADERS"
32490
32491
32492 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32493 shift
32494 for ac_tag
32495 do
32496   case $ac_tag in
32497   :[FHLC]) ac_mode=$ac_tag; continue;;
32498   esac
32499   case $ac_mode$ac_tag in
32500   :[FHL]*:*);;
32501   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32502   :[FH]-) ac_tag=-:-;;
32503   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32504   esac
32505   ac_save_IFS=$IFS
32506   IFS=:
32507   set x $ac_tag
32508   IFS=$ac_save_IFS
32509   shift
32510   ac_file=$1
32511   shift
32512
32513   case $ac_mode in
32514   :L) ac_source=$1;;
32515   :[FH])
32516     ac_file_inputs=
32517     for ac_f
32518     do
32519       case $ac_f in
32520       -) ac_f="$ac_tmp/stdin";;
32521       *) # Look for the file first in the build tree, then in the source tree
32522          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32523          # because $ac_f cannot contain `:'.
32524          test -f "$ac_f" ||
32525            case $ac_f in
32526            [\\/$]*) false;;
32527            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32528            esac ||
32529            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32530       esac
32531       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32532       as_fn_append ac_file_inputs " '$ac_f'"
32533     done
32534
32535     # Let's still pretend it is `configure' which instantiates (i.e., don't
32536     # use $as_me), people would be surprised to read:
32537     #    /* config.h.  Generated by config.status.  */
32538     configure_input='Generated from '`
32539           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32540         `' by configure.'
32541     if test x"$ac_file" != x-; then
32542       configure_input="$ac_file.  $configure_input"
32543       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32544 $as_echo "$as_me: creating $ac_file" >&6;}
32545     fi
32546     # Neutralize special characters interpreted by sed in replacement strings.
32547     case $configure_input in #(
32548     *\&* | *\|* | *\\* )
32549        ac_sed_conf_input=`$as_echo "$configure_input" |
32550        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32551     *) ac_sed_conf_input=$configure_input;;
32552     esac
32553
32554     case $ac_tag in
32555     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32556       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32557     esac
32558     ;;
32559   esac
32560
32561   ac_dir=`$as_dirname -- "$ac_file" ||
32562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32563          X"$ac_file" : 'X\(//\)[^/]' \| \
32564          X"$ac_file" : 'X\(//\)$' \| \
32565          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32566 $as_echo X"$ac_file" |
32567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32568             s//\1/
32569             q
32570           }
32571           /^X\(\/\/\)[^/].*/{
32572             s//\1/
32573             q
32574           }
32575           /^X\(\/\/\)$/{
32576             s//\1/
32577             q
32578           }
32579           /^X\(\/\).*/{
32580             s//\1/
32581             q
32582           }
32583           s/.*/./; q'`
32584   as_dir="$ac_dir"; as_fn_mkdir_p
32585   ac_builddir=.
32586
32587 case "$ac_dir" in
32588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32589 *)
32590   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32591   # A ".." for each directory in $ac_dir_suffix.
32592   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32593   case $ac_top_builddir_sub in
32594   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32595   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32596   esac ;;
32597 esac
32598 ac_abs_top_builddir=$ac_pwd
32599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32600 # for backward compatibility:
32601 ac_top_builddir=$ac_top_build_prefix
32602
32603 case $srcdir in
32604   .)  # We are building in place.
32605     ac_srcdir=.
32606     ac_top_srcdir=$ac_top_builddir_sub
32607     ac_abs_top_srcdir=$ac_pwd ;;
32608   [\\/]* | ?:[\\/]* )  # Absolute name.
32609     ac_srcdir=$srcdir$ac_dir_suffix;
32610     ac_top_srcdir=$srcdir
32611     ac_abs_top_srcdir=$srcdir ;;
32612   *) # Relative name.
32613     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32614     ac_top_srcdir=$ac_top_build_prefix$srcdir
32615     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32616 esac
32617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32618
32619
32620   case $ac_mode in
32621   :F)
32622   #
32623   # CONFIG_FILE
32624   #
32625
32626   case $INSTALL in
32627   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32628   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32629   esac
32630 _ACEOF
32631
32632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32633 # If the template does not know about datarootdir, expand it.
32634 # FIXME: This hack should be removed a few years after 2.60.
32635 ac_datarootdir_hack=; ac_datarootdir_seen=
32636 ac_sed_dataroot='
32637 /datarootdir/ {
32638   p
32639   q
32640 }
32641 /@datadir@/p
32642 /@docdir@/p
32643 /@infodir@/p
32644 /@localedir@/p
32645 /@mandir@/p'
32646 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32647 *datarootdir*) ac_datarootdir_seen=yes;;
32648 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32650 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32651 _ACEOF
32652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32653   ac_datarootdir_hack='
32654   s&@datadir@&$datadir&g
32655   s&@docdir@&$docdir&g
32656   s&@infodir@&$infodir&g
32657   s&@localedir@&$localedir&g
32658   s&@mandir@&$mandir&g
32659   s&\\\${datarootdir}&$datarootdir&g' ;;
32660 esac
32661 _ACEOF
32662
32663 # Neutralize VPATH when `$srcdir' = `.'.
32664 # Shell code in configure.ac might set extrasub.
32665 # FIXME: do we really want to maintain this feature?
32666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32667 ac_sed_extra="$ac_vpsub
32668 $extrasub
32669 _ACEOF
32670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32671 :t
32672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32673 s|@configure_input@|$ac_sed_conf_input|;t t
32674 s&@top_builddir@&$ac_top_builddir_sub&;t t
32675 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32676 s&@srcdir@&$ac_srcdir&;t t
32677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32678 s&@top_srcdir@&$ac_top_srcdir&;t t
32679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32680 s&@builddir@&$ac_builddir&;t t
32681 s&@abs_builddir@&$ac_abs_builddir&;t t
32682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32683 s&@INSTALL@&$ac_INSTALL&;t t
32684 $ac_datarootdir_hack
32685 "
32686 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32687 if $ac_cs_awk_getline; then
32688   $AWK -f "$ac_tmp/subs.awk"
32689 else
32690   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32691 fi \
32692   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32693
32694 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32695   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32696   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32697       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32698   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32699 which seems to be undefined.  Please make sure it is defined" >&5
32700 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32701 which seems to be undefined.  Please make sure it is defined" >&2;}
32702
32703   rm -f "$ac_tmp/stdin"
32704   case $ac_file in
32705   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32706   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32707   esac \
32708   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32709  ;;
32710   :H)
32711   #
32712   # CONFIG_HEADER
32713   #
32714   if test x"$ac_file" != x-; then
32715     {
32716       $as_echo "/* $configure_input  */" \
32717       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32718     } >"$ac_tmp/config.h" \
32719       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32720     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32721       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32722 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32723     else
32724       rm -f "$ac_file"
32725       mv "$ac_tmp/config.h" "$ac_file" \
32726         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32727     fi
32728   else
32729     $as_echo "/* $configure_input  */" \
32730       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32731       || as_fn_error $? "could not create -" "$LINENO" 5
32732   fi
32733  ;;
32734
32735   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32736 $as_echo "$as_me: executing $ac_file commands" >&6;}
32737  ;;
32738   esac
32739
32740
32741   case $ac_file$ac_mode in
32742     "libtool":C)
32743
32744     # See if we are running on zsh, and set the options which allow our
32745     # commands through without removal of \ escapes.
32746     if test -n "${ZSH_VERSION+set}" ; then
32747       setopt NO_GLOB_SUBST
32748     fi
32749
32750     cfgfile="${ofile}T"
32751     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32752     $RM "$cfgfile"
32753
32754     cat <<_LT_EOF >> "$cfgfile"
32755 #! $SHELL
32756
32757 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32758 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32760 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32761 #
32762 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32763 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32764 #                 Inc.
32765 #   Written by Gordon Matzigkeit, 1996
32766 #
32767 #   This file is part of GNU Libtool.
32768 #
32769 # GNU Libtool is free software; you can redistribute it and/or
32770 # modify it under the terms of the GNU General Public License as
32771 # published by the Free Software Foundation; either version 2 of
32772 # the License, or (at your option) any later version.
32773 #
32774 # As a special exception to the GNU General Public License,
32775 # if you distribute this file as part of a program or library that
32776 # is built using GNU Libtool, you may include this file under the
32777 # same distribution terms that you use for the rest of that program.
32778 #
32779 # GNU Libtool is distributed in the hope that it will be useful,
32780 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32781 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32782 # GNU General Public License for more details.
32783 #
32784 # You should have received a copy of the GNU General Public License
32785 # along with GNU Libtool; see the file COPYING.  If not, a copy
32786 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32787 # obtained by writing to the Free Software Foundation, Inc.,
32788 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32789
32790
32791 # The names of the tagged configurations supported by this script.
32792 available_tags="CXX "
32793
32794 # ### BEGIN LIBTOOL CONFIG
32795
32796 # Which release of libtool.m4 was used?
32797 macro_version=$macro_version
32798 macro_revision=$macro_revision
32799
32800 # Whether or not to build shared libraries.
32801 build_libtool_libs=$enable_shared
32802
32803 # Whether or not to build static libraries.
32804 build_old_libs=$enable_static
32805
32806 # What type of objects to build.
32807 pic_mode=$pic_mode
32808
32809 # Whether or not to optimize for fast installation.
32810 fast_install=$enable_fast_install
32811
32812 # Shell to use when invoking shell scripts.
32813 SHELL=$lt_SHELL
32814
32815 # An echo program that protects backslashes.
32816 ECHO=$lt_ECHO
32817
32818 # The host system.
32819 host_alias=$host_alias
32820 host=$host
32821 host_os=$host_os
32822
32823 # The build system.
32824 build_alias=$build_alias
32825 build=$build
32826 build_os=$build_os
32827
32828 # A sed program that does not truncate output.
32829 SED=$lt_SED
32830
32831 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32832 Xsed="\$SED -e 1s/^X//"
32833
32834 # A grep program that handles long lines.
32835 GREP=$lt_GREP
32836
32837 # An ERE matcher.
32838 EGREP=$lt_EGREP
32839
32840 # A literal string matcher.
32841 FGREP=$lt_FGREP
32842
32843 # A BSD- or MS-compatible name lister.
32844 NM=$lt_NM
32845
32846 # Whether we need soft or hard links.
32847 LN_S=$lt_LN_S
32848
32849 # What is the maximum length of a command?
32850 max_cmd_len=$max_cmd_len
32851
32852 # Object file suffix (normally "o").
32853 objext=$ac_objext
32854
32855 # Executable file suffix (normally "").
32856 exeext=$exeext
32857
32858 # whether the shell understands "unset".
32859 lt_unset=$lt_unset
32860
32861 # turn spaces into newlines.
32862 SP2NL=$lt_lt_SP2NL
32863
32864 # turn newlines into spaces.
32865 NL2SP=$lt_lt_NL2SP
32866
32867 # convert \$build file names to \$host format.
32868 to_host_file_cmd=$lt_cv_to_host_file_cmd
32869
32870 # convert \$build files to toolchain format.
32871 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32872
32873 # An object symbol dumper.
32874 OBJDUMP=$lt_OBJDUMP
32875
32876 # Method to check whether dependent libraries are shared objects.
32877 deplibs_check_method=$lt_deplibs_check_method
32878
32879 # Command to use when deplibs_check_method = "file_magic".
32880 file_magic_cmd=$lt_file_magic_cmd
32881
32882 # How to find potential files when deplibs_check_method = "file_magic".
32883 file_magic_glob=$lt_file_magic_glob
32884
32885 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32886 want_nocaseglob=$lt_want_nocaseglob
32887
32888 # DLL creation program.
32889 DLLTOOL=$lt_DLLTOOL
32890
32891 # Command to associate shared and link libraries.
32892 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32893
32894 # The archiver.
32895 AR=$lt_AR
32896
32897 # Flags to create an archive.
32898 AR_FLAGS=$lt_AR_FLAGS
32899
32900 # How to feed a file listing to the archiver.
32901 archiver_list_spec=$lt_archiver_list_spec
32902
32903 # A symbol stripping program.
32904 STRIP=$lt_STRIP
32905
32906 # Commands used to install an old-style archive.
32907 RANLIB=$lt_RANLIB
32908 old_postinstall_cmds=$lt_old_postinstall_cmds
32909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32910
32911 # Whether to use a lock for old archive extraction.
32912 lock_old_archive_extraction=$lock_old_archive_extraction
32913
32914 # A C compiler.
32915 LTCC=$lt_CC
32916
32917 # LTCC compiler flags.
32918 LTCFLAGS=$lt_CFLAGS
32919
32920 # Take the output of nm and produce a listing of raw symbols and C names.
32921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32922
32923 # Transform the output of nm in a proper C declaration.
32924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32925
32926 # Transform the output of nm in a C name address pair.
32927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32928
32929 # Transform the output of nm in a C name address pair when lib prefix is needed.
32930 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32931
32932 # Specify filename containing input files for \$NM.
32933 nm_file_list_spec=$lt_nm_file_list_spec
32934
32935 # The root where to search for dependent libraries,and in which our libraries should be installed.
32936 lt_sysroot=$lt_sysroot
32937
32938 # The name of the directory that contains temporary libtool files.
32939 objdir=$objdir
32940
32941 # Used to examine libraries when file_magic_cmd begins with "file".
32942 MAGIC_CMD=$MAGIC_CMD
32943
32944 # Must we lock files when doing compilation?
32945 need_locks=$lt_need_locks
32946
32947 # Manifest tool.
32948 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32949
32950 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32951 DSYMUTIL=$lt_DSYMUTIL
32952
32953 # Tool to change global to local symbols on Mac OS X.
32954 NMEDIT=$lt_NMEDIT
32955
32956 # Tool to manipulate fat objects and archives on Mac OS X.
32957 LIPO=$lt_LIPO
32958
32959 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32960 OTOOL=$lt_OTOOL
32961
32962 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32963 OTOOL64=$lt_OTOOL64
32964
32965 # Old archive suffix (normally "a").
32966 libext=$libext
32967
32968 # Shared library suffix (normally ".so").
32969 shrext_cmds=$lt_shrext_cmds
32970
32971 # The commands to extract the exported symbol list from a shared archive.
32972 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32973
32974 # Variables whose values should be saved in libtool wrapper scripts and
32975 # restored at link time.
32976 variables_saved_for_relink=$lt_variables_saved_for_relink
32977
32978 # Do we need the "lib" prefix for modules?
32979 need_lib_prefix=$need_lib_prefix
32980
32981 # Do we need a version for libraries?
32982 need_version=$need_version
32983
32984 # Library versioning type.
32985 version_type=$version_type
32986
32987 # Shared library runtime path variable.
32988 runpath_var=$runpath_var
32989
32990 # Shared library path variable.
32991 shlibpath_var=$shlibpath_var
32992
32993 # Is shlibpath searched before the hard-coded library search path?
32994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32995
32996 # Format of library name prefix.
32997 libname_spec=$lt_libname_spec
32998
32999 # List of archive names.  First name is the real one, the rest are links.
33000 # The last name is the one that the linker finds with -lNAME
33001 library_names_spec=$lt_library_names_spec
33002
33003 # The coded name of the library, if different from the real name.
33004 soname_spec=$lt_soname_spec
33005
33006 # Permission mode override for installation of shared libraries.
33007 install_override_mode=$lt_install_override_mode
33008
33009 # Command to use after installation of a shared archive.
33010 postinstall_cmds=$lt_postinstall_cmds
33011
33012 # Command to use after uninstallation of a shared archive.
33013 postuninstall_cmds=$lt_postuninstall_cmds
33014
33015 # Commands used to finish a libtool library installation in a directory.
33016 finish_cmds=$lt_finish_cmds
33017
33018 # As "finish_cmds", except a single script fragment to be evaled but
33019 # not shown.
33020 finish_eval=$lt_finish_eval
33021
33022 # Whether we should hardcode library paths into libraries.
33023 hardcode_into_libs=$hardcode_into_libs
33024
33025 # Compile-time system search path for libraries.
33026 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33027
33028 # Run-time system search path for libraries.
33029 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33030
33031 # Whether dlopen is supported.
33032 dlopen_support=$enable_dlopen
33033
33034 # Whether dlopen of programs is supported.
33035 dlopen_self=$enable_dlopen_self
33036
33037 # Whether dlopen of statically linked programs is supported.
33038 dlopen_self_static=$enable_dlopen_self_static
33039
33040 # Commands to strip libraries.
33041 old_striplib=$lt_old_striplib
33042 striplib=$lt_striplib
33043
33044
33045 # The linker used to build libraries.
33046 LD=$lt_LD
33047
33048 # How to create reloadable object files.
33049 reload_flag=$lt_reload_flag
33050 reload_cmds=$lt_reload_cmds
33051
33052 # Commands used to build an old-style archive.
33053 old_archive_cmds=$lt_old_archive_cmds
33054
33055 # A language specific compiler.
33056 CC=$lt_compiler
33057
33058 # Is the compiler the GNU compiler?
33059 with_gcc=$GCC
33060
33061 # Compiler flag to turn off builtin functions.
33062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33063
33064 # Additional compiler flags for building library objects.
33065 pic_flag=$lt_lt_prog_compiler_pic
33066
33067 # How to pass a linker flag through the compiler.
33068 wl=$lt_lt_prog_compiler_wl
33069
33070 # Compiler flag to prevent dynamic linking.
33071 link_static_flag=$lt_lt_prog_compiler_static
33072
33073 # Does compiler simultaneously support -c and -o options?
33074 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33075
33076 # Whether or not to add -lc for building shared libraries.
33077 build_libtool_need_lc=$archive_cmds_need_lc
33078
33079 # Whether or not to disallow shared libs when runtime libs are static.
33080 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33081
33082 # Compiler flag to allow reflexive dlopens.
33083 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33084
33085 # Compiler flag to generate shared objects directly from archives.
33086 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33087
33088 # Whether the compiler copes with passing no objects directly.
33089 compiler_needs_object=$lt_compiler_needs_object
33090
33091 # Create an old-style archive from a shared archive.
33092 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33093
33094 # Create a temporary old-style archive to link instead of a shared archive.
33095 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33096
33097 # Commands used to build a shared archive.
33098 archive_cmds=$lt_archive_cmds
33099 archive_expsym_cmds=$lt_archive_expsym_cmds
33100
33101 # Commands used to build a loadable module if different from building
33102 # a shared archive.
33103 module_cmds=$lt_module_cmds
33104 module_expsym_cmds=$lt_module_expsym_cmds
33105
33106 # Whether we are building with GNU ld or not.
33107 with_gnu_ld=$lt_with_gnu_ld
33108
33109 # Flag that allows shared libraries with undefined symbols to be built.
33110 allow_undefined_flag=$lt_allow_undefined_flag
33111
33112 # Flag that enforces no undefined symbols.
33113 no_undefined_flag=$lt_no_undefined_flag
33114
33115 # Flag to hardcode \$libdir into a binary during linking.
33116 # This must work even if \$libdir does not exist
33117 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33118
33119 # If ld is used when linking, flag to hardcode \$libdir into a binary
33120 # during linking.  This must work even if \$libdir does not exist.
33121 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33122
33123 # Whether we need a single "-rpath" flag with a separated argument.
33124 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33125
33126 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33127 # DIR into the resulting binary.
33128 hardcode_direct=$hardcode_direct
33129
33130 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33131 # DIR into the resulting binary and the resulting library dependency is
33132 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33133 # library is relocated.
33134 hardcode_direct_absolute=$hardcode_direct_absolute
33135
33136 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33137 # into the resulting binary.
33138 hardcode_minus_L=$hardcode_minus_L
33139
33140 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33141 # into the resulting binary.
33142 hardcode_shlibpath_var=$hardcode_shlibpath_var
33143
33144 # Set to "yes" if building a shared library automatically hardcodes DIR
33145 # into the library and all subsequent libraries and executables linked
33146 # against it.
33147 hardcode_automatic=$hardcode_automatic
33148
33149 # Set to yes if linker adds runtime paths of dependent libraries
33150 # to runtime path list.
33151 inherit_rpath=$inherit_rpath
33152
33153 # Whether libtool must link a program against all its dependency libraries.
33154 link_all_deplibs=$link_all_deplibs
33155
33156 # Set to "yes" if exported symbols are required.
33157 always_export_symbols=$always_export_symbols
33158
33159 # The commands to list exported symbols.
33160 export_symbols_cmds=$lt_export_symbols_cmds
33161
33162 # Symbols that should not be listed in the preloaded symbols.
33163 exclude_expsyms=$lt_exclude_expsyms
33164
33165 # Symbols that must always be exported.
33166 include_expsyms=$lt_include_expsyms
33167
33168 # Commands necessary for linking programs (against libraries) with templates.
33169 prelink_cmds=$lt_prelink_cmds
33170
33171 # Commands necessary for finishing linking programs.
33172 postlink_cmds=$lt_postlink_cmds
33173
33174 # Specify filename containing input files.
33175 file_list_spec=$lt_file_list_spec
33176
33177 # How to hardcode a shared library path into an executable.
33178 hardcode_action=$hardcode_action
33179
33180 # The directories searched by this compiler when creating a shared library.
33181 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33182
33183 # Dependencies to place before and after the objects being linked to
33184 # create a shared library.
33185 predep_objects=$lt_predep_objects
33186 postdep_objects=$lt_postdep_objects
33187 predeps=$lt_predeps
33188 postdeps=$lt_postdeps
33189
33190 # The library search path used internally by the compiler when linking
33191 # a shared library.
33192 compiler_lib_search_path=$lt_compiler_lib_search_path
33193
33194 # ### END LIBTOOL CONFIG
33195
33196 _LT_EOF
33197
33198   case $host_os in
33199   aix3*)
33200     cat <<\_LT_EOF >> "$cfgfile"
33201 # AIX sometimes has problems with the GCC collect2 program.  For some
33202 # reason, if we set the COLLECT_NAMES environment variable, the problems
33203 # vanish in a puff of smoke.
33204 if test "X${COLLECT_NAMES+set}" != Xset; then
33205   COLLECT_NAMES=
33206   export COLLECT_NAMES
33207 fi
33208 _LT_EOF
33209     ;;
33210   esac
33211
33212
33213 ltmain="$ac_aux_dir/ltmain.sh"
33214
33215
33216   # We use sed instead of cat because bash on DJGPP gets confused if
33217   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33218   # text mode, it properly converts lines to CR/LF.  This bash problem
33219   # is reportedly fixed, but why not run on old versions too?
33220   sed '$q' "$ltmain" >> "$cfgfile" \
33221      || (rm -f "$cfgfile"; exit 1)
33222
33223   if test x"$xsi_shell" = xyes; then
33224   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33225 func_dirname ()\
33226 {\
33227 \    case ${1} in\
33228 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33229 \      *  ) func_dirname_result="${3}" ;;\
33230 \    esac\
33231 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33232   && mv -f "$cfgfile.tmp" "$cfgfile" \
33233     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33234 test 0 -eq $? || _lt_function_replace_fail=:
33235
33236
33237   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33238 func_basename ()\
33239 {\
33240 \    func_basename_result="${1##*/}"\
33241 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33242   && mv -f "$cfgfile.tmp" "$cfgfile" \
33243     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33244 test 0 -eq $? || _lt_function_replace_fail=:
33245
33246
33247   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33248 func_dirname_and_basename ()\
33249 {\
33250 \    case ${1} in\
33251 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33252 \      *  ) func_dirname_result="${3}" ;;\
33253 \    esac\
33254 \    func_basename_result="${1##*/}"\
33255 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33256   && mv -f "$cfgfile.tmp" "$cfgfile" \
33257     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33258 test 0 -eq $? || _lt_function_replace_fail=:
33259
33260
33261   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33262 func_stripname ()\
33263 {\
33264 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33265 \    # positional parameters, so assign one to ordinary parameter first.\
33266 \    func_stripname_result=${3}\
33267 \    func_stripname_result=${func_stripname_result#"${1}"}\
33268 \    func_stripname_result=${func_stripname_result%"${2}"}\
33269 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33270   && mv -f "$cfgfile.tmp" "$cfgfile" \
33271     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33272 test 0 -eq $? || _lt_function_replace_fail=:
33273
33274
33275   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33276 func_split_long_opt ()\
33277 {\
33278 \    func_split_long_opt_name=${1%%=*}\
33279 \    func_split_long_opt_arg=${1#*=}\
33280 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33281   && mv -f "$cfgfile.tmp" "$cfgfile" \
33282     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33283 test 0 -eq $? || _lt_function_replace_fail=:
33284
33285
33286   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33287 func_split_short_opt ()\
33288 {\
33289 \    func_split_short_opt_arg=${1#??}\
33290 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33291 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33292   && mv -f "$cfgfile.tmp" "$cfgfile" \
33293     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33294 test 0 -eq $? || _lt_function_replace_fail=:
33295
33296
33297   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33298 func_lo2o ()\
33299 {\
33300 \    case ${1} in\
33301 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33302 \      *)    func_lo2o_result=${1} ;;\
33303 \    esac\
33304 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33305   && mv -f "$cfgfile.tmp" "$cfgfile" \
33306     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33307 test 0 -eq $? || _lt_function_replace_fail=:
33308
33309
33310   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33311 func_xform ()\
33312 {\
33313     func_xform_result=${1%.*}.lo\
33314 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33315   && mv -f "$cfgfile.tmp" "$cfgfile" \
33316     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33317 test 0 -eq $? || _lt_function_replace_fail=:
33318
33319
33320   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33321 func_arith ()\
33322 {\
33323     func_arith_result=$(( $* ))\
33324 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33325   && mv -f "$cfgfile.tmp" "$cfgfile" \
33326     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33327 test 0 -eq $? || _lt_function_replace_fail=:
33328
33329
33330   sed -e '/^func_len ()$/,/^} # func_len /c\
33331 func_len ()\
33332 {\
33333     func_len_result=${#1}\
33334 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33335   && mv -f "$cfgfile.tmp" "$cfgfile" \
33336     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33337 test 0 -eq $? || _lt_function_replace_fail=:
33338
33339 fi
33340
33341 if test x"$lt_shell_append" = xyes; then
33342   sed -e '/^func_append ()$/,/^} # func_append /c\
33343 func_append ()\
33344 {\
33345     eval "${1}+=\\${2}"\
33346 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33347   && mv -f "$cfgfile.tmp" "$cfgfile" \
33348     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33349 test 0 -eq $? || _lt_function_replace_fail=:
33350
33351
33352   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33353 func_append_quoted ()\
33354 {\
33355 \    func_quote_for_eval "${2}"\
33356 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33357 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33358   && mv -f "$cfgfile.tmp" "$cfgfile" \
33359     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33360 test 0 -eq $? || _lt_function_replace_fail=:
33361
33362
33363   # Save a `func_append' function call where possible by direct use of '+='
33364   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33365     && mv -f "$cfgfile.tmp" "$cfgfile" \
33366       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33367   test 0 -eq $? || _lt_function_replace_fail=:
33368 else
33369   # Save a `func_append' function call even when '+=' is not available
33370   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33371     && mv -f "$cfgfile.tmp" "$cfgfile" \
33372       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33373   test 0 -eq $? || _lt_function_replace_fail=:
33374 fi
33375
33376 if test x"$_lt_function_replace_fail" = x":"; then
33377   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33378 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33379 fi
33380
33381
33382    mv -f "$cfgfile" "$ofile" ||
33383     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33384   chmod +x "$ofile"
33385
33386
33387     cat <<_LT_EOF >> "$ofile"
33388
33389 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33390
33391 # The linker used to build libraries.
33392 LD=$lt_LD_CXX
33393
33394 # How to create reloadable object files.
33395 reload_flag=$lt_reload_flag_CXX
33396 reload_cmds=$lt_reload_cmds_CXX
33397
33398 # Commands used to build an old-style archive.
33399 old_archive_cmds=$lt_old_archive_cmds_CXX
33400
33401 # A language specific compiler.
33402 CC=$lt_compiler_CXX
33403
33404 # Is the compiler the GNU compiler?
33405 with_gcc=$GCC_CXX
33406
33407 # Compiler flag to turn off builtin functions.
33408 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33409
33410 # Additional compiler flags for building library objects.
33411 pic_flag=$lt_lt_prog_compiler_pic_CXX
33412
33413 # How to pass a linker flag through the compiler.
33414 wl=$lt_lt_prog_compiler_wl_CXX
33415
33416 # Compiler flag to prevent dynamic linking.
33417 link_static_flag=$lt_lt_prog_compiler_static_CXX
33418
33419 # Does compiler simultaneously support -c and -o options?
33420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33421
33422 # Whether or not to add -lc for building shared libraries.
33423 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33424
33425 # Whether or not to disallow shared libs when runtime libs are static.
33426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33427
33428 # Compiler flag to allow reflexive dlopens.
33429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33430
33431 # Compiler flag to generate shared objects directly from archives.
33432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33433
33434 # Whether the compiler copes with passing no objects directly.
33435 compiler_needs_object=$lt_compiler_needs_object_CXX
33436
33437 # Create an old-style archive from a shared archive.
33438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33439
33440 # Create a temporary old-style archive to link instead of a shared archive.
33441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33442
33443 # Commands used to build a shared archive.
33444 archive_cmds=$lt_archive_cmds_CXX
33445 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33446
33447 # Commands used to build a loadable module if different from building
33448 # a shared archive.
33449 module_cmds=$lt_module_cmds_CXX
33450 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33451
33452 # Whether we are building with GNU ld or not.
33453 with_gnu_ld=$lt_with_gnu_ld_CXX
33454
33455 # Flag that allows shared libraries with undefined symbols to be built.
33456 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33457
33458 # Flag that enforces no undefined symbols.
33459 no_undefined_flag=$lt_no_undefined_flag_CXX
33460
33461 # Flag to hardcode \$libdir into a binary during linking.
33462 # This must work even if \$libdir does not exist
33463 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33464
33465 # If ld is used when linking, flag to hardcode \$libdir into a binary
33466 # during linking.  This must work even if \$libdir does not exist.
33467 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33468
33469 # Whether we need a single "-rpath" flag with a separated argument.
33470 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33471
33472 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33473 # DIR into the resulting binary.
33474 hardcode_direct=$hardcode_direct_CXX
33475
33476 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33477 # DIR into the resulting binary and the resulting library dependency is
33478 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33479 # library is relocated.
33480 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33481
33482 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33483 # into the resulting binary.
33484 hardcode_minus_L=$hardcode_minus_L_CXX
33485
33486 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33487 # into the resulting binary.
33488 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33489
33490 # Set to "yes" if building a shared library automatically hardcodes DIR
33491 # into the library and all subsequent libraries and executables linked
33492 # against it.
33493 hardcode_automatic=$hardcode_automatic_CXX
33494
33495 # Set to yes if linker adds runtime paths of dependent libraries
33496 # to runtime path list.
33497 inherit_rpath=$inherit_rpath_CXX
33498
33499 # Whether libtool must link a program against all its dependency libraries.
33500 link_all_deplibs=$link_all_deplibs_CXX
33501
33502 # Set to "yes" if exported symbols are required.
33503 always_export_symbols=$always_export_symbols_CXX
33504
33505 # The commands to list exported symbols.
33506 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33507
33508 # Symbols that should not be listed in the preloaded symbols.
33509 exclude_expsyms=$lt_exclude_expsyms_CXX
33510
33511 # Symbols that must always be exported.
33512 include_expsyms=$lt_include_expsyms_CXX
33513
33514 # Commands necessary for linking programs (against libraries) with templates.
33515 prelink_cmds=$lt_prelink_cmds_CXX
33516
33517 # Commands necessary for finishing linking programs.
33518 postlink_cmds=$lt_postlink_cmds_CXX
33519
33520 # Specify filename containing input files.
33521 file_list_spec=$lt_file_list_spec_CXX
33522
33523 # How to hardcode a shared library path into an executable.
33524 hardcode_action=$hardcode_action_CXX
33525
33526 # The directories searched by this compiler when creating a shared library.
33527 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33528
33529 # Dependencies to place before and after the objects being linked to
33530 # create a shared library.
33531 predep_objects=$lt_predep_objects_CXX
33532 postdep_objects=$lt_postdep_objects_CXX
33533 predeps=$lt_predeps_CXX
33534 postdeps=$lt_postdeps_CXX
33535
33536 # The library search path used internally by the compiler when linking
33537 # a shared library.
33538 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33539
33540 # ### END LIBTOOL TAG CONFIG: CXX
33541 _LT_EOF
33542
33543  ;;
33544     "default-1":C)
33545     for ac_file in $CONFIG_FILES; do
33546       # Support "outfile[:infile[:infile...]]"
33547       case "$ac_file" in
33548         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33549       esac
33550       # PO directories have a Makefile.in generated from Makefile.in.in.
33551       case "$ac_file" in */Makefile.in)
33552         # Adjust a relative srcdir.
33553         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33554         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33555         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33556         # In autoconf-2.13 it is called $ac_given_srcdir.
33557         # In autoconf-2.50 it is called $srcdir.
33558         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33559         case "$ac_given_srcdir" in
33560           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33561           /*) top_srcdir="$ac_given_srcdir" ;;
33562           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33563         esac
33564         # Treat a directory as a PO directory if and only if it has a
33565         # POTFILES.in file. This allows packages to have multiple PO
33566         # directories under different names or in different locations.
33567         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33568           rm -f "$ac_dir/POTFILES"
33569           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33570           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33571           POMAKEFILEDEPS="POTFILES.in"
33572           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33573           # on $ac_dir but don't depend on user-specified configuration
33574           # parameters.
33575           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33576             # The LINGUAS file contains the set of available languages.
33577             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33578               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33579             fi
33580             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33581             # Hide the ALL_LINGUAS assigment from automake.
33582             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33583             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33584           else
33585             # The set of available languages was given in configure.in.
33586             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33587           fi
33588           # Compute POFILES
33589           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33590           # Compute UPDATEPOFILES
33591           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33592           # Compute DUMMYPOFILES
33593           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33594           # Compute GMOFILES
33595           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33596           case "$ac_given_srcdir" in
33597             .) srcdirpre= ;;
33598             *) srcdirpre='$(srcdir)/' ;;
33599           esac
33600           POFILES=
33601           UPDATEPOFILES=
33602           DUMMYPOFILES=
33603           GMOFILES=
33604           for lang in $ALL_LINGUAS; do
33605             POFILES="$POFILES $srcdirpre$lang.po"
33606             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33607             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33608             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33609           done
33610           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33611           # environment variable.
33612           INST_LINGUAS=
33613           if test -n "$ALL_LINGUAS"; then
33614             for presentlang in $ALL_LINGUAS; do
33615               useit=no
33616               if test "%UNSET%" != "$LINGUAS"; then
33617                 desiredlanguages="$LINGUAS"
33618               else
33619                 desiredlanguages="$ALL_LINGUAS"
33620               fi
33621               for desiredlang in $desiredlanguages; do
33622                 # Use the presentlang catalog if desiredlang is
33623                 #   a. equal to presentlang, or
33624                 #   b. a variant of presentlang (because in this case,
33625                 #      presentlang can be used as a fallback for messages
33626                 #      which are not translated in the desiredlang catalog).
33627                 case "$desiredlang" in
33628                   "$presentlang"*) useit=yes;;
33629                 esac
33630               done
33631               if test $useit = yes; then
33632                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33633               fi
33634             done
33635           fi
33636           CATALOGS=
33637           if test -n "$INST_LINGUAS"; then
33638             for lang in $INST_LINGUAS; do
33639               CATALOGS="$CATALOGS $lang.gmo"
33640             done
33641           fi
33642           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33643           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"
33644           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33645             if test -f "$f"; then
33646               case "$f" in
33647                 *.orig | *.bak | *~) ;;
33648                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33649               esac
33650             fi
33651           done
33652         fi
33653         ;;
33654       esac
33655     done ;;
33656     "default":C)
33657  ;;
33658
33659   esac
33660 done # for ac_tag
33661
33662
33663 as_fn_exit 0
33664 _ACEOF
33665 ac_clean_files=$ac_clean_files_save
33666
33667 test $ac_write_fail = 0 ||
33668   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33669
33670
33671 # configure is writing to config.log, and then calls config.status.
33672 # config.status does its own redirection, appending to config.log.
33673 # Unfortunately, on DOS this fails, as config.log is still kept open
33674 # by configure, so config.status won't be able to write to it; its
33675 # output is simply discarded.  So we exec the FD to /dev/null,
33676 # effectively closing config.log, so it can be properly (re)opened and
33677 # appended to by config.status.  When coming back to configure, we
33678 # need to make the FD available again.
33679 if test "$no_create" != yes; then
33680   ac_cs_success=:
33681   ac_config_status_args=
33682   test "$silent" = yes &&
33683     ac_config_status_args="$ac_config_status_args --quiet"
33684   exec 5>/dev/null
33685   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33686   exec 5>>config.log
33687   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33688   # would make configure fail if this is the last instruction.
33689   $ac_cs_success || as_fn_exit 1
33690 fi
33691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33692   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33693 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33694 fi
33695
33696
33697 if test "${support_bat}" = "yes" ; then
33698    if test "x$QMAKE" = "xnone"; then
33699       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33700    fi
33701
33702    cd src/qt-console
33703    echo "Creating bat Makefile"
33704    touch bat
33705    chmod 755 bat
33706    rm -f Makefile
33707    $QMAKE
33708    ${MAKE:-make} clean
33709    cd ${BUILD_DIR}
33710 fi
33711
33712 if test X"$GCC" = "Xyes" ; then
33713   echo "Doing make of dependencies"
33714   ${MAKE:-make} depend
33715 fi
33716
33717 cd src/qt-console
33718 chmod 755 install_conf_file build-depkgs-qt-console
33719 cd ${BUILD_DIR}
33720
33721 cd scripts
33722 chmod 755 bacula btraceback mtx-changer
33723 chmod 755 dvd-handler dvd-simulator
33724 chmod 755 bconsole mtx-changer devel_bacula logrotate
33725 cd ..
33726
33727 c=updatedb
33728 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33729 chmod 755 $c/update_postgresql_tables_10_to_11
33730 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33731 chmod 755 $c/update_postgresql_tables_11_to_12
33732
33733
33734 c=src/cats
33735
33736 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33737 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33738
33739 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33740 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33741
33742 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33743 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33744
33745 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33746 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33747
33748 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33749 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33750
33751
33752 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33753 chmod 755 $c/sqlite
33754 chmod 755 $c/mysql
33755
33756 chmod 755 $c/install-default-backend
33757
33758 chmod 755 src/win32/build-depkgs-mingw32
33759
33760 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33761    largefile_support="yes"
33762 fi
33763
33764 if test X"$GCC" = "Xyes" ; then
33765                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33766    if test "x${CCVERSION}" = "x" ; then
33767       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33768    fi
33769    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33770    if test x"${CXXVERSION}" = x ; then
33771       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33772    fi
33773 fi
33774
33775 # clean up any old junk
33776 echo " "
33777 echo "Cleaning up"
33778 echo " "
33779 ${MAKE:-make} clean
33780
33781 echo "
33782 Configuration on `date`:
33783
33784    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33785    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33786    Source code location:     ${srcdir}
33787    Install binaries:         ${sbindir}
33788    Install libraries:        ${libdir}
33789    Install config files:     ${sysconfdir}
33790    Scripts directory:        ${scriptdir}
33791    Archive directory:        ${archivedir}
33792    Working directory:        ${working_dir}
33793    PID directory:            ${piddir}
33794    Subsys directory:         ${subsysdir}
33795    Man directory:            ${mandir}
33796    Data directory:           ${datarootdir}
33797    Plugin directory:         ${plugindir}
33798    C Compiler:               ${CC} ${CCVERSION}
33799    C++ Compiler:             ${CXX} ${CXXVERSION}
33800    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33801    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33802    Libraries:                ${LIBS}
33803    Statically Linked Tools:  ${support_static_tools}
33804    Statically Linked FD:     ${support_static_fd}
33805    Statically Linked SD:     ${support_static_sd}
33806    Statically Linked DIR:    ${support_static_dir}
33807    Statically Linked CONS:   ${support_static_cons}
33808    Database backends:        ${db_backends}
33809    Database port:            ${db_port}
33810    Database name:            ${db_name}
33811    Database user:            ${db_user}
33812
33813    Job Output Email:         ${job_email}
33814    Traceback Email:          ${dump_email}
33815    SMTP Host Address:        ${smtp_host}
33816
33817    Director Port:            ${dir_port}
33818    File daemon Port:         ${fd_port}
33819    Storage daemon Port:      ${sd_port}
33820
33821    Director User:            ${dir_user}
33822    Director Group:           ${dir_group}
33823    Storage Daemon User:      ${sd_user}
33824    Storage DaemonGroup:      ${sd_group}
33825    File Daemon User:         ${fd_user}
33826    File Daemon Group:        ${fd_group}
33827
33828    Large file support:       $largefile_support
33829    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33830    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33831    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33832    TLS support:              ${support_tls}
33833    Encryption support:       ${support_crypto}
33834    ZLIB support:             ${have_zlib}
33835    LZO support:              ${have_lzo}
33836    enable-smartalloc:        ${support_smartalloc}
33837    enable-lockmgr:           ${support_lockmgr}
33838    bat support:              ${support_bat}
33839    enable-gnome:             ${support_gnome} ${gnome_version}
33840    enable-bwx-console:       ${support_wx_console} ${wx_version}
33841    enable-tray-monitor:      ${support_tray_monitor}
33842    client-only:              ${build_client_only}
33843    build-dird:               ${build_dird}
33844    build-stored:             ${build_stored}
33845    Plugin support:           ${have_plugins}
33846    AFS support:              ${have_afs}
33847    ACL support:              ${have_acl}
33848    XATTR support:            ${have_xattr}
33849    Python support:           ${support_python} ${PYTHON_LIBS}
33850    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33851    Batch insert enabled:     ${batch_insert_db_backends}
33852
33853   " > config.out
33854
33855 # create a small shell script useful for support with
33856 # configure options and config.out info
33857 cat > scripts/bacula_config << EOF
33858 #!/bin/sh
33859 cat << __EOC__
33860 $ $0 $ac_configure_args
33861 EOF
33862 cat config.out >> scripts/bacula_config
33863 echo __EOC__ >> scripts/bacula_config
33864 chmod 755 scripts/bacula_config
33865
33866 cat config.out