]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Recompile configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 7.0.1.
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='7.0.1'
571 PACKAGE_STRING='bacula 7.0.1'
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 PSCMD
619 TAPEDRIVE
620 SYSTEMD_UNITDIR
621 OBJLIST
622 WRAPLIBS
623 WLDFLAGS
624 WCFLAGS
625 DLIB
626 DINCLUDE
627 DEBUG
628 FDLIBS
629 CAP_LIBS
630 LZO_LIBS
631 LZO_INC
632 AFS_LIBS
633 AFS_CFLAGS
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 READLINE_SRC
693 CONS_LDFLAGS
694 CONS_LIBS
695 CONS_SRC
696 CONS_OBJ
697 CONS_INC
698 STORED_DIR
699 DIR_TOOLS
700 DIRD_DIR
701 ALL_DIRS
702 STATIC_CONS
703 STATIC_DIR
704 STATIC_SD
705 STATIC_FD
706 TTOOL_LDFLAGS
707 QWT
708 QWT_LIB
709 QWT_LDFLAGS
710 QWT_INC
711 BAT_DIR
712 INTL_LIBTOOL_SUFFIX_PREFIX
713 INTLOBJS
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATOBJEXT
718 USE_INCLUDED_LIBINTL
719 BUILD_INCLUDED_LIBINTL
720 INTLBISON
721 HAVE_WPRINTF
722 HAVE_SNPRINTF
723 HAVE_ASPRINTF
724 HAVE_POSIX_PRINTF
725 GLIBC21
726 ALLOCA
727 GLIBC2
728 POSUB
729 LTLIBINTL
730 LIBINTL
731 INTLLIBS
732 LTLIBICONV
733 LIBICONV
734 INTL_MACOSX_LIBS
735 MSGMERGE
736 XGETTEXT
737 GMSGFMT
738 MSGFMT
739 USE_NLS
740 MKINSTALLDIRS
741 SET_MAKE
742 HAVE_DARWIN_OS_FALSE
743 HAVE_DARWIN_OS_TRUE
744 HAVE_IRIX_OS_FALSE
745 HAVE_IRIX_OS_TRUE
746 HAVE_SGI_OS_FALSE
747 HAVE_SGI_OS_TRUE
748 HAVE_BSDI_OS_FALSE
749 HAVE_BSDI_OS_TRUE
750 HAVE_OPENBSD_OS_FALSE
751 HAVE_OPENBSD_OS_TRUE
752 HAVE_NETBSD_OS_FALSE
753 HAVE_NETBSD_OS_TRUE
754 HAVE_FREEBSD_OS_FALSE
755 HAVE_FREEBSD_OS_TRUE
756 HAVE_LINUX_OS_FALSE
757 HAVE_LINUX_OS_TRUE
758 HAVE_HPUX_OS_FALSE
759 HAVE_HPUX_OS_TRUE
760 HAVE_AIX_OS_FALSE
761 HAVE_AIX_OS_TRUE
762 HAVE_OSF1_OS_FALSE
763 HAVE_OSF1_OS_TRUE
764 HAVE_HURD_OS_FALSE
765 HAVE_HURD_OS_TRUE
766 HAVE_SUN_OS_FALSE
767 HAVE_SUN_OS_TRUE
768 INCLUDE_UNINSTALL_TARGET
769 INCLUDE_INSTALL_TARGET
770 FD_PLUGIN_DIR
771 QMAKE_LIBTOOL
772 LIBTOOL_CLEAN_TARGET
773 LIBTOOL_UNINSTALL_TARGET
774 LIBTOOL_INSTALL_TARGET
775 DEFAULT_SHARED_OBJECT_TYPE
776 DEFAULT_ARCHIVE_TYPE
777 DEFAULT_OBJECT_TYPE
778 LIBADD_DL
779 LT_DLPREOPEN
780 LIBADD_DLD_LINK
781 LIBADD_SHL_LOAD
782 LIBADD_DLOPEN
783 LT_DLLOADERS
784 CXXCPP
785 OTOOL64
786 OTOOL
787 LIPO
788 NMEDIT
789 DSYMUTIL
790 MANIFEST_TOOL
791 RANLIB
792 STRIP
793 ac_ct_AR
794 DLLTOOL
795 OBJDUMP
796 LN_S
797 NM
798 ac_ct_DUMPBIN
799 DUMPBIN
800 LD
801 FGREP
802 host_os
803 host_vendor
804 host_cpu
805 host
806 build_os
807 build_vendor
808 build_cpu
809 build
810 LIBTOOL
811 LOCAL_DEFS
812 LOCAL_LDFLAGS
813 LOCAL_CFLAGS
814 LOCAL_LIBS
815 MAKE_SHELL
816 ARFLAGS
817 AWK
818 PIDOF
819 CDRECORD
820 GMAKE
821 QMAKE
822 PKGCONFIG
823 DVDRWFORMAT
824 DVDRWMEDIAINFO
825 GROWISOFS
826 PYTHON
827 MKISOFS
828 DD
829 MTX
830 OPENSSL
831 AR
832 TBL
833 CMP
834 ECHO
835 SED
836 CP
837 REMOVE
838 MV
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 EGREP
843 GREP
844 CPP
845 ac_ct_CXX
846 CXXFLAGS
847 CXX
848 OBJEXT
849 EXEEXT
850 ac_ct_CC
851 CPPFLAGS
852 LDFLAGS
853 CFLAGS
854 CC
855 LIBBACFIND_LT_RELEASE
856 LIBBACCATS_LT_RELEASE
857 LIBBACSQL_LT_RELEASE
858 LIBBACPY_LT_RELEASE
859 LIBBACCFG_LT_RELEASE
860 LIBBAC_LT_RELEASE
861 BQT4_VERSION
862 DEPKGS_VERSION
863 DEPKGS_QT_VERSION
864 BDB_VERSION
865 post_host
866 BACULA
867 LSMDATE
868 DATE
869 VERSION
870 FALSEPRG
871 TRUEPRG
872 TOP_DIR
873 BUILD_DIR
874 target_alias
875 host_alias
876 build_alias
877 LIBS
878 ECHO_T
879 ECHO_N
880 ECHO_C
881 DEFS
882 mandir
883 localedir
884 libdir
885 psdir
886 pdfdir
887 dvidir
888 htmldir
889 infodir
890 docdir
891 oldincludedir
892 includedir
893 localstatedir
894 sharedstatedir
895 sysconfdir
896 datadir
897 datarootdir
898 libexecdir
899 sbindir
900 bindir
901 program_transform_name
902 prefix
903 exec_prefix
904 PACKAGE_URL
905 PACKAGE_BUGREPORT
906 PACKAGE_STRING
907 PACKAGE_VERSION
908 PACKAGE_TARNAME
909 PACKAGE_NAME
910 PATH_SEPARATOR
911 SHELL'
912 ac_subst_files='MCOMMON'
913 ac_user_opts='
914 enable_option_checking
915 enable_libtool
916 enable_shared
917 enable_static
918 with_pic
919 enable_fast_install
920 with_gnu_ld
921 with_sysroot
922 enable_libtool_lock
923 enable_includes
924 enable_nls
925 enable_rpath
926 with_libiconv_prefix
927 with_libintl_prefix
928 with_included_gettext
929 enable_bat
930 enable_smartalloc
931 enable_lockmgr
932 enable_static_tools
933 enable_static_fd
934 enable_static_sd
935 enable_static_dir
936 enable_static_cons
937 enable_client_only
938 enable_build_dird
939 enable_build_stored
940 enable_conio
941 enable_ipv6
942 enable_readline
943 with_readline
944 with_tcp_wrappers
945 with_openssl
946 with_working_dir
947 with_archivedir
948 with_basename
949 with_hostname
950 with_scriptdir
951 with_bsrdir
952 with_logdir
953 with_plugindir
954 with_dump_email
955 with_job_email
956 with_smtp_host
957 with_pid_dir
958 with_subsys_dir
959 with_baseport
960 with_dir_password
961 with_fd_password
962 with_sd_password
963 with_mon_dir_password
964 with_mon_fd_password
965 with_mon_sd_password
966 with_db_name
967 with_db_user
968 with_db_password
969 with_db_port
970 with_dir_user
971 with_dir_group
972 with_sd_user
973 with_sd_group
974 with_fd_user
975 with_fd_group
976 with_sbin_perm
977 enable_batch_insert
978 with_postgresql
979 with_mysql
980 with_embedded_mysql
981 with_sqlite3
982 enable_largefile
983 with_x
984 enable_afs
985 with_afsdir
986 enable_lzo
987 with_lzo
988 enable_acl
989 enable_xattr
990 with_systemd
991 '
992       ac_precious_vars='build_alias
993 host_alias
994 target_alias
995 CC
996 CFLAGS
997 LDFLAGS
998 LIBS
999 CPPFLAGS
1000 CXX
1001 CXXFLAGS
1002 CCC
1003 CPP
1004 CXXCPP
1005 XMKMF'
1006
1007
1008 # Initialize some variables set by options.
1009 ac_init_help=
1010 ac_init_version=false
1011 ac_unrecognized_opts=
1012 ac_unrecognized_sep=
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file=/dev/null
1016 exec_prefix=NONE
1017 no_create=
1018 no_recursion=
1019 prefix=NONE
1020 program_prefix=NONE
1021 program_suffix=NONE
1022 program_transform_name=s,x,x,
1023 silent=
1024 site=
1025 srcdir=
1026 verbose=
1027 x_includes=NONE
1028 x_libraries=NONE
1029
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir='${exec_prefix}/bin'
1037 sbindir='${exec_prefix}/sbin'
1038 libexecdir='${exec_prefix}/libexec'
1039 datarootdir='${prefix}/share'
1040 datadir='${datarootdir}'
1041 sysconfdir='${prefix}/etc'
1042 sharedstatedir='${prefix}/com'
1043 localstatedir='${prefix}/var'
1044 includedir='${prefix}/include'
1045 oldincludedir='/usr/include'
1046 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1047 infodir='${datarootdir}/info'
1048 htmldir='${docdir}'
1049 dvidir='${docdir}'
1050 pdfdir='${docdir}'
1051 psdir='${docdir}'
1052 libdir='${exec_prefix}/lib'
1053 localedir='${datarootdir}/locale'
1054 mandir='${datarootdir}/man'
1055
1056 ac_prev=
1057 ac_dashdash=
1058 for ac_option
1059 do
1060   # If the previous option needs an argument, assign it.
1061   if test -n "$ac_prev"; then
1062     eval $ac_prev=\$ac_option
1063     ac_prev=
1064     continue
1065   fi
1066
1067   case $ac_option in
1068   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1069   *=)   ac_optarg= ;;
1070   *)    ac_optarg=yes ;;
1071   esac
1072
1073   # Accept the important Cygnus configure options, so we can diagnose typos.
1074
1075   case $ac_dashdash$ac_option in
1076   --)
1077     ac_dashdash=yes ;;
1078
1079   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1080     ac_prev=bindir ;;
1081   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1082     bindir=$ac_optarg ;;
1083
1084   -build | --build | --buil | --bui | --bu)
1085     ac_prev=build_alias ;;
1086   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1087     build_alias=$ac_optarg ;;
1088
1089   -cache-file | --cache-file | --cache-fil | --cache-fi \
1090   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1091     ac_prev=cache_file ;;
1092   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1093   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1094     cache_file=$ac_optarg ;;
1095
1096   --config-cache | -C)
1097     cache_file=config.cache ;;
1098
1099   -datadir | --datadir | --datadi | --datad)
1100     ac_prev=datadir ;;
1101   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1102     datadir=$ac_optarg ;;
1103
1104   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1105   | --dataroo | --dataro | --datar)
1106     ac_prev=datarootdir ;;
1107   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1108   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1109     datarootdir=$ac_optarg ;;
1110
1111   -disable-* | --disable-*)
1112     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115       as_fn_error $? "invalid feature name: $ac_useropt"
1116     ac_useropt_orig=$ac_useropt
1117     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118     case $ac_user_opts in
1119       *"
1120 "enable_$ac_useropt"
1121 "*) ;;
1122       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123          ac_unrecognized_sep=', ';;
1124     esac
1125     eval enable_$ac_useropt=no ;;
1126
1127   -docdir | --docdir | --docdi | --doc | --do)
1128     ac_prev=docdir ;;
1129   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130     docdir=$ac_optarg ;;
1131
1132   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133     ac_prev=dvidir ;;
1134   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135     dvidir=$ac_optarg ;;
1136
1137   -enable-* | --enable-*)
1138     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141       as_fn_error $? "invalid feature name: $ac_useropt"
1142     ac_useropt_orig=$ac_useropt
1143     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144     case $ac_user_opts in
1145       *"
1146 "enable_$ac_useropt"
1147 "*) ;;
1148       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1149          ac_unrecognized_sep=', ';;
1150     esac
1151     eval enable_$ac_useropt=\$ac_optarg ;;
1152
1153   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1154   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1155   | --exec | --exe | --ex)
1156     ac_prev=exec_prefix ;;
1157   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1158   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1159   | --exec=* | --exe=* | --ex=*)
1160     exec_prefix=$ac_optarg ;;
1161
1162   -gas | --gas | --ga | --g)
1163     # Obsolete; use --with-gas.
1164     with_gas=yes ;;
1165
1166   -help | --help | --hel | --he | -h)
1167     ac_init_help=long ;;
1168   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1169     ac_init_help=recursive ;;
1170   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1171     ac_init_help=short ;;
1172
1173   -host | --host | --hos | --ho)
1174     ac_prev=host_alias ;;
1175   -host=* | --host=* | --hos=* | --ho=*)
1176     host_alias=$ac_optarg ;;
1177
1178   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1179     ac_prev=htmldir ;;
1180   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1181   | --ht=*)
1182     htmldir=$ac_optarg ;;
1183
1184   -includedir | --includedir | --includedi | --included | --include \
1185   | --includ | --inclu | --incl | --inc)
1186     ac_prev=includedir ;;
1187   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1188   | --includ=* | --inclu=* | --incl=* | --inc=*)
1189     includedir=$ac_optarg ;;
1190
1191   -infodir | --infodir | --infodi | --infod | --info | --inf)
1192     ac_prev=infodir ;;
1193   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1194     infodir=$ac_optarg ;;
1195
1196   -libdir | --libdir | --libdi | --libd)
1197     ac_prev=libdir ;;
1198   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1199     libdir=$ac_optarg ;;
1200
1201   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1202   | --libexe | --libex | --libe)
1203     ac_prev=libexecdir ;;
1204   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1205   | --libexe=* | --libex=* | --libe=*)
1206     libexecdir=$ac_optarg ;;
1207
1208   -localedir | --localedir | --localedi | --localed | --locale)
1209     ac_prev=localedir ;;
1210   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1211     localedir=$ac_optarg ;;
1212
1213   -localstatedir | --localstatedir | --localstatedi | --localstated \
1214   | --localstate | --localstat | --localsta | --localst | --locals)
1215     ac_prev=localstatedir ;;
1216   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1217   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1218     localstatedir=$ac_optarg ;;
1219
1220   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1221     ac_prev=mandir ;;
1222   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1223     mandir=$ac_optarg ;;
1224
1225   -nfp | --nfp | --nf)
1226     # Obsolete; use --without-fp.
1227     with_fp=no ;;
1228
1229   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1230   | --no-cr | --no-c | -n)
1231     no_create=yes ;;
1232
1233   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1234   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1235     no_recursion=yes ;;
1236
1237   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1238   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1239   | --oldin | --oldi | --old | --ol | --o)
1240     ac_prev=oldincludedir ;;
1241   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1242   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1243   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1244     oldincludedir=$ac_optarg ;;
1245
1246   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1247     ac_prev=prefix ;;
1248   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1249     prefix=$ac_optarg ;;
1250
1251   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1252   | --program-pre | --program-pr | --program-p)
1253     ac_prev=program_prefix ;;
1254   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1255   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1256     program_prefix=$ac_optarg ;;
1257
1258   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1259   | --program-suf | --program-su | --program-s)
1260     ac_prev=program_suffix ;;
1261   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1262   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1263     program_suffix=$ac_optarg ;;
1264
1265   -program-transform-name | --program-transform-name \
1266   | --program-transform-nam | --program-transform-na \
1267   | --program-transform-n | --program-transform- \
1268   | --program-transform | --program-transfor \
1269   | --program-transfo | --program-transf \
1270   | --program-trans | --program-tran \
1271   | --progr-tra | --program-tr | --program-t)
1272     ac_prev=program_transform_name ;;
1273   -program-transform-name=* | --program-transform-name=* \
1274   | --program-transform-nam=* | --program-transform-na=* \
1275   | --program-transform-n=* | --program-transform-=* \
1276   | --program-transform=* | --program-transfor=* \
1277   | --program-transfo=* | --program-transf=* \
1278   | --program-trans=* | --program-tran=* \
1279   | --progr-tra=* | --program-tr=* | --program-t=*)
1280     program_transform_name=$ac_optarg ;;
1281
1282   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1283     ac_prev=pdfdir ;;
1284   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1285     pdfdir=$ac_optarg ;;
1286
1287   -psdir | --psdir | --psdi | --psd | --ps)
1288     ac_prev=psdir ;;
1289   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1290     psdir=$ac_optarg ;;
1291
1292   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1293   | -silent | --silent | --silen | --sile | --sil)
1294     silent=yes ;;
1295
1296   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1297     ac_prev=sbindir ;;
1298   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1299   | --sbi=* | --sb=*)
1300     sbindir=$ac_optarg ;;
1301
1302   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1303   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1304   | --sharedst | --shareds | --shared | --share | --shar \
1305   | --sha | --sh)
1306     ac_prev=sharedstatedir ;;
1307   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1308   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1309   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1310   | --sha=* | --sh=*)
1311     sharedstatedir=$ac_optarg ;;
1312
1313   -site | --site | --sit)
1314     ac_prev=site ;;
1315   -site=* | --site=* | --sit=*)
1316     site=$ac_optarg ;;
1317
1318   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1319     ac_prev=srcdir ;;
1320   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1321     srcdir=$ac_optarg ;;
1322
1323   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1324   | --syscon | --sysco | --sysc | --sys | --sy)
1325     ac_prev=sysconfdir ;;
1326   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1327   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1328     sysconfdir=$ac_optarg ;;
1329
1330   -target | --target | --targe | --targ | --tar | --ta | --t)
1331     ac_prev=target_alias ;;
1332   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1333     target_alias=$ac_optarg ;;
1334
1335   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1336     verbose=yes ;;
1337
1338   -version | --version | --versio | --versi | --vers | -V)
1339     ac_init_version=: ;;
1340
1341   -with-* | --with-*)
1342     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1343     # Reject names that are not valid shell variable names.
1344     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345       as_fn_error $? "invalid package name: $ac_useropt"
1346     ac_useropt_orig=$ac_useropt
1347     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348     case $ac_user_opts in
1349       *"
1350 "with_$ac_useropt"
1351 "*) ;;
1352       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1353          ac_unrecognized_sep=', ';;
1354     esac
1355     eval with_$ac_useropt=\$ac_optarg ;;
1356
1357   -without-* | --without-*)
1358     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1359     # Reject names that are not valid shell variable names.
1360     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361       as_fn_error $? "invalid package name: $ac_useropt"
1362     ac_useropt_orig=$ac_useropt
1363     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364     case $ac_user_opts in
1365       *"
1366 "with_$ac_useropt"
1367 "*) ;;
1368       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1369          ac_unrecognized_sep=', ';;
1370     esac
1371     eval with_$ac_useropt=no ;;
1372
1373   --x)
1374     # Obsolete; use --with-x.
1375     with_x=yes ;;
1376
1377   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1378   | --x-incl | --x-inc | --x-in | --x-i)
1379     ac_prev=x_includes ;;
1380   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1381   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1382     x_includes=$ac_optarg ;;
1383
1384   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1385   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1386     ac_prev=x_libraries ;;
1387   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1388   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1389     x_libraries=$ac_optarg ;;
1390
1391   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1392 Try \`$0 --help' for more information"
1393     ;;
1394
1395   *=*)
1396     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1397     # Reject names that are not valid shell variable names.
1398     case $ac_envvar in #(
1399       '' | [0-9]* | *[!_$as_cr_alnum]* )
1400       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1401     esac
1402     eval $ac_envvar=\$ac_optarg
1403     export $ac_envvar ;;
1404
1405   *)
1406     # FIXME: should be removed in autoconf 3.0.
1407     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1411     ;;
1412
1413   esac
1414 done
1415
1416 if test -n "$ac_prev"; then
1417   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1418   as_fn_error $? "missing argument to $ac_option"
1419 fi
1420
1421 if test -n "$ac_unrecognized_opts"; then
1422   case $enable_option_checking in
1423     no) ;;
1424     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1425     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1426   esac
1427 fi
1428
1429 # Check all directory arguments for consistency.
1430 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1431                 datadir sysconfdir sharedstatedir localstatedir includedir \
1432                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1433                 libdir localedir mandir
1434 do
1435   eval ac_val=\$$ac_var
1436   # Remove trailing slashes.
1437   case $ac_val in
1438     */ )
1439       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1440       eval $ac_var=\$ac_val;;
1441   esac
1442   # Be sure to have absolute directory names.
1443   case $ac_val in
1444     [\\/$]* | ?:[\\/]* )  continue;;
1445     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1446   esac
1447   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1448 done
1449
1450 # There might be people who depend on the old broken behavior: `$host'
1451 # used to hold the argument of --host etc.
1452 # FIXME: To remove some day.
1453 build=$build_alias
1454 host=$host_alias
1455 target=$target_alias
1456
1457 # FIXME: To remove some day.
1458 if test "x$host_alias" != x; then
1459   if test "x$build_alias" = x; then
1460     cross_compiling=maybe
1461     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1462     If a cross compiler is detected then cross compile mode will be used" >&2
1463   elif test "x$build_alias" != "x$host_alias"; then
1464     cross_compiling=yes
1465   fi
1466 fi
1467
1468 ac_tool_prefix=
1469 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1470
1471 test "$silent" = yes && exec 6>/dev/null
1472
1473
1474 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1475 ac_ls_di=`ls -di .` &&
1476 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1477   as_fn_error $? "working directory cannot be determined"
1478 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1479   as_fn_error $? "pwd does not report name of working directory"
1480
1481
1482 # Find the source files, if location was not specified.
1483 if test -z "$srcdir"; then
1484   ac_srcdir_defaulted=yes
1485   # Try the directory containing this script, then the parent directory.
1486   ac_confdir=`$as_dirname -- "$as_myself" ||
1487 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488          X"$as_myself" : 'X\(//\)[^/]' \| \
1489          X"$as_myself" : 'X\(//\)$' \| \
1490          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1491 $as_echo X"$as_myself" |
1492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1493             s//\1/
1494             q
1495           }
1496           /^X\(\/\/\)[^/].*/{
1497             s//\1/
1498             q
1499           }
1500           /^X\(\/\/\)$/{
1501             s//\1/
1502             q
1503           }
1504           /^X\(\/\).*/{
1505             s//\1/
1506             q
1507           }
1508           s/.*/./; q'`
1509   srcdir=$ac_confdir
1510   if test ! -r "$srcdir/$ac_unique_file"; then
1511     srcdir=..
1512   fi
1513 else
1514   ac_srcdir_defaulted=no
1515 fi
1516 if test ! -r "$srcdir/$ac_unique_file"; then
1517   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1519 fi
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521 ac_abs_confdir=`(
1522         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1523         pwd)`
1524 # When building in place, set srcdir=.
1525 if test "$ac_abs_confdir" = "$ac_pwd"; then
1526   srcdir=.
1527 fi
1528 # Remove unnecessary trailing slashes from srcdir.
1529 # Double slashes in file names in object file debugging info
1530 # mess up M-x gdb in Emacs.
1531 case $srcdir in
1532 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1533 esac
1534 for ac_var in $ac_precious_vars; do
1535   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1536   eval ac_env_${ac_var}_value=\$${ac_var}
1537   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1538   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1539 done
1540
1541 #
1542 # Report the --help message.
1543 #
1544 if test "$ac_init_help" = "long"; then
1545   # Omit some internal or obsolete options to make the list less imposing.
1546   # This message is too long to be a string in the A/UX 3.1 sh.
1547   cat <<_ACEOF
1548 \`configure' configures bacula 7.0.1 to adapt to many kinds of systems.
1549
1550 Usage: $0 [OPTION]... [VAR=VALUE]...
1551
1552 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1553 VAR=VALUE.  See below for descriptions of some of the useful variables.
1554
1555 Defaults for the options are specified in brackets.
1556
1557 Configuration:
1558   -h, --help              display this help and exit
1559       --help=short        display options specific to this package
1560       --help=recursive    display the short help of all the included packages
1561   -V, --version           display version information and exit
1562   -q, --quiet, --silent   do not print \`checking ...' messages
1563       --cache-file=FILE   cache test results in FILE [disabled]
1564   -C, --config-cache      alias for \`--cache-file=config.cache'
1565   -n, --no-create         do not create output files
1566       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1567
1568 Installation directories:
1569   --prefix=PREFIX         install architecture-independent files in PREFIX
1570                           [$ac_default_prefix]
1571   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1572                           [PREFIX]
1573
1574 By default, \`make install' will install all the files in
1575 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1576 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1577 for instance \`--prefix=\$HOME'.
1578
1579 For better control, use the options below.
1580
1581 Fine tuning of the installation directories:
1582   --bindir=DIR            user executables [EPREFIX/bin]
1583   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1584   --libexecdir=DIR        program executables [EPREFIX/libexec]
1585   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1586   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1587   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1588   --libdir=DIR            object code libraries [EPREFIX/lib]
1589   --includedir=DIR        C header files [PREFIX/include]
1590   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1591   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1592   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1593   --infodir=DIR           info documentation [DATAROOTDIR/info]
1594   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1595   --mandir=DIR            man documentation [DATAROOTDIR/man]
1596   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1597   --htmldir=DIR           html documentation [DOCDIR]
1598   --dvidir=DIR            dvi documentation [DOCDIR]
1599   --pdfdir=DIR            pdf documentation [DOCDIR]
1600   --psdir=DIR             ps documentation [DOCDIR]
1601 _ACEOF
1602
1603   cat <<\_ACEOF
1604
1605 X features:
1606   --x-includes=DIR    X include files are in DIR
1607   --x-libraries=DIR   X library files are in DIR
1608
1609 System types:
1610   --build=BUILD     configure for building on BUILD [guessed]
1611   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1612 _ACEOF
1613 fi
1614
1615 if test -n "$ac_init_help"; then
1616   case $ac_init_help in
1617      short | recursive ) echo "Configuration of bacula 7.0.1:";;
1618    esac
1619   cat <<\_ACEOF
1620
1621 Optional Features:
1622   --disable-option-checking  ignore unrecognized --enable/--with options
1623   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1624   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1625   --enable-libtool        enable building using GNU libtool [default=yes]
1626   --enable-shared[=PKGS]  build shared libraries [default=yes]
1627   --enable-static[=PKGS]  build static libraries [default=no]
1628   --enable-fast-install[=PKGS]
1629                           optimize for fast installation [default=yes]
1630   --disable-libtool-lock  avoid locking (might break parallel builds)
1631   --enable-includes       enable installing of include files [default=no]
1632   --disable-nls           do not use Native Language Support
1633   --disable-rpath         do not hardcode runtime library paths
1634   --enable-bat            enable build of bat Qt4 GUI [default=no]
1635   --enable-smartalloc     enable smartalloc debugging support [default=no]
1636   --enable-lockmgr        enable lock manager support [default=no]
1637   --enable-static-tools   enable static tape tools [default=no]
1638   --enable-static-fd      enable static File daemon [default=no]
1639   --enable-static-sd      enable static Storage daemon [default=no]
1640   --enable-static-dir     enable static Director [default=no]
1641   --enable-static-cons    enable static Console [default=no]
1642   --enable-client-only    build client (File daemon) only [default=no]
1643   --enable-build-dird     enable building of dird (Director) [default=yes]
1644   --enable-build-stored   enable building of stored (Storage daemon)
1645                           [default=yes]
1646   --disable-conio         disable conio support [default=no]
1647   --enable-ipv6           enable ipv6 support [default=yes]
1648   --disable-readline      disable readline support [default=yes]
1649   --enable-batch-insert   enable the DB batch insert code [default=yes]
1650   --disable-largefile     omit support for large files
1651   --disable-afs           disable afs support [default=auto]
1652   --disable-lzo           disable lzo support [default=yes]
1653   --disable-acl           disable acl support [default=auto]
1654   --disable-xattr         disable xattr support [default=auto]
1655
1656 Optional Packages:
1657   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1658   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1659   --with-pic              try to use only PIC/non-PIC objects [default=use
1660                           both]
1661   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1662   --with-sysroot=DIR Search for dependent libraries within DIR
1663                         (or the compiler's sysroot if not specified).
1664   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1665   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1666   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1667   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1668   --without-libintl-prefix     don't search for libintl in includedir and libdir
1669   --with-included-gettext use the GNU gettext library included here
1670   --with-readline[=DIR]   specify readline library directory
1671   --with-tcp-wrappers[=DIR]
1672                           enable tcpwrappers support
1673   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1674   --with-working-dir=PATH specify path of Bacula working directory
1675   --with-archivedir=PATH  specify path of SD archive directory
1676   --with-basename=RESNAME specify base resource name for daemons
1677   --with-hostname=RESNAME specify host name for daemons
1678   --with-scriptdir=PATH   specify path of Bacula scripts directory
1679   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1680   --with-logdir=PATH      specify path of Bacula logs directory
1681   --with-plugindir=PATH   specify path of Bacula plugins directory
1682   --with-dump-email=EMAIL dump email address
1683   --with-job-email=EMAIL  job output email address
1684   --with-smtp-host=HOST   SMTP mail host address
1685   --with-pid-dir=PATH     specify location of Bacula pid files
1686   --with-subsys-dir=PATH  specify location of Bacula subsys file
1687   --with-baseport=PORT    specify base port address for daemons
1688   --with-dir-password=PASSWORD
1689                           specify Director's password
1690   --with-fd-password=PASSWORD
1691                           specify Client's password
1692   --with-sd-password=PASSWORD
1693                           specify Storage daemon's password
1694   --with-mon-dir-password=PASSWORD
1695                           specify Director's password used by the monitor
1696   --with-mon-fd-password=PASSWORD
1697                           specify Client's password used by the monitor
1698   --with-mon-sd-password=PASSWORD
1699                           specify Storage daemon's password used by the
1700                           monitor
1701   --with-db-name=DBNAME   specify database name [default=bacula]
1702   --with-db-user=UNAME    specify database user [default=bacula]
1703   --with-db-password=PWD  specify database password [default=*none*]
1704   --with-db-port=DBPORT   specify a database port [default=null]
1705   --with-dir-user=USER    specify user for Director daemon
1706   --with-dir-group=GROUP  specify group for Director daemon
1707   --with-sd-user=USER     specify user for Storage daemon
1708   --with-sd-group=GROUP   specify group for Storage daemon
1709   --with-fd-user=USER     specify user for File daemon
1710   --with-fd-group=GROUP   specify group for File daemon
1711   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1712   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1713                           base install directory, [default=/usr/local/pgsql]
1714   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1715                           directory, default is to search through a number of
1716                           common places for the MySQL files.
1717   --with-embedded-mysql[=DIR]
1718                           Include MySQL support. DIR is the MySQL base install
1719                           directory, default is to search through a number of
1720                           common places for the MySQL files.
1721   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1722                           install directory, default is to search through a
1723                           number of common places for the SQLite3 files.
1724   --with-x                use the X Window System
1725   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1726   --with-lzo[=DIR]        specify lzo library directory
1727   --with-systemd[=UNITDIR]
1728                           Include systemd support. UNITDIR is where systemd
1729                           system .service files are located, default is to ask
1730                           systemctl.
1731
1732 Some influential environment variables:
1733   CC          C compiler command
1734   CFLAGS      C compiler flags
1735   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1736               nonstandard directory <lib dir>
1737   LIBS        libraries to pass to the linker, e.g. -l<library>
1738   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1739               you have headers in a nonstandard directory <include dir>
1740   CXX         C++ compiler command
1741   CXXFLAGS    C++ compiler flags
1742   CPP         C preprocessor
1743   CXXCPP      C++ preprocessor
1744   XMKMF       Path to xmkmf, Makefile generator for X Window System
1745
1746 Use these variables to override the choices made by `configure' or to help
1747 it to find libraries and programs with nonstandard names/locations.
1748
1749 Report bugs to the package provider.
1750 _ACEOF
1751 ac_status=$?
1752 fi
1753
1754 if test "$ac_init_help" = "recursive"; then
1755   # If there are subdirs, report their specific --help.
1756   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1757     test -d "$ac_dir" ||
1758       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1759       continue
1760     ac_builddir=.
1761
1762 case "$ac_dir" in
1763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1764 *)
1765   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1766   # A ".." for each directory in $ac_dir_suffix.
1767   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1768   case $ac_top_builddir_sub in
1769   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1770   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1771   esac ;;
1772 esac
1773 ac_abs_top_builddir=$ac_pwd
1774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1775 # for backward compatibility:
1776 ac_top_builddir=$ac_top_build_prefix
1777
1778 case $srcdir in
1779   .)  # We are building in place.
1780     ac_srcdir=.
1781     ac_top_srcdir=$ac_top_builddir_sub
1782     ac_abs_top_srcdir=$ac_pwd ;;
1783   [\\/]* | ?:[\\/]* )  # Absolute name.
1784     ac_srcdir=$srcdir$ac_dir_suffix;
1785     ac_top_srcdir=$srcdir
1786     ac_abs_top_srcdir=$srcdir ;;
1787   *) # Relative name.
1788     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1789     ac_top_srcdir=$ac_top_build_prefix$srcdir
1790     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1791 esac
1792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1793
1794     cd "$ac_dir" || { ac_status=$?; continue; }
1795     # Check for guested configure.
1796     if test -f "$ac_srcdir/configure.gnu"; then
1797       echo &&
1798       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1799     elif test -f "$ac_srcdir/configure"; then
1800       echo &&
1801       $SHELL "$ac_srcdir/configure" --help=recursive
1802     else
1803       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1804     fi || ac_status=$?
1805     cd "$ac_pwd" || { ac_status=$?; break; }
1806   done
1807 fi
1808
1809 test -n "$ac_init_help" && exit $ac_status
1810 if $ac_init_version; then
1811   cat <<\_ACEOF
1812 bacula configure 7.0.1
1813 generated by GNU Autoconf 2.68
1814
1815 Copyright (C) 2010 Free Software Foundation, Inc.
1816 This configure script is free software; the Free Software Foundation
1817 gives unlimited permission to copy, distribute and modify it.
1818 _ACEOF
1819   exit
1820 fi
1821
1822 ## ------------------------ ##
1823 ## Autoconf initialization. ##
1824 ## ------------------------ ##
1825
1826 # ac_fn_c_try_compile LINENO
1827 # --------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_compile ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   rm -f conftest.$ac_objext
1833   if { { ac_try="$ac_compile"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_compile") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } && {
1849          test -z "$ac_c_werror_flag" ||
1850          test ! -s conftest.err
1851        } && test -s conftest.$ac_objext; then :
1852   ac_retval=0
1853 else
1854   $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857         ac_retval=1
1858 fi
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860   as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_compile
1863
1864 # ac_fn_cxx_try_compile LINENO
1865 # ----------------------------
1866 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_cxx_try_compile ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   rm -f conftest.$ac_objext
1871   if { { ac_try="$ac_compile"
1872 case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878   (eval "$ac_compile") 2>conftest.err
1879   ac_status=$?
1880   if test -s conftest.err; then
1881     grep -v '^ *+' conftest.err >conftest.er1
1882     cat conftest.er1 >&5
1883     mv -f conftest.er1 conftest.err
1884   fi
1885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886   test $ac_status = 0; } && {
1887          test -z "$ac_cxx_werror_flag" ||
1888          test ! -s conftest.err
1889        } && test -s conftest.$ac_objext; then :
1890   ac_retval=0
1891 else
1892   $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895         ac_retval=1
1896 fi
1897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898   as_fn_set_status $ac_retval
1899
1900 } # ac_fn_cxx_try_compile
1901
1902 # ac_fn_c_try_cpp LINENO
1903 # ----------------------
1904 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1905 ac_fn_c_try_cpp ()
1906 {
1907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908   if { { ac_try="$ac_cpp conftest.$ac_ext"
1909 case "(($ac_try" in
1910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911   *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1916   ac_status=$?
1917   if test -s conftest.err; then
1918     grep -v '^ *+' conftest.err >conftest.er1
1919     cat conftest.er1 >&5
1920     mv -f conftest.er1 conftest.err
1921   fi
1922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923   test $ac_status = 0; } > conftest.i && {
1924          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1925          test ! -s conftest.err
1926        }; then :
1927   ac_retval=0
1928 else
1929   $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1931
1932     ac_retval=1
1933 fi
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935   as_fn_set_status $ac_retval
1936
1937 } # ac_fn_c_try_cpp
1938
1939 # ac_fn_c_try_link LINENO
1940 # -----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_c_try_link ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   rm -f conftest.$ac_objext conftest$ac_exeext
1946   if { { ac_try="$ac_link"
1947 case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_link") 2>conftest.err
1954   ac_status=$?
1955   if test -s conftest.err; then
1956     grep -v '^ *+' conftest.err >conftest.er1
1957     cat conftest.er1 >&5
1958     mv -f conftest.er1 conftest.err
1959   fi
1960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961   test $ac_status = 0; } && {
1962          test -z "$ac_c_werror_flag" ||
1963          test ! -s conftest.err
1964        } && test -s conftest$ac_exeext && {
1965          test "$cross_compiling" = yes ||
1966          $as_test_x conftest$ac_exeext
1967        }; then :
1968   ac_retval=0
1969 else
1970   $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973         ac_retval=1
1974 fi
1975   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1976   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1977   # interfere with the next link command; also delete a directory that is
1978   # left behind by Apple's compiler.  We do this before executing the actions.
1979   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981   as_fn_set_status $ac_retval
1982
1983 } # ac_fn_c_try_link
1984
1985 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists and can be compiled using the include files in
1988 # INCLUDES, setting the cache variable VAR accordingly.
1989 ac_fn_c_check_header_compile ()
1990 {
1991   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995   $as_echo_n "(cached) " >&6
1996 else
1997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h.  */
1999 $4
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003   eval "$3=yes"
2004 else
2005   eval "$3=no"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 eval ac_res=\$$3
2010                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014 } # ac_fn_c_check_header_compile
2015
2016 # ac_fn_c_try_run LINENO
2017 # ----------------------
2018 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2019 # that executables *can* be run.
2020 ac_fn_c_try_run ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   if { { ac_try="$ac_link"
2024 case "(($ac_try" in
2025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026   *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030   (eval "$ac_link") 2>&5
2031   ac_status=$?
2032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2034   { { case "(($ac_try" in
2035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036   *) ac_try_echo=$ac_try;;
2037 esac
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040   (eval "$ac_try") 2>&5
2041   ac_status=$?
2042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043   test $ac_status = 0; }; }; then :
2044   ac_retval=0
2045 else
2046   $as_echo "$as_me: program exited with status $ac_status" >&5
2047        $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2049
2050        ac_retval=$ac_status
2051 fi
2052   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2053   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054   as_fn_set_status $ac_retval
2055
2056 } # ac_fn_c_try_run
2057
2058 # ac_fn_c_check_func LINENO FUNC VAR
2059 # ----------------------------------
2060 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2061 ac_fn_c_check_func ()
2062 {
2063   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067   $as_echo_n "(cached) " >&6
2068 else
2069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h.  */
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2073 #define $2 innocuous_$2
2074
2075 /* System header to define __stub macros and hopefully few prototypes,
2076     which can conflict with char $2 (); below.
2077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2078     <limits.h> exists even on freestanding compilers.  */
2079
2080 #ifdef __STDC__
2081 # include <limits.h>
2082 #else
2083 # include <assert.h>
2084 #endif
2085
2086 #undef $2
2087
2088 /* Override any GCC internal prototype to avoid an error.
2089    Use char because int might match the return type of a GCC
2090    builtin and then its argument prototype would still apply.  */
2091 #ifdef __cplusplus
2092 extern "C"
2093 #endif
2094 char $2 ();
2095 /* The GNU C library defines this for functions which it implements
2096     to always fail with ENOSYS.  Some functions are actually named
2097     something starting with __ and the normal name is an alias.  */
2098 #if defined __stub_$2 || defined __stub___$2
2099 choke me
2100 #endif
2101
2102 int
2103 main ()
2104 {
2105 return $2 ();
2106   ;
2107   return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_link "$LINENO"; then :
2111   eval "$3=yes"
2112 else
2113   eval "$3=no"
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext \
2116     conftest$ac_exeext conftest.$ac_ext
2117 fi
2118 eval ac_res=\$$3
2119                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122
2123 } # ac_fn_c_check_func
2124
2125 # ac_fn_cxx_try_cpp LINENO
2126 # ------------------------
2127 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_cxx_try_cpp ()
2129 {
2130   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131   if { { ac_try="$ac_cpp conftest.$ac_ext"
2132 case "(($ac_try" in
2133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134   *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2139   ac_status=$?
2140   if test -s conftest.err; then
2141     grep -v '^ *+' conftest.err >conftest.er1
2142     cat conftest.er1 >&5
2143     mv -f conftest.er1 conftest.err
2144   fi
2145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146   test $ac_status = 0; } > conftest.i && {
2147          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2148          test ! -s conftest.err
2149        }; then :
2150   ac_retval=0
2151 else
2152   $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155     ac_retval=1
2156 fi
2157   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158   as_fn_set_status $ac_retval
2159
2160 } # ac_fn_cxx_try_cpp
2161
2162 # ac_fn_cxx_try_link LINENO
2163 # -------------------------
2164 # Try to link conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_cxx_try_link ()
2166 {
2167   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168   rm -f conftest.$ac_objext conftest$ac_exeext
2169   if { { ac_try="$ac_link"
2170 case "(($ac_try" in
2171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172   *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176   (eval "$ac_link") 2>conftest.err
2177   ac_status=$?
2178   if test -s conftest.err; then
2179     grep -v '^ *+' conftest.err >conftest.er1
2180     cat conftest.er1 >&5
2181     mv -f conftest.er1 conftest.err
2182   fi
2183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184   test $ac_status = 0; } && {
2185          test -z "$ac_cxx_werror_flag" ||
2186          test ! -s conftest.err
2187        } && test -s conftest$ac_exeext && {
2188          test "$cross_compiling" = yes ||
2189          $as_test_x conftest$ac_exeext
2190        }; then :
2191   ac_retval=0
2192 else
2193   $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196         ac_retval=1
2197 fi
2198   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2199   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2200   # interfere with the next link command; also delete a directory that is
2201   # left behind by Apple's compiler.  We do this before executing the actions.
2202   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2203   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204   as_fn_set_status $ac_retval
2205
2206 } # ac_fn_cxx_try_link
2207
2208 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2209 # ---------------------------------------------
2210 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2211 # accordingly.
2212 ac_fn_c_check_decl ()
2213 {
2214   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215   as_decl_name=`echo $2|sed 's/ *(.*//'`
2216   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2218 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2219 if eval \${$3+:} false; then :
2220   $as_echo_n "(cached) " >&6
2221 else
2222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h.  */
2224 $4
2225 int
2226 main ()
2227 {
2228 #ifndef $as_decl_name
2229 #ifdef __cplusplus
2230   (void) $as_decl_use;
2231 #else
2232   (void) $as_decl_name;
2233 #endif
2234 #endif
2235
2236   ;
2237   return 0;
2238 }
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241   eval "$3=yes"
2242 else
2243   eval "$3=no"
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 fi
2247 eval ac_res=\$$3
2248                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251
2252 } # ac_fn_c_check_decl
2253
2254 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2255 # -------------------------------------------
2256 # Tests whether TYPE exists after having included INCLUDES, setting cache
2257 # variable VAR accordingly.
2258 ac_fn_c_check_type ()
2259 {
2260   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2262 $as_echo_n "checking for $2... " >&6; }
2263 if eval \${$3+:} false; then :
2264   $as_echo_n "(cached) " >&6
2265 else
2266   eval "$3=no"
2267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h.  */
2269 $4
2270 int
2271 main ()
2272 {
2273 if (sizeof ($2))
2274          return 0;
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h.  */
2282 $4
2283 int
2284 main ()
2285 {
2286 if (sizeof (($2)))
2287             return 0;
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293
2294 else
2295   eval "$3=yes"
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 fi
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 fi
2301 eval ac_res=\$$3
2302                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305
2306 } # ac_fn_c_check_type
2307
2308 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2309 # -------------------------------------------------------
2310 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2311 # the include files in INCLUDES and setting the cache variable VAR
2312 # accordingly.
2313 ac_fn_c_check_header_mongrel ()
2314 {
2315   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316   if eval \${$3+:} false; then :
2317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318 $as_echo_n "checking for $2... " >&6; }
2319 if eval \${$3+:} false; then :
2320   $as_echo_n "(cached) " >&6
2321 fi
2322 eval ac_res=\$$3
2323                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325 else
2326   # Is the header compilable?
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2328 $as_echo_n "checking $2 usability... " >&6; }
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h.  */
2331 $4
2332 #include <$2>
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335   ac_header_compiler=yes
2336 else
2337   ac_header_compiler=no
2338 fi
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2341 $as_echo "$ac_header_compiler" >&6; }
2342
2343 # Is the header present?
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2345 $as_echo_n "checking $2 presence... " >&6; }
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h.  */
2348 #include <$2>
2349 _ACEOF
2350 if ac_fn_c_try_cpp "$LINENO"; then :
2351   ac_header_preproc=yes
2352 else
2353   ac_header_preproc=no
2354 fi
2355 rm -f conftest.err conftest.i conftest.$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2357 $as_echo "$ac_header_preproc" >&6; }
2358
2359 # So?  What about this header?
2360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2361   yes:no: )
2362     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2363 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2365 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2366     ;;
2367   no:yes:* )
2368     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2369 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2370     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2371 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2372     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2373 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2374     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2375 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2376     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2377 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2378     ;;
2379 esac
2380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381 $as_echo_n "checking for $2... " >&6; }
2382 if eval \${$3+:} false; then :
2383   $as_echo_n "(cached) " >&6
2384 else
2385   eval "$3=\$ac_header_compiler"
2386 fi
2387 eval ac_res=\$$3
2388                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 fi
2391   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392
2393 } # ac_fn_c_check_header_mongrel
2394
2395 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2396 # --------------------------------------------
2397 # Tries to find the compile-time value of EXPR in a program that includes
2398 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2399 # computed
2400 ac_fn_c_compute_int ()
2401 {
2402   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403   if test "$cross_compiling" = yes; then
2404     # Depending upon the size, compute the lo and hi bounds.
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h.  */
2407 $4
2408 int
2409 main ()
2410 {
2411 static int test_array [1 - 2 * !(($2) >= 0)];
2412 test_array [0] = 0
2413
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419   ac_lo=0 ac_mid=0
2420   while :; do
2421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h.  */
2423 $4
2424 int
2425 main ()
2426 {
2427 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2428 test_array [0] = 0
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435   ac_hi=$ac_mid; break
2436 else
2437   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2438                         if test $ac_lo -le $ac_mid; then
2439                           ac_lo= ac_hi=
2440                           break
2441                         fi
2442                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2443 fi
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445   done
2446 else
2447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h.  */
2449 $4
2450 int
2451 main ()
2452 {
2453 static int test_array [1 - 2 * !(($2) < 0)];
2454 test_array [0] = 0
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461   ac_hi=-1 ac_mid=-1
2462   while :; do
2463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h.  */
2465 $4
2466 int
2467 main ()
2468 {
2469 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2470 test_array [0] = 0
2471
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 if ac_fn_c_try_compile "$LINENO"; then :
2477   ac_lo=$ac_mid; break
2478 else
2479   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2480                         if test $ac_mid -le $ac_hi; then
2481                           ac_lo= ac_hi=
2482                           break
2483                         fi
2484                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2485 fi
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487   done
2488 else
2489   ac_lo= ac_hi=
2490 fi
2491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 fi
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 # Binary search between lo and hi bounds.
2495 while test "x$ac_lo" != "x$ac_hi"; do
2496   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h.  */
2499 $4
2500 int
2501 main ()
2502 {
2503 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2504 test_array [0] = 0
2505
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 if ac_fn_c_try_compile "$LINENO"; then :
2511   ac_hi=$ac_mid
2512 else
2513   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2514 fi
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 done
2517 case $ac_lo in #((
2518 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2519 '') ac_retval=1 ;;
2520 esac
2521   else
2522     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h.  */
2524 $4
2525 static long int longval () { return $2; }
2526 static unsigned long int ulongval () { return $2; }
2527 #include <stdio.h>
2528 #include <stdlib.h>
2529 int
2530 main ()
2531 {
2532
2533   FILE *f = fopen ("conftest.val", "w");
2534   if (! f)
2535     return 1;
2536   if (($2) < 0)
2537     {
2538       long int i = longval ();
2539       if (i != ($2))
2540         return 1;
2541       fprintf (f, "%ld", i);
2542     }
2543   else
2544     {
2545       unsigned long int i = ulongval ();
2546       if (i != ($2))
2547         return 1;
2548       fprintf (f, "%lu", i);
2549     }
2550   /* Do not output a trailing newline, as this causes \r\n confusion
2551      on some platforms.  */
2552   return ferror (f) || fclose (f) != 0;
2553
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 if ac_fn_c_try_run "$LINENO"; then :
2559   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2560 else
2561   ac_retval=1
2562 fi
2563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2564   conftest.$ac_objext conftest.beam conftest.$ac_ext
2565 rm -f conftest.val
2566
2567   fi
2568   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569   as_fn_set_status $ac_retval
2570
2571 } # ac_fn_c_compute_int
2572
2573 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2574 # ----------------------------------------------------
2575 # Tries to find if the field MEMBER exists in type AGGR, after including
2576 # INCLUDES, setting cache variable VAR accordingly.
2577 ac_fn_c_check_member ()
2578 {
2579   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2581 $as_echo_n "checking for $2.$3... " >&6; }
2582 if eval \${$4+:} false; then :
2583   $as_echo_n "(cached) " >&6
2584 else
2585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h.  */
2587 $5
2588 int
2589 main ()
2590 {
2591 static $2 ac_aggr;
2592 if (ac_aggr.$3)
2593 return 0;
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 if ac_fn_c_try_compile "$LINENO"; then :
2599   eval "$4=yes"
2600 else
2601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h.  */
2603 $5
2604 int
2605 main ()
2606 {
2607 static $2 ac_aggr;
2608 if (sizeof ac_aggr.$3)
2609 return 0;
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 if ac_fn_c_try_compile "$LINENO"; then :
2615   eval "$4=yes"
2616 else
2617   eval "$4=no"
2618 fi
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 fi
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 fi
2623 eval ac_res=\$$4
2624                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2625 $as_echo "$ac_res" >&6; }
2626   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2627
2628 } # ac_fn_c_check_member
2629
2630 # ac_fn_cxx_try_run LINENO
2631 # ------------------------
2632 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2633 # that executables *can* be run.
2634 ac_fn_cxx_try_run ()
2635 {
2636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637   if { { ac_try="$ac_link"
2638 case "(($ac_try" in
2639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640   *) ac_try_echo=$ac_try;;
2641 esac
2642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2643 $as_echo "$ac_try_echo"; } >&5
2644   (eval "$ac_link") 2>&5
2645   ac_status=$?
2646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2648   { { case "(($ac_try" in
2649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650   *) ac_try_echo=$ac_try;;
2651 esac
2652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2653 $as_echo "$ac_try_echo"; } >&5
2654   (eval "$ac_try") 2>&5
2655   ac_status=$?
2656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2657   test $ac_status = 0; }; }; then :
2658   ac_retval=0
2659 else
2660   $as_echo "$as_me: program exited with status $ac_status" >&5
2661        $as_echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664        ac_retval=$ac_status
2665 fi
2666   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2667   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2668   as_fn_set_status $ac_retval
2669
2670 } # ac_fn_cxx_try_run
2671
2672 # ac_fn_cxx_check_func LINENO FUNC VAR
2673 # ------------------------------------
2674 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2675 ac_fn_cxx_check_func ()
2676 {
2677   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2679 $as_echo_n "checking for $2... " >&6; }
2680 if eval \${$3+:} false; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h.  */
2685 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2687 #define $2 innocuous_$2
2688
2689 /* System header to define __stub macros and hopefully few prototypes,
2690     which can conflict with char $2 (); below.
2691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2692     <limits.h> exists even on freestanding compilers.  */
2693
2694 #ifdef __STDC__
2695 # include <limits.h>
2696 #else
2697 # include <assert.h>
2698 #endif
2699
2700 #undef $2
2701
2702 /* Override any GCC internal prototype to avoid an error.
2703    Use char because int might match the return type of a GCC
2704    builtin and then its argument prototype would still apply.  */
2705 #ifdef __cplusplus
2706 extern "C"
2707 #endif
2708 char $2 ();
2709 /* The GNU C library defines this for functions which it implements
2710     to always fail with ENOSYS.  Some functions are actually named
2711     something starting with __ and the normal name is an alias.  */
2712 #if defined __stub_$2 || defined __stub___$2
2713 choke me
2714 #endif
2715
2716 int
2717 main ()
2718 {
2719 return $2 ();
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 if ac_fn_cxx_try_link "$LINENO"; then :
2725   eval "$3=yes"
2726 else
2727   eval "$3=no"
2728 fi
2729 rm -f core conftest.err conftest.$ac_objext \
2730     conftest$ac_exeext conftest.$ac_ext
2731 fi
2732 eval ac_res=\$$3
2733                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2734 $as_echo "$ac_res" >&6; }
2735   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2736
2737 } # ac_fn_cxx_check_func
2738 cat >config.log <<_ACEOF
2739 This file contains any messages produced by compilers while
2740 running configure, to aid debugging if configure makes a mistake.
2741
2742 It was created by bacula $as_me 7.0.1, which was
2743 generated by GNU Autoconf 2.68.  Invocation command line was
2744
2745   $ $0 $@
2746
2747 _ACEOF
2748 exec 5>>config.log
2749 {
2750 cat <<_ASUNAME
2751 ## --------- ##
2752 ## Platform. ##
2753 ## --------- ##
2754
2755 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2756 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2757 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2758 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2759 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2760
2761 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2762 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2763
2764 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2765 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2766 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2767 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2768 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2769 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2770 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2771
2772 _ASUNAME
2773
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779     $as_echo "PATH: $as_dir"
2780   done
2781 IFS=$as_save_IFS
2782
2783 } >&5
2784
2785 cat >&5 <<_ACEOF
2786
2787
2788 ## ----------- ##
2789 ## Core tests. ##
2790 ## ----------- ##
2791
2792 _ACEOF
2793
2794
2795 # Keep a trace of the command line.
2796 # Strip out --no-create and --no-recursion so they do not pile up.
2797 # Strip out --silent because we don't want to record it for future runs.
2798 # Also quote any args containing shell meta-characters.
2799 # Make two passes to allow for proper duplicate-argument suppression.
2800 ac_configure_args=
2801 ac_configure_args0=
2802 ac_configure_args1=
2803 ac_must_keep_next=false
2804 for ac_pass in 1 2
2805 do
2806   for ac_arg
2807   do
2808     case $ac_arg in
2809     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2810     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2811     | -silent | --silent | --silen | --sile | --sil)
2812       continue ;;
2813     *\'*)
2814       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2815     esac
2816     case $ac_pass in
2817     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2818     2)
2819       as_fn_append ac_configure_args1 " '$ac_arg'"
2820       if test $ac_must_keep_next = true; then
2821         ac_must_keep_next=false # Got value, back to normal.
2822       else
2823         case $ac_arg in
2824           *=* | --config-cache | -C | -disable-* | --disable-* \
2825           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2826           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2827           | -with-* | --with-* | -without-* | --without-* | --x)
2828             case "$ac_configure_args0 " in
2829               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2830             esac
2831             ;;
2832           -* ) ac_must_keep_next=true ;;
2833         esac
2834       fi
2835       as_fn_append ac_configure_args " '$ac_arg'"
2836       ;;
2837     esac
2838   done
2839 done
2840 { ac_configure_args0=; unset ac_configure_args0;}
2841 { ac_configure_args1=; unset ac_configure_args1;}
2842
2843 # When interrupted or exit'd, cleanup temporary files, and complete
2844 # config.log.  We remove comments because anyway the quotes in there
2845 # would cause problems or look ugly.
2846 # WARNING: Use '\'' to represent an apostrophe within the trap.
2847 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2848 trap 'exit_status=$?
2849   # Save into config.log some information that might help in debugging.
2850   {
2851     echo
2852
2853     $as_echo "## ---------------- ##
2854 ## Cache variables. ##
2855 ## ---------------- ##"
2856     echo
2857     # The following way of writing the cache mishandles newlines in values,
2858 (
2859   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2860     eval ac_val=\$$ac_var
2861     case $ac_val in #(
2862     *${as_nl}*)
2863       case $ac_var in #(
2864       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2865 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2866       esac
2867       case $ac_var in #(
2868       _ | IFS | as_nl) ;; #(
2869       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2870       *) { eval $ac_var=; unset $ac_var;} ;;
2871       esac ;;
2872     esac
2873   done
2874   (set) 2>&1 |
2875     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2876     *${as_nl}ac_space=\ *)
2877       sed -n \
2878         "s/'\''/'\''\\\\'\'''\''/g;
2879           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2880       ;; #(
2881     *)
2882       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2883       ;;
2884     esac |
2885     sort
2886 )
2887     echo
2888
2889     $as_echo "## ----------------- ##
2890 ## Output variables. ##
2891 ## ----------------- ##"
2892     echo
2893     for ac_var in $ac_subst_vars
2894     do
2895       eval ac_val=\$$ac_var
2896       case $ac_val in
2897       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2898       esac
2899       $as_echo "$ac_var='\''$ac_val'\''"
2900     done | sort
2901     echo
2902
2903     if test -n "$ac_subst_files"; then
2904       $as_echo "## ------------------- ##
2905 ## File substitutions. ##
2906 ## ------------------- ##"
2907       echo
2908       for ac_var in $ac_subst_files
2909       do
2910         eval ac_val=\$$ac_var
2911         case $ac_val in
2912         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2913         esac
2914         $as_echo "$ac_var='\''$ac_val'\''"
2915       done | sort
2916       echo
2917     fi
2918
2919     if test -s confdefs.h; then
2920       $as_echo "## ----------- ##
2921 ## confdefs.h. ##
2922 ## ----------- ##"
2923       echo
2924       cat confdefs.h
2925       echo
2926     fi
2927     test "$ac_signal" != 0 &&
2928       $as_echo "$as_me: caught signal $ac_signal"
2929     $as_echo "$as_me: exit $exit_status"
2930   } >&5
2931   rm -f core *.core core.conftest.* &&
2932     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2933     exit $exit_status
2934 ' 0
2935 for ac_signal in 1 2 13 15; do
2936   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2937 done
2938 ac_signal=0
2939
2940 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2941 rm -f -r conftest* confdefs.h
2942
2943 $as_echo "/* confdefs.h */" > confdefs.h
2944
2945 # Predefined preprocessor variables.
2946
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_NAME "$PACKAGE_NAME"
2949 _ACEOF
2950
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2953 _ACEOF
2954
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2957 _ACEOF
2958
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_STRING "$PACKAGE_STRING"
2961 _ACEOF
2962
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2965 _ACEOF
2966
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_URL "$PACKAGE_URL"
2969 _ACEOF
2970
2971
2972 # Let the site file select an alternate cache file if it wants to.
2973 # Prefer an explicitly selected file to automatically selected ones.
2974 ac_site_file1=NONE
2975 ac_site_file2=NONE
2976 if test -n "$CONFIG_SITE"; then
2977   # We do not want a PATH search for config.site.
2978   case $CONFIG_SITE in #((
2979     -*)  ac_site_file1=./$CONFIG_SITE;;
2980     */*) ac_site_file1=$CONFIG_SITE;;
2981     *)   ac_site_file1=./$CONFIG_SITE;;
2982   esac
2983 elif test "x$prefix" != xNONE; then
2984   ac_site_file1=$prefix/share/config.site
2985   ac_site_file2=$prefix/etc/config.site
2986 else
2987   ac_site_file1=$ac_default_prefix/share/config.site
2988   ac_site_file2=$ac_default_prefix/etc/config.site
2989 fi
2990 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2991 do
2992   test "x$ac_site_file" = xNONE && continue
2993   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2994     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2995 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2996     sed 's/^/| /' "$ac_site_file" >&5
2997     . "$ac_site_file" \
2998       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3000 as_fn_error $? "failed to load site script $ac_site_file
3001 See \`config.log' for more details" "$LINENO" 5; }
3002   fi
3003 done
3004
3005 if test -r "$cache_file"; then
3006   # Some versions of bash will fail to source /dev/null (special files
3007   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3008   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3009     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3010 $as_echo "$as_me: loading cache $cache_file" >&6;}
3011     case $cache_file in
3012       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3013       *)                      . "./$cache_file";;
3014     esac
3015   fi
3016 else
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3018 $as_echo "$as_me: creating cache $cache_file" >&6;}
3019   >$cache_file
3020 fi
3021
3022 as_fn_append ac_header_list " stdlib.h"
3023 as_fn_append ac_header_list " unistd.h"
3024 as_fn_append ac_header_list " sys/param.h"
3025 # Check that the precious variables saved in the cache have kept the same
3026 # value.
3027 ac_cache_corrupted=false
3028 for ac_var in $ac_precious_vars; do
3029   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3030   eval ac_new_set=\$ac_env_${ac_var}_set
3031   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3032   eval ac_new_val=\$ac_env_${ac_var}_value
3033   case $ac_old_set,$ac_new_set in
3034     set,)
3035       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3036 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3037       ac_cache_corrupted=: ;;
3038     ,set)
3039       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3040 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3041       ac_cache_corrupted=: ;;
3042     ,);;
3043     *)
3044       if test "x$ac_old_val" != "x$ac_new_val"; then
3045         # differences in whitespace do not lead to failure.
3046         ac_old_val_w=`echo x $ac_old_val`
3047         ac_new_val_w=`echo x $ac_new_val`
3048         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3049           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3050 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3051           ac_cache_corrupted=:
3052         else
3053           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3054 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3055           eval $ac_var=\$ac_old_val
3056         fi
3057         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3058 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3059         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3060 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3061       fi;;
3062   esac
3063   # Pass precious variables to config.status.
3064   if test "$ac_new_set" = set; then
3065     case $ac_new_val in
3066     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3067     *) ac_arg=$ac_var=$ac_new_val ;;
3068     esac
3069     case " $ac_configure_args " in
3070       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3071       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3072     esac
3073   fi
3074 done
3075 if $ac_cache_corrupted; then
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3079 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3080   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3081 fi
3082 ## -------------------- ##
3083 ## Main body of script. ##
3084 ## -------------------- ##
3085
3086 ac_ext=c
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091
3092
3093
3094
3095 BUILD_DIR=`pwd`
3096 cd ..
3097 TOP_DIR=`pwd`
3098 cd ${BUILD_DIR}
3099
3100
3101 ac_aux_dir=
3102 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3103   if test -f "$ac_dir/install-sh"; then
3104     ac_aux_dir=$ac_dir
3105     ac_install_sh="$ac_aux_dir/install-sh -c"
3106     break
3107   elif test -f "$ac_dir/install.sh"; then
3108     ac_aux_dir=$ac_dir
3109     ac_install_sh="$ac_aux_dir/install.sh -c"
3110     break
3111   elif test -f "$ac_dir/shtool"; then
3112     ac_aux_dir=$ac_dir
3113     ac_install_sh="$ac_aux_dir/shtool install -c"
3114     break
3115   fi
3116 done
3117 if test -z "$ac_aux_dir"; then
3118   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3119 fi
3120
3121 # These three variables are undocumented and unsupported,
3122 # and are intended to be withdrawn in a future Autoconf release.
3123 # They can cause serious problems if a builder's source tree is in a directory
3124 # whose full name contains unusual characters.
3125 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3126 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3127 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3128
3129
3130 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3131
3132
3133 for ac_prog in true
3134 do
3135   # Extract the first word of "$ac_prog", so it can be a program name with args.
3136 set dummy $ac_prog; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_path_TRUEPRG+:} false; then :
3140   $as_echo_n "(cached) " >&6
3141 else
3142   case $TRUEPRG in
3143   [\\/]* | ?:[\\/]*)
3144   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3145   ;;
3146   *)
3147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152     for ac_exec_ext in '' $ac_executable_extensions; do
3153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159   done
3160 IFS=$as_save_IFS
3161
3162   ;;
3163 esac
3164 fi
3165 TRUEPRG=$ac_cv_path_TRUEPRG
3166 if test -n "$TRUEPRG"; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3168 $as_echo "$TRUEPRG" >&6; }
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175   test -n "$TRUEPRG" && break
3176 done
3177 test -n "$TRUEPRG" || TRUEPRG=":"
3178
3179 for ac_prog in false
3180 do
3181   # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_path_FALSEPRG+:} false; then :
3186   $as_echo_n "(cached) " >&6
3187 else
3188   case $FALSEPRG in
3189   [\\/]* | ?:[\\/]*)
3190   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3191   ;;
3192   *)
3193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198     for ac_exec_ext in '' $ac_executable_extensions; do
3199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202     break 2
3203   fi
3204 done
3205   done
3206 IFS=$as_save_IFS
3207
3208   ;;
3209 esac
3210 fi
3211 FALSEPRG=$ac_cv_path_FALSEPRG
3212 if test -n "$FALSEPRG"; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3214 $as_echo "$FALSEPRG" >&6; }
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221   test -n "$FALSEPRG" && break
3222 done
3223 test -n "$FALSEPRG" || FALSEPRG=":"
3224
3225
3226
3227 post_host=
3228 if test "x$BACULA" != x; then
3229    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3230 fi
3231 BACULA=${BACULA:-Bacula}
3232 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3233 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3234 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3235 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3236 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3237 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3238 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3239 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3240
3241 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3242 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3243 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3244
3245 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3246 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3247 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3248
3249
3250 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3251 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3252
3253 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3254 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3255
3256
3257 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258
3259 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3260
3261
3262 echo "configuring for ${BACULA} $VERSION ($DATE)"
3263
3264
3265
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 if test -n "$ac_tool_prefix"; then
3272   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if ${ac_cv_prog_CC+:} false; then :
3277   $as_echo_n "(cached) " >&6
3278 else
3279   if test -n "$CC"; then
3280   ac_cv_prog_CC="$CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3284 do
3285   IFS=$as_save_IFS
3286   test -z "$as_dir" && as_dir=.
3287     for ac_exec_ext in '' $ac_executable_extensions; do
3288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291     break 2
3292   fi
3293 done
3294   done
3295 IFS=$as_save_IFS
3296
3297 fi
3298 fi
3299 CC=$ac_cv_prog_CC
3300 if test -n "$CC"; then
3301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302 $as_echo "$CC" >&6; }
3303 else
3304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 fi
3307
3308
3309 fi
3310 if test -z "$ac_cv_prog_CC"; then
3311   ac_ct_CC=$CC
3312   # Extract the first word of "gcc", so it can be a program name with args.
3313 set dummy gcc; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3317   $as_echo_n "(cached) " >&6
3318 else
3319   if test -n "$ac_ct_CC"; then
3320   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325   IFS=$as_save_IFS
3326   test -z "$as_dir" && as_dir=.
3327     for ac_exec_ext in '' $ac_executable_extensions; do
3328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329     ac_cv_prog_ac_ct_CC="gcc"
3330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331     break 2
3332   fi
3333 done
3334   done
3335 IFS=$as_save_IFS
3336
3337 fi
3338 fi
3339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340 if test -n "$ac_ct_CC"; then
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342 $as_echo "$ac_ct_CC" >&6; }
3343 else
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 fi
3347
3348   if test "x$ac_ct_CC" = x; then
3349     CC=""
3350   else
3351     case $cross_compiling:$ac_tool_warned in
3352 yes:)
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3355 ac_tool_warned=yes ;;
3356 esac
3357     CC=$ac_ct_CC
3358   fi
3359 else
3360   CC="$ac_cv_prog_CC"
3361 fi
3362
3363 if test -z "$CC"; then
3364           if test -n "$ac_tool_prefix"; then
3365     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3366 set dummy ${ac_tool_prefix}cc; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if ${ac_cv_prog_CC+:} false; then :
3370   $as_echo_n "(cached) " >&6
3371 else
3372   if test -n "$CC"; then
3373   ac_cv_prog_CC="$CC" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380     for ac_exec_ext in '' $ac_executable_extensions; do
3381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382     ac_cv_prog_CC="${ac_tool_prefix}cc"
3383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387   done
3388 IFS=$as_save_IFS
3389
3390 fi
3391 fi
3392 CC=$ac_cv_prog_CC
3393 if test -n "$CC"; then
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395 $as_echo "$CC" >&6; }
3396 else
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 fi
3400
3401
3402   fi
3403 fi
3404 if test -z "$CC"; then
3405   # Extract the first word of "cc", so it can be a program name with args.
3406 set dummy cc; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_prog_CC+:} false; then :
3410   $as_echo_n "(cached) " >&6
3411 else
3412   if test -n "$CC"; then
3413   ac_cv_prog_CC="$CC" # Let the user override the test.
3414 else
3415   ac_prog_rejected=no
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419   IFS=$as_save_IFS
3420   test -z "$as_dir" && as_dir=.
3421     for ac_exec_ext in '' $ac_executable_extensions; do
3422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3424        ac_prog_rejected=yes
3425        continue
3426      fi
3427     ac_cv_prog_CC="cc"
3428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429     break 2
3430   fi
3431 done
3432   done
3433 IFS=$as_save_IFS
3434
3435 if test $ac_prog_rejected = yes; then
3436   # We found a bogon in the path, so make sure we never use it.
3437   set dummy $ac_cv_prog_CC
3438   shift
3439   if test $# != 0; then
3440     # We chose a different compiler from the bogus one.
3441     # However, it has the same basename, so the bogon will be chosen
3442     # first if we set CC to just the basename; use the full file name.
3443     shift
3444     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3445   fi
3446 fi
3447 fi
3448 fi
3449 CC=$ac_cv_prog_CC
3450 if test -n "$CC"; then
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3453 else
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456 fi
3457
3458
3459 fi
3460 if test -z "$CC"; then
3461   if test -n "$ac_tool_prefix"; then
3462   for ac_prog in cl.exe
3463   do
3464     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if ${ac_cv_prog_CC+:} false; then :
3469   $as_echo_n "(cached) " >&6
3470 else
3471   if test -n "$CC"; then
3472   ac_cv_prog_CC="$CC" # Let the user override the test.
3473 else
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477   IFS=$as_save_IFS
3478   test -z "$as_dir" && as_dir=.
3479     for ac_exec_ext in '' $ac_executable_extensions; do
3480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483     break 2
3484   fi
3485 done
3486   done
3487 IFS=$as_save_IFS
3488
3489 fi
3490 fi
3491 CC=$ac_cv_prog_CC
3492 if test -n "$CC"; then
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3494 $as_echo "$CC" >&6; }
3495 else
3496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498 fi
3499
3500
3501     test -n "$CC" && break
3502   done
3503 fi
3504 if test -z "$CC"; then
3505   ac_ct_CC=$CC
3506   for ac_prog in cl.exe
3507 do
3508   # Extract the first word of "$ac_prog", so it can be a program name with args.
3509 set dummy $ac_prog; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3513   $as_echo_n "(cached) " >&6
3514 else
3515   if test -n "$ac_ct_CC"; then
3516   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521   IFS=$as_save_IFS
3522   test -z "$as_dir" && as_dir=.
3523     for ac_exec_ext in '' $ac_executable_extensions; do
3524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525     ac_cv_prog_ac_ct_CC="$ac_prog"
3526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527     break 2
3528   fi
3529 done
3530   done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536 if test -n "$ac_ct_CC"; then
3537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3538 $as_echo "$ac_ct_CC" >&6; }
3539 else
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544
3545   test -n "$ac_ct_CC" && break
3546 done
3547
3548   if test "x$ac_ct_CC" = x; then
3549     CC=""
3550   else
3551     case $cross_compiling:$ac_tool_warned in
3552 yes:)
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555 ac_tool_warned=yes ;;
3556 esac
3557     CC=$ac_ct_CC
3558   fi
3559 fi
3560
3561 fi
3562
3563
3564 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error $? "no acceptable C compiler found in \$PATH
3567 See \`config.log' for more details" "$LINENO" 5; }
3568
3569 # Provide some information about the compiler.
3570 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3571 set X $ac_compile
3572 ac_compiler=$2
3573 for ac_option in --version -v -V -qversion; do
3574   { { ac_try="$ac_compiler $ac_option >&5"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3582   ac_status=$?
3583   if test -s conftest.err; then
3584     sed '10a\
3585 ... rest of stderr output deleted ...
3586          10q' conftest.err >conftest.er1
3587     cat conftest.er1 >&5
3588   fi
3589   rm -f conftest.er1 conftest.err
3590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591   test $ac_status = 0; }
3592 done
3593
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 ac_clean_files_save=$ac_clean_files
3606 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3607 # Try to create an executable without -o first, disregard a.out.
3608 # It will help us diagnose broken compilers, and finding out an intuition
3609 # of exeext.
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3611 $as_echo_n "checking whether the C compiler works... " >&6; }
3612 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3613
3614 # The possible output files:
3615 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3616
3617 ac_rmfiles=
3618 for ac_file in $ac_files
3619 do
3620   case $ac_file in
3621     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3622     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3623   esac
3624 done
3625 rm -f $ac_rmfiles
3626
3627 if { { ac_try="$ac_link_default"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634   (eval "$ac_link_default") 2>&5
3635   ac_status=$?
3636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637   test $ac_status = 0; }; then :
3638   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3639 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3640 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3641 # so that the user can short-circuit this test for compilers unknown to
3642 # Autoconf.
3643 for ac_file in $ac_files ''
3644 do
3645   test -f "$ac_file" || continue
3646   case $ac_file in
3647     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3648         ;;
3649     [ab].out )
3650         # We found the default executable, but exeext='' is most
3651         # certainly right.
3652         break;;
3653     *.* )
3654         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3655         then :; else
3656            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657         fi
3658         # We set ac_cv_exeext here because the later test for it is not
3659         # safe: cross compilers may not add the suffix if given an `-o'
3660         # argument, so we may need to know it at that point already.
3661         # Even if this section looks crufty: it has the advantage of
3662         # actually working.
3663         break;;
3664     * )
3665         break;;
3666   esac
3667 done
3668 test "$ac_cv_exeext" = no && ac_cv_exeext=
3669
3670 else
3671   ac_file=''
3672 fi
3673 if test -z "$ac_file"; then :
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error 77 "C compiler cannot create executables
3682 See \`config.log' for more details" "$LINENO" 5; }
3683 else
3684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3685 $as_echo "yes" >&6; }
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3688 $as_echo_n "checking for C compiler default output file name... " >&6; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3690 $as_echo "$ac_file" >&6; }
3691 ac_exeext=$ac_cv_exeext
3692
3693 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3694 ac_clean_files=$ac_clean_files_save
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3696 $as_echo_n "checking for suffix of executables... " >&6; }
3697 if { { ac_try="$ac_link"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704   (eval "$ac_link") 2>&5
3705   ac_status=$?
3706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707   test $ac_status = 0; }; then :
3708   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3709 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3710 # work properly (i.e., refer to `conftest.exe'), while it won't with
3711 # `rm'.
3712 for ac_file in conftest.exe conftest conftest.*; do
3713   test -f "$ac_file" || continue
3714   case $ac_file in
3715     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3716     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3717           break;;
3718     * ) break;;
3719   esac
3720 done
3721 else
3722   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3725 See \`config.log' for more details" "$LINENO" 5; }
3726 fi
3727 rm -f conftest conftest$ac_cv_exeext
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3729 $as_echo "$ac_cv_exeext" >&6; }
3730
3731 rm -f conftest.$ac_ext
3732 EXEEXT=$ac_cv_exeext
3733 ac_exeext=$EXEEXT
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h.  */
3736 #include <stdio.h>
3737 int
3738 main ()
3739 {
3740 FILE *f = fopen ("conftest.out", "w");
3741  return ferror (f) || fclose (f) != 0;
3742
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 ac_clean_files="$ac_clean_files conftest.out"
3748 # Check that the compiler produces executables we can run.  If not, either
3749 # the compiler is broken, or we cross compile.
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3751 $as_echo_n "checking whether we are cross compiling... " >&6; }
3752 if test "$cross_compiling" != yes; then
3753   { { ac_try="$ac_link"
3754 case "(($ac_try" in
3755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756   *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 $as_echo "$ac_try_echo"; } >&5
3760   (eval "$ac_link") 2>&5
3761   ac_status=$?
3762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763   test $ac_status = 0; }
3764   if { ac_try='./conftest$ac_cv_exeext'
3765   { { case "(($ac_try" in
3766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767   *) ac_try_echo=$ac_try;;
3768 esac
3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770 $as_echo "$ac_try_echo"; } >&5
3771   (eval "$ac_try") 2>&5
3772   ac_status=$?
3773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774   test $ac_status = 0; }; }; then
3775     cross_compiling=no
3776   else
3777     if test "$cross_compiling" = maybe; then
3778         cross_compiling=yes
3779     else
3780         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error $? "cannot run C compiled programs.
3783 If you meant to cross compile, use \`--host'.
3784 See \`config.log' for more details" "$LINENO" 5; }
3785     fi
3786   fi
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3789 $as_echo "$cross_compiling" >&6; }
3790
3791 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3792 ac_clean_files=$ac_clean_files_save
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3794 $as_echo_n "checking for suffix of object files... " >&6; }
3795 if ${ac_cv_objext+:} false; then :
3796   $as_echo_n "(cached) " >&6
3797 else
3798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h.  */
3800
3801 int
3802 main ()
3803 {
3804
3805   ;
3806   return 0;
3807 }
3808 _ACEOF
3809 rm -f conftest.o conftest.obj
3810 if { { ac_try="$ac_compile"
3811 case "(($ac_try" in
3812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813   *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817   (eval "$ac_compile") 2>&5
3818   ac_status=$?
3819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820   test $ac_status = 0; }; then :
3821   for ac_file in conftest.o conftest.obj conftest.*; do
3822   test -f "$ac_file" || continue;
3823   case $ac_file in
3824     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3825     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3826        break;;
3827   esac
3828 done
3829 else
3830   $as_echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $? "cannot compute suffix of object files: cannot compile
3836 See \`config.log' for more details" "$LINENO" 5; }
3837 fi
3838 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3839 fi
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3841 $as_echo "$ac_cv_objext" >&6; }
3842 OBJEXT=$ac_cv_objext
3843 ac_objext=$OBJEXT
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3845 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3846 if ${ac_cv_c_compiler_gnu+:} false; then :
3847   $as_echo_n "(cached) " >&6
3848 else
3849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h.  */
3851
3852 int
3853 main ()
3854 {
3855 #ifndef __GNUC__
3856        choke me
3857 #endif
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864   ac_compiler_gnu=yes
3865 else
3866   ac_compiler_gnu=no
3867 fi
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3870
3871 fi
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3873 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3874 if test $ac_compiler_gnu = yes; then
3875   GCC=yes
3876 else
3877   GCC=
3878 fi
3879 ac_test_CFLAGS=${CFLAGS+set}
3880 ac_save_CFLAGS=$CFLAGS
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3882 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3883 if ${ac_cv_prog_cc_g+:} false; then :
3884   $as_echo_n "(cached) " >&6
3885 else
3886   ac_save_c_werror_flag=$ac_c_werror_flag
3887    ac_c_werror_flag=yes
3888    ac_cv_prog_cc_g=no
3889    CFLAGS="-g"
3890    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h.  */
3892
3893 int
3894 main ()
3895 {
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902   ac_cv_prog_cc_g=yes
3903 else
3904   CFLAGS=""
3905       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h.  */
3907
3908 int
3909 main ()
3910 {
3911
3912   ;
3913   return 0;
3914 }
3915 _ACEOF
3916 if ac_fn_c_try_compile "$LINENO"; then :
3917
3918 else
3919   ac_c_werror_flag=$ac_save_c_werror_flag
3920          CFLAGS="-g"
3921          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923
3924 int
3925 main ()
3926 {
3927
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933   ac_cv_prog_cc_g=yes
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 fi
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 fi
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940    ac_c_werror_flag=$ac_save_c_werror_flag
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3943 $as_echo "$ac_cv_prog_cc_g" >&6; }
3944 if test "$ac_test_CFLAGS" = set; then
3945   CFLAGS=$ac_save_CFLAGS
3946 elif test $ac_cv_prog_cc_g = yes; then
3947   if test "$GCC" = yes; then
3948     CFLAGS="-g -O2"
3949   else
3950     CFLAGS="-g"
3951   fi
3952 else
3953   if test "$GCC" = yes; then
3954     CFLAGS="-O2"
3955   else
3956     CFLAGS=
3957   fi
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3960 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3961 if ${ac_cv_prog_cc_c89+:} false; then :
3962   $as_echo_n "(cached) " >&6
3963 else
3964   ac_cv_prog_cc_c89=no
3965 ac_save_CC=$CC
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h.  */
3968 #include <stdarg.h>
3969 #include <stdio.h>
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3976      char **p;
3977      int i;
3978 {
3979   return p[i];
3980 }
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3982 {
3983   char *s;
3984   va_list v;
3985   va_start (v,p);
3986   s = g (p, va_arg (v,int));
3987   va_end (v);
3988   return s;
3989 }
3990
3991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3992    function prototypes and stuff, but not '\xHH' hex character constants.
3993    These don't provoke an error unfortunately, instead are silently treated
3994    as 'x'.  The following induces an error, until -std is added to get
3995    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3996    array size at least.  It's necessary to write '\x00'==0 to get something
3997    that's true only with -std.  */
3998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3999
4000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001    inside strings and character constants.  */
4002 #define FOO(x) 'x'
4003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4004
4005 int test (int i, double x);
4006 struct s1 {int (*f) (int a);};
4007 struct s2 {int (*f) (double a);};
4008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4009 int argc;
4010 char **argv;
4011 int
4012 main ()
4013 {
4014 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4021 do
4022   CC="$ac_save_CC $ac_arg"
4023   if ac_fn_c_try_compile "$LINENO"; then :
4024   ac_cv_prog_cc_c89=$ac_arg
4025 fi
4026 rm -f core conftest.err conftest.$ac_objext
4027   test "x$ac_cv_prog_cc_c89" != "xno" && break
4028 done
4029 rm -f conftest.$ac_ext
4030 CC=$ac_save_CC
4031
4032 fi
4033 # AC_CACHE_VAL
4034 case "x$ac_cv_prog_cc_c89" in
4035   x)
4036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4037 $as_echo "none needed" >&6; } ;;
4038   xno)
4039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4040 $as_echo "unsupported" >&6; } ;;
4041   *)
4042     CC="$CC $ac_cv_prog_cc_c89"
4043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4044 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4045 esac
4046 if test "x$ac_cv_prog_cc_c89" != xno; then :
4047
4048 fi
4049
4050 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055
4056 ac_ext=cpp
4057 ac_cpp='$CXXCPP $CPPFLAGS'
4058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4061 if test -z "$CXX"; then
4062   if test -n "$CCC"; then
4063     CXX=$CCC
4064   else
4065     if test -n "$ac_tool_prefix"; then
4066   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4067   do
4068     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if ${ac_cv_prog_CXX+:} false; then :
4073   $as_echo_n "(cached) " >&6
4074 else
4075   if test -n "$CXX"; then
4076   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4080 do
4081   IFS=$as_save_IFS
4082   test -z "$as_dir" && as_dir=.
4083     for ac_exec_ext in '' $ac_executable_extensions; do
4084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087     break 2
4088   fi
4089 done
4090   done
4091 IFS=$as_save_IFS
4092
4093 fi
4094 fi
4095 CXX=$ac_cv_prog_CXX
4096 if test -n "$CXX"; then
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4098 $as_echo "$CXX" >&6; }
4099 else
4100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4102 fi
4103
4104
4105     test -n "$CXX" && break
4106   done
4107 fi
4108 if test -z "$CXX"; then
4109   ac_ct_CXX=$CXX
4110   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4111 do
4112   # Extract the first word of "$ac_prog", so it can be a program name with args.
4113 set dummy $ac_prog; ac_word=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4117   $as_echo_n "(cached) " >&6
4118 else
4119   if test -n "$ac_ct_CXX"; then
4120   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125   IFS=$as_save_IFS
4126   test -z "$as_dir" && as_dir=.
4127     for ac_exec_ext in '' $ac_executable_extensions; do
4128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129     ac_cv_prog_ac_ct_CXX="$ac_prog"
4130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131     break 2
4132   fi
4133 done
4134   done
4135 IFS=$as_save_IFS
4136
4137 fi
4138 fi
4139 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4140 if test -n "$ac_ct_CXX"; then
4141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4142 $as_echo "$ac_ct_CXX" >&6; }
4143 else
4144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4146 fi
4147
4148
4149   test -n "$ac_ct_CXX" && break
4150 done
4151
4152   if test "x$ac_ct_CXX" = x; then
4153     CXX="g++"
4154   else
4155     case $cross_compiling:$ac_tool_warned in
4156 yes:)
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4159 ac_tool_warned=yes ;;
4160 esac
4161     CXX=$ac_ct_CXX
4162   fi
4163 fi
4164
4165   fi
4166 fi
4167 # Provide some information about the compiler.
4168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4169 set X $ac_compile
4170 ac_compiler=$2
4171 for ac_option in --version -v -V -qversion; do
4172   { { ac_try="$ac_compiler $ac_option >&5"
4173 case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 $as_echo "$ac_try_echo"; } >&5
4179   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4180   ac_status=$?
4181   if test -s conftest.err; then
4182     sed '10a\
4183 ... rest of stderr output deleted ...
4184          10q' conftest.err >conftest.er1
4185     cat conftest.er1 >&5
4186   fi
4187   rm -f conftest.er1 conftest.err
4188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189   test $ac_status = 0; }
4190 done
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4193 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4194 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h.  */
4199
4200 int
4201 main ()
4202 {
4203 #ifndef __GNUC__
4204        choke me
4205 #endif
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_cxx_try_compile "$LINENO"; then :
4212   ac_compiler_gnu=yes
4213 else
4214   ac_compiler_gnu=no
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4222 if test $ac_compiler_gnu = yes; then
4223   GXX=yes
4224 else
4225   GXX=
4226 fi
4227 ac_test_CXXFLAGS=${CXXFLAGS+set}
4228 ac_save_CXXFLAGS=$CXXFLAGS
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4231 if ${ac_cv_prog_cxx_g+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4235    ac_cxx_werror_flag=yes
4236    ac_cv_prog_cxx_g=no
4237    CXXFLAGS="-g"
4238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 if ac_fn_cxx_try_compile "$LINENO"; then :
4250   ac_cv_prog_cxx_g=yes
4251 else
4252   CXXFLAGS=""
4253       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h.  */
4255
4256 int
4257 main ()
4258 {
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_cxx_try_compile "$LINENO"; then :
4265
4266 else
4267   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4268          CXXFLAGS="-g"
4269          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h.  */
4271
4272 int
4273 main ()
4274 {
4275
4276   ;
4277   return 0;
4278 }
4279 _ACEOF
4280 if ac_fn_cxx_try_compile "$LINENO"; then :
4281   ac_cv_prog_cxx_g=yes
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4291 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4292 if test "$ac_test_CXXFLAGS" = set; then
4293   CXXFLAGS=$ac_save_CXXFLAGS
4294 elif test $ac_cv_prog_cxx_g = yes; then
4295   if test "$GXX" = yes; then
4296     CXXFLAGS="-g -O2"
4297   else
4298     CXXFLAGS="-g"
4299   fi
4300 else
4301   if test "$GXX" = yes; then
4302     CXXFLAGS="-O2"
4303   else
4304     CXXFLAGS=
4305   fi
4306 fi
4307 ac_ext=c
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312
4313 if test "x$CC" != xcc; then
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4315 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4316 else
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4318 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4319 fi
4320 set dummy $CC; ac_cc=`$as_echo "$2" |
4321                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4322 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h.  */
4327
4328 int
4329 main ()
4330 {
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 # Make sure it works both with $CC and with simple cc.
4337 # We do the test twice because some compilers refuse to overwrite an
4338 # existing .o file with -o, though they will create one.
4339 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4340 rm -f conftest2.*
4341 if { { case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346 $as_echo "$ac_try_echo"; } >&5
4347   (eval "$ac_try") 2>&5
4348   ac_status=$?
4349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350   test $ac_status = 0; } &&
4351    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356 $as_echo "$ac_try_echo"; } >&5
4357   (eval "$ac_try") 2>&5
4358   ac_status=$?
4359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360   test $ac_status = 0; };
4361 then
4362   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4363   if test "x$CC" != xcc; then
4364     # Test first that cc exists at all.
4365     if { ac_try='cc -c conftest.$ac_ext >&5'
4366   { { 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; }; }; then
4376       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4377       rm -f conftest2.*
4378       if { { case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384   (eval "$ac_try") 2>&5
4385   ac_status=$?
4386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387   test $ac_status = 0; } &&
4388          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394   (eval "$ac_try") 2>&5
4395   ac_status=$?
4396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397   test $ac_status = 0; };
4398       then
4399         # cc works too.
4400         :
4401       else
4402         # cc exists but doesn't like -o.
4403         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4404       fi
4405     fi
4406   fi
4407 else
4408   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4409 fi
4410 rm -f core conftest*
4411
4412 fi
4413 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4416 else
4417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419
4420 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4421
4422 fi
4423
4424 ac_ext=c
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4430 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4431 # On Suns, sometimes $CPP names a directory.
4432 if test -n "$CPP" && test -d "$CPP"; then
4433   CPP=
4434 fi
4435 if test -z "$CPP"; then
4436   if ${ac_cv_prog_CPP+:} false; then :
4437   $as_echo_n "(cached) " >&6
4438 else
4439       # Double quotes because CPP needs to be expanded
4440     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4441     do
4442       ac_preproc_ok=false
4443 for ac_c_preproc_warn_flag in '' yes
4444 do
4445   # Use a header file that comes with gcc, so configuring glibc
4446   # with a fresh cross-compiler works.
4447   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4448   # <limits.h> exists even on freestanding compilers.
4449   # On the NeXT, cc -E runs the code through the compiler's parser,
4450   # not just through cpp. "Syntax error" is here to catch this case.
4451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453 #ifdef __STDC__
4454 # include <limits.h>
4455 #else
4456 # include <assert.h>
4457 #endif
4458                      Syntax error
4459 _ACEOF
4460 if ac_fn_c_try_cpp "$LINENO"; then :
4461
4462 else
4463   # Broken: fails on valid input.
4464 continue
4465 fi
4466 rm -f conftest.err conftest.i conftest.$ac_ext
4467
4468   # OK, works on sane cases.  Now check whether nonexistent headers
4469   # can be detected and how.
4470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h.  */
4472 #include <ac_nonexistent.h>
4473 _ACEOF
4474 if ac_fn_c_try_cpp "$LINENO"; then :
4475   # Broken: success on invalid input.
4476 continue
4477 else
4478   # Passes both tests.
4479 ac_preproc_ok=:
4480 break
4481 fi
4482 rm -f conftest.err conftest.i conftest.$ac_ext
4483
4484 done
4485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4486 rm -f conftest.i conftest.err conftest.$ac_ext
4487 if $ac_preproc_ok; then :
4488   break
4489 fi
4490
4491     done
4492     ac_cv_prog_CPP=$CPP
4493
4494 fi
4495   CPP=$ac_cv_prog_CPP
4496 else
4497   ac_cv_prog_CPP=$CPP
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4500 $as_echo "$CPP" >&6; }
4501 ac_preproc_ok=false
4502 for ac_c_preproc_warn_flag in '' yes
4503 do
4504   # Use a header file that comes with gcc, so configuring glibc
4505   # with a fresh cross-compiler works.
4506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4507   # <limits.h> exists even on freestanding compilers.
4508   # On the NeXT, cc -E runs the code through the compiler's parser,
4509   # not just through cpp. "Syntax error" is here to catch this case.
4510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512 #ifdef __STDC__
4513 # include <limits.h>
4514 #else
4515 # include <assert.h>
4516 #endif
4517                      Syntax error
4518 _ACEOF
4519 if ac_fn_c_try_cpp "$LINENO"; then :
4520
4521 else
4522   # Broken: fails on valid input.
4523 continue
4524 fi
4525 rm -f conftest.err conftest.i conftest.$ac_ext
4526
4527   # OK, works on sane cases.  Now check whether nonexistent headers
4528   # can be detected and how.
4529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h.  */
4531 #include <ac_nonexistent.h>
4532 _ACEOF
4533 if ac_fn_c_try_cpp "$LINENO"; then :
4534   # Broken: success on invalid input.
4535 continue
4536 else
4537   # Passes both tests.
4538 ac_preproc_ok=:
4539 break
4540 fi
4541 rm -f conftest.err conftest.i conftest.$ac_ext
4542
4543 done
4544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4545 rm -f conftest.i conftest.err conftest.$ac_ext
4546 if $ac_preproc_ok; then :
4547
4548 else
4549   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4552 See \`config.log' for more details" "$LINENO" 5; }
4553 fi
4554
4555 ac_ext=c
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4563 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4564 if ${ac_cv_path_GREP+:} false; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   if test -z "$GREP"; then
4568   ac_path_GREP_found=false
4569   # Loop through the user's path and test for each of PROGNAME-LIST
4570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4572 do
4573   IFS=$as_save_IFS
4574   test -z "$as_dir" && as_dir=.
4575     for ac_prog in grep ggrep; do
4576     for ac_exec_ext in '' $ac_executable_extensions; do
4577       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4578       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4579 # Check for GNU ac_path_GREP and select it if it is found.
4580   # Check for GNU $ac_path_GREP
4581 case `"$ac_path_GREP" --version 2>&1` in
4582 *GNU*)
4583   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4584 *)
4585   ac_count=0
4586   $as_echo_n 0123456789 >"conftest.in"
4587   while :
4588   do
4589     cat "conftest.in" "conftest.in" >"conftest.tmp"
4590     mv "conftest.tmp" "conftest.in"
4591     cp "conftest.in" "conftest.nl"
4592     $as_echo 'GREP' >> "conftest.nl"
4593     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595     as_fn_arith $ac_count + 1 && ac_count=$as_val
4596     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4597       # Best one so far, save it but keep looking for a better one
4598       ac_cv_path_GREP="$ac_path_GREP"
4599       ac_path_GREP_max=$ac_count
4600     fi
4601     # 10*(2^10) chars as input seems more than enough
4602     test $ac_count -gt 10 && break
4603   done
4604   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4605 esac
4606
4607       $ac_path_GREP_found && break 3
4608     done
4609   done
4610   done
4611 IFS=$as_save_IFS
4612   if test -z "$ac_cv_path_GREP"; then
4613     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4614   fi
4615 else
4616   ac_cv_path_GREP=$GREP
4617 fi
4618
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4621 $as_echo "$ac_cv_path_GREP" >&6; }
4622  GREP="$ac_cv_path_GREP"
4623
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4626 $as_echo_n "checking for egrep... " >&6; }
4627 if ${ac_cv_path_EGREP+:} false; then :
4628   $as_echo_n "(cached) " >&6
4629 else
4630   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4631    then ac_cv_path_EGREP="$GREP -E"
4632    else
4633      if test -z "$EGREP"; then
4634   ac_path_EGREP_found=false
4635   # Loop through the user's path and test for each of PROGNAME-LIST
4636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4638 do
4639   IFS=$as_save_IFS
4640   test -z "$as_dir" && as_dir=.
4641     for ac_prog in egrep; do
4642     for ac_exec_ext in '' $ac_executable_extensions; do
4643       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4644       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4645 # Check for GNU ac_path_EGREP and select it if it is found.
4646   # Check for GNU $ac_path_EGREP
4647 case `"$ac_path_EGREP" --version 2>&1` in
4648 *GNU*)
4649   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4650 *)
4651   ac_count=0
4652   $as_echo_n 0123456789 >"conftest.in"
4653   while :
4654   do
4655     cat "conftest.in" "conftest.in" >"conftest.tmp"
4656     mv "conftest.tmp" "conftest.in"
4657     cp "conftest.in" "conftest.nl"
4658     $as_echo 'EGREP' >> "conftest.nl"
4659     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4660     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4661     as_fn_arith $ac_count + 1 && ac_count=$as_val
4662     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4663       # Best one so far, save it but keep looking for a better one
4664       ac_cv_path_EGREP="$ac_path_EGREP"
4665       ac_path_EGREP_max=$ac_count
4666     fi
4667     # 10*(2^10) chars as input seems more than enough
4668     test $ac_count -gt 10 && break
4669   done
4670   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4671 esac
4672
4673       $ac_path_EGREP_found && break 3
4674     done
4675   done
4676   done
4677 IFS=$as_save_IFS
4678   if test -z "$ac_cv_path_EGREP"; then
4679     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4680   fi
4681 else
4682   ac_cv_path_EGREP=$EGREP
4683 fi
4684
4685    fi
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4688 $as_echo "$ac_cv_path_EGREP" >&6; }
4689  EGREP="$ac_cv_path_EGREP"
4690
4691
4692 if test $ac_cv_c_compiler_gnu = yes; then
4693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4694 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4695 if ${ac_cv_prog_gcc_traditional+:} false; then :
4696   $as_echo_n "(cached) " >&6
4697 else
4698     ac_pattern="Autoconf.*'x'"
4699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h.  */
4701 #include <sgtty.h>
4702 Autoconf TIOCGETP
4703 _ACEOF
4704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4706   ac_cv_prog_gcc_traditional=yes
4707 else
4708   ac_cv_prog_gcc_traditional=no
4709 fi
4710 rm -f conftest*
4711
4712
4713   if test $ac_cv_prog_gcc_traditional = no; then
4714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h.  */
4716 #include <termio.h>
4717 Autoconf TCGETA
4718 _ACEOF
4719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4720   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4721   ac_cv_prog_gcc_traditional=yes
4722 fi
4723 rm -f conftest*
4724
4725   fi
4726 fi
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4728 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4729   if test $ac_cv_prog_gcc_traditional = yes; then
4730     CC="$CC -traditional"
4731   fi
4732 fi
4733
4734 BASECC=`basename $CC`
4735 have_gcc=no
4736 if test "x$BASECC" = xgcc; then
4737    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4738
4739    have_gcc=yes
4740 fi
4741 # Extract the first word of "$CXX", so it can be a program name with args.
4742 set dummy $CXX; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if ${ac_cv_path_CXX+:} false; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   case $CXX in
4749   [\\/]* | ?:[\\/]*)
4750   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4751   ;;
4752   *)
4753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756   IFS=$as_save_IFS
4757   test -z "$as_dir" && as_dir=.
4758     for ac_exec_ext in '' $ac_executable_extensions; do
4759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762     break 2
4763   fi
4764 done
4765   done
4766 IFS=$as_save_IFS
4767
4768   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4769   ;;
4770 esac
4771 fi
4772 CXX=$ac_cv_path_CXX
4773 if test -n "$CXX"; then
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4775 $as_echo "$CXX" >&6; }
4776 else
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 fi
4780
4781
4782 if test ! -e $CXX; then
4783    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4784 fi
4785
4786 # Find a good install program.  We prefer a C program (faster),
4787 # so one script is as good as another.  But avoid the broken or
4788 # incompatible versions:
4789 # SysV /etc/install, /usr/sbin/install
4790 # SunOS /usr/etc/install
4791 # IRIX /sbin/install
4792 # AIX /bin/install
4793 # AmigaOS /C/install, which installs bootblocks on floppy discs
4794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4797 # OS/2's system install, which has a completely different semantic
4798 # ./install, which can be erroneously created by make from ./install.sh.
4799 # Reject install programs that cannot install multiple files.
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4801 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4802 if test -z "$INSTALL"; then
4803 if ${ac_cv_path_install+:} false; then :
4804   $as_echo_n "(cached) " >&6
4805 else
4806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811     # Account for people who put trailing slashes in PATH elements.
4812 case $as_dir/ in #((
4813   ./ | .// | /[cC]/* | \
4814   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4815   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4816   /usr/ucb/* ) ;;
4817   *)
4818     # OSF1 and SCO ODT 3.0 have their own names for install.
4819     # Don't use installbsd from OSF since it installs stuff as root
4820     # by default.
4821     for ac_prog in ginstall scoinst install; do
4822       for ac_exec_ext in '' $ac_executable_extensions; do
4823         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4824           if test $ac_prog = install &&
4825             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4826             # AIX install.  It has an incompatible calling convention.
4827             :
4828           elif test $ac_prog = install &&
4829             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4830             # program-specific install script used by HP pwplus--don't use.
4831             :
4832           else
4833             rm -rf conftest.one conftest.two conftest.dir
4834             echo one > conftest.one
4835             echo two > conftest.two
4836             mkdir conftest.dir
4837             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4838               test -s conftest.one && test -s conftest.two &&
4839               test -s conftest.dir/conftest.one &&
4840               test -s conftest.dir/conftest.two
4841             then
4842               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4843               break 3
4844             fi
4845           fi
4846         fi
4847       done
4848     done
4849     ;;
4850 esac
4851
4852   done
4853 IFS=$as_save_IFS
4854
4855 rm -rf conftest.one conftest.two conftest.dir
4856
4857 fi
4858   if test "${ac_cv_path_install+set}" = set; then
4859     INSTALL=$ac_cv_path_install
4860   else
4861     # As a last resort, use the slow shell script.  Don't cache a
4862     # value for INSTALL within a source directory, because that will
4863     # break other packages using the cache if that directory is
4864     # removed, or if the value is a relative name.
4865     INSTALL=$ac_install_sh
4866   fi
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4869 $as_echo "$INSTALL" >&6; }
4870
4871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4872 # It thinks the first close brace ends the variable substitution.
4873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4874
4875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4876
4877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4878
4879 # Extract the first word of "mv", so it can be a program name with args.
4880 set dummy mv; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if ${ac_cv_path_MV+:} false; then :
4884   $as_echo_n "(cached) " >&6
4885 else
4886   case $MV in
4887   [\\/]* | ?:[\\/]*)
4888   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4889   ;;
4890   *)
4891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896     for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903   done
4904 IFS=$as_save_IFS
4905
4906   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4907   ;;
4908 esac
4909 fi
4910 MV=$ac_cv_path_MV
4911 if test -n "$MV"; then
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4913 $as_echo "$MV" >&6; }
4914 else
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4917 fi
4918
4919
4920 # Extract the first word of "rm", so it can be a program name with args.
4921 set dummy rm; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if ${ac_cv_path_REMOVE+:} false; then :
4925   $as_echo_n "(cached) " >&6
4926 else
4927   case $REMOVE in
4928   [\\/]* | ?:[\\/]*)
4929   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4930   ;;
4931   *)
4932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937     for ac_exec_ext in '' $ac_executable_extensions; do
4938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944   done
4945 IFS=$as_save_IFS
4946
4947   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4948   ;;
4949 esac
4950 fi
4951 REMOVE=$ac_cv_path_REMOVE
4952 if test -n "$REMOVE"; then
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4954 $as_echo "$REMOVE" >&6; }
4955 else
4956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4958 fi
4959
4960
4961 # Extract the first word of "cp", so it can be a program name with args.
4962 set dummy cp; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_path_CP+:} false; then :
4966   $as_echo_n "(cached) " >&6
4967 else
4968   case $CP in
4969   [\\/]* | ?:[\\/]*)
4970   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4971   ;;
4972   *)
4973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978     for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985   done
4986 IFS=$as_save_IFS
4987
4988   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4989   ;;
4990 esac
4991 fi
4992 CP=$ac_cv_path_CP
4993 if test -n "$CP"; then
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4995 $as_echo "$CP" >&6; }
4996 else
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
4999 fi
5000
5001
5002 # Extract the first word of "sed", so it can be a program name with args.
5003 set dummy sed; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_path_SED+:} false; then :
5007   $as_echo_n "(cached) " >&6
5008 else
5009   case $SED in
5010   [\\/]* | ?:[\\/]*)
5011   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5012   ;;
5013   *)
5014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019     for ac_exec_ext in '' $ac_executable_extensions; do
5020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026   done
5027 IFS=$as_save_IFS
5028
5029   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5030   ;;
5031 esac
5032 fi
5033 SED=$ac_cv_path_SED
5034 if test -n "$SED"; then
5035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5036 $as_echo "$SED" >&6; }
5037 else
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041
5042
5043 # Extract the first word of "echo", so it can be a program name with args.
5044 set dummy echo; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_path_ECHO+:} false; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050   case $ECHO in
5051   [\\/]* | ?:[\\/]*)
5052   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5053   ;;
5054   *)
5055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060     for ac_exec_ext in '' $ac_executable_extensions; do
5061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067   done
5068 IFS=$as_save_IFS
5069
5070   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5071   ;;
5072 esac
5073 fi
5074 ECHO=$ac_cv_path_ECHO
5075 if test -n "$ECHO"; then
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5077 $as_echo "$ECHO" >&6; }
5078 else
5079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083
5084 # Extract the first word of "cmp", so it can be a program name with args.
5085 set dummy cmp; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_path_CMP+:} false; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091   case $CMP in
5092   [\\/]* | ?:[\\/]*)
5093   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5094   ;;
5095   *)
5096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101     for ac_exec_ext in '' $ac_executable_extensions; do
5102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108   done
5109 IFS=$as_save_IFS
5110
5111   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5112   ;;
5113 esac
5114 fi
5115 CMP=$ac_cv_path_CMP
5116 if test -n "$CMP"; then
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5118 $as_echo "$CMP" >&6; }
5119 else
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5122 fi
5123
5124
5125 # Extract the first word of "tbl", so it can be a program name with args.
5126 set dummy tbl; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_path_TBL+:} false; then :
5130   $as_echo_n "(cached) " >&6
5131 else
5132   case $TBL in
5133   [\\/]* | ?:[\\/]*)
5134   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5135   ;;
5136   *)
5137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142     for ac_exec_ext in '' $ac_executable_extensions; do
5143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149   done
5150 IFS=$as_save_IFS
5151
5152   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5153   ;;
5154 esac
5155 fi
5156 TBL=$ac_cv_path_TBL
5157 if test -n "$TBL"; then
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5159 $as_echo "$TBL" >&6; }
5160 else
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165
5166 # Extract the first word of "ar", so it can be a program name with args.
5167 set dummy ar; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_path_AR+:} false; then :
5171   $as_echo_n "(cached) " >&6
5172 else
5173   case $AR in
5174   [\\/]* | ?:[\\/]*)
5175   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5176   ;;
5177   *)
5178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183     for ac_exec_ext in '' $ac_executable_extensions; do
5184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190   done
5191 IFS=$as_save_IFS
5192
5193   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5194   ;;
5195 esac
5196 fi
5197 AR=$ac_cv_path_AR
5198 if test -n "$AR"; then
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5200 $as_echo "$AR" >&6; }
5201 else
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206
5207 # Extract the first word of "openssl", so it can be a program name with args.
5208 set dummy openssl; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_path_OPENSSL+:} false; then :
5212   $as_echo_n "(cached) " >&6
5213 else
5214   case $OPENSSL in
5215   [\\/]* | ?:[\\/]*)
5216   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5217   ;;
5218   *)
5219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222   IFS=$as_save_IFS
5223   test -z "$as_dir" && as_dir=.
5224     for ac_exec_ext in '' $ac_executable_extensions; do
5225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228     break 2
5229   fi
5230 done
5231   done
5232 IFS=$as_save_IFS
5233
5234   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5235   ;;
5236 esac
5237 fi
5238 OPENSSL=$ac_cv_path_OPENSSL
5239 if test -n "$OPENSSL"; then
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5241 $as_echo "$OPENSSL" >&6; }
5242 else
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247
5248 # Extract the first word of "mtx", so it can be a program name with args.
5249 set dummy mtx; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_path_MTX+:} false; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   case $MTX in
5256   [\\/]* | ?:[\\/]*)
5257   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5258   ;;
5259   *)
5260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272   done
5273 IFS=$as_save_IFS
5274
5275   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5276   ;;
5277 esac
5278 fi
5279 MTX=$ac_cv_path_MTX
5280 if test -n "$MTX"; then
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5282 $as_echo "$MTX" >&6; }
5283 else
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5287
5288
5289 # Extract the first word of "dd", so it can be a program name with args.
5290 set dummy dd; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_path_DD+:} false; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   case $DD in
5297   [\\/]* | ?:[\\/]*)
5298   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5299   ;;
5300   *)
5301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306     for ac_exec_ext in '' $ac_executable_extensions; do
5307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310     break 2
5311   fi
5312 done
5313   done
5314 IFS=$as_save_IFS
5315
5316   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5317   ;;
5318 esac
5319 fi
5320 DD=$ac_cv_path_DD
5321 if test -n "$DD"; then
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5323 $as_echo "$DD" >&6; }
5324 else
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 fi
5328
5329
5330 # Extract the first word of "mkisofs", so it can be a program name with args.
5331 set dummy mkisofs; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_path_MKISOFS+:} false; then :
5335   $as_echo_n "(cached) " >&6
5336 else
5337   case $MKISOFS in
5338   [\\/]* | ?:[\\/]*)
5339   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5340   ;;
5341   *)
5342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345   IFS=$as_save_IFS
5346   test -z "$as_dir" && as_dir=.
5347     for ac_exec_ext in '' $ac_executable_extensions; do
5348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351     break 2
5352   fi
5353 done
5354   done
5355 IFS=$as_save_IFS
5356
5357   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5358   ;;
5359 esac
5360 fi
5361 MKISOFS=$ac_cv_path_MKISOFS
5362 if test -n "$MKISOFS"; then
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5364 $as_echo "$MKISOFS" >&6; }
5365 else
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370
5371 # Extract the first word of "python", so it can be a program name with args.
5372 set dummy python; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if ${ac_cv_path_PYTHON+:} false; then :
5376   $as_echo_n "(cached) " >&6
5377 else
5378   case $PYTHON in
5379   [\\/]* | ?:[\\/]*)
5380   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5381   ;;
5382   *)
5383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5385 do
5386   IFS=$as_save_IFS
5387   test -z "$as_dir" && as_dir=.
5388     for ac_exec_ext in '' $ac_executable_extensions; do
5389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392     break 2
5393   fi
5394 done
5395   done
5396 IFS=$as_save_IFS
5397
5398   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5399   ;;
5400 esac
5401 fi
5402 PYTHON=$ac_cv_path_PYTHON
5403 if test -n "$PYTHON"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5405 $as_echo "$PYTHON" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411
5412 # Extract the first word of "growisofs", so it can be a program name with args.
5413 set dummy growisofs; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_path_GROWISOFS+:} false; then :
5417   $as_echo_n "(cached) " >&6
5418 else
5419   case $GROWISOFS in
5420   [\\/]* | ?:[\\/]*)
5421   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5422   ;;
5423   *)
5424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427   IFS=$as_save_IFS
5428   test -z "$as_dir" && as_dir=.
5429     for ac_exec_ext in '' $ac_executable_extensions; do
5430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433     break 2
5434   fi
5435 done
5436   done
5437 IFS=$as_save_IFS
5438
5439   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5440   ;;
5441 esac
5442 fi
5443 GROWISOFS=$ac_cv_path_GROWISOFS
5444 if test -n "$GROWISOFS"; then
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5446 $as_echo "$GROWISOFS" >&6; }
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5454 set dummy dvd+rw-mediainfo; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460   case $DVDRWMEDIAINFO in
5461   [\\/]* | ?:[\\/]*)
5462   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5463   ;;
5464   *)
5465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468   IFS=$as_save_IFS
5469   test -z "$as_dir" && as_dir=.
5470     for ac_exec_ext in '' $ac_executable_extensions; do
5471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474     break 2
5475   fi
5476 done
5477   done
5478 IFS=$as_save_IFS
5479
5480   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5481   ;;
5482 esac
5483 fi
5484 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5485 if test -n "$DVDRWMEDIAINFO"; then
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5487 $as_echo "$DVDRWMEDIAINFO" >&6; }
5488 else
5489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5491 fi
5492
5493
5494 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5495 set dummy dvd+rw-format; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   case $DVDRWFORMAT in
5502   [\\/]* | ?:[\\/]*)
5503   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5504   ;;
5505   *)
5506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509   IFS=$as_save_IFS
5510   test -z "$as_dir" && as_dir=.
5511     for ac_exec_ext in '' $ac_executable_extensions; do
5512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515     break 2
5516   fi
5517 done
5518   done
5519 IFS=$as_save_IFS
5520
5521   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5522   ;;
5523 esac
5524 fi
5525 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5526 if test -n "$DVDRWFORMAT"; then
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5528 $as_echo "$DVDRWFORMAT" >&6; }
5529 else
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535 # Extract the first word of "pkg-config", so it can be a program name with args.
5536 set dummy pkg-config; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_path_PKGCONFIG+:} false; then :
5540   $as_echo_n "(cached) " >&6
5541 else
5542   case $PKGCONFIG in
5543   [\\/]* | ?:[\\/]*)
5544   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5545   ;;
5546   *)
5547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552     for ac_exec_ext in '' $ac_executable_extensions; do
5553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556     break 2
5557   fi
5558 done
5559   done
5560 IFS=$as_save_IFS
5561
5562   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5563   ;;
5564 esac
5565 fi
5566 PKGCONFIG=$ac_cv_path_PKGCONFIG
5567 if test -n "$PKGCONFIG"; then
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5569 $as_echo "$PKGCONFIG" >&6; }
5570 else
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575
5576 # Extract the first word of "qmake", so it can be a program name with args.
5577 set dummy qmake; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_path_QMAKE+:} false; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   case $QMAKE in
5584   [\\/]* | ?:[\\/]*)
5585   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5586   ;;
5587   *)
5588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591   IFS=$as_save_IFS
5592   test -z "$as_dir" && as_dir=.
5593     for ac_exec_ext in '' $ac_executable_extensions; do
5594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597     break 2
5598   fi
5599 done
5600   done
5601 IFS=$as_save_IFS
5602
5603   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5604   ;;
5605 esac
5606 fi
5607 QMAKE=$ac_cv_path_QMAKE
5608 if test -n "$QMAKE"; then
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5610 $as_echo "$QMAKE" >&6; }
5611 else
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616
5617 # Extract the first word of "gmake", so it can be a program name with args.
5618 set dummy gmake; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_path_GMAKE+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   case $GMAKE in
5625   [\\/]* | ?:[\\/]*)
5626   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5627   ;;
5628   *)
5629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634     for ac_exec_ext in '' $ac_executable_extensions; do
5635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641   done
5642 IFS=$as_save_IFS
5643
5644   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5645   ;;
5646 esac
5647 fi
5648 GMAKE=$ac_cv_path_GMAKE
5649 if test -n "$GMAKE"; then
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5651 $as_echo "$GMAKE" >&6; }
5652 else
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656
5657
5658 # Extract the first word of "cdrecord", so it can be a program name with args.
5659 set dummy cdrecord; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_path_CDRECORD+:} false; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   case $CDRECORD in
5666   [\\/]* | ?:[\\/]*)
5667   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5668   ;;
5669   *)
5670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675     for ac_exec_ext in '' $ac_executable_extensions; do
5676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682   done
5683 IFS=$as_save_IFS
5684
5685   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5686   ;;
5687 esac
5688 fi
5689 CDRECORD=$ac_cv_path_CDRECORD
5690 if test -n "$CDRECORD"; then
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5692 $as_echo "$CDRECORD" >&6; }
5693 else
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698
5699 # Extract the first word of "pidof", so it can be a program name with args.
5700 set dummy pidof; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_path_PIDOF+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   case $PIDOF in
5707   [\\/]* | ?:[\\/]*)
5708   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5709   ;;
5710   *)
5711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716     for ac_exec_ext in '' $ac_executable_extensions; do
5717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723   done
5724 IFS=$as_save_IFS
5725
5726   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5727   ;;
5728 esac
5729 fi
5730 PIDOF=$ac_cv_path_PIDOF
5731 if test -n "$PIDOF"; then
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5733 $as_echo "$PIDOF" >&6; }
5734 else
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739
5740 for ac_prog in gawk mawk nawk awk
5741 do
5742   # Extract the first word of "$ac_prog", so it can be a program name with args.
5743 set dummy $ac_prog; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_prog_AWK+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   if test -n "$AWK"; then
5750   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755   IFS=$as_save_IFS
5756   test -z "$as_dir" && as_dir=.
5757     for ac_exec_ext in '' $ac_executable_extensions; do
5758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759     ac_cv_prog_AWK="$ac_prog"
5760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761     break 2
5762   fi
5763 done
5764   done
5765 IFS=$as_save_IFS
5766
5767 fi
5768 fi
5769 AWK=$ac_cv_prog_AWK
5770 if test -n "$AWK"; then
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5772 $as_echo "$AWK" >&6; }
5773 else
5774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5776 fi
5777
5778
5779   test -n "$AWK" && break
5780 done
5781
5782 # Some AWK programs fail, so test it and warn the user
5783 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5784       { if ((prog == $2) || (("(" prog ")") == $2) ||
5785       (("" prog "") == $2) ||
5786       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5787 else
5788   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5789    The regex engine of $AWK is too broken to be used you
5790    might want to install GNU AWK.
5791    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5792 fi
5793 THE_AWK=$AWK
5794 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5795 set dummy $THE_AWK; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_path_AWK+:} false; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   case $AWK in
5802   [\\/]* | ?:[\\/]*)
5803   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5804   ;;
5805   *)
5806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811     for ac_exec_ext in '' $ac_executable_extensions; do
5812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818   done
5819 IFS=$as_save_IFS
5820
5821   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5822   ;;
5823 esac
5824 fi
5825 AWK=$ac_cv_path_AWK
5826 if test -n "$AWK"; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5828 $as_echo "$AWK" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835
5836
5837 test -n "$ARFLAG" || ARFLAGS="cr"
5838
5839
5840 MAKE_SHELL=/bin/sh
5841
5842
5843
5844
5845
5846
5847
5848 use_libtool=yes
5849 # Check whether --enable-libtool was given.
5850 if test "${enable_libtool+set}" = set; then :
5851   enableval=$enable_libtool;
5852        if test x$enableval = xno; then
5853           use_libtool=no
5854        fi
5855
5856
5857 fi
5858
5859 case `pwd` in
5860   *\ * | *\     *)
5861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5862 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5863 esac
5864
5865
5866
5867 macro_version='2.4'
5868 macro_revision='1.3293'
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 ltmain="$ac_aux_dir/ltmain.sh"
5883
5884 # Make sure we can run config.sub.
5885 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5886   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5887
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5889 $as_echo_n "checking build system type... " >&6; }
5890 if ${ac_cv_build+:} false; then :
5891   $as_echo_n "(cached) " >&6
5892 else
5893   ac_build_alias=$build_alias
5894 test "x$ac_build_alias" = x &&
5895   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5896 test "x$ac_build_alias" = x &&
5897   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5898 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5899   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5900
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5903 $as_echo "$ac_cv_build" >&6; }
5904 case $ac_cv_build in
5905 *-*-*) ;;
5906 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5907 esac
5908 build=$ac_cv_build
5909 ac_save_IFS=$IFS; IFS='-'
5910 set x $ac_cv_build
5911 shift
5912 build_cpu=$1
5913 build_vendor=$2
5914 shift; shift
5915 # Remember, the first character of IFS is used to create $*,
5916 # except with old shells:
5917 build_os=$*
5918 IFS=$ac_save_IFS
5919 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5920
5921
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5923 $as_echo_n "checking host system type... " >&6; }
5924 if ${ac_cv_host+:} false; then :
5925   $as_echo_n "(cached) " >&6
5926 else
5927   if test "x$host_alias" = x; then
5928   ac_cv_host=$ac_cv_build
5929 else
5930   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5931     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5932 fi
5933
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5936 $as_echo "$ac_cv_host" >&6; }
5937 case $ac_cv_host in
5938 *-*-*) ;;
5939 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5940 esac
5941 host=$ac_cv_host
5942 ac_save_IFS=$IFS; IFS='-'
5943 set x $ac_cv_host
5944 shift
5945 host_cpu=$1
5946 host_vendor=$2
5947 shift; shift
5948 # Remember, the first character of IFS is used to create $*,
5949 # except with old shells:
5950 host_os=$*
5951 IFS=$ac_save_IFS
5952 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5953
5954
5955 # Backslashify metacharacters that are still active within
5956 # double-quoted strings.
5957 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5958
5959 # Same as above, but do not quote variable references.
5960 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5961
5962 # Sed substitution to delay expansion of an escaped shell variable in a
5963 # double_quote_subst'ed string.
5964 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5965
5966 # Sed substitution to delay expansion of an escaped single quote.
5967 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5968
5969 # Sed substitution to avoid accidental globbing in evaled expressions
5970 no_glob_subst='s/\*/\\\*/g'
5971
5972 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5973 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5974 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5977 $as_echo_n "checking how to print strings... " >&6; }
5978 # Test print first, because it will be a builtin if present.
5979 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5980    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5981   ECHO='print -r --'
5982 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5983   ECHO='printf %s\n'
5984 else
5985   # Use this function as a fallback that always works.
5986   func_fallback_echo ()
5987   {
5988     eval 'cat <<_LTECHO_EOF
5989 $1
5990 _LTECHO_EOF'
5991   }
5992   ECHO='func_fallback_echo'
5993 fi
5994
5995 # func_echo_all arg...
5996 # Invoke $ECHO with all args, space-separated.
5997 func_echo_all ()
5998 {
5999     $ECHO ""
6000 }
6001
6002 case "$ECHO" in
6003   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6004 $as_echo "printf" >&6; } ;;
6005   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6006 $as_echo "print -r" >&6; } ;;
6007   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6008 $as_echo "cat" >&6; } ;;
6009 esac
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6025 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6026 if ${ac_cv_path_SED+:} false; then :
6027   $as_echo_n "(cached) " >&6
6028 else
6029             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6030      for ac_i in 1 2 3 4 5 6 7; do
6031        ac_script="$ac_script$as_nl$ac_script"
6032      done
6033      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6034      { ac_script=; unset ac_script;}
6035      if test -z "$SED"; then
6036   ac_path_SED_found=false
6037   # Loop through the user's path and test for each of PROGNAME-LIST
6038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043     for ac_prog in sed gsed; do
6044     for ac_exec_ext in '' $ac_executable_extensions; do
6045       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6046       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6047 # Check for GNU ac_path_SED and select it if it is found.
6048   # Check for GNU $ac_path_SED
6049 case `"$ac_path_SED" --version 2>&1` in
6050 *GNU*)
6051   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6052 *)
6053   ac_count=0
6054   $as_echo_n 0123456789 >"conftest.in"
6055   while :
6056   do
6057     cat "conftest.in" "conftest.in" >"conftest.tmp"
6058     mv "conftest.tmp" "conftest.in"
6059     cp "conftest.in" "conftest.nl"
6060     $as_echo '' >> "conftest.nl"
6061     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6062     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6063     as_fn_arith $ac_count + 1 && ac_count=$as_val
6064     if test $ac_count -gt ${ac_path_SED_max-0}; then
6065       # Best one so far, save it but keep looking for a better one
6066       ac_cv_path_SED="$ac_path_SED"
6067       ac_path_SED_max=$ac_count
6068     fi
6069     # 10*(2^10) chars as input seems more than enough
6070     test $ac_count -gt 10 && break
6071   done
6072   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6073 esac
6074
6075       $ac_path_SED_found && break 3
6076     done
6077   done
6078   done
6079 IFS=$as_save_IFS
6080   if test -z "$ac_cv_path_SED"; then
6081     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6082   fi
6083 else
6084   ac_cv_path_SED=$SED
6085 fi
6086
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6089 $as_echo "$ac_cv_path_SED" >&6; }
6090  SED="$ac_cv_path_SED"
6091   rm -f conftest.sed
6092
6093 test -z "$SED" && SED=sed
6094 Xsed="$SED -e 1s/^X//"
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6107 $as_echo_n "checking for fgrep... " >&6; }
6108 if ${ac_cv_path_FGREP+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6112    then ac_cv_path_FGREP="$GREP -F"
6113    else
6114      if test -z "$FGREP"; then
6115   ac_path_FGREP_found=false
6116   # Loop through the user's path and test for each of PROGNAME-LIST
6117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122     for ac_prog in fgrep; do
6123     for ac_exec_ext in '' $ac_executable_extensions; do
6124       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6125       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6126 # Check for GNU ac_path_FGREP and select it if it is found.
6127   # Check for GNU $ac_path_FGREP
6128 case `"$ac_path_FGREP" --version 2>&1` in
6129 *GNU*)
6130   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6131 *)
6132   ac_count=0
6133   $as_echo_n 0123456789 >"conftest.in"
6134   while :
6135   do
6136     cat "conftest.in" "conftest.in" >"conftest.tmp"
6137     mv "conftest.tmp" "conftest.in"
6138     cp "conftest.in" "conftest.nl"
6139     $as_echo 'FGREP' >> "conftest.nl"
6140     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6141     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6142     as_fn_arith $ac_count + 1 && ac_count=$as_val
6143     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6144       # Best one so far, save it but keep looking for a better one
6145       ac_cv_path_FGREP="$ac_path_FGREP"
6146       ac_path_FGREP_max=$ac_count
6147     fi
6148     # 10*(2^10) chars as input seems more than enough
6149     test $ac_count -gt 10 && break
6150   done
6151   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6152 esac
6153
6154       $ac_path_FGREP_found && break 3
6155     done
6156   done
6157   done
6158 IFS=$as_save_IFS
6159   if test -z "$ac_cv_path_FGREP"; then
6160     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6161   fi
6162 else
6163   ac_cv_path_FGREP=$FGREP
6164 fi
6165
6166    fi
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6169 $as_echo "$ac_cv_path_FGREP" >&6; }
6170  FGREP="$ac_cv_path_FGREP"
6171
6172
6173 test -z "$GREP" && GREP=grep
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193 # Check whether --with-gnu-ld was given.
6194 if test "${with_gnu_ld+set}" = set; then :
6195   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6196 else
6197   with_gnu_ld=no
6198 fi
6199
6200 ac_prog=ld
6201 if test "$GCC" = yes; then
6202   # Check if gcc -print-prog-name=ld gives a path.
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6204 $as_echo_n "checking for ld used by $CC... " >&6; }
6205   case $host in
6206   *-*-mingw*)
6207     # gcc leaves a trailing carriage return which upsets mingw
6208     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6209   *)
6210     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6211   esac
6212   case $ac_prog in
6213     # Accept absolute paths.
6214     [\\/]* | ?:[\\/]*)
6215       re_direlt='/[^/][^/]*/\.\./'
6216       # Canonicalize the pathname of ld
6217       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6218       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6219         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6220       done
6221       test -z "$LD" && LD="$ac_prog"
6222       ;;
6223   "")
6224     # If it fails, then pretend we aren't using GCC.
6225     ac_prog=ld
6226     ;;
6227   *)
6228     # If it is relative, then search for the first ld in PATH.
6229     with_gnu_ld=unknown
6230     ;;
6231   esac
6232 elif test "$with_gnu_ld" = yes; then
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6234 $as_echo_n "checking for GNU ld... " >&6; }
6235 else
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6237 $as_echo_n "checking for non-GNU ld... " >&6; }
6238 fi
6239 if ${lt_cv_path_LD+:} false; then :
6240   $as_echo_n "(cached) " >&6
6241 else
6242   if test -z "$LD"; then
6243   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6244   for ac_dir in $PATH; do
6245     IFS="$lt_save_ifs"
6246     test -z "$ac_dir" && ac_dir=.
6247     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6248       lt_cv_path_LD="$ac_dir/$ac_prog"
6249       # Check to see if the program is GNU ld.  I'd rather use --version,
6250       # but apparently some variants of GNU ld only accept -v.
6251       # Break only if it was the GNU/non-GNU ld that we prefer.
6252       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6253       *GNU* | *'with BFD'*)
6254         test "$with_gnu_ld" != no && break
6255         ;;
6256       *)
6257         test "$with_gnu_ld" != yes && break
6258         ;;
6259       esac
6260     fi
6261   done
6262   IFS="$lt_save_ifs"
6263 else
6264   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6265 fi
6266 fi
6267
6268 LD="$lt_cv_path_LD"
6269 if test -n "$LD"; then
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6271 $as_echo "$LD" >&6; }
6272 else
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6278 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6279 if ${lt_cv_prog_gnu_ld+:} false; then :
6280   $as_echo_n "(cached) " >&6
6281 else
6282   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6283 case `$LD -v 2>&1 </dev/null` in
6284 *GNU* | *'with BFD'*)
6285   lt_cv_prog_gnu_ld=yes
6286   ;;
6287 *)
6288   lt_cv_prog_gnu_ld=no
6289   ;;
6290 esac
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6293 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6294 with_gnu_ld=$lt_cv_prog_gnu_ld
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6305 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6306 if ${lt_cv_path_NM+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   if test -n "$NM"; then
6310   # Let the user override the test.
6311   lt_cv_path_NM="$NM"
6312 else
6313   lt_nm_to_check="${ac_tool_prefix}nm"
6314   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6315     lt_nm_to_check="$lt_nm_to_check nm"
6316   fi
6317   for lt_tmp_nm in $lt_nm_to_check; do
6318     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6319     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6320       IFS="$lt_save_ifs"
6321       test -z "$ac_dir" && ac_dir=.
6322       tmp_nm="$ac_dir/$lt_tmp_nm"
6323       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6324         # Check to see if the nm accepts a BSD-compat flag.
6325         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6326         #   nm: unknown option "B" ignored
6327         # Tru64's nm complains that /dev/null is an invalid object file
6328         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6329         */dev/null* | *'Invalid file or object type'*)
6330           lt_cv_path_NM="$tmp_nm -B"
6331           break
6332           ;;
6333         *)
6334           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6335           */dev/null*)
6336             lt_cv_path_NM="$tmp_nm -p"
6337             break
6338             ;;
6339           *)
6340             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6341             continue # so that we can try to find one that supports BSD flags
6342             ;;
6343           esac
6344           ;;
6345         esac
6346       fi
6347     done
6348     IFS="$lt_save_ifs"
6349   done
6350   : ${lt_cv_path_NM=no}
6351 fi
6352 fi
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6354 $as_echo "$lt_cv_path_NM" >&6; }
6355 if test "$lt_cv_path_NM" != "no"; then
6356   NM="$lt_cv_path_NM"
6357 else
6358   # Didn't find any BSD compatible name lister, look for dumpbin.
6359   if test -n "$DUMPBIN"; then :
6360     # Let the user override the test.
6361   else
6362     if test -n "$ac_tool_prefix"; then
6363   for ac_prog in dumpbin "link -dump"
6364   do
6365     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_prog_DUMPBIN+:} false; then :
6370   $as_echo_n "(cached) " >&6
6371 else
6372   if test -n "$DUMPBIN"; then
6373   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378   IFS=$as_save_IFS
6379   test -z "$as_dir" && as_dir=.
6380     for ac_exec_ext in '' $ac_executable_extensions; do
6381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384     break 2
6385   fi
6386 done
6387   done
6388 IFS=$as_save_IFS
6389
6390 fi
6391 fi
6392 DUMPBIN=$ac_cv_prog_DUMPBIN
6393 if test -n "$DUMPBIN"; then
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6395 $as_echo "$DUMPBIN" >&6; }
6396 else
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6399 fi
6400
6401
6402     test -n "$DUMPBIN" && break
6403   done
6404 fi
6405 if test -z "$DUMPBIN"; then
6406   ac_ct_DUMPBIN=$DUMPBIN
6407   for ac_prog in dumpbin "link -dump"
6408 do
6409   # Extract the first word of "$ac_prog", so it can be a program name with args.
6410 set dummy $ac_prog; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6414   $as_echo_n "(cached) " >&6
6415 else
6416   if test -n "$ac_ct_DUMPBIN"; then
6417   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422   IFS=$as_save_IFS
6423   test -z "$as_dir" && as_dir=.
6424     for ac_exec_ext in '' $ac_executable_extensions; do
6425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428     break 2
6429   fi
6430 done
6431   done
6432 IFS=$as_save_IFS
6433
6434 fi
6435 fi
6436 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6437 if test -n "$ac_ct_DUMPBIN"; then
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6439 $as_echo "$ac_ct_DUMPBIN" >&6; }
6440 else
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6443 fi
6444
6445
6446   test -n "$ac_ct_DUMPBIN" && break
6447 done
6448
6449   if test "x$ac_ct_DUMPBIN" = x; then
6450     DUMPBIN=":"
6451   else
6452     case $cross_compiling:$ac_tool_warned in
6453 yes:)
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456 ac_tool_warned=yes ;;
6457 esac
6458     DUMPBIN=$ac_ct_DUMPBIN
6459   fi
6460 fi
6461
6462     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6463     *COFF*)
6464       DUMPBIN="$DUMPBIN -symbols"
6465       ;;
6466     *)
6467       DUMPBIN=:
6468       ;;
6469     esac
6470   fi
6471
6472   if test "$DUMPBIN" != ":"; then
6473     NM="$DUMPBIN"
6474   fi
6475 fi
6476 test -z "$NM" && NM=nm
6477
6478
6479
6480
6481
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6484 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6485 if ${lt_cv_nm_interface+:} false; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488   lt_cv_nm_interface="BSD nm"
6489   echo "int some_variable = 0;" > conftest.$ac_ext
6490   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6491   (eval "$ac_compile" 2>conftest.err)
6492   cat conftest.err >&5
6493   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6494   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6495   cat conftest.err >&5
6496   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6497   cat conftest.out >&5
6498   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6499     lt_cv_nm_interface="MS dumpbin"
6500   fi
6501   rm -f conftest*
6502 fi
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6504 $as_echo "$lt_cv_nm_interface" >&6; }
6505
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6507 $as_echo_n "checking whether ln -s works... " >&6; }
6508 LN_S=$as_ln_s
6509 if test "$LN_S" = "ln -s"; then
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6511 $as_echo "yes" >&6; }
6512 else
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6514 $as_echo "no, using $LN_S" >&6; }
6515 fi
6516
6517 # find the maximum length of command line arguments
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6519 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6520 if ${lt_cv_sys_max_cmd_len+:} false; then :
6521   $as_echo_n "(cached) " >&6
6522 else
6523     i=0
6524   teststring="ABCD"
6525
6526   case $build_os in
6527   msdosdjgpp*)
6528     # On DJGPP, this test can blow up pretty badly due to problems in libc
6529     # (any single argument exceeding 2000 bytes causes a buffer overrun
6530     # during glob expansion).  Even if it were fixed, the result of this
6531     # check would be larger than it should be.
6532     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6533     ;;
6534
6535   gnu*)
6536     # Under GNU Hurd, this test is not required because there is
6537     # no limit to the length of command line arguments.
6538     # Libtool will interpret -1 as no limit whatsoever
6539     lt_cv_sys_max_cmd_len=-1;
6540     ;;
6541
6542   cygwin* | mingw* | cegcc*)
6543     # On Win9x/ME, this test blows up -- it succeeds, but takes
6544     # about 5 minutes as the teststring grows exponentially.
6545     # Worse, since 9x/ME are not pre-emptively multitasking,
6546     # you end up with a "frozen" computer, even though with patience
6547     # the test eventually succeeds (with a max line length of 256k).
6548     # Instead, let's just punt: use the minimum linelength reported by
6549     # all of the supported platforms: 8192 (on NT/2K/XP).
6550     lt_cv_sys_max_cmd_len=8192;
6551     ;;
6552
6553   mint*)
6554     # On MiNT this can take a long time and run out of memory.
6555     lt_cv_sys_max_cmd_len=8192;
6556     ;;
6557
6558   amigaos*)
6559     # On AmigaOS with pdksh, this test takes hours, literally.
6560     # So we just punt and use a minimum line length of 8192.
6561     lt_cv_sys_max_cmd_len=8192;
6562     ;;
6563
6564   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6565     # This has been around since 386BSD, at least.  Likely further.
6566     if test -x /sbin/sysctl; then
6567       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6568     elif test -x /usr/sbin/sysctl; then
6569       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6570     else
6571       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6572     fi
6573     # And add a safety zone
6574     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6575     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6576     ;;
6577
6578   interix*)
6579     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6580     lt_cv_sys_max_cmd_len=196608
6581     ;;
6582
6583   osf*)
6584     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6585     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6586     # nice to cause kernel panics so lets avoid the loop below.
6587     # First set a reasonable default.
6588     lt_cv_sys_max_cmd_len=16384
6589     #
6590     if test -x /sbin/sysconfig; then
6591       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6592         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6593       esac
6594     fi
6595     ;;
6596   sco3.2v5*)
6597     lt_cv_sys_max_cmd_len=102400
6598     ;;
6599   sysv5* | sco5v6* | sysv4.2uw2*)
6600     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6601     if test -n "$kargmax"; then
6602       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6603     else
6604       lt_cv_sys_max_cmd_len=32768
6605     fi
6606     ;;
6607   *)
6608     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6609     if test -n "$lt_cv_sys_max_cmd_len"; then
6610       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6611       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6612     else
6613       # Make teststring a little bigger before we do anything with it.
6614       # a 1K string should be a reasonable start.
6615       for i in 1 2 3 4 5 6 7 8 ; do
6616         teststring=$teststring$teststring
6617       done
6618       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6619       # If test is not a shell built-in, we'll probably end up computing a
6620       # maximum length that is only half of the actual maximum length, but
6621       # we can't tell.
6622       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6623                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6624               test $i != 17 # 1/2 MB should be enough
6625       do
6626         i=`expr $i + 1`
6627         teststring=$teststring$teststring
6628       done
6629       # Only check the string length outside the loop.
6630       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6631       teststring=
6632       # Add a significant safety factor because C++ compilers can tack on
6633       # massive amounts of additional arguments before passing them to the
6634       # linker.  It appears as though 1/2 is a usable value.
6635       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6636     fi
6637     ;;
6638   esac
6639
6640 fi
6641
6642 if test -n $lt_cv_sys_max_cmd_len ; then
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6644 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6645 else
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6647 $as_echo "none" >&6; }
6648 fi
6649 max_cmd_len=$lt_cv_sys_max_cmd_len
6650
6651
6652
6653
6654
6655
6656 : ${CP="cp -f"}
6657 : ${MV="mv -f"}
6658 : ${RM="rm -f"}
6659
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6661 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6662 # Try some XSI features
6663 xsi_shell=no
6664 ( _lt_dummy="a/b/c"
6665   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6666       = c,a/b,b/c, \
6667     && eval 'test $(( 1 + 1 )) -eq 2 \
6668     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6669   && xsi_shell=yes
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6671 $as_echo "$xsi_shell" >&6; }
6672
6673
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6675 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6676 lt_shell_append=no
6677 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6678     >/dev/null 2>&1 \
6679   && lt_shell_append=yes
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6681 $as_echo "$lt_shell_append" >&6; }
6682
6683
6684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6685   lt_unset=unset
6686 else
6687   lt_unset=false
6688 fi
6689
6690
6691
6692
6693
6694 # test EBCDIC or ASCII
6695 case `echo X|tr X '\101'` in
6696  A) # ASCII based system
6697     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6698   lt_SP2NL='tr \040 \012'
6699   lt_NL2SP='tr \015\012 \040\040'
6700   ;;
6701  *) # EBCDIC based system
6702   lt_SP2NL='tr \100 \n'
6703   lt_NL2SP='tr \r\n \100\100'
6704   ;;
6705 esac
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6716 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6717 if ${lt_cv_to_host_file_cmd+:} false; then :
6718   $as_echo_n "(cached) " >&6
6719 else
6720   case $host in
6721   *-*-mingw* )
6722     case $build in
6723       *-*-mingw* ) # actually msys
6724         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6725         ;;
6726       *-*-cygwin* )
6727         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6728         ;;
6729       * ) # otherwise, assume *nix
6730         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6731         ;;
6732     esac
6733     ;;
6734   *-*-cygwin* )
6735     case $build in
6736       *-*-mingw* ) # actually msys
6737         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6738         ;;
6739       *-*-cygwin* )
6740         lt_cv_to_host_file_cmd=func_convert_file_noop
6741         ;;
6742       * ) # otherwise, assume *nix
6743         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6744         ;;
6745     esac
6746     ;;
6747   * ) # unhandled hosts (and "normal" native builds)
6748     lt_cv_to_host_file_cmd=func_convert_file_noop
6749     ;;
6750 esac
6751
6752 fi
6753
6754 to_host_file_cmd=$lt_cv_to_host_file_cmd
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6756 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6757
6758
6759
6760
6761
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6763 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6764 if ${lt_cv_to_tool_file_cmd+:} false; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   #assume ordinary cross tools, or native build.
6768 lt_cv_to_tool_file_cmd=func_convert_file_noop
6769 case $host in
6770   *-*-mingw* )
6771     case $build in
6772       *-*-mingw* ) # actually msys
6773         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6774         ;;
6775     esac
6776     ;;
6777 esac
6778
6779 fi
6780
6781 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6783 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6784
6785
6786
6787
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6790 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6791 if ${lt_cv_ld_reload_flag+:} false; then :
6792   $as_echo_n "(cached) " >&6
6793 else
6794   lt_cv_ld_reload_flag='-r'
6795 fi
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6797 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6798 reload_flag=$lt_cv_ld_reload_flag
6799 case $reload_flag in
6800 "" | " "*) ;;
6801 *) reload_flag=" $reload_flag" ;;
6802 esac
6803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6804 case $host_os in
6805   cygwin* | mingw* | pw32* | cegcc*)
6806     if test "$GCC" != yes; then
6807       reload_cmds=false
6808     fi
6809     ;;
6810   darwin*)
6811     if test "$GCC" = yes; then
6812       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6813     else
6814       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6815     fi
6816     ;;
6817 esac
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827 if test -n "$ac_tool_prefix"; then
6828   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6829 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_prog_OBJDUMP+:} false; then :
6833   $as_echo_n "(cached) " >&6
6834 else
6835   if test -n "$OBJDUMP"; then
6836   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841   IFS=$as_save_IFS
6842   test -z "$as_dir" && as_dir=.
6843     for ac_exec_ext in '' $ac_executable_extensions; do
6844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847     break 2
6848   fi
6849 done
6850   done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 OBJDUMP=$ac_cv_prog_OBJDUMP
6856 if test -n "$OBJDUMP"; then
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6858 $as_echo "$OBJDUMP" >&6; }
6859 else
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864
6865 fi
6866 if test -z "$ac_cv_prog_OBJDUMP"; then
6867   ac_ct_OBJDUMP=$OBJDUMP
6868   # Extract the first word of "objdump", so it can be a program name with args.
6869 set dummy objdump; ac_word=$2
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6873   $as_echo_n "(cached) " >&6
6874 else
6875   if test -n "$ac_ct_OBJDUMP"; then
6876   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881   IFS=$as_save_IFS
6882   test -z "$as_dir" && as_dir=.
6883     for ac_exec_ext in '' $ac_executable_extensions; do
6884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887     break 2
6888   fi
6889 done
6890   done
6891 IFS=$as_save_IFS
6892
6893 fi
6894 fi
6895 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6896 if test -n "$ac_ct_OBJDUMP"; then
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6898 $as_echo "$ac_ct_OBJDUMP" >&6; }
6899 else
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6902 fi
6903
6904   if test "x$ac_ct_OBJDUMP" = x; then
6905     OBJDUMP="false"
6906   else
6907     case $cross_compiling:$ac_tool_warned in
6908 yes:)
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6911 ac_tool_warned=yes ;;
6912 esac
6913     OBJDUMP=$ac_ct_OBJDUMP
6914   fi
6915 else
6916   OBJDUMP="$ac_cv_prog_OBJDUMP"
6917 fi
6918
6919 test -z "$OBJDUMP" && OBJDUMP=objdump
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6930 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6931 if ${lt_cv_deplibs_check_method+:} false; then :
6932   $as_echo_n "(cached) " >&6
6933 else
6934   lt_cv_file_magic_cmd='$MAGIC_CMD'
6935 lt_cv_file_magic_test_file=
6936 lt_cv_deplibs_check_method='unknown'
6937 # Need to set the preceding variable on all platforms that support
6938 # interlibrary dependencies.
6939 # 'none' -- dependencies not supported.
6940 # `unknown' -- same as none, but documents that we really don't know.
6941 # 'pass_all' -- all dependencies passed with no checks.
6942 # 'test_compile' -- check by making test program.
6943 # 'file_magic [[regex]]' -- check by looking for files in library path
6944 # which responds to the $file_magic_cmd with a given extended regex.
6945 # If you have `file' or equivalent on your system and you're not sure
6946 # whether `pass_all' will *always* work, you probably want this one.
6947
6948 case $host_os in
6949 aix[4-9]*)
6950   lt_cv_deplibs_check_method=pass_all
6951   ;;
6952
6953 beos*)
6954   lt_cv_deplibs_check_method=pass_all
6955   ;;
6956
6957 bsdi[45]*)
6958   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6959   lt_cv_file_magic_cmd='/usr/bin/file -L'
6960   lt_cv_file_magic_test_file=/shlib/libc.so
6961   ;;
6962
6963 cygwin*)
6964   # func_win32_libid is a shell function defined in ltmain.sh
6965   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6966   lt_cv_file_magic_cmd='func_win32_libid'
6967   ;;
6968
6969 mingw* | pw32*)
6970   # Base MSYS/MinGW do not provide the 'file' command needed by
6971   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6972   # unless we find 'file', for example because we are cross-compiling.
6973   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6974   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6975     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6976     lt_cv_file_magic_cmd='func_win32_libid'
6977   else
6978     # Keep this pattern in sync with the one in func_win32_libid.
6979     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6980     lt_cv_file_magic_cmd='$OBJDUMP -f'
6981   fi
6982   ;;
6983
6984 cegcc*)
6985   # use the weaker test based on 'objdump'. See mingw*.
6986   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6987   lt_cv_file_magic_cmd='$OBJDUMP -f'
6988   ;;
6989
6990 darwin* | rhapsody*)
6991   lt_cv_deplibs_check_method=pass_all
6992   ;;
6993
6994 freebsd* | dragonfly*)
6995   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6996     case $host_cpu in
6997     i*86 )
6998       # Not sure whether the presence of OpenBSD here was a mistake.
6999       # Let's accept both of them until this is cleared up.
7000       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7001       lt_cv_file_magic_cmd=/usr/bin/file
7002       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7003       ;;
7004     esac
7005   else
7006     lt_cv_deplibs_check_method=pass_all
7007   fi
7008   ;;
7009
7010 gnu*)
7011   lt_cv_deplibs_check_method=pass_all
7012   ;;
7013
7014 haiku*)
7015   lt_cv_deplibs_check_method=pass_all
7016   ;;
7017
7018 hpux10.20* | hpux11*)
7019   lt_cv_file_magic_cmd=/usr/bin/file
7020   case $host_cpu in
7021   ia64*)
7022     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7023     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7024     ;;
7025   hppa*64*)
7026     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]'
7027     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7028     ;;
7029   *)
7030     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7031     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7032     ;;
7033   esac
7034   ;;
7035
7036 interix[3-9]*)
7037   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7038   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7039   ;;
7040
7041 irix5* | irix6* | nonstopux*)
7042   case $LD in
7043   *-32|*"-32 ") libmagic=32-bit;;
7044   *-n32|*"-n32 ") libmagic=N32;;
7045   *-64|*"-64 ") libmagic=64-bit;;
7046   *) libmagic=never-match;;
7047   esac
7048   lt_cv_deplibs_check_method=pass_all
7049   ;;
7050
7051 # This must be Linux ELF.
7052 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7053   lt_cv_deplibs_check_method=pass_all
7054   ;;
7055
7056 netbsd*)
7057   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7058     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7059   else
7060     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7061   fi
7062   ;;
7063
7064 newos6*)
7065   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7066   lt_cv_file_magic_cmd=/usr/bin/file
7067   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7068   ;;
7069
7070 *nto* | *qnx*)
7071   lt_cv_deplibs_check_method=pass_all
7072   ;;
7073
7074 openbsd*)
7075   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7076     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7077   else
7078     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7079   fi
7080   ;;
7081
7082 osf3* | osf4* | osf5*)
7083   lt_cv_deplibs_check_method=pass_all
7084   ;;
7085
7086 rdos*)
7087   lt_cv_deplibs_check_method=pass_all
7088   ;;
7089
7090 solaris*)
7091   lt_cv_deplibs_check_method=pass_all
7092   ;;
7093
7094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7095   lt_cv_deplibs_check_method=pass_all
7096   ;;
7097
7098 sysv4 | sysv4.3*)
7099   case $host_vendor in
7100   motorola)
7101     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]'
7102     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7103     ;;
7104   ncr)
7105     lt_cv_deplibs_check_method=pass_all
7106     ;;
7107   sequent)
7108     lt_cv_file_magic_cmd='/bin/file'
7109     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7110     ;;
7111   sni)
7112     lt_cv_file_magic_cmd='/bin/file'
7113     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7114     lt_cv_file_magic_test_file=/lib/libc.so
7115     ;;
7116   siemens)
7117     lt_cv_deplibs_check_method=pass_all
7118     ;;
7119   pc)
7120     lt_cv_deplibs_check_method=pass_all
7121     ;;
7122   esac
7123   ;;
7124
7125 tpf*)
7126   lt_cv_deplibs_check_method=pass_all
7127   ;;
7128 esac
7129
7130 fi
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7132 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7133
7134 file_magic_glob=
7135 want_nocaseglob=no
7136 if test "$build" = "$host"; then
7137   case $host_os in
7138   mingw* | pw32*)
7139     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7140       want_nocaseglob=yes
7141     else
7142       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7143     fi
7144     ;;
7145   esac
7146 fi
7147
7148 file_magic_cmd=$lt_cv_file_magic_cmd
7149 deplibs_check_method=$lt_cv_deplibs_check_method
7150 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173 if test -n "$ac_tool_prefix"; then
7174   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7175 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_DLLTOOL+:} false; then :
7179   $as_echo_n "(cached) " >&6
7180 else
7181   if test -n "$DLLTOOL"; then
7182   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189     for ac_exec_ext in '' $ac_executable_extensions; do
7190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196   done
7197 IFS=$as_save_IFS
7198
7199 fi
7200 fi
7201 DLLTOOL=$ac_cv_prog_DLLTOOL
7202 if test -n "$DLLTOOL"; then
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7204 $as_echo "$DLLTOOL" >&6; }
7205 else
7206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209
7210
7211 fi
7212 if test -z "$ac_cv_prog_DLLTOOL"; then
7213   ac_ct_DLLTOOL=$DLLTOOL
7214   # Extract the first word of "dlltool", so it can be a program name with args.
7215 set dummy dlltool; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7219   $as_echo_n "(cached) " >&6
7220 else
7221   if test -n "$ac_ct_DLLTOOL"; then
7222   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229     for ac_exec_ext in '' $ac_executable_extensions; do
7230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236   done
7237 IFS=$as_save_IFS
7238
7239 fi
7240 fi
7241 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7242 if test -n "$ac_ct_DLLTOOL"; then
7243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7244 $as_echo "$ac_ct_DLLTOOL" >&6; }
7245 else
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7248 fi
7249
7250   if test "x$ac_ct_DLLTOOL" = x; then
7251     DLLTOOL="false"
7252   else
7253     case $cross_compiling:$ac_tool_warned in
7254 yes:)
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257 ac_tool_warned=yes ;;
7258 esac
7259     DLLTOOL=$ac_ct_DLLTOOL
7260   fi
7261 else
7262   DLLTOOL="$ac_cv_prog_DLLTOOL"
7263 fi
7264
7265 test -z "$DLLTOOL" && DLLTOOL=dlltool
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7277 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7278 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7279   $as_echo_n "(cached) " >&6
7280 else
7281   lt_cv_sharedlib_from_linklib_cmd='unknown'
7282
7283 case $host_os in
7284 cygwin* | mingw* | pw32* | cegcc*)
7285   # two different shell functions defined in ltmain.sh
7286   # decide which to use based on capabilities of $DLLTOOL
7287   case `$DLLTOOL --help 2>&1` in
7288   *--identify-strict*)
7289     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7290     ;;
7291   *)
7292     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7293     ;;
7294   esac
7295   ;;
7296 *)
7297   # fallback: assume linklib IS sharedlib
7298   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7299   ;;
7300 esac
7301
7302 fi
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7304 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7305 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7306 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7307
7308
7309
7310
7311
7312
7313
7314 if test -n "$ac_tool_prefix"; then
7315   for ac_prog in ar
7316   do
7317     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_AR+:} false; then :
7322   $as_echo_n "(cached) " >&6
7323 else
7324   if test -n "$AR"; then
7325   ac_cv_prog_AR="$AR" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330   IFS=$as_save_IFS
7331   test -z "$as_dir" && as_dir=.
7332     for ac_exec_ext in '' $ac_executable_extensions; do
7333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336     break 2
7337   fi
7338 done
7339   done
7340 IFS=$as_save_IFS
7341
7342 fi
7343 fi
7344 AR=$ac_cv_prog_AR
7345 if test -n "$AR"; then
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7347 $as_echo "$AR" >&6; }
7348 else
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352
7353
7354     test -n "$AR" && break
7355   done
7356 fi
7357 if test -z "$AR"; then
7358   ac_ct_AR=$AR
7359   for ac_prog in ar
7360 do
7361   # Extract the first word of "$ac_prog", so it can be a program name with args.
7362 set dummy $ac_prog; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   if test -n "$ac_ct_AR"; then
7369   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376     for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_prog_ac_ct_AR="$ac_prog"
7379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383   done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7389 if test -n "$ac_ct_AR"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7391 $as_echo "$ac_ct_AR" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398   test -n "$ac_ct_AR" && break
7399 done
7400
7401   if test "x$ac_ct_AR" = x; then
7402     AR="false"
7403   else
7404     case $cross_compiling:$ac_tool_warned in
7405 yes:)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7409 esac
7410     AR=$ac_ct_AR
7411   fi
7412 fi
7413
7414 : ${AR=ar}
7415 : ${AR_FLAGS=cru}
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7428 $as_echo_n "checking for archiver @FILE support... " >&6; }
7429 if ${lt_cv_ar_at_file+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   lt_cv_ar_at_file=no
7433    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h.  */
7435
7436 int
7437 main ()
7438 {
7439
7440   ;
7441   return 0;
7442 }
7443 _ACEOF
7444 if ac_fn_c_try_compile "$LINENO"; then :
7445   echo conftest.$ac_objext > conftest.lst
7446       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7447       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7448   (eval $lt_ar_try) 2>&5
7449   ac_status=$?
7450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451   test $ac_status = 0; }
7452       if test "$ac_status" -eq 0; then
7453         # Ensure the archiver fails upon bogus file names.
7454         rm -f conftest.$ac_objext libconftest.a
7455         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7456   (eval $lt_ar_try) 2>&5
7457   ac_status=$?
7458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459   test $ac_status = 0; }
7460         if test "$ac_status" -ne 0; then
7461           lt_cv_ar_at_file=@
7462         fi
7463       fi
7464       rm -f conftest.* libconftest.a
7465
7466 fi
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468
7469 fi
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7471 $as_echo "$lt_cv_ar_at_file" >&6; }
7472
7473 if test "x$lt_cv_ar_at_file" = xno; then
7474   archiver_list_spec=
7475 else
7476   archiver_list_spec=$lt_cv_ar_at_file
7477 fi
7478
7479
7480
7481
7482
7483
7484
7485 if test -n "$ac_tool_prefix"; then
7486   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7487 set dummy ${ac_tool_prefix}strip; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if ${ac_cv_prog_STRIP+:} false; then :
7491   $as_echo_n "(cached) " >&6
7492 else
7493   if test -n "$STRIP"; then
7494   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499   IFS=$as_save_IFS
7500   test -z "$as_dir" && as_dir=.
7501     for ac_exec_ext in '' $ac_executable_extensions; do
7502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7503     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505     break 2
7506   fi
7507 done
7508   done
7509 IFS=$as_save_IFS
7510
7511 fi
7512 fi
7513 STRIP=$ac_cv_prog_STRIP
7514 if test -n "$STRIP"; then
7515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7516 $as_echo "$STRIP" >&6; }
7517 else
7518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521
7522
7523 fi
7524 if test -z "$ac_cv_prog_STRIP"; then
7525   ac_ct_STRIP=$STRIP
7526   # Extract the first word of "strip", so it can be a program name with args.
7527 set dummy strip; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533   if test -n "$ac_ct_STRIP"; then
7534   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539   IFS=$as_save_IFS
7540   test -z "$as_dir" && as_dir=.
7541     for ac_exec_ext in '' $ac_executable_extensions; do
7542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543     ac_cv_prog_ac_ct_STRIP="strip"
7544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545     break 2
7546   fi
7547 done
7548   done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7554 if test -n "$ac_ct_STRIP"; then
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7556 $as_echo "$ac_ct_STRIP" >&6; }
7557 else
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562   if test "x$ac_ct_STRIP" = x; then
7563     STRIP=":"
7564   else
7565     case $cross_compiling:$ac_tool_warned in
7566 yes:)
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569 ac_tool_warned=yes ;;
7570 esac
7571     STRIP=$ac_ct_STRIP
7572   fi
7573 else
7574   STRIP="$ac_cv_prog_STRIP"
7575 fi
7576
7577 test -z "$STRIP" && STRIP=:
7578
7579
7580
7581
7582
7583
7584 if test -n "$ac_tool_prefix"; then
7585   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_RANLIB+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$RANLIB"; then
7593   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 RANLIB=$ac_cv_prog_RANLIB
7613 if test -n "$RANLIB"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7615 $as_echo "$RANLIB" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622 fi
7623 if test -z "$ac_cv_prog_RANLIB"; then
7624   ac_ct_RANLIB=$RANLIB
7625   # Extract the first word of "ranlib", so it can be a program name with args.
7626 set dummy ranlib; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   if test -n "$ac_ct_RANLIB"; then
7633   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640     for ac_exec_ext in '' $ac_executable_extensions; do
7641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642     ac_cv_prog_ac_ct_RANLIB="ranlib"
7643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647   done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7653 if test -n "$ac_ct_RANLIB"; then
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7655 $as_echo "$ac_ct_RANLIB" >&6; }
7656 else
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661   if test "x$ac_ct_RANLIB" = x; then
7662     RANLIB=":"
7663   else
7664     case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670     RANLIB=$ac_ct_RANLIB
7671   fi
7672 else
7673   RANLIB="$ac_cv_prog_RANLIB"
7674 fi
7675
7676 test -z "$RANLIB" && RANLIB=:
7677
7678
7679
7680
7681
7682
7683 # Determine commands to create old-style static archives.
7684 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7685 old_postinstall_cmds='chmod 644 $oldlib'
7686 old_postuninstall_cmds=
7687
7688 if test -n "$RANLIB"; then
7689   case $host_os in
7690   openbsd*)
7691     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7692     ;;
7693   *)
7694     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7695     ;;
7696   esac
7697   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7698 fi
7699
7700 case $host_os in
7701   darwin*)
7702     lock_old_archive_extraction=yes ;;
7703   *)
7704     lock_old_archive_extraction=no ;;
7705 esac
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745 # If no C compiler was specified, use CC.
7746 LTCC=${LTCC-"$CC"}
7747
7748 # If no C compiler flags were specified, use CFLAGS.
7749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7750
7751 # Allow CC to be a program name with arguments.
7752 compiler=$CC
7753
7754
7755 # Check for command to grab the raw symbol name followed by C symbol from nm.
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7757 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7758 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7759   $as_echo_n "(cached) " >&6
7760 else
7761
7762 # These are sane defaults that work on at least a few old systems.
7763 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7764
7765 # Character class describing NM global symbol codes.
7766 symcode='[BCDEGRST]'
7767
7768 # Regexp to match symbols that can be accessed directly from C.
7769 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7770
7771 # Define system-specific variables.
7772 case $host_os in
7773 aix*)
7774   symcode='[BCDT]'
7775   ;;
7776 cygwin* | mingw* | pw32* | cegcc*)
7777   symcode='[ABCDGISTW]'
7778   ;;
7779 hpux*)
7780   if test "$host_cpu" = ia64; then
7781     symcode='[ABCDEGRST]'
7782   fi
7783   ;;
7784 irix* | nonstopux*)
7785   symcode='[BCDEGRST]'
7786   ;;
7787 osf*)
7788   symcode='[BCDEGQRST]'
7789   ;;
7790 solaris*)
7791   symcode='[BDRT]'
7792   ;;
7793 sco3.2v5*)
7794   symcode='[DT]'
7795   ;;
7796 sysv4.2uw2*)
7797   symcode='[DT]'
7798   ;;
7799 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7800   symcode='[ABDT]'
7801   ;;
7802 sysv4)
7803   symcode='[DFNSTU]'
7804   ;;
7805 esac
7806
7807 # If we're using GNU nm, then use its standard symbol codes.
7808 case `$NM -V 2>&1` in
7809 *GNU* | *'with BFD'*)
7810   symcode='[ABCDGIRSTW]' ;;
7811 esac
7812
7813 # Transform an extracted symbol line into a proper C declaration.
7814 # Some systems (esp. on ia64) link data and code symbols differently,
7815 # so use this general approach.
7816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7817
7818 # Transform an extracted symbol line into symbol name and symbol address
7819 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7820 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'"
7821
7822 # Handle CRLF in mingw tool chain
7823 opt_cr=
7824 case $build_os in
7825 mingw*)
7826   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7827   ;;
7828 esac
7829
7830 # Try without a prefix underscore, then with it.
7831 for ac_symprfx in "" "_"; do
7832
7833   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7834   symxfrm="\\1 $ac_symprfx\\2 \\2"
7835
7836   # Write the raw and C identifiers.
7837   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7838     # Fake it for dumpbin and say T for any non-static function
7839     # and D for any global variable.
7840     # Also find C++ and __fastcall symbols from MSVC++,
7841     # which start with @ or ?.
7842     lt_cv_sys_global_symbol_pipe="$AWK '"\
7843 "     {last_section=section; section=\$ 3};"\
7844 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7845 "     \$ 0!~/External *\|/{next};"\
7846 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7847 "     {if(hide[section]) next};"\
7848 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7849 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7850 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7851 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7852 "     ' prfx=^$ac_symprfx"
7853   else
7854     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7855   fi
7856   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7857
7858   # Check to see that the pipe works correctly.
7859   pipe_works=no
7860
7861   rm -f conftest*
7862   cat > conftest.$ac_ext <<_LT_EOF
7863 #ifdef __cplusplus
7864 extern "C" {
7865 #endif
7866 char nm_test_var;
7867 void nm_test_func(void);
7868 void nm_test_func(void){}
7869 #ifdef __cplusplus
7870 }
7871 #endif
7872 int main(){nm_test_var='a';nm_test_func();return(0);}
7873 _LT_EOF
7874
7875   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876   (eval $ac_compile) 2>&5
7877   ac_status=$?
7878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879   test $ac_status = 0; }; then
7880     # Now try to grab the symbols.
7881     nlist=conftest.nm
7882     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7883   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7884   ac_status=$?
7885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886   test $ac_status = 0; } && test -s "$nlist"; then
7887       # Try sorting and uniquifying the output.
7888       if sort "$nlist" | uniq > "$nlist"T; then
7889         mv -f "$nlist"T "$nlist"
7890       else
7891         rm -f "$nlist"T
7892       fi
7893
7894       # Make sure that we snagged all the symbols we need.
7895       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7896         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7897           cat <<_LT_EOF > conftest.$ac_ext
7898 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7899 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7900 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7901    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7902 # define LT_DLSYM_CONST
7903 #elif defined(__osf__)
7904 /* This system does not cope well with relocations in const data.  */
7905 # define LT_DLSYM_CONST
7906 #else
7907 # define LT_DLSYM_CONST const
7908 #endif
7909
7910 #ifdef __cplusplus
7911 extern "C" {
7912 #endif
7913
7914 _LT_EOF
7915           # Now generate the symbol file.
7916           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7917
7918           cat <<_LT_EOF >> conftest.$ac_ext
7919
7920 /* The mapping between symbol names and symbols.  */
7921 LT_DLSYM_CONST struct {
7922   const char *name;
7923   void       *address;
7924 }
7925 lt__PROGRAM__LTX_preloaded_symbols[] =
7926 {
7927   { "@PROGRAM@", (void *) 0 },
7928 _LT_EOF
7929           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7930           cat <<\_LT_EOF >> conftest.$ac_ext
7931   {0, (void *) 0}
7932 };
7933
7934 /* This works around a problem in FreeBSD linker */
7935 #ifdef FREEBSD_WORKAROUND
7936 static const void *lt_preloaded_setup() {
7937   return lt__PROGRAM__LTX_preloaded_symbols;
7938 }
7939 #endif
7940
7941 #ifdef __cplusplus
7942 }
7943 #endif
7944 _LT_EOF
7945           # Now try linking the two files.
7946           mv conftest.$ac_objext conftstm.$ac_objext
7947           lt_globsym_save_LIBS=$LIBS
7948           lt_globsym_save_CFLAGS=$CFLAGS
7949           LIBS="conftstm.$ac_objext"
7950           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7951           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7952   (eval $ac_link) 2>&5
7953   ac_status=$?
7954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7956             pipe_works=yes
7957           fi
7958           LIBS=$lt_globsym_save_LIBS
7959           CFLAGS=$lt_globsym_save_CFLAGS
7960         else
7961           echo "cannot find nm_test_func in $nlist" >&5
7962         fi
7963       else
7964         echo "cannot find nm_test_var in $nlist" >&5
7965       fi
7966     else
7967       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7968     fi
7969   else
7970     echo "$progname: failed program was:" >&5
7971     cat conftest.$ac_ext >&5
7972   fi
7973   rm -rf conftest* conftst*
7974
7975   # Do not use the global_symbol_pipe unless it works.
7976   if test "$pipe_works" = yes; then
7977     break
7978   else
7979     lt_cv_sys_global_symbol_pipe=
7980   fi
7981 done
7982
7983 fi
7984
7985 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7986   lt_cv_sys_global_symbol_to_cdecl=
7987 fi
7988 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7990 $as_echo "failed" >&6; }
7991 else
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7993 $as_echo "ok" >&6; }
7994 fi
7995
7996 # Response file support.
7997 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7998   nm_file_list_spec='@'
7999 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8000   nm_file_list_spec='@'
8001 fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8030 $as_echo_n "checking for sysroot... " >&6; }
8031
8032 # Check whether --with-sysroot was given.
8033 if test "${with_sysroot+set}" = set; then :
8034   withval=$with_sysroot;
8035 else
8036   with_sysroot=no
8037 fi
8038
8039
8040 lt_sysroot=
8041 case ${with_sysroot} in #(
8042  yes)
8043    if test "$GCC" = yes; then
8044      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8045    fi
8046    ;; #(
8047  /*)
8048    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8049    ;; #(
8050  no|'')
8051    ;; #(
8052  *)
8053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8054 $as_echo "${with_sysroot}" >&6; }
8055    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8056    ;;
8057 esac
8058
8059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8060 $as_echo "${lt_sysroot:-no}" >&6; }
8061
8062
8063
8064
8065
8066 # Check whether --enable-libtool-lock was given.
8067 if test "${enable_libtool_lock+set}" = set; then :
8068   enableval=$enable_libtool_lock;
8069 fi
8070
8071 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8072
8073 # Some flags need to be propagated to the compiler or linker for good
8074 # libtool support.
8075 case $host in
8076 ia64-*-hpux*)
8077   # Find out which ABI we are using.
8078   echo 'int i;' > conftest.$ac_ext
8079   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8080   (eval $ac_compile) 2>&5
8081   ac_status=$?
8082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083   test $ac_status = 0; }; then
8084     case `/usr/bin/file conftest.$ac_objext` in
8085       *ELF-32*)
8086         HPUX_IA64_MODE="32"
8087         ;;
8088       *ELF-64*)
8089         HPUX_IA64_MODE="64"
8090         ;;
8091     esac
8092   fi
8093   rm -rf conftest*
8094   ;;
8095 *-*-irix6*)
8096   # Find out which ABI we are using.
8097   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8098   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8099   (eval $ac_compile) 2>&5
8100   ac_status=$?
8101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8102   test $ac_status = 0; }; then
8103     if test "$lt_cv_prog_gnu_ld" = yes; then
8104       case `/usr/bin/file conftest.$ac_objext` in
8105         *32-bit*)
8106           LD="${LD-ld} -melf32bsmip"
8107           ;;
8108         *N32*)
8109           LD="${LD-ld} -melf32bmipn32"
8110           ;;
8111         *64-bit*)
8112           LD="${LD-ld} -melf64bmip"
8113         ;;
8114       esac
8115     else
8116       case `/usr/bin/file conftest.$ac_objext` in
8117         *32-bit*)
8118           LD="${LD-ld} -32"
8119           ;;
8120         *N32*)
8121           LD="${LD-ld} -n32"
8122           ;;
8123         *64-bit*)
8124           LD="${LD-ld} -64"
8125           ;;
8126       esac
8127     fi
8128   fi
8129   rm -rf conftest*
8130   ;;
8131
8132 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8133 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8134   # Find out which ABI we are using.
8135   echo 'int i;' > conftest.$ac_ext
8136   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8137   (eval $ac_compile) 2>&5
8138   ac_status=$?
8139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140   test $ac_status = 0; }; then
8141     case `/usr/bin/file conftest.o` in
8142       *32-bit*)
8143         case $host in
8144           x86_64-*kfreebsd*-gnu)
8145             LD="${LD-ld} -m elf_i386_fbsd"
8146             ;;
8147           x86_64-*linux*)
8148             LD="${LD-ld} -m elf_i386"
8149             ;;
8150           ppc64-*linux*|powerpc64-*linux*)
8151             LD="${LD-ld} -m elf32ppclinux"
8152             ;;
8153           s390x-*linux*)
8154             LD="${LD-ld} -m elf_s390"
8155             ;;
8156           sparc64-*linux*)
8157             LD="${LD-ld} -m elf32_sparc"
8158             ;;
8159         esac
8160         ;;
8161       *64-bit*)
8162         case $host in
8163           x86_64-*kfreebsd*-gnu)
8164             LD="${LD-ld} -m elf_x86_64_fbsd"
8165             ;;
8166           x86_64-*linux*)
8167             LD="${LD-ld} -m elf_x86_64"
8168             ;;
8169           ppc*-*linux*|powerpc*-*linux*)
8170             LD="${LD-ld} -m elf64ppc"
8171             ;;
8172           s390*-*linux*|s390*-*tpf*)
8173             LD="${LD-ld} -m elf64_s390"
8174             ;;
8175           sparc*-*linux*)
8176             LD="${LD-ld} -m elf64_sparc"
8177             ;;
8178         esac
8179         ;;
8180     esac
8181   fi
8182   rm -rf conftest*
8183   ;;
8184
8185 *-*-sco3.2v5*)
8186   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8187   SAVE_CFLAGS="$CFLAGS"
8188   CFLAGS="$CFLAGS -belf"
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8190 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8191 if ${lt_cv_cc_needs_belf+:} false; then :
8192   $as_echo_n "(cached) " >&6
8193 else
8194   ac_ext=c
8195 ac_cpp='$CPP $CPPFLAGS'
8196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8199
8200      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h.  */
8202
8203 int
8204 main ()
8205 {
8206
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 if ac_fn_c_try_link "$LINENO"; then :
8212   lt_cv_cc_needs_belf=yes
8213 else
8214   lt_cv_cc_needs_belf=no
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext \
8217     conftest$ac_exeext conftest.$ac_ext
8218      ac_ext=c
8219 ac_cpp='$CPP $CPPFLAGS'
8220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8223
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8227   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8228     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8229     CFLAGS="$SAVE_CFLAGS"
8230   fi
8231   ;;
8232 sparc*-*solaris*)
8233   # Find out which ABI we are using.
8234   echo 'int i;' > conftest.$ac_ext
8235   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8236   (eval $ac_compile) 2>&5
8237   ac_status=$?
8238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8239   test $ac_status = 0; }; then
8240     case `/usr/bin/file conftest.o` in
8241     *64-bit*)
8242       case $lt_cv_prog_gnu_ld in
8243       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8244       *)
8245         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8246           LD="${LD-ld} -64"
8247         fi
8248         ;;
8249       esac
8250       ;;
8251     esac
8252   fi
8253   rm -rf conftest*
8254   ;;
8255 esac
8256
8257 need_locks="$enable_libtool_lock"
8258
8259 if test -n "$ac_tool_prefix"; then
8260   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8261 set dummy ${ac_tool_prefix}mt; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8265   $as_echo_n "(cached) " >&6
8266 else
8267   if test -n "$MANIFEST_TOOL"; then
8268   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273   IFS=$as_save_IFS
8274   test -z "$as_dir" && as_dir=.
8275     for ac_exec_ext in '' $ac_executable_extensions; do
8276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279     break 2
8280   fi
8281 done
8282   done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8288 if test -n "$MANIFEST_TOOL"; then
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8290 $as_echo "$MANIFEST_TOOL" >&6; }
8291 else
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295
8296
8297 fi
8298 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8299   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8300   # Extract the first word of "mt", so it can be a program name with args.
8301 set dummy mt; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   if test -n "$ac_ct_MANIFEST_TOOL"; then
8308   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
8313   IFS=$as_save_IFS
8314   test -z "$as_dir" && as_dir=.
8315     for ac_exec_ext in '' $ac_executable_extensions; do
8316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319     break 2
8320   fi
8321 done
8322   done
8323 IFS=$as_save_IFS
8324
8325 fi
8326 fi
8327 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8328 if test -n "$ac_ct_MANIFEST_TOOL"; then
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8330 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8331 else
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8334 fi
8335
8336   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8337     MANIFEST_TOOL=":"
8338   else
8339     case $cross_compiling:$ac_tool_warned in
8340 yes:)
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8343 ac_tool_warned=yes ;;
8344 esac
8345     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8346   fi
8347 else
8348   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8349 fi
8350
8351 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8353 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8354 if ${lt_cv_path_mainfest_tool+:} false; then :
8355   $as_echo_n "(cached) " >&6
8356 else
8357   lt_cv_path_mainfest_tool=no
8358   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8359   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8360   cat conftest.err >&5
8361   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8362     lt_cv_path_mainfest_tool=yes
8363   fi
8364   rm -f conftest*
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8367 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8368 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8369   MANIFEST_TOOL=:
8370 fi
8371
8372
8373
8374
8375
8376
8377   case $host_os in
8378     rhapsody* | darwin*)
8379     if test -n "$ac_tool_prefix"; then
8380   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8381 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8385   $as_echo_n "(cached) " >&6
8386 else
8387   if test -n "$DSYMUTIL"; then
8388   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8392 do
8393   IFS=$as_save_IFS
8394   test -z "$as_dir" && as_dir=.
8395     for ac_exec_ext in '' $ac_executable_extensions; do
8396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399     break 2
8400   fi
8401 done
8402   done
8403 IFS=$as_save_IFS
8404
8405 fi
8406 fi
8407 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8408 if test -n "$DSYMUTIL"; then
8409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8410 $as_echo "$DSYMUTIL" >&6; }
8411 else
8412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8414 fi
8415
8416
8417 fi
8418 if test -z "$ac_cv_prog_DSYMUTIL"; then
8419   ac_ct_DSYMUTIL=$DSYMUTIL
8420   # Extract the first word of "dsymutil", so it can be a program name with args.
8421 set dummy dsymutil; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8425   $as_echo_n "(cached) " >&6
8426 else
8427   if test -n "$ac_ct_DSYMUTIL"; then
8428   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433   IFS=$as_save_IFS
8434   test -z "$as_dir" && as_dir=.
8435     for ac_exec_ext in '' $ac_executable_extensions; do
8436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439     break 2
8440   fi
8441 done
8442   done
8443 IFS=$as_save_IFS
8444
8445 fi
8446 fi
8447 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8448 if test -n "$ac_ct_DSYMUTIL"; then
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8450 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8451 else
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8454 fi
8455
8456   if test "x$ac_ct_DSYMUTIL" = x; then
8457     DSYMUTIL=":"
8458   else
8459     case $cross_compiling:$ac_tool_warned in
8460 yes:)
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8463 ac_tool_warned=yes ;;
8464 esac
8465     DSYMUTIL=$ac_ct_DSYMUTIL
8466   fi
8467 else
8468   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8469 fi
8470
8471     if test -n "$ac_tool_prefix"; then
8472   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8473 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if ${ac_cv_prog_NMEDIT+:} false; then :
8477   $as_echo_n "(cached) " >&6
8478 else
8479   if test -n "$NMEDIT"; then
8480   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8481 else
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8484 do
8485   IFS=$as_save_IFS
8486   test -z "$as_dir" && as_dir=.
8487     for ac_exec_ext in '' $ac_executable_extensions; do
8488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8489     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491     break 2
8492   fi
8493 done
8494   done
8495 IFS=$as_save_IFS
8496
8497 fi
8498 fi
8499 NMEDIT=$ac_cv_prog_NMEDIT
8500 if test -n "$NMEDIT"; then
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8502 $as_echo "$NMEDIT" >&6; }
8503 else
8504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8506 fi
8507
8508
8509 fi
8510 if test -z "$ac_cv_prog_NMEDIT"; then
8511   ac_ct_NMEDIT=$NMEDIT
8512   # Extract the first word of "nmedit", so it can be a program name with args.
8513 set dummy nmedit; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8517   $as_echo_n "(cached) " >&6
8518 else
8519   if test -n "$ac_ct_NMEDIT"; then
8520   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525   IFS=$as_save_IFS
8526   test -z "$as_dir" && as_dir=.
8527     for ac_exec_ext in '' $ac_executable_extensions; do
8528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531     break 2
8532   fi
8533 done
8534   done
8535 IFS=$as_save_IFS
8536
8537 fi
8538 fi
8539 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8540 if test -n "$ac_ct_NMEDIT"; then
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8542 $as_echo "$ac_ct_NMEDIT" >&6; }
8543 else
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548   if test "x$ac_ct_NMEDIT" = x; then
8549     NMEDIT=":"
8550   else
8551     case $cross_compiling:$ac_tool_warned in
8552 yes:)
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8555 ac_tool_warned=yes ;;
8556 esac
8557     NMEDIT=$ac_ct_NMEDIT
8558   fi
8559 else
8560   NMEDIT="$ac_cv_prog_NMEDIT"
8561 fi
8562
8563     if test -n "$ac_tool_prefix"; then
8564   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8565 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 $as_echo_n "checking for $ac_word... " >&6; }
8568 if ${ac_cv_prog_LIPO+:} false; then :
8569   $as_echo_n "(cached) " >&6
8570 else
8571   if test -n "$LIPO"; then
8572   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8573 else
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $PATH
8576 do
8577   IFS=$as_save_IFS
8578   test -z "$as_dir" && as_dir=.
8579     for ac_exec_ext in '' $ac_executable_extensions; do
8580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8581     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583     break 2
8584   fi
8585 done
8586   done
8587 IFS=$as_save_IFS
8588
8589 fi
8590 fi
8591 LIPO=$ac_cv_prog_LIPO
8592 if test -n "$LIPO"; then
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8594 $as_echo "$LIPO" >&6; }
8595 else
8596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8598 fi
8599
8600
8601 fi
8602 if test -z "$ac_cv_prog_LIPO"; then
8603   ac_ct_LIPO=$LIPO
8604   # Extract the first word of "lipo", so it can be a program name with args.
8605 set dummy lipo; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8609   $as_echo_n "(cached) " >&6
8610 else
8611   if test -n "$ac_ct_LIPO"; then
8612   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8613 else
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615 for as_dir in $PATH
8616 do
8617   IFS=$as_save_IFS
8618   test -z "$as_dir" && as_dir=.
8619     for ac_exec_ext in '' $ac_executable_extensions; do
8620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8621     ac_cv_prog_ac_ct_LIPO="lipo"
8622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623     break 2
8624   fi
8625 done
8626   done
8627 IFS=$as_save_IFS
8628
8629 fi
8630 fi
8631 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8632 if test -n "$ac_ct_LIPO"; then
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8634 $as_echo "$ac_ct_LIPO" >&6; }
8635 else
8636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8638 fi
8639
8640   if test "x$ac_ct_LIPO" = x; then
8641     LIPO=":"
8642   else
8643     case $cross_compiling:$ac_tool_warned in
8644 yes:)
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8647 ac_tool_warned=yes ;;
8648 esac
8649     LIPO=$ac_ct_LIPO
8650   fi
8651 else
8652   LIPO="$ac_cv_prog_LIPO"
8653 fi
8654
8655     if test -n "$ac_tool_prefix"; then
8656   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8657 set dummy ${ac_tool_prefix}otool; ac_word=$2
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659 $as_echo_n "checking for $ac_word... " >&6; }
8660 if ${ac_cv_prog_OTOOL+:} false; then :
8661   $as_echo_n "(cached) " >&6
8662 else
8663   if test -n "$OTOOL"; then
8664   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8665 else
8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 for as_dir in $PATH
8668 do
8669   IFS=$as_save_IFS
8670   test -z "$as_dir" && as_dir=.
8671     for ac_exec_ext in '' $ac_executable_extensions; do
8672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8673     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675     break 2
8676   fi
8677 done
8678   done
8679 IFS=$as_save_IFS
8680
8681 fi
8682 fi
8683 OTOOL=$ac_cv_prog_OTOOL
8684 if test -n "$OTOOL"; then
8685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8686 $as_echo "$OTOOL" >&6; }
8687 else
8688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8690 fi
8691
8692
8693 fi
8694 if test -z "$ac_cv_prog_OTOOL"; then
8695   ac_ct_OTOOL=$OTOOL
8696   # Extract the first word of "otool", so it can be a program name with args.
8697 set dummy otool; ac_word=$2
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 $as_echo_n "checking for $ac_word... " >&6; }
8700 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8701   $as_echo_n "(cached) " >&6
8702 else
8703   if test -n "$ac_ct_OTOOL"; then
8704   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8705 else
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8708 do
8709   IFS=$as_save_IFS
8710   test -z "$as_dir" && as_dir=.
8711     for ac_exec_ext in '' $ac_executable_extensions; do
8712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8713     ac_cv_prog_ac_ct_OTOOL="otool"
8714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715     break 2
8716   fi
8717 done
8718   done
8719 IFS=$as_save_IFS
8720
8721 fi
8722 fi
8723 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8724 if test -n "$ac_ct_OTOOL"; then
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8726 $as_echo "$ac_ct_OTOOL" >&6; }
8727 else
8728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8730 fi
8731
8732   if test "x$ac_ct_OTOOL" = x; then
8733     OTOOL=":"
8734   else
8735     case $cross_compiling:$ac_tool_warned in
8736 yes:)
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8739 ac_tool_warned=yes ;;
8740 esac
8741     OTOOL=$ac_ct_OTOOL
8742   fi
8743 else
8744   OTOOL="$ac_cv_prog_OTOOL"
8745 fi
8746
8747     if test -n "$ac_tool_prefix"; then
8748   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8749 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if ${ac_cv_prog_OTOOL64+:} false; then :
8753   $as_echo_n "(cached) " >&6
8754 else
8755   if test -n "$OTOOL64"; then
8756   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8757 else
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8760 do
8761   IFS=$as_save_IFS
8762   test -z "$as_dir" && as_dir=.
8763     for ac_exec_ext in '' $ac_executable_extensions; do
8764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767     break 2
8768   fi
8769 done
8770   done
8771 IFS=$as_save_IFS
8772
8773 fi
8774 fi
8775 OTOOL64=$ac_cv_prog_OTOOL64
8776 if test -n "$OTOOL64"; then
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8778 $as_echo "$OTOOL64" >&6; }
8779 else
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8782 fi
8783
8784
8785 fi
8786 if test -z "$ac_cv_prog_OTOOL64"; then
8787   ac_ct_OTOOL64=$OTOOL64
8788   # Extract the first word of "otool64", so it can be a program name with args.
8789 set dummy otool64; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   if test -n "$ac_ct_OTOOL64"; then
8796   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8797 else
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 for as_dir in $PATH
8800 do
8801   IFS=$as_save_IFS
8802   test -z "$as_dir" && as_dir=.
8803     for ac_exec_ext in '' $ac_executable_extensions; do
8804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8805     ac_cv_prog_ac_ct_OTOOL64="otool64"
8806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807     break 2
8808   fi
8809 done
8810   done
8811 IFS=$as_save_IFS
8812
8813 fi
8814 fi
8815 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8816 if test -n "$ac_ct_OTOOL64"; then
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8818 $as_echo "$ac_ct_OTOOL64" >&6; }
8819 else
8820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 $as_echo "no" >&6; }
8822 fi
8823
8824   if test "x$ac_ct_OTOOL64" = x; then
8825     OTOOL64=":"
8826   else
8827     case $cross_compiling:$ac_tool_warned in
8828 yes:)
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8831 ac_tool_warned=yes ;;
8832 esac
8833     OTOOL64=$ac_ct_OTOOL64
8834   fi
8835 else
8836   OTOOL64="$ac_cv_prog_OTOOL64"
8837 fi
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8866 $as_echo_n "checking for -single_module linker flag... " >&6; }
8867 if ${lt_cv_apple_cc_single_mod+:} false; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870   lt_cv_apple_cc_single_mod=no
8871       if test -z "${LT_MULTI_MODULE}"; then
8872         # By default we will add the -single_module flag. You can override
8873         # by either setting the environment variable LT_MULTI_MODULE
8874         # non-empty at configure time, or by adding -multi_module to the
8875         # link flags.
8876         rm -rf libconftest.dylib*
8877         echo "int foo(void){return 1;}" > conftest.c
8878         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8879 -dynamiclib -Wl,-single_module conftest.c" >&5
8880         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8881           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8882         _lt_result=$?
8883         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8884           lt_cv_apple_cc_single_mod=yes
8885         else
8886           cat conftest.err >&5
8887         fi
8888         rm -rf libconftest.dylib*
8889         rm -f conftest.*
8890       fi
8891 fi
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8893 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8895 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8896 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8897   $as_echo_n "(cached) " >&6
8898 else
8899   lt_cv_ld_exported_symbols_list=no
8900       save_LDFLAGS=$LDFLAGS
8901       echo "_main" > conftest.sym
8902       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8903       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h.  */
8905
8906 int
8907 main ()
8908 {
8909
8910   ;
8911   return 0;
8912 }
8913 _ACEOF
8914 if ac_fn_c_try_link "$LINENO"; then :
8915   lt_cv_ld_exported_symbols_list=yes
8916 else
8917   lt_cv_ld_exported_symbols_list=no
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext \
8920     conftest$ac_exeext conftest.$ac_ext
8921         LDFLAGS="$save_LDFLAGS"
8922
8923 fi
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8925 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8927 $as_echo_n "checking for -force_load linker flag... " >&6; }
8928 if ${lt_cv_ld_force_load+:} false; then :
8929   $as_echo_n "(cached) " >&6
8930 else
8931   lt_cv_ld_force_load=no
8932       cat > conftest.c << _LT_EOF
8933 int forced_loaded() { return 2;}
8934 _LT_EOF
8935       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8936       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8937       echo "$AR cru libconftest.a conftest.o" >&5
8938       $AR cru libconftest.a conftest.o 2>&5
8939       echo "$RANLIB libconftest.a" >&5
8940       $RANLIB libconftest.a 2>&5
8941       cat > conftest.c << _LT_EOF
8942 int main() { return 0;}
8943 _LT_EOF
8944       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8945       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8946       _lt_result=$?
8947       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8948         lt_cv_ld_force_load=yes
8949       else
8950         cat conftest.err >&5
8951       fi
8952         rm -f conftest.err libconftest.a conftest conftest.c
8953         rm -rf conftest.dSYM
8954
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8957 $as_echo "$lt_cv_ld_force_load" >&6; }
8958     case $host_os in
8959     rhapsody* | darwin1.[012])
8960       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8961     darwin1.*)
8962       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8963     darwin*) # darwin 5.x on
8964       # if running on 10.5 or later, the deployment target defaults
8965       # to the OS version, if on x86, and 10.4, the deployment
8966       # target defaults to 10.4. Don't you love it?
8967       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8968         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8969           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8970         10.[012]*)
8971           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8972         10.*)
8973           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8974       esac
8975     ;;
8976   esac
8977     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8978       _lt_dar_single_mod='$single_module'
8979     fi
8980     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8981       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8982     else
8983       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8984     fi
8985     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8986       _lt_dsymutil='~$DSYMUTIL $lib || :'
8987     else
8988       _lt_dsymutil=
8989     fi
8990     ;;
8991   esac
8992
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8994 $as_echo_n "checking for ANSI C header files... " >&6; }
8995 if ${ac_cv_header_stdc+:} false; then :
8996   $as_echo_n "(cached) " >&6
8997 else
8998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h.  */
9000 #include <stdlib.h>
9001 #include <stdarg.h>
9002 #include <string.h>
9003 #include <float.h>
9004
9005 int
9006 main ()
9007 {
9008
9009   ;
9010   return 0;
9011 }
9012 _ACEOF
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014   ac_cv_header_stdc=yes
9015 else
9016   ac_cv_header_stdc=no
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019
9020 if test $ac_cv_header_stdc = yes; then
9021   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h.  */
9024 #include <string.h>
9025
9026 _ACEOF
9027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9028   $EGREP "memchr" >/dev/null 2>&1; then :
9029
9030 else
9031   ac_cv_header_stdc=no
9032 fi
9033 rm -f conftest*
9034
9035 fi
9036
9037 if test $ac_cv_header_stdc = yes; then
9038   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h.  */
9041 #include <stdlib.h>
9042
9043 _ACEOF
9044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9045   $EGREP "free" >/dev/null 2>&1; then :
9046
9047 else
9048   ac_cv_header_stdc=no
9049 fi
9050 rm -f conftest*
9051
9052 fi
9053
9054 if test $ac_cv_header_stdc = yes; then
9055   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9056   if test "$cross_compiling" = yes; then :
9057   :
9058 else
9059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h.  */
9061 #include <ctype.h>
9062 #include <stdlib.h>
9063 #if ((' ' & 0x0FF) == 0x020)
9064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9066 #else
9067 # define ISLOWER(c) \
9068                    (('a' <= (c) && (c) <= 'i') \
9069                      || ('j' <= (c) && (c) <= 'r') \
9070                      || ('s' <= (c) && (c) <= 'z'))
9071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9072 #endif
9073
9074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9075 int
9076 main ()
9077 {
9078   int i;
9079   for (i = 0; i < 256; i++)
9080     if (XOR (islower (i), ISLOWER (i))
9081         || toupper (i) != TOUPPER (i))
9082       return 2;
9083   return 0;
9084 }
9085 _ACEOF
9086 if ac_fn_c_try_run "$LINENO"; then :
9087
9088 else
9089   ac_cv_header_stdc=no
9090 fi
9091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9092   conftest.$ac_objext conftest.beam conftest.$ac_ext
9093 fi
9094
9095 fi
9096 fi
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9098 $as_echo "$ac_cv_header_stdc" >&6; }
9099 if test $ac_cv_header_stdc = yes; then
9100
9101 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9102
9103 fi
9104
9105 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9106 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9107                   inttypes.h stdint.h unistd.h
9108 do :
9109   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9111 "
9112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9113   cat >>confdefs.h <<_ACEOF
9114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9115 _ACEOF
9116
9117 fi
9118
9119 done
9120
9121
9122 for ac_header in dlfcn.h
9123 do :
9124   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9125 "
9126 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9127   cat >>confdefs.h <<_ACEOF
9128 #define HAVE_DLFCN_H 1
9129 _ACEOF
9130
9131 fi
9132
9133 done
9134
9135
9136
9137
9138 func_stripname_cnf ()
9139 {
9140   case ${2} in
9141   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9142   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9143   esac
9144 } # func_stripname_cnf
9145
9146
9147
9148
9149
9150 # Set options
9151 # Check whether --enable-shared was given.
9152 if test "${enable_shared+set}" = set; then :
9153   enableval=$enable_shared; p=${PACKAGE-default}
9154     case $enableval in
9155     yes) enable_shared=yes ;;
9156     no) enable_shared=no ;;
9157     *)
9158       enable_shared=no
9159       # Look at the argument we got.  We use all the common list separators.
9160       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9161       for pkg in $enableval; do
9162         IFS="$lt_save_ifs"
9163         if test "X$pkg" = "X$p"; then
9164           enable_shared=yes
9165         fi
9166       done
9167       IFS="$lt_save_ifs"
9168       ;;
9169     esac
9170 else
9171   enable_shared=yes
9172 fi
9173
9174
9175
9176
9177
9178
9179
9180 # Check whether --enable-static was given.
9181 if test "${enable_static+set}" = set; then :
9182   enableval=$enable_static; p=${PACKAGE-default}
9183     case $enableval in
9184     yes) enable_static=yes ;;
9185     no) enable_static=no ;;
9186     *)
9187      enable_static=no
9188       # Look at the argument we got.  We use all the common list separators.
9189       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9190       for pkg in $enableval; do
9191         IFS="$lt_save_ifs"
9192         if test "X$pkg" = "X$p"; then
9193           enable_static=yes
9194         fi
9195       done
9196       IFS="$lt_save_ifs"
9197       ;;
9198     esac
9199 else
9200   enable_static=no
9201 fi
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212         enable_dlopen=no
9213
9214
9215   enable_win32_dll=no
9216
9217
9218
9219
9220
9221 # Check whether --with-pic was given.
9222 if test "${with_pic+set}" = set; then :
9223   withval=$with_pic; pic_mode="$withval"
9224 else
9225   pic_mode=default
9226 fi
9227
9228
9229 test -z "$pic_mode" && pic_mode=default
9230
9231
9232
9233
9234
9235
9236
9237   # Check whether --enable-fast-install was given.
9238 if test "${enable_fast_install+set}" = set; then :
9239   enableval=$enable_fast_install; p=${PACKAGE-default}
9240     case $enableval in
9241     yes) enable_fast_install=yes ;;
9242     no) enable_fast_install=no ;;
9243     *)
9244       enable_fast_install=no
9245       # Look at the argument we got.  We use all the common list separators.
9246       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9247       for pkg in $enableval; do
9248         IFS="$lt_save_ifs"
9249         if test "X$pkg" = "X$p"; then
9250           enable_fast_install=yes
9251         fi
9252       done
9253       IFS="$lt_save_ifs"
9254       ;;
9255     esac
9256 else
9257   enable_fast_install=yes
9258 fi
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270 # This can be used to rebuild libtool when needed
9271 LIBTOOL_DEPS="$ltmain"
9272
9273 # Always use our own libtool.
9274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301 test -z "$LN_S" && LN_S="ln -s"
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316 if test -n "${ZSH_VERSION+set}" ; then
9317    setopt NO_GLOB_SUBST
9318 fi
9319
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9321 $as_echo_n "checking for objdir... " >&6; }
9322 if ${lt_cv_objdir+:} false; then :
9323   $as_echo_n "(cached) " >&6
9324 else
9325   rm -f .libs 2>/dev/null
9326 mkdir .libs 2>/dev/null
9327 if test -d .libs; then
9328   lt_cv_objdir=.libs
9329 else
9330   # MS-DOS does not allow filenames that begin with a dot.
9331   lt_cv_objdir=_libs
9332 fi
9333 rmdir .libs 2>/dev/null
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9336 $as_echo "$lt_cv_objdir" >&6; }
9337 objdir=$lt_cv_objdir
9338
9339
9340
9341
9342
9343 cat >>confdefs.h <<_ACEOF
9344 #define LT_OBJDIR "$lt_cv_objdir/"
9345 _ACEOF
9346
9347
9348
9349
9350 case $host_os in
9351 aix3*)
9352   # AIX sometimes has problems with the GCC collect2 program.  For some
9353   # reason, if we set the COLLECT_NAMES environment variable, the problems
9354   # vanish in a puff of smoke.
9355   if test "X${COLLECT_NAMES+set}" != Xset; then
9356     COLLECT_NAMES=
9357     export COLLECT_NAMES
9358   fi
9359   ;;
9360 esac
9361
9362 # Global variables:
9363 ofile=libtool
9364 can_build_shared=yes
9365
9366 # All known linkers require a `.a' archive for static linking (except MSVC,
9367 # which needs '.lib').
9368 libext=a
9369
9370 with_gnu_ld="$lt_cv_prog_gnu_ld"
9371
9372 old_CC="$CC"
9373 old_CFLAGS="$CFLAGS"
9374
9375 # Set sane defaults for various variables
9376 test -z "$CC" && CC=cc
9377 test -z "$LTCC" && LTCC=$CC
9378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9379 test -z "$LD" && LD=ld
9380 test -z "$ac_objext" && ac_objext=o
9381
9382 for cc_temp in $compiler""; do
9383   case $cc_temp in
9384     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9385     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9386     \-*) ;;
9387     *) break;;
9388   esac
9389 done
9390 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9391
9392
9393 # Only perform the check for file, if the check method requires it
9394 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9395 case $deplibs_check_method in
9396 file_magic*)
9397   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9399 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9400 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9401   $as_echo_n "(cached) " >&6
9402 else
9403   case $MAGIC_CMD in
9404 [\\/*] |  ?:[\\/]*)
9405   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9406   ;;
9407 *)
9408   lt_save_MAGIC_CMD="$MAGIC_CMD"
9409   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9410   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9411   for ac_dir in $ac_dummy; do
9412     IFS="$lt_save_ifs"
9413     test -z "$ac_dir" && ac_dir=.
9414     if test -f $ac_dir/${ac_tool_prefix}file; then
9415       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9416       if test -n "$file_magic_test_file"; then
9417         case $deplibs_check_method in
9418         "file_magic "*)
9419           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9420           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9421           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9422             $EGREP "$file_magic_regex" > /dev/null; then
9423             :
9424           else
9425             cat <<_LT_EOF 1>&2
9426
9427 *** Warning: the command libtool uses to detect shared libraries,
9428 *** $file_magic_cmd, produces output that libtool cannot recognize.
9429 *** The result is that libtool may fail to recognize shared libraries
9430 *** as such.  This will affect the creation of libtool libraries that
9431 *** depend on shared libraries, but programs linked with such libtool
9432 *** libraries will work regardless of this problem.  Nevertheless, you
9433 *** may want to report the problem to your system manager and/or to
9434 *** bug-libtool@gnu.org
9435
9436 _LT_EOF
9437           fi ;;
9438         esac
9439       fi
9440       break
9441     fi
9442   done
9443   IFS="$lt_save_ifs"
9444   MAGIC_CMD="$lt_save_MAGIC_CMD"
9445   ;;
9446 esac
9447 fi
9448
9449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9450 if test -n "$MAGIC_CMD"; then
9451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9452 $as_echo "$MAGIC_CMD" >&6; }
9453 else
9454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9456 fi
9457
9458
9459
9460
9461
9462 if test -z "$lt_cv_path_MAGIC_CMD"; then
9463   if test -n "$ac_tool_prefix"; then
9464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9465 $as_echo_n "checking for file... " >&6; }
9466 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9467   $as_echo_n "(cached) " >&6
9468 else
9469   case $MAGIC_CMD in
9470 [\\/*] |  ?:[\\/]*)
9471   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9472   ;;
9473 *)
9474   lt_save_MAGIC_CMD="$MAGIC_CMD"
9475   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9476   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9477   for ac_dir in $ac_dummy; do
9478     IFS="$lt_save_ifs"
9479     test -z "$ac_dir" && ac_dir=.
9480     if test -f $ac_dir/file; then
9481       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9482       if test -n "$file_magic_test_file"; then
9483         case $deplibs_check_method in
9484         "file_magic "*)
9485           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9486           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9487           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9488             $EGREP "$file_magic_regex" > /dev/null; then
9489             :
9490           else
9491             cat <<_LT_EOF 1>&2
9492
9493 *** Warning: the command libtool uses to detect shared libraries,
9494 *** $file_magic_cmd, produces output that libtool cannot recognize.
9495 *** The result is that libtool may fail to recognize shared libraries
9496 *** as such.  This will affect the creation of libtool libraries that
9497 *** depend on shared libraries, but programs linked with such libtool
9498 *** libraries will work regardless of this problem.  Nevertheless, you
9499 *** may want to report the problem to your system manager and/or to
9500 *** bug-libtool@gnu.org
9501
9502 _LT_EOF
9503           fi ;;
9504         esac
9505       fi
9506       break
9507     fi
9508   done
9509   IFS="$lt_save_ifs"
9510   MAGIC_CMD="$lt_save_MAGIC_CMD"
9511   ;;
9512 esac
9513 fi
9514
9515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9516 if test -n "$MAGIC_CMD"; then
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9518 $as_echo "$MAGIC_CMD" >&6; }
9519 else
9520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9522 fi
9523
9524
9525   else
9526     MAGIC_CMD=:
9527   fi
9528 fi
9529
9530   fi
9531   ;;
9532 esac
9533
9534 # Use C for the default configuration in the libtool script
9535
9536 lt_save_CC="$CC"
9537 ac_ext=c
9538 ac_cpp='$CPP $CPPFLAGS'
9539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542
9543
9544 # Source file extension for C test sources.
9545 ac_ext=c
9546
9547 # Object file extension for compiled C test sources.
9548 objext=o
9549 objext=$objext
9550
9551 # Code to be used in simple compile tests
9552 lt_simple_compile_test_code="int some_variable = 0;"
9553
9554 # Code to be used in simple link tests
9555 lt_simple_link_test_code='int main(){return(0);}'
9556
9557
9558
9559
9560
9561
9562
9563 # If no C compiler was specified, use CC.
9564 LTCC=${LTCC-"$CC"}
9565
9566 # If no C compiler flags were specified, use CFLAGS.
9567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9568
9569 # Allow CC to be a program name with arguments.
9570 compiler=$CC
9571
9572 # Save the default compiler, since it gets overwritten when the other
9573 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9574 compiler_DEFAULT=$CC
9575
9576 # save warnings/boilerplate of simple test code
9577 ac_outfile=conftest.$ac_objext
9578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9580 _lt_compiler_boilerplate=`cat conftest.err`
9581 $RM conftest*
9582
9583 ac_outfile=conftest.$ac_objext
9584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9586 _lt_linker_boilerplate=`cat conftest.err`
9587 $RM -r conftest*
9588
9589
9590 ## CAVEAT EMPTOR:
9591 ## There is no encapsulation within the following macros, do not change
9592 ## the running order or otherwise move them around unless you know exactly
9593 ## what you are doing...
9594 if test -n "$compiler"; then
9595
9596 lt_prog_compiler_no_builtin_flag=
9597
9598 if test "$GCC" = yes; then
9599   case $cc_basename in
9600   nvcc*)
9601     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9602   *)
9603     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9604   esac
9605
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9608 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9609   $as_echo_n "(cached) " >&6
9610 else
9611   lt_cv_prog_compiler_rtti_exceptions=no
9612    ac_outfile=conftest.$ac_objext
9613    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9614    lt_compiler_flag="-fno-rtti -fno-exceptions"
9615    # Insert the option either (1) after the last *FLAGS variable, or
9616    # (2) before a word containing "conftest.", or (3) at the end.
9617    # Note that $ac_compile itself does not contain backslashes and begins
9618    # with a dollar sign (not a hyphen), so the echo should work correctly.
9619    # The option is referenced via a variable to avoid confusing sed.
9620    lt_compile=`echo "$ac_compile" | $SED \
9621    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9622    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9623    -e 's:$: $lt_compiler_flag:'`
9624    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9625    (eval "$lt_compile" 2>conftest.err)
9626    ac_status=$?
9627    cat conftest.err >&5
9628    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629    if (exit $ac_status) && test -s "$ac_outfile"; then
9630      # The compiler can only warn and ignore the option if not recognized
9631      # So say no if there are warnings other than the usual output.
9632      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9633      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9634      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9635        lt_cv_prog_compiler_rtti_exceptions=yes
9636      fi
9637    fi
9638    $RM conftest*
9639
9640 fi
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9643
9644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9645     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9646 else
9647     :
9648 fi
9649
9650 fi
9651
9652
9653
9654
9655
9656
9657   lt_prog_compiler_wl=
9658 lt_prog_compiler_pic=
9659 lt_prog_compiler_static=
9660
9661
9662   if test "$GCC" = yes; then
9663     lt_prog_compiler_wl='-Wl,'
9664     lt_prog_compiler_static='-static'
9665
9666     case $host_os in
9667       aix*)
9668       # All AIX code is PIC.
9669       if test "$host_cpu" = ia64; then
9670         # AIX 5 now supports IA64 processor
9671         lt_prog_compiler_static='-Bstatic'
9672       fi
9673       ;;
9674
9675     amigaos*)
9676       case $host_cpu in
9677       powerpc)
9678             # see comment about AmigaOS4 .so support
9679             lt_prog_compiler_pic='-fPIC'
9680         ;;
9681       m68k)
9682             # FIXME: we need at least 68020 code to build shared libraries, but
9683             # adding the `-m68020' flag to GCC prevents building anything better,
9684             # like `-m68040'.
9685             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9686         ;;
9687       esac
9688       ;;
9689
9690     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9691       # PIC is the default for these OSes.
9692       ;;
9693
9694     mingw* | cygwin* | pw32* | os2* | cegcc*)
9695       # This hack is so that the source file can tell whether it is being
9696       # built for inclusion in a dll (and should export symbols for example).
9697       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9698       # (--disable-auto-import) libraries
9699       lt_prog_compiler_pic='-DDLL_EXPORT'
9700       ;;
9701
9702     darwin* | rhapsody*)
9703       # PIC is the default on this platform
9704       # Common symbols not allowed in MH_DYLIB files
9705       lt_prog_compiler_pic='-fno-common'
9706       ;;
9707
9708     haiku*)
9709       # PIC is the default for Haiku.
9710       # The "-static" flag exists, but is broken.
9711       lt_prog_compiler_static=
9712       ;;
9713
9714     hpux*)
9715       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9716       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9717       # sets the default TLS model and affects inlining.
9718       case $host_cpu in
9719       hppa*64*)
9720         # +Z the default
9721         ;;
9722       *)
9723         lt_prog_compiler_pic='-fPIC'
9724         ;;
9725       esac
9726       ;;
9727
9728     interix[3-9]*)
9729       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9730       # Instead, we relocate shared libraries at runtime.
9731       ;;
9732
9733     msdosdjgpp*)
9734       # Just because we use GCC doesn't mean we suddenly get shared libraries
9735       # on systems that don't support them.
9736       lt_prog_compiler_can_build_shared=no
9737       enable_shared=no
9738       ;;
9739
9740     *nto* | *qnx*)
9741       # QNX uses GNU C++, but need to define -shared option too, otherwise
9742       # it will coredump.
9743       lt_prog_compiler_pic='-fPIC -shared'
9744       ;;
9745
9746     sysv4*MP*)
9747       if test -d /usr/nec; then
9748         lt_prog_compiler_pic=-Kconform_pic
9749       fi
9750       ;;
9751
9752     *)
9753       lt_prog_compiler_pic='-fPIC'
9754       ;;
9755     esac
9756
9757     case $cc_basename in
9758     nvcc*) # Cuda Compiler Driver 2.2
9759       lt_prog_compiler_wl='-Xlinker '
9760       lt_prog_compiler_pic='-Xcompiler -fPIC'
9761       ;;
9762     esac
9763   else
9764     # PORTME Check for flag to pass linker flags through the system compiler.
9765     case $host_os in
9766     aix*)
9767       lt_prog_compiler_wl='-Wl,'
9768       if test "$host_cpu" = ia64; then
9769         # AIX 5 now supports IA64 processor
9770         lt_prog_compiler_static='-Bstatic'
9771       else
9772         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9773       fi
9774       ;;
9775
9776     mingw* | cygwin* | pw32* | os2* | cegcc*)
9777       # This hack is so that the source file can tell whether it is being
9778       # built for inclusion in a dll (and should export symbols for example).
9779       lt_prog_compiler_pic='-DDLL_EXPORT'
9780       ;;
9781
9782     hpux9* | hpux10* | hpux11*)
9783       lt_prog_compiler_wl='-Wl,'
9784       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9785       # not for PA HP-UX.
9786       case $host_cpu in
9787       hppa*64*|ia64*)
9788         # +Z the default
9789         ;;
9790       *)
9791         lt_prog_compiler_pic='+Z'
9792         ;;
9793       esac
9794       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9795       lt_prog_compiler_static='${wl}-a ${wl}archive'
9796       ;;
9797
9798     irix5* | irix6* | nonstopux*)
9799       lt_prog_compiler_wl='-Wl,'
9800       # PIC (with -KPIC) is the default.
9801       lt_prog_compiler_static='-non_shared'
9802       ;;
9803
9804     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9805       case $cc_basename in
9806       # old Intel for x86_64 which still supported -KPIC.
9807       ecc*)
9808         lt_prog_compiler_wl='-Wl,'
9809         lt_prog_compiler_pic='-KPIC'
9810         lt_prog_compiler_static='-static'
9811         ;;
9812       # icc used to be incompatible with GCC.
9813       # ICC 10 doesn't accept -KPIC any more.
9814       icc* | ifort*)
9815         lt_prog_compiler_wl='-Wl,'
9816         lt_prog_compiler_pic='-fPIC'
9817         lt_prog_compiler_static='-static'
9818         ;;
9819       # Lahey Fortran 8.1.
9820       lf95*)
9821         lt_prog_compiler_wl='-Wl,'
9822         lt_prog_compiler_pic='--shared'
9823         lt_prog_compiler_static='--static'
9824         ;;
9825       nagfor*)
9826         # NAG Fortran compiler
9827         lt_prog_compiler_wl='-Wl,-Wl,,'
9828         lt_prog_compiler_pic='-PIC'
9829         lt_prog_compiler_static='-Bstatic'
9830         ;;
9831       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9832         # Portland Group compilers (*not* the Pentium gcc compiler,
9833         # which looks to be a dead project)
9834         lt_prog_compiler_wl='-Wl,'
9835         lt_prog_compiler_pic='-fpic'
9836         lt_prog_compiler_static='-Bstatic'
9837         ;;
9838       ccc*)
9839         lt_prog_compiler_wl='-Wl,'
9840         # All Alpha code is PIC.
9841         lt_prog_compiler_static='-non_shared'
9842         ;;
9843       xl* | bgxl* | bgf* | mpixl*)
9844         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9845         lt_prog_compiler_wl='-Wl,'
9846         lt_prog_compiler_pic='-qpic'
9847         lt_prog_compiler_static='-qstaticlink'
9848         ;;
9849       *)
9850         case `$CC -V 2>&1 | sed 5q` in
9851         *Sun\ F* | *Sun*Fortran*)
9852           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9853           lt_prog_compiler_pic='-KPIC'
9854           lt_prog_compiler_static='-Bstatic'
9855           lt_prog_compiler_wl=''
9856           ;;
9857         *Sun\ C*)
9858           # Sun C 5.9
9859           lt_prog_compiler_pic='-KPIC'
9860           lt_prog_compiler_static='-Bstatic'
9861           lt_prog_compiler_wl='-Wl,'
9862           ;;
9863         esac
9864         ;;
9865       esac
9866       ;;
9867
9868     newsos6)
9869       lt_prog_compiler_pic='-KPIC'
9870       lt_prog_compiler_static='-Bstatic'
9871       ;;
9872
9873     *nto* | *qnx*)
9874       # QNX uses GNU C++, but need to define -shared option too, otherwise
9875       # it will coredump.
9876       lt_prog_compiler_pic='-fPIC -shared'
9877       ;;
9878
9879     osf3* | osf4* | osf5*)
9880       lt_prog_compiler_wl='-Wl,'
9881       # All OSF/1 code is PIC.
9882       lt_prog_compiler_static='-non_shared'
9883       ;;
9884
9885     rdos*)
9886       lt_prog_compiler_static='-non_shared'
9887       ;;
9888
9889     solaris*)
9890       lt_prog_compiler_pic='-KPIC'
9891       lt_prog_compiler_static='-Bstatic'
9892       case $cc_basename in
9893       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9894         lt_prog_compiler_wl='-Qoption ld ';;
9895       *)
9896         lt_prog_compiler_wl='-Wl,';;
9897       esac
9898       ;;
9899
9900     sunos4*)
9901       lt_prog_compiler_wl='-Qoption ld '
9902       lt_prog_compiler_pic='-PIC'
9903       lt_prog_compiler_static='-Bstatic'
9904       ;;
9905
9906     sysv4 | sysv4.2uw2* | sysv4.3*)
9907       lt_prog_compiler_wl='-Wl,'
9908       lt_prog_compiler_pic='-KPIC'
9909       lt_prog_compiler_static='-Bstatic'
9910       ;;
9911
9912     sysv4*MP*)
9913       if test -d /usr/nec ;then
9914         lt_prog_compiler_pic='-Kconform_pic'
9915         lt_prog_compiler_static='-Bstatic'
9916       fi
9917       ;;
9918
9919     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9920       lt_prog_compiler_wl='-Wl,'
9921       lt_prog_compiler_pic='-KPIC'
9922       lt_prog_compiler_static='-Bstatic'
9923       ;;
9924
9925     unicos*)
9926       lt_prog_compiler_wl='-Wl,'
9927       lt_prog_compiler_can_build_shared=no
9928       ;;
9929
9930     uts4*)
9931       lt_prog_compiler_pic='-pic'
9932       lt_prog_compiler_static='-Bstatic'
9933       ;;
9934
9935     *)
9936       lt_prog_compiler_can_build_shared=no
9937       ;;
9938     esac
9939   fi
9940
9941 case $host_os in
9942   # For platforms which do not support PIC, -DPIC is meaningless:
9943   *djgpp*)
9944     lt_prog_compiler_pic=
9945     ;;
9946   *)
9947     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9948     ;;
9949 esac
9950
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9952 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9953 if ${lt_cv_prog_compiler_pic+:} false; then :
9954   $as_echo_n "(cached) " >&6
9955 else
9956   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9957 fi
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9959 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9960 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9961
9962 #
9963 # Check to make sure the PIC flag actually works.
9964 #
9965 if test -n "$lt_prog_compiler_pic"; then
9966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9967 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9968 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9969   $as_echo_n "(cached) " >&6
9970 else
9971   lt_cv_prog_compiler_pic_works=no
9972    ac_outfile=conftest.$ac_objext
9973    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9974    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9975    # Insert the option either (1) after the last *FLAGS variable, or
9976    # (2) before a word containing "conftest.", or (3) at the end.
9977    # Note that $ac_compile itself does not contain backslashes and begins
9978    # with a dollar sign (not a hyphen), so the echo should work correctly.
9979    # The option is referenced via a variable to avoid confusing sed.
9980    lt_compile=`echo "$ac_compile" | $SED \
9981    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9982    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9983    -e 's:$: $lt_compiler_flag:'`
9984    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9985    (eval "$lt_compile" 2>conftest.err)
9986    ac_status=$?
9987    cat conftest.err >&5
9988    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989    if (exit $ac_status) && test -s "$ac_outfile"; then
9990      # The compiler can only warn and ignore the option if not recognized
9991      # So say no if there are warnings other than the usual output.
9992      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9993      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9994      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9995        lt_cv_prog_compiler_pic_works=yes
9996      fi
9997    fi
9998    $RM conftest*
9999
10000 fi
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10002 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10003
10004 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10005     case $lt_prog_compiler_pic in
10006      "" | " "*) ;;
10007      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10008      esac
10009 else
10010     lt_prog_compiler_pic=
10011      lt_prog_compiler_can_build_shared=no
10012 fi
10013
10014 fi
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026 #
10027 # Check to make sure the static flag actually works.
10028 #
10029 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10031 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10032 if ${lt_cv_prog_compiler_static_works+:} false; then :
10033   $as_echo_n "(cached) " >&6
10034 else
10035   lt_cv_prog_compiler_static_works=no
10036    save_LDFLAGS="$LDFLAGS"
10037    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10038    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10039    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10040      # The linker can only warn and ignore the option if not recognized
10041      # So say no if there are warnings
10042      if test -s conftest.err; then
10043        # Append any errors to the config.log.
10044        cat conftest.err 1>&5
10045        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10046        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10047        if diff conftest.exp conftest.er2 >/dev/null; then
10048          lt_cv_prog_compiler_static_works=yes
10049        fi
10050      else
10051        lt_cv_prog_compiler_static_works=yes
10052      fi
10053    fi
10054    $RM -r conftest*
10055    LDFLAGS="$save_LDFLAGS"
10056
10057 fi
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10059 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10060
10061 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10062     :
10063 else
10064     lt_prog_compiler_static=
10065 fi
10066
10067
10068
10069
10070
10071
10072
10073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10074 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10075 if ${lt_cv_prog_compiler_c_o+:} false; then :
10076   $as_echo_n "(cached) " >&6
10077 else
10078   lt_cv_prog_compiler_c_o=no
10079    $RM -r conftest 2>/dev/null
10080    mkdir conftest
10081    cd conftest
10082    mkdir out
10083    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10084
10085    lt_compiler_flag="-o out/conftest2.$ac_objext"
10086    # Insert the option either (1) after the last *FLAGS variable, or
10087    # (2) before a word containing "conftest.", or (3) at the end.
10088    # Note that $ac_compile itself does not contain backslashes and begins
10089    # with a dollar sign (not a hyphen), so the echo should work correctly.
10090    lt_compile=`echo "$ac_compile" | $SED \
10091    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10093    -e 's:$: $lt_compiler_flag:'`
10094    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10095    (eval "$lt_compile" 2>out/conftest.err)
10096    ac_status=$?
10097    cat out/conftest.err >&5
10098    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10100    then
10101      # The compiler can only warn and ignore the option if not recognized
10102      # So say no if there are warnings
10103      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10104      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10105      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10106        lt_cv_prog_compiler_c_o=yes
10107      fi
10108    fi
10109    chmod u+w . 2>&5
10110    $RM conftest*
10111    # SGI C++ compiler will create directory out/ii_files/ for
10112    # template instantiation
10113    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10114    $RM out/* && rmdir out
10115    cd ..
10116    $RM -r conftest
10117    $RM conftest*
10118
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10121 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10122
10123
10124
10125
10126
10127
10128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10129 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10130 if ${lt_cv_prog_compiler_c_o+:} false; then :
10131   $as_echo_n "(cached) " >&6
10132 else
10133   lt_cv_prog_compiler_c_o=no
10134    $RM -r conftest 2>/dev/null
10135    mkdir conftest
10136    cd conftest
10137    mkdir out
10138    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10139
10140    lt_compiler_flag="-o out/conftest2.$ac_objext"
10141    # Insert the option either (1) after the last *FLAGS variable, or
10142    # (2) before a word containing "conftest.", or (3) at the end.
10143    # Note that $ac_compile itself does not contain backslashes and begins
10144    # with a dollar sign (not a hyphen), so the echo should work correctly.
10145    lt_compile=`echo "$ac_compile" | $SED \
10146    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10148    -e 's:$: $lt_compiler_flag:'`
10149    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10150    (eval "$lt_compile" 2>out/conftest.err)
10151    ac_status=$?
10152    cat out/conftest.err >&5
10153    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10155    then
10156      # The compiler can only warn and ignore the option if not recognized
10157      # So say no if there are warnings
10158      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10159      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10160      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10161        lt_cv_prog_compiler_c_o=yes
10162      fi
10163    fi
10164    chmod u+w . 2>&5
10165    $RM conftest*
10166    # SGI C++ compiler will create directory out/ii_files/ for
10167    # template instantiation
10168    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10169    $RM out/* && rmdir out
10170    cd ..
10171    $RM -r conftest
10172    $RM conftest*
10173
10174 fi
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10176 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10177
10178
10179
10180
10181 hard_links="nottested"
10182 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10183   # do not overwrite the value of need_locks provided by the user
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10185 $as_echo_n "checking if we can lock with hard links... " >&6; }
10186   hard_links=yes
10187   $RM conftest*
10188   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10189   touch conftest.a
10190   ln conftest.a conftest.b 2>&5 || hard_links=no
10191   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10193 $as_echo "$hard_links" >&6; }
10194   if test "$hard_links" = no; then
10195     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10196 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10197     need_locks=warn
10198   fi
10199 else
10200   need_locks=no
10201 fi
10202
10203
10204
10205
10206
10207
10208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10209 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10210
10211   runpath_var=
10212   allow_undefined_flag=
10213   always_export_symbols=no
10214   archive_cmds=
10215   archive_expsym_cmds=
10216   compiler_needs_object=no
10217   enable_shared_with_static_runtimes=no
10218   export_dynamic_flag_spec=
10219   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10220   hardcode_automatic=no
10221   hardcode_direct=no
10222   hardcode_direct_absolute=no
10223   hardcode_libdir_flag_spec=
10224   hardcode_libdir_flag_spec_ld=
10225   hardcode_libdir_separator=
10226   hardcode_minus_L=no
10227   hardcode_shlibpath_var=unsupported
10228   inherit_rpath=no
10229   link_all_deplibs=unknown
10230   module_cmds=
10231   module_expsym_cmds=
10232   old_archive_from_new_cmds=
10233   old_archive_from_expsyms_cmds=
10234   thread_safe_flag_spec=
10235   whole_archive_flag_spec=
10236   # include_expsyms should be a list of space-separated symbols to be *always*
10237   # included in the symbol list
10238   include_expsyms=
10239   # exclude_expsyms can be an extended regexp of symbols to exclude
10240   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10241   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10242   # as well as any symbol that contains `d'.
10243   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10244   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10245   # platforms (ab)use it in PIC code, but their linkers get confused if
10246   # the symbol is explicitly referenced.  Since portable code cannot
10247   # rely on this symbol name, it's probably fine to never include it in
10248   # preloaded symbol tables.
10249   # Exclude shared library initialization/finalization symbols.
10250   extract_expsyms_cmds=
10251
10252   case $host_os in
10253   cygwin* | mingw* | pw32* | cegcc*)
10254     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10255     # When not using gcc, we currently assume that we are using
10256     # Microsoft Visual C++.
10257     if test "$GCC" != yes; then
10258       with_gnu_ld=no
10259     fi
10260     ;;
10261   interix*)
10262     # we just hope/assume this is gcc and not c89 (= MSVC++)
10263     with_gnu_ld=yes
10264     ;;
10265   openbsd*)
10266     with_gnu_ld=no
10267     ;;
10268   esac
10269
10270   ld_shlibs=yes
10271
10272   # On some targets, GNU ld is compatible enough with the native linker
10273   # that we're better off using the native interface for both.
10274   lt_use_gnu_ld_interface=no
10275   if test "$with_gnu_ld" = yes; then
10276     case $host_os in
10277       aix*)
10278         # The AIX port of GNU ld has always aspired to compatibility
10279         # with the native linker.  However, as the warning in the GNU ld
10280         # block says, versions before 2.19.5* couldn't really create working
10281         # shared libraries, regardless of the interface used.
10282         case `$LD -v 2>&1` in
10283           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10284           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10285           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10286           *)
10287             lt_use_gnu_ld_interface=yes
10288             ;;
10289         esac
10290         ;;
10291       *)
10292         lt_use_gnu_ld_interface=yes
10293         ;;
10294     esac
10295   fi
10296
10297   if test "$lt_use_gnu_ld_interface" = yes; then
10298     # If archive_cmds runs LD, not CC, wlarc should be empty
10299     wlarc='${wl}'
10300
10301     # Set some defaults for GNU ld with shared library support. These
10302     # are reset later if shared libraries are not supported. Putting them
10303     # here allows them to be overridden if necessary.
10304     runpath_var=LD_RUN_PATH
10305     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10306     export_dynamic_flag_spec='${wl}--export-dynamic'
10307     # ancient GNU ld didn't support --whole-archive et. al.
10308     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10309       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10310     else
10311       whole_archive_flag_spec=
10312     fi
10313     supports_anon_versioning=no
10314     case `$LD -v 2>&1` in
10315       *GNU\ gold*) supports_anon_versioning=yes ;;
10316       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10317       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10318       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10319       *\ 2.11.*) ;; # other 2.11 versions
10320       *) supports_anon_versioning=yes ;;
10321     esac
10322
10323     # See if GNU ld supports shared libraries.
10324     case $host_os in
10325     aix[3-9]*)
10326       # On AIX/PPC, the GNU linker is very broken
10327       if test "$host_cpu" != ia64; then
10328         ld_shlibs=no
10329         cat <<_LT_EOF 1>&2
10330
10331 *** Warning: the GNU linker, at least up to release 2.19, is reported
10332 *** to be unable to reliably create shared libraries on AIX.
10333 *** Therefore, libtool is disabling shared libraries support.  If you
10334 *** really care for shared libraries, you may want to install binutils
10335 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10336 *** You will then need to restart the configuration process.
10337
10338 _LT_EOF
10339       fi
10340       ;;
10341
10342     amigaos*)
10343       case $host_cpu in
10344       powerpc)
10345             # see comment about AmigaOS4 .so support
10346             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10347             archive_expsym_cmds=''
10348         ;;
10349       m68k)
10350             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)'
10351             hardcode_libdir_flag_spec='-L$libdir'
10352             hardcode_minus_L=yes
10353         ;;
10354       esac
10355       ;;
10356
10357     beos*)
10358       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10359         allow_undefined_flag=unsupported
10360         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10361         # support --undefined.  This deserves some investigation.  FIXME
10362         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10363       else
10364         ld_shlibs=no
10365       fi
10366       ;;
10367
10368     cygwin* | mingw* | pw32* | cegcc*)
10369       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10370       # as there is no search path for DLLs.
10371       hardcode_libdir_flag_spec='-L$libdir'
10372       export_dynamic_flag_spec='${wl}--export-all-symbols'
10373       allow_undefined_flag=unsupported
10374       always_export_symbols=no
10375       enable_shared_with_static_runtimes=yes
10376       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'
10377       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10378
10379       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10380         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10381         # If the export-symbols file already is a .def file (1st line
10382         # is EXPORTS), use it as is; otherwise, prepend...
10383         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10384           cp $export_symbols $output_objdir/$soname.def;
10385         else
10386           echo EXPORTS > $output_objdir/$soname.def;
10387           cat $export_symbols >> $output_objdir/$soname.def;
10388         fi~
10389         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10390       else
10391         ld_shlibs=no
10392       fi
10393       ;;
10394
10395     haiku*)
10396       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10397       link_all_deplibs=yes
10398       ;;
10399
10400     interix[3-9]*)
10401       hardcode_direct=no
10402       hardcode_shlibpath_var=no
10403       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10404       export_dynamic_flag_spec='${wl}-E'
10405       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10406       # Instead, shared libraries are loaded at an image base (0x10000000 by
10407       # default) and relocated if they conflict, which is a slow very memory
10408       # consuming and fragmenting process.  To avoid this, we pick a random,
10409       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10410       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10411       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10412       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'
10413       ;;
10414
10415     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10416       tmp_diet=no
10417       if test "$host_os" = linux-dietlibc; then
10418         case $cc_basename in
10419           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10420         esac
10421       fi
10422       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10423          && test "$tmp_diet" = no
10424       then
10425         tmp_addflag=' $pic_flag'
10426         tmp_sharedflag='-shared'
10427         case $cc_basename,$host_cpu in
10428         pgcc*)                          # Portland Group C compiler
10429           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'
10430           tmp_addflag=' $pic_flag'
10431           ;;
10432         pgf77* | pgf90* | pgf95* | pgfortran*)
10433                                         # Portland Group f77 and f90 compilers
10434           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'
10435           tmp_addflag=' $pic_flag -Mnomain' ;;
10436         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10437           tmp_addflag=' -i_dynamic' ;;
10438         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10439           tmp_addflag=' -i_dynamic -nofor_main' ;;
10440         ifc* | ifort*)                  # Intel Fortran compiler
10441           tmp_addflag=' -nofor_main' ;;
10442         lf95*)                          # Lahey Fortran 8.1
10443           whole_archive_flag_spec=
10444           tmp_sharedflag='--shared' ;;
10445         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10446           tmp_sharedflag='-qmkshrobj'
10447           tmp_addflag= ;;
10448         nvcc*)  # Cuda Compiler Driver 2.2
10449           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'
10450           compiler_needs_object=yes
10451           ;;
10452         esac
10453         case `$CC -V 2>&1 | sed 5q` in
10454         *Sun\ C*)                       # Sun C 5.9
10455           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'
10456           compiler_needs_object=yes
10457           tmp_sharedflag='-G' ;;
10458         *Sun\ F*)                       # Sun Fortran 8.3
10459           tmp_sharedflag='-G' ;;
10460         esac
10461         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10462
10463         if test "x$supports_anon_versioning" = xyes; then
10464           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10465             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10466             echo "local: *; };" >> $output_objdir/$libname.ver~
10467             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10468         fi
10469
10470         case $cc_basename in
10471         xlf* | bgf* | bgxlf* | mpixlf*)
10472           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10473           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10474           hardcode_libdir_flag_spec=
10475           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10476           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10477           if test "x$supports_anon_versioning" = xyes; then
10478             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10479               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10480               echo "local: *; };" >> $output_objdir/$libname.ver~
10481               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10482           fi
10483           ;;
10484         esac
10485       else
10486         ld_shlibs=no
10487       fi
10488       ;;
10489
10490     netbsd*)
10491       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10492         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10493         wlarc=
10494       else
10495         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10496         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10497       fi
10498       ;;
10499
10500     solaris*)
10501       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10502         ld_shlibs=no
10503         cat <<_LT_EOF 1>&2
10504
10505 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10506 *** create shared libraries on Solaris systems.  Therefore, libtool
10507 *** is disabling shared libraries support.  We urge you to upgrade GNU
10508 *** binutils to release 2.9.1 or newer.  Another option is to modify
10509 *** your PATH or compiler configuration so that the native linker is
10510 *** used, and then restart.
10511
10512 _LT_EOF
10513       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10514         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10515         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10516       else
10517         ld_shlibs=no
10518       fi
10519       ;;
10520
10521     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10522       case `$LD -v 2>&1` in
10523         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10524         ld_shlibs=no
10525         cat <<_LT_EOF 1>&2
10526
10527 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10528 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10529 *** is disabling shared libraries support.  We urge you to upgrade GNU
10530 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10531 *** your PATH or compiler configuration so that the native linker is
10532 *** used, and then restart.
10533
10534 _LT_EOF
10535         ;;
10536         *)
10537           # For security reasons, it is highly recommended that you always
10538           # use absolute paths for naming shared libraries, and exclude the
10539           # DT_RUNPATH tag from executables and libraries.  But doing so
10540           # requires that you compile everything twice, which is a pain.
10541           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10542             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10543             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10544             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10545           else
10546             ld_shlibs=no
10547           fi
10548         ;;
10549       esac
10550       ;;
10551
10552     sunos4*)
10553       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10554       wlarc=
10555       hardcode_direct=yes
10556       hardcode_shlibpath_var=no
10557       ;;
10558
10559     *)
10560       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10561         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10562         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10563       else
10564         ld_shlibs=no
10565       fi
10566       ;;
10567     esac
10568
10569     if test "$ld_shlibs" = no; then
10570       runpath_var=
10571       hardcode_libdir_flag_spec=
10572       export_dynamic_flag_spec=
10573       whole_archive_flag_spec=
10574     fi
10575   else
10576     # PORTME fill in a description of your system's linker (not GNU ld)
10577     case $host_os in
10578     aix3*)
10579       allow_undefined_flag=unsupported
10580       always_export_symbols=yes
10581       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'
10582       # Note: this linker hardcodes the directories in LIBPATH if there
10583       # are no directories specified by -L.
10584       hardcode_minus_L=yes
10585       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10586         # Neither direct hardcoding nor static linking is supported with a
10587         # broken collect2.
10588         hardcode_direct=unsupported
10589       fi
10590       ;;
10591
10592     aix[4-9]*)
10593       if test "$host_cpu" = ia64; then
10594         # On IA64, the linker does run time linking by default, so we don't
10595         # have to do anything special.
10596         aix_use_runtimelinking=no
10597         exp_sym_flag='-Bexport'
10598         no_entry_flag=""
10599       else
10600         # If we're using GNU nm, then we don't want the "-C" option.
10601         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10602         # Also, AIX nm treats weak defined symbols like other global
10603         # defined symbols, whereas GNU nm marks them as "W".
10604         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10605           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'
10606         else
10607           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'
10608         fi
10609         aix_use_runtimelinking=no
10610
10611         # Test if we are trying to use run time linking or normal
10612         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10613         # need to do runtime linking.
10614         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10615           for ld_flag in $LDFLAGS; do
10616           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10617             aix_use_runtimelinking=yes
10618             break
10619           fi
10620           done
10621           ;;
10622         esac
10623
10624         exp_sym_flag='-bexport'
10625         no_entry_flag='-bnoentry'
10626       fi
10627
10628       # When large executables or shared objects are built, AIX ld can
10629       # have problems creating the table of contents.  If linking a library
10630       # or program results in "error TOC overflow" add -mminimal-toc to
10631       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10632       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10633
10634       archive_cmds=''
10635       hardcode_direct=yes
10636       hardcode_direct_absolute=yes
10637       hardcode_libdir_separator=':'
10638       link_all_deplibs=yes
10639       file_list_spec='${wl}-f,'
10640
10641       if test "$GCC" = yes; then
10642         case $host_os in aix4.[012]|aix4.[012].*)
10643         # We only want to do this on AIX 4.2 and lower, the check
10644         # below for broken collect2 doesn't work under 4.3+
10645           collect2name=`${CC} -print-prog-name=collect2`
10646           if test -f "$collect2name" &&
10647            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10648           then
10649           # We have reworked collect2
10650           :
10651           else
10652           # We have old collect2
10653           hardcode_direct=unsupported
10654           # It fails to find uninstalled libraries when the uninstalled
10655           # path is not listed in the libpath.  Setting hardcode_minus_L
10656           # to unsupported forces relinking
10657           hardcode_minus_L=yes
10658           hardcode_libdir_flag_spec='-L$libdir'
10659           hardcode_libdir_separator=
10660           fi
10661           ;;
10662         esac
10663         shared_flag='-shared'
10664         if test "$aix_use_runtimelinking" = yes; then
10665           shared_flag="$shared_flag "'${wl}-G'
10666         fi
10667       else
10668         # not using gcc
10669         if test "$host_cpu" = ia64; then
10670         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10671         # chokes on -Wl,-G. The following line is correct:
10672           shared_flag='-G'
10673         else
10674           if test "$aix_use_runtimelinking" = yes; then
10675             shared_flag='${wl}-G'
10676           else
10677             shared_flag='${wl}-bM:SRE'
10678           fi
10679         fi
10680       fi
10681
10682       export_dynamic_flag_spec='${wl}-bexpall'
10683       # It seems that -bexpall does not export symbols beginning with
10684       # underscore (_), so it is better to generate a list of symbols to export.
10685       always_export_symbols=yes
10686       if test "$aix_use_runtimelinking" = yes; then
10687         # Warning - without using the other runtime loading flags (-brtl),
10688         # -berok will link without error, but may produce a broken library.
10689         allow_undefined_flag='-berok'
10690         # Determine the default libpath from the value encoded in an
10691         # empty executable.
10692         if test "${lt_cv_aix_libpath+set}" = set; then
10693   aix_libpath=$lt_cv_aix_libpath
10694 else
10695   if ${lt_cv_aix_libpath_+:} false; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h.  */
10700
10701 int
10702 main ()
10703 {
10704
10705   ;
10706   return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710
10711   lt_aix_libpath_sed='
10712       /Import File Strings/,/^$/ {
10713           /^0/ {
10714               s/^0  *\([^ ]*\) *$/\1/
10715               p
10716           }
10717       }'
10718   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10719   # Check for a 64-bit object if we didn't find anything.
10720   if test -z "$lt_cv_aix_libpath_"; then
10721     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10722   fi
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext \
10725     conftest$ac_exeext conftest.$ac_ext
10726   if test -z "$lt_cv_aix_libpath_"; then
10727     lt_cv_aix_libpath_="/usr/lib:/lib"
10728   fi
10729
10730 fi
10731
10732   aix_libpath=$lt_cv_aix_libpath_
10733 fi
10734
10735         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10736         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"
10737       else
10738         if test "$host_cpu" = ia64; then
10739           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10740           allow_undefined_flag="-z nodefs"
10741           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"
10742         else
10743          # Determine the default libpath from the value encoded in an
10744          # empty executable.
10745          if test "${lt_cv_aix_libpath+set}" = set; then
10746   aix_libpath=$lt_cv_aix_libpath
10747 else
10748   if ${lt_cv_aix_libpath_+:} false; then :
10749   $as_echo_n "(cached) " >&6
10750 else
10751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h.  */
10753
10754 int
10755 main ()
10756 {
10757
10758   ;
10759   return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"; then :
10763
10764   lt_aix_libpath_sed='
10765       /Import File Strings/,/^$/ {
10766           /^0/ {
10767               s/^0  *\([^ ]*\) *$/\1/
10768               p
10769           }
10770       }'
10771   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10772   # Check for a 64-bit object if we didn't find anything.
10773   if test -z "$lt_cv_aix_libpath_"; then
10774     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10775   fi
10776 fi
10777 rm -f core conftest.err conftest.$ac_objext \
10778     conftest$ac_exeext conftest.$ac_ext
10779   if test -z "$lt_cv_aix_libpath_"; then
10780     lt_cv_aix_libpath_="/usr/lib:/lib"
10781   fi
10782
10783 fi
10784
10785   aix_libpath=$lt_cv_aix_libpath_
10786 fi
10787
10788          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10789           # Warning - without using the other run time loading flags,
10790           # -berok will link without error, but may produce a broken library.
10791           no_undefined_flag=' ${wl}-bernotok'
10792           allow_undefined_flag=' ${wl}-berok'
10793           if test "$with_gnu_ld" = yes; then
10794             # We only use this code for GNU lds that support --whole-archive.
10795             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10796           else
10797             # Exported symbols can be pulled into shared objects from archives
10798             whole_archive_flag_spec='$convenience'
10799           fi
10800           archive_cmds_need_lc=yes
10801           # This is similar to how AIX traditionally builds its shared libraries.
10802           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'
10803         fi
10804       fi
10805       ;;
10806
10807     amigaos*)
10808       case $host_cpu in
10809       powerpc)
10810             # see comment about AmigaOS4 .so support
10811             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10812             archive_expsym_cmds=''
10813         ;;
10814       m68k)
10815             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)'
10816             hardcode_libdir_flag_spec='-L$libdir'
10817             hardcode_minus_L=yes
10818         ;;
10819       esac
10820       ;;
10821
10822     bsdi[45]*)
10823       export_dynamic_flag_spec=-rdynamic
10824       ;;
10825
10826     cygwin* | mingw* | pw32* | cegcc*)
10827       # When not using gcc, we currently assume that we are using
10828       # Microsoft Visual C++.
10829       # hardcode_libdir_flag_spec is actually meaningless, as there is
10830       # no search path for DLLs.
10831       case $cc_basename in
10832       cl*)
10833         # Native MSVC
10834         hardcode_libdir_flag_spec=' '
10835         allow_undefined_flag=unsupported
10836         always_export_symbols=yes
10837         file_list_spec='@'
10838         # Tell ltmain to make .lib files, not .a files.
10839         libext=lib
10840         # Tell ltmain to make .dll files, not .so files.
10841         shrext_cmds=".dll"
10842         # FIXME: Setting linknames here is a bad hack.
10843         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10844         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10845             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10846           else
10847             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10848           fi~
10849           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10850           linknames='
10851         # The linker will not automatically build a static lib if we build a DLL.
10852         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10853         enable_shared_with_static_runtimes=yes
10854         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10855         # Don't use ranlib
10856         old_postinstall_cmds='chmod 644 $oldlib'
10857         postlink_cmds='lt_outputfile="@OUTPUT@"~
10858           lt_tool_outputfile="@TOOL_OUTPUT@"~
10859           case $lt_outputfile in
10860             *.exe|*.EXE) ;;
10861             *)
10862               lt_outputfile="$lt_outputfile.exe"
10863               lt_tool_outputfile="$lt_tool_outputfile.exe"
10864               ;;
10865           esac~
10866           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10867             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10868             $RM "$lt_outputfile.manifest";
10869           fi'
10870         ;;
10871       *)
10872         # Assume MSVC wrapper
10873         hardcode_libdir_flag_spec=' '
10874         allow_undefined_flag=unsupported
10875         # Tell ltmain to make .lib files, not .a files.
10876         libext=lib
10877         # Tell ltmain to make .dll files, not .so files.
10878         shrext_cmds=".dll"
10879         # FIXME: Setting linknames here is a bad hack.
10880         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10881         # The linker will automatically build a .lib file if we build a DLL.
10882         old_archive_from_new_cmds='true'
10883         # FIXME: Should let the user specify the lib program.
10884         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10885         enable_shared_with_static_runtimes=yes
10886         ;;
10887       esac
10888       ;;
10889
10890     darwin* | rhapsody*)
10891
10892
10893   archive_cmds_need_lc=no
10894   hardcode_direct=no
10895   hardcode_automatic=yes
10896   hardcode_shlibpath_var=unsupported
10897   if test "$lt_cv_ld_force_load" = "yes"; then
10898     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\"`'
10899   else
10900     whole_archive_flag_spec=''
10901   fi
10902   link_all_deplibs=yes
10903   allow_undefined_flag="$_lt_dar_allow_undefined"
10904   case $cc_basename in
10905      ifort*) _lt_dar_can_shared=yes ;;
10906      *) _lt_dar_can_shared=$GCC ;;
10907   esac
10908   if test "$_lt_dar_can_shared" = "yes"; then
10909     output_verbose_link_cmd=func_echo_all
10910     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10911     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10912     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}"
10913     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}"
10914
10915   else
10916   ld_shlibs=no
10917   fi
10918
10919       ;;
10920
10921     dgux*)
10922       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10923       hardcode_libdir_flag_spec='-L$libdir'
10924       hardcode_shlibpath_var=no
10925       ;;
10926
10927     freebsd1*)
10928       ld_shlibs=no
10929       ;;
10930
10931     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10932     # support.  Future versions do this automatically, but an explicit c++rt0.o
10933     # does not break anything, and helps significantly (at the cost of a little
10934     # extra space).
10935     freebsd2.2*)
10936       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10937       hardcode_libdir_flag_spec='-R$libdir'
10938       hardcode_direct=yes
10939       hardcode_shlibpath_var=no
10940       ;;
10941
10942     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10943     freebsd2*)
10944       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10945       hardcode_direct=yes
10946       hardcode_minus_L=yes
10947       hardcode_shlibpath_var=no
10948       ;;
10949
10950     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10951     freebsd* | dragonfly*)
10952       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10953       hardcode_libdir_flag_spec='-R$libdir'
10954       hardcode_direct=yes
10955       hardcode_shlibpath_var=no
10956       ;;
10957
10958     hpux9*)
10959       if test "$GCC" = yes; then
10960         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'
10961       else
10962         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'
10963       fi
10964       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10965       hardcode_libdir_separator=:
10966       hardcode_direct=yes
10967
10968       # hardcode_minus_L: Not really in the search PATH,
10969       # but as the default location of the library.
10970       hardcode_minus_L=yes
10971       export_dynamic_flag_spec='${wl}-E'
10972       ;;
10973
10974     hpux10*)
10975       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10976         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10977       else
10978         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10979       fi
10980       if test "$with_gnu_ld" = no; then
10981         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10982         hardcode_libdir_flag_spec_ld='+b $libdir'
10983         hardcode_libdir_separator=:
10984         hardcode_direct=yes
10985         hardcode_direct_absolute=yes
10986         export_dynamic_flag_spec='${wl}-E'
10987         # hardcode_minus_L: Not really in the search PATH,
10988         # but as the default location of the library.
10989         hardcode_minus_L=yes
10990       fi
10991       ;;
10992
10993     hpux11*)
10994       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10995         case $host_cpu in
10996         hppa*64*)
10997           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10998           ;;
10999         ia64*)
11000           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11001           ;;
11002         *)
11003           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11004           ;;
11005         esac
11006       else
11007         case $host_cpu in
11008         hppa*64*)
11009           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11010           ;;
11011         ia64*)
11012           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11013           ;;
11014         *)
11015
11016           # Older versions of the 11.00 compiler do not understand -b yet
11017           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11018           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11019 $as_echo_n "checking if $CC understands -b... " >&6; }
11020 if ${lt_cv_prog_compiler__b+:} false; then :
11021   $as_echo_n "(cached) " >&6
11022 else
11023   lt_cv_prog_compiler__b=no
11024    save_LDFLAGS="$LDFLAGS"
11025    LDFLAGS="$LDFLAGS -b"
11026    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11027    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11028      # The linker can only warn and ignore the option if not recognized
11029      # So say no if there are warnings
11030      if test -s conftest.err; then
11031        # Append any errors to the config.log.
11032        cat conftest.err 1>&5
11033        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11034        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11035        if diff conftest.exp conftest.er2 >/dev/null; then
11036          lt_cv_prog_compiler__b=yes
11037        fi
11038      else
11039        lt_cv_prog_compiler__b=yes
11040      fi
11041    fi
11042    $RM -r conftest*
11043    LDFLAGS="$save_LDFLAGS"
11044
11045 fi
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11047 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11048
11049 if test x"$lt_cv_prog_compiler__b" = xyes; then
11050     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11051 else
11052     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11053 fi
11054
11055           ;;
11056         esac
11057       fi
11058       if test "$with_gnu_ld" = no; then
11059         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11060         hardcode_libdir_separator=:
11061
11062         case $host_cpu in
11063         hppa*64*|ia64*)
11064           hardcode_direct=no
11065           hardcode_shlibpath_var=no
11066           ;;
11067         *)
11068           hardcode_direct=yes
11069           hardcode_direct_absolute=yes
11070           export_dynamic_flag_spec='${wl}-E'
11071
11072           # hardcode_minus_L: Not really in the search PATH,
11073           # but as the default location of the library.
11074           hardcode_minus_L=yes
11075           ;;
11076         esac
11077       fi
11078       ;;
11079
11080     irix5* | irix6* | nonstopux*)
11081       if test "$GCC" = yes; then
11082         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'
11083         # Try to use the -exported_symbol ld option, if it does not
11084         # work, assume that -exports_file does not work either and
11085         # implicitly export all symbols.
11086         # This should be the same for all languages, so no per-tag cache variable.
11087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11088 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11089 if ${lt_cv_irix_exported_symbol+:} false; then :
11090   $as_echo_n "(cached) " >&6
11091 else
11092   save_LDFLAGS="$LDFLAGS"
11093            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11094            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095 /* end confdefs.h.  */
11096 int foo (void) { return 0; }
11097 _ACEOF
11098 if ac_fn_c_try_link "$LINENO"; then :
11099   lt_cv_irix_exported_symbol=yes
11100 else
11101   lt_cv_irix_exported_symbol=no
11102 fi
11103 rm -f core conftest.err conftest.$ac_objext \
11104     conftest$ac_exeext conftest.$ac_ext
11105            LDFLAGS="$save_LDFLAGS"
11106 fi
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11108 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11109         if test "$lt_cv_irix_exported_symbol" = yes; then
11110           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'
11111         fi
11112       else
11113         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'
11114         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'
11115       fi
11116       archive_cmds_need_lc='no'
11117       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11118       hardcode_libdir_separator=:
11119       inherit_rpath=yes
11120       link_all_deplibs=yes
11121       ;;
11122
11123     netbsd*)
11124       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11125         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11126       else
11127         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11128       fi
11129       hardcode_libdir_flag_spec='-R$libdir'
11130       hardcode_direct=yes
11131       hardcode_shlibpath_var=no
11132       ;;
11133
11134     newsos6)
11135       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11136       hardcode_direct=yes
11137       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11138       hardcode_libdir_separator=:
11139       hardcode_shlibpath_var=no
11140       ;;
11141
11142     *nto* | *qnx*)
11143       ;;
11144
11145     openbsd*)
11146       if test -f /usr/libexec/ld.so; then
11147         hardcode_direct=yes
11148         hardcode_shlibpath_var=no
11149         hardcode_direct_absolute=yes
11150         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11151           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11152           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11153           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11154           export_dynamic_flag_spec='${wl}-E'
11155         else
11156           case $host_os in
11157            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11158              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11159              hardcode_libdir_flag_spec='-R$libdir'
11160              ;;
11161            *)
11162              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11163              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11164              ;;
11165           esac
11166         fi
11167       else
11168         ld_shlibs=no
11169       fi
11170       ;;
11171
11172     os2*)
11173       hardcode_libdir_flag_spec='-L$libdir'
11174       hardcode_minus_L=yes
11175       allow_undefined_flag=unsupported
11176       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'
11177       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11178       ;;
11179
11180     osf3*)
11181       if test "$GCC" = yes; then
11182         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11183         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'
11184       else
11185         allow_undefined_flag=' -expect_unresolved \*'
11186         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'
11187       fi
11188       archive_cmds_need_lc='no'
11189       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11190       hardcode_libdir_separator=:
11191       ;;
11192
11193     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11194       if test "$GCC" = yes; then
11195         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11196         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'
11197         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11198       else
11199         allow_undefined_flag=' -expect_unresolved \*'
11200         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'
11201         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~
11202         $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'
11203
11204         # Both c and cxx compiler support -rpath directly
11205         hardcode_libdir_flag_spec='-rpath $libdir'
11206       fi
11207       archive_cmds_need_lc='no'
11208       hardcode_libdir_separator=:
11209       ;;
11210
11211     solaris*)
11212       no_undefined_flag=' -z defs'
11213       if test "$GCC" = yes; then
11214         wlarc='${wl}'
11215         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11216         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11217           $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'
11218       else
11219         case `$CC -V 2>&1` in
11220         *"Compilers 5.0"*)
11221           wlarc=''
11222           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11223           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11224           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11225           ;;
11226         *)
11227           wlarc='${wl}'
11228           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11229           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11230           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11231           ;;
11232         esac
11233       fi
11234       hardcode_libdir_flag_spec='-R$libdir'
11235       hardcode_shlibpath_var=no
11236       case $host_os in
11237       solaris2.[0-5] | solaris2.[0-5].*) ;;
11238       *)
11239         # The compiler driver will combine and reorder linker options,
11240         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11241         # but is careful enough not to reorder.
11242         # Supported since Solaris 2.6 (maybe 2.5.1?)
11243         if test "$GCC" = yes; then
11244           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11245         else
11246           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11247         fi
11248         ;;
11249       esac
11250       link_all_deplibs=yes
11251       ;;
11252
11253     sunos4*)
11254       if test "x$host_vendor" = xsequent; then
11255         # Use $CC to link under sequent, because it throws in some extra .o
11256         # files that make .init and .fini sections work.
11257         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11258       else
11259         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11260       fi
11261       hardcode_libdir_flag_spec='-L$libdir'
11262       hardcode_direct=yes
11263       hardcode_minus_L=yes
11264       hardcode_shlibpath_var=no
11265       ;;
11266
11267     sysv4)
11268       case $host_vendor in
11269         sni)
11270           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271           hardcode_direct=yes # is this really true???
11272         ;;
11273         siemens)
11274           ## LD is ld it makes a PLAMLIB
11275           ## CC just makes a GrossModule.
11276           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11277           reload_cmds='$CC -r -o $output$reload_objs'
11278           hardcode_direct=no
11279         ;;
11280         motorola)
11281           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11282           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11283         ;;
11284       esac
11285       runpath_var='LD_RUN_PATH'
11286       hardcode_shlibpath_var=no
11287       ;;
11288
11289     sysv4.3*)
11290       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11291       hardcode_shlibpath_var=no
11292       export_dynamic_flag_spec='-Bexport'
11293       ;;
11294
11295     sysv4*MP*)
11296       if test -d /usr/nec; then
11297         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11298         hardcode_shlibpath_var=no
11299         runpath_var=LD_RUN_PATH
11300         hardcode_runpath_var=yes
11301         ld_shlibs=yes
11302       fi
11303       ;;
11304
11305     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11306       no_undefined_flag='${wl}-z,text'
11307       archive_cmds_need_lc=no
11308       hardcode_shlibpath_var=no
11309       runpath_var='LD_RUN_PATH'
11310
11311       if test "$GCC" = yes; then
11312         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314       else
11315         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11316         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11317       fi
11318       ;;
11319
11320     sysv5* | sco3.2v5* | sco5v6*)
11321       # Note: We can NOT use -z defs as we might desire, because we do not
11322       # link with -lc, and that would cause any symbols used from libc to
11323       # always be unresolved, which means just about no library would
11324       # ever link correctly.  If we're not using GNU ld we use -z text
11325       # though, which does catch some bad symbols but isn't as heavy-handed
11326       # as -z defs.
11327       no_undefined_flag='${wl}-z,text'
11328       allow_undefined_flag='${wl}-z,nodefs'
11329       archive_cmds_need_lc=no
11330       hardcode_shlibpath_var=no
11331       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11332       hardcode_libdir_separator=':'
11333       link_all_deplibs=yes
11334       export_dynamic_flag_spec='${wl}-Bexport'
11335       runpath_var='LD_RUN_PATH'
11336
11337       if test "$GCC" = yes; then
11338         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11340       else
11341         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11342         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11343       fi
11344       ;;
11345
11346     uts4*)
11347       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11348       hardcode_libdir_flag_spec='-L$libdir'
11349       hardcode_shlibpath_var=no
11350       ;;
11351
11352     *)
11353       ld_shlibs=no
11354       ;;
11355     esac
11356
11357     if test x$host_vendor = xsni; then
11358       case $host in
11359       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11360         export_dynamic_flag_spec='${wl}-Blargedynsym'
11361         ;;
11362       esac
11363     fi
11364   fi
11365
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11367 $as_echo "$ld_shlibs" >&6; }
11368 test "$ld_shlibs" = no && can_build_shared=no
11369
11370 with_gnu_ld=$with_gnu_ld
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386 #
11387 # Do we need to explicitly link libc?
11388 #
11389 case "x$archive_cmds_need_lc" in
11390 x|xyes)
11391   # Assume -lc should be added
11392   archive_cmds_need_lc=yes
11393
11394   if test "$enable_shared" = yes && test "$GCC" = yes; then
11395     case $archive_cmds in
11396     *'~'*)
11397       # FIXME: we may have to deal with multi-command sequences.
11398       ;;
11399     '$CC '*)
11400       # Test whether the compiler implicitly links with -lc since on some
11401       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11402       # to ld, don't add -lc before -lgcc.
11403       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11404 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11405 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11406   $as_echo_n "(cached) " >&6
11407 else
11408   $RM conftest*
11409         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11410
11411         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11412   (eval $ac_compile) 2>&5
11413   ac_status=$?
11414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11415   test $ac_status = 0; } 2>conftest.err; then
11416           soname=conftest
11417           lib=conftest
11418           libobjs=conftest.$ac_objext
11419           deplibs=
11420           wl=$lt_prog_compiler_wl
11421           pic_flag=$lt_prog_compiler_pic
11422           compiler_flags=-v
11423           linker_flags=-v
11424           verstring=
11425           output_objdir=.
11426           libname=conftest
11427           lt_save_allow_undefined_flag=$allow_undefined_flag
11428           allow_undefined_flag=
11429           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11430   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11431   ac_status=$?
11432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11433   test $ac_status = 0; }
11434           then
11435             lt_cv_archive_cmds_need_lc=no
11436           else
11437             lt_cv_archive_cmds_need_lc=yes
11438           fi
11439           allow_undefined_flag=$lt_save_allow_undefined_flag
11440         else
11441           cat conftest.err 1>&5
11442         fi
11443         $RM conftest*
11444
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11447 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11448       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11449       ;;
11450     esac
11451   fi
11452   ;;
11453 esac
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11612 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11613
11614 if test "$GCC" = yes; then
11615   case $host_os in
11616     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11617     *) lt_awk_arg="/^libraries:/" ;;
11618   esac
11619   case $host_os in
11620     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11621     *) lt_sed_strip_eq="s,=/,/,g" ;;
11622   esac
11623   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11624   case $lt_search_path_spec in
11625   *\;*)
11626     # if the path contains ";" then we assume it to be the separator
11627     # otherwise default to the standard path separator (i.e. ":") - it is
11628     # assumed that no part of a normal pathname contains ";" but that should
11629     # okay in the real world where ";" in dirpaths is itself problematic.
11630     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11631     ;;
11632   *)
11633     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11634     ;;
11635   esac
11636   # Ok, now we have the path, separated by spaces, we can step through it
11637   # and add multilib dir if necessary.
11638   lt_tmp_lt_search_path_spec=
11639   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11640   for lt_sys_path in $lt_search_path_spec; do
11641     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11642       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11643     else
11644       test -d "$lt_sys_path" && \
11645         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11646     fi
11647   done
11648   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11649 BEGIN {RS=" "; FS="/|\n";} {
11650   lt_foo="";
11651   lt_count=0;
11652   for (lt_i = NF; lt_i > 0; lt_i--) {
11653     if ($lt_i != "" && $lt_i != ".") {
11654       if ($lt_i == "..") {
11655         lt_count++;
11656       } else {
11657         if (lt_count == 0) {
11658           lt_foo="/" $lt_i lt_foo;
11659         } else {
11660           lt_count--;
11661         }
11662       }
11663     }
11664   }
11665   if (lt_foo != "") { lt_freq[lt_foo]++; }
11666   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11667 }'`
11668   # AWK program above erroneously prepends '/' to C:/dos/paths
11669   # for these hosts.
11670   case $host_os in
11671     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11672       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11673   esac
11674   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11675 else
11676   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11677 fi
11678 library_names_spec=
11679 libname_spec='lib$name'
11680 soname_spec=
11681 shrext_cmds=".so"
11682 postinstall_cmds=
11683 postuninstall_cmds=
11684 finish_cmds=
11685 finish_eval=
11686 shlibpath_var=
11687 shlibpath_overrides_runpath=unknown
11688 version_type=none
11689 dynamic_linker="$host_os ld.so"
11690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11691 need_lib_prefix=unknown
11692 hardcode_into_libs=no
11693
11694 # when you set need_version to no, make sure it does not cause -set_version
11695 # flags to be left without arguments
11696 need_version=unknown
11697
11698 case $host_os in
11699 aix3*)
11700   version_type=linux
11701   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11702   shlibpath_var=LIBPATH
11703
11704   # AIX 3 has no versioning support, so we append a major version to the name.
11705   soname_spec='${libname}${release}${shared_ext}$major'
11706   ;;
11707
11708 aix[4-9]*)
11709   version_type=linux
11710   need_lib_prefix=no
11711   need_version=no
11712   hardcode_into_libs=yes
11713   if test "$host_cpu" = ia64; then
11714     # AIX 5 supports IA64
11715     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11716     shlibpath_var=LD_LIBRARY_PATH
11717   else
11718     # With GCC up to 2.95.x, collect2 would create an import file
11719     # for dependence libraries.  The import file would start with
11720     # the line `#! .'.  This would cause the generated library to
11721     # depend on `.', always an invalid library.  This was fixed in
11722     # development snapshots of GCC prior to 3.0.
11723     case $host_os in
11724       aix4 | aix4.[01] | aix4.[01].*)
11725       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11726            echo ' yes '
11727            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11728         :
11729       else
11730         can_build_shared=no
11731       fi
11732       ;;
11733     esac
11734     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11735     # soname into executable. Probably we can add versioning support to
11736     # collect2, so additional links can be useful in future.
11737     if test "$aix_use_runtimelinking" = yes; then
11738       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11739       # instead of lib<name>.a to let people know that these are not
11740       # typical AIX shared libraries.
11741       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742     else
11743       # We preserve .a as extension for shared libraries through AIX4.2
11744       # and later when we are not doing run time linking.
11745       library_names_spec='${libname}${release}.a $libname.a'
11746       soname_spec='${libname}${release}${shared_ext}$major'
11747     fi
11748     shlibpath_var=LIBPATH
11749   fi
11750   ;;
11751
11752 amigaos*)
11753   case $host_cpu in
11754   powerpc)
11755     # Since July 2007 AmigaOS4 officially supports .so libraries.
11756     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758     ;;
11759   m68k)
11760     library_names_spec='$libname.ixlibrary $libname.a'
11761     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11762     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'
11763     ;;
11764   esac
11765   ;;
11766
11767 beos*)
11768   library_names_spec='${libname}${shared_ext}'
11769   dynamic_linker="$host_os ld.so"
11770   shlibpath_var=LIBRARY_PATH
11771   ;;
11772
11773 bsdi[45]*)
11774   version_type=linux
11775   need_version=no
11776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11777   soname_spec='${libname}${release}${shared_ext}$major'
11778   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11779   shlibpath_var=LD_LIBRARY_PATH
11780   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11781   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11782   # the default ld.so.conf also contains /usr/contrib/lib and
11783   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11784   # libtool to hard-code these into programs
11785   ;;
11786
11787 cygwin* | mingw* | pw32* | cegcc*)
11788   version_type=windows
11789   shrext_cmds=".dll"
11790   need_version=no
11791   need_lib_prefix=no
11792
11793   case $GCC,$cc_basename in
11794   yes,*)
11795     # gcc
11796     library_names_spec='$libname.dll.a'
11797     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11798     postinstall_cmds='base_file=`basename \${file}`~
11799       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11800       dldir=$destdir/`dirname \$dlpath`~
11801       test -d \$dldir || mkdir -p \$dldir~
11802       $install_prog $dir/$dlname \$dldir/$dlname~
11803       chmod a+x \$dldir/$dlname~
11804       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11805         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11806       fi'
11807     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11808       dlpath=$dir/\$dldll~
11809        $RM \$dlpath'
11810     shlibpath_overrides_runpath=yes
11811
11812     case $host_os in
11813     cygwin*)
11814       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11815       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11816
11817       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11818       ;;
11819     mingw* | cegcc*)
11820       # MinGW DLLs use traditional 'lib' prefix
11821       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11822       ;;
11823     pw32*)
11824       # pw32 DLLs use 'pw' prefix rather than 'lib'
11825       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11826       ;;
11827     esac
11828     dynamic_linker='Win32 ld.exe'
11829     ;;
11830
11831   *,cl*)
11832     # Native MSVC
11833     libname_spec='$name'
11834     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11835     library_names_spec='${libname}.dll.lib'
11836
11837     case $build_os in
11838     mingw*)
11839       sys_lib_search_path_spec=
11840       lt_save_ifs=$IFS
11841       IFS=';'
11842       for lt_path in $LIB
11843       do
11844         IFS=$lt_save_ifs
11845         # Let DOS variable expansion print the short 8.3 style file name.
11846         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11847         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11848       done
11849       IFS=$lt_save_ifs
11850       # Convert to MSYS style.
11851       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11852       ;;
11853     cygwin*)
11854       # Convert to unix form, then to dos form, then back to unix form
11855       # but this time dos style (no spaces!) so that the unix form looks
11856       # like /cygdrive/c/PROGRA~1:/cygdr...
11857       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11858       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11859       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11860       ;;
11861     *)
11862       sys_lib_search_path_spec="$LIB"
11863       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11864         # It is most probably a Windows format PATH.
11865         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11866       else
11867         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11868       fi
11869       # FIXME: find the short name or the path components, as spaces are
11870       # common. (e.g. "Program Files" -> "PROGRA~1")
11871       ;;
11872     esac
11873
11874     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11875     postinstall_cmds='base_file=`basename \${file}`~
11876       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11877       dldir=$destdir/`dirname \$dlpath`~
11878       test -d \$dldir || mkdir -p \$dldir~
11879       $install_prog $dir/$dlname \$dldir/$dlname'
11880     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11881       dlpath=$dir/\$dldll~
11882        $RM \$dlpath'
11883     shlibpath_overrides_runpath=yes
11884     dynamic_linker='Win32 link.exe'
11885     ;;
11886
11887   *)
11888     # Assume MSVC wrapper
11889     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11890     dynamic_linker='Win32 ld.exe'
11891     ;;
11892   esac
11893   # FIXME: first we should search . and the directory the executable is in
11894   shlibpath_var=PATH
11895   ;;
11896
11897 darwin* | rhapsody*)
11898   dynamic_linker="$host_os dyld"
11899   version_type=darwin
11900   need_lib_prefix=no
11901   need_version=no
11902   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11903   soname_spec='${libname}${release}${major}$shared_ext'
11904   shlibpath_overrides_runpath=yes
11905   shlibpath_var=DYLD_LIBRARY_PATH
11906   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11907
11908   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11909   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11910   ;;
11911
11912 dgux*)
11913   version_type=linux
11914   need_lib_prefix=no
11915   need_version=no
11916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11917   soname_spec='${libname}${release}${shared_ext}$major'
11918   shlibpath_var=LD_LIBRARY_PATH
11919   ;;
11920
11921 freebsd1*)
11922   dynamic_linker=no
11923   ;;
11924
11925 freebsd* | dragonfly*)
11926   # DragonFly does not have aout.  When/if they implement a new
11927   # versioning mechanism, adjust this.
11928   if test -x /usr/bin/objformat; then
11929     objformat=`/usr/bin/objformat`
11930   else
11931     case $host_os in
11932     freebsd[123]*) objformat=aout ;;
11933     *) objformat=elf ;;
11934     esac
11935   fi
11936   version_type=freebsd-$objformat
11937   case $version_type in
11938     freebsd-elf*)
11939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11940       need_version=no
11941       need_lib_prefix=no
11942       ;;
11943     freebsd-*)
11944       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11945       need_version=yes
11946       ;;
11947   esac
11948   shlibpath_var=LD_LIBRARY_PATH
11949   case $host_os in
11950   freebsd2*)
11951     shlibpath_overrides_runpath=yes
11952     ;;
11953   freebsd3.[01]* | freebsdelf3.[01]*)
11954     shlibpath_overrides_runpath=yes
11955     hardcode_into_libs=yes
11956     ;;
11957   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11958   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11959     shlibpath_overrides_runpath=no
11960     hardcode_into_libs=yes
11961     ;;
11962   *) # from 4.6 on, and DragonFly
11963     shlibpath_overrides_runpath=yes
11964     hardcode_into_libs=yes
11965     ;;
11966   esac
11967   ;;
11968
11969 gnu*)
11970   version_type=linux
11971   need_lib_prefix=no
11972   need_version=no
11973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11974   soname_spec='${libname}${release}${shared_ext}$major'
11975   shlibpath_var=LD_LIBRARY_PATH
11976   hardcode_into_libs=yes
11977   ;;
11978
11979 haiku*)
11980   version_type=linux
11981   need_lib_prefix=no
11982   need_version=no
11983   dynamic_linker="$host_os runtime_loader"
11984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11985   soname_spec='${libname}${release}${shared_ext}$major'
11986   shlibpath_var=LIBRARY_PATH
11987   shlibpath_overrides_runpath=yes
11988   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11989   hardcode_into_libs=yes
11990   ;;
11991
11992 hpux9* | hpux10* | hpux11*)
11993   # Give a soname corresponding to the major version so that dld.sl refuses to
11994   # link against other versions.
11995   version_type=sunos
11996   need_lib_prefix=no
11997   need_version=no
11998   case $host_cpu in
11999   ia64*)
12000     shrext_cmds='.so'
12001     hardcode_into_libs=yes
12002     dynamic_linker="$host_os dld.so"
12003     shlibpath_var=LD_LIBRARY_PATH
12004     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006     soname_spec='${libname}${release}${shared_ext}$major'
12007     if test "X$HPUX_IA64_MODE" = X32; then
12008       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12009     else
12010       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12011     fi
12012     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12013     ;;
12014   hppa*64*)
12015     shrext_cmds='.sl'
12016     hardcode_into_libs=yes
12017     dynamic_linker="$host_os dld.sl"
12018     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12019     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12021     soname_spec='${libname}${release}${shared_ext}$major'
12022     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12023     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12024     ;;
12025   *)
12026     shrext_cmds='.sl'
12027     dynamic_linker="$host_os dld.sl"
12028     shlibpath_var=SHLIB_PATH
12029     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12031     soname_spec='${libname}${release}${shared_ext}$major'
12032     ;;
12033   esac
12034   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12035   postinstall_cmds='chmod 555 $lib'
12036   # or fails outright, so override atomically:
12037   install_override_mode=555
12038   ;;
12039
12040 interix[3-9]*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12047   shlibpath_var=LD_LIBRARY_PATH
12048   shlibpath_overrides_runpath=no
12049   hardcode_into_libs=yes
12050   ;;
12051
12052 irix5* | irix6* | nonstopux*)
12053   case $host_os in
12054     nonstopux*) version_type=nonstopux ;;
12055     *)
12056         if test "$lt_cv_prog_gnu_ld" = yes; then
12057                 version_type=linux
12058         else
12059                 version_type=irix
12060         fi ;;
12061   esac
12062   need_lib_prefix=no
12063   need_version=no
12064   soname_spec='${libname}${release}${shared_ext}$major'
12065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12066   case $host_os in
12067   irix5* | nonstopux*)
12068     libsuff= shlibsuff=
12069     ;;
12070   *)
12071     case $LD in # libtool.m4 will add one of these switches to LD
12072     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12073       libsuff= shlibsuff= libmagic=32-bit;;
12074     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12075       libsuff=32 shlibsuff=N32 libmagic=N32;;
12076     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12077       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12078     *) libsuff= shlibsuff= libmagic=never-match;;
12079     esac
12080     ;;
12081   esac
12082   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12083   shlibpath_overrides_runpath=no
12084   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12085   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12086   hardcode_into_libs=yes
12087   ;;
12088
12089 # No shared lib support for Linux oldld, aout, or coff.
12090 linux*oldld* | linux*aout* | linux*coff*)
12091   dynamic_linker=no
12092   ;;
12093
12094 # This must be Linux ELF.
12095 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12096   version_type=linux
12097   need_lib_prefix=no
12098   need_version=no
12099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12100   soname_spec='${libname}${release}${shared_ext}$major'
12101   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12102   shlibpath_var=LD_LIBRARY_PATH
12103   shlibpath_overrides_runpath=no
12104
12105   # Some binutils ld are patched to set DT_RUNPATH
12106   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12107   $as_echo_n "(cached) " >&6
12108 else
12109   lt_cv_shlibpath_overrides_runpath=no
12110     save_LDFLAGS=$LDFLAGS
12111     save_libdir=$libdir
12112     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12113          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12114     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h.  */
12116
12117 int
12118 main ()
12119 {
12120
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 if ac_fn_c_try_link "$LINENO"; then :
12126   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12127   lt_cv_shlibpath_overrides_runpath=yes
12128 fi
12129 fi
12130 rm -f core conftest.err conftest.$ac_objext \
12131     conftest$ac_exeext conftest.$ac_ext
12132     LDFLAGS=$save_LDFLAGS
12133     libdir=$save_libdir
12134
12135 fi
12136
12137   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12138
12139   # This implies no fast_install, which is unacceptable.
12140   # Some rework will be needed to allow for fast_install
12141   # before this can be enabled.
12142   hardcode_into_libs=yes
12143
12144   # Append ld.so.conf contents to the search path
12145   if test -f /etc/ld.so.conf; then
12146     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' ' '`
12147     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12148   fi
12149
12150   # We used to test for /lib/ld.so.1 and disable shared libraries on
12151   # powerpc, because MkLinux only supported shared libraries with the
12152   # GNU dynamic linker.  Since this was broken with cross compilers,
12153   # most powerpc-linux boxes support dynamic linking these days and
12154   # people can always --disable-shared, the test was removed, and we
12155   # assume the GNU/Linux dynamic linker is in use.
12156   dynamic_linker='GNU/Linux ld.so'
12157   ;;
12158
12159 netbsd*)
12160   version_type=sunos
12161   need_lib_prefix=no
12162   need_version=no
12163   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12165     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12166     dynamic_linker='NetBSD (a.out) ld.so'
12167   else
12168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12169     soname_spec='${libname}${release}${shared_ext}$major'
12170     dynamic_linker='NetBSD ld.elf_so'
12171   fi
12172   shlibpath_var=LD_LIBRARY_PATH
12173   shlibpath_overrides_runpath=yes
12174   hardcode_into_libs=yes
12175   ;;
12176
12177 newsos6)
12178   version_type=linux
12179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12180   shlibpath_var=LD_LIBRARY_PATH
12181   shlibpath_overrides_runpath=yes
12182   ;;
12183
12184 *nto* | *qnx*)
12185   version_type=qnx
12186   need_lib_prefix=no
12187   need_version=no
12188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12189   soname_spec='${libname}${release}${shared_ext}$major'
12190   shlibpath_var=LD_LIBRARY_PATH
12191   shlibpath_overrides_runpath=no
12192   hardcode_into_libs=yes
12193   dynamic_linker='ldqnx.so'
12194   ;;
12195
12196 openbsd*)
12197   version_type=sunos
12198   sys_lib_dlsearch_path_spec="/usr/lib"
12199   need_lib_prefix=no
12200   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12201   case $host_os in
12202     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12203     *)                          need_version=no  ;;
12204   esac
12205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12206   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12207   shlibpath_var=LD_LIBRARY_PATH
12208   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12209     case $host_os in
12210       openbsd2.[89] | openbsd2.[89].*)
12211         shlibpath_overrides_runpath=no
12212         ;;
12213       *)
12214         shlibpath_overrides_runpath=yes
12215         ;;
12216       esac
12217   else
12218     shlibpath_overrides_runpath=yes
12219   fi
12220   ;;
12221
12222 os2*)
12223   libname_spec='$name'
12224   shrext_cmds=".dll"
12225   need_lib_prefix=no
12226   library_names_spec='$libname${shared_ext} $libname.a'
12227   dynamic_linker='OS/2 ld.exe'
12228   shlibpath_var=LIBPATH
12229   ;;
12230
12231 osf3* | osf4* | osf5*)
12232   version_type=osf
12233   need_lib_prefix=no
12234   need_version=no
12235   soname_spec='${libname}${release}${shared_ext}$major'
12236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12237   shlibpath_var=LD_LIBRARY_PATH
12238   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12239   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12240   ;;
12241
12242 rdos*)
12243   dynamic_linker=no
12244   ;;
12245
12246 solaris*)
12247   version_type=linux
12248   need_lib_prefix=no
12249   need_version=no
12250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251   soname_spec='${libname}${release}${shared_ext}$major'
12252   shlibpath_var=LD_LIBRARY_PATH
12253   shlibpath_overrides_runpath=yes
12254   hardcode_into_libs=yes
12255   # ldd complains unless libraries are executable
12256   postinstall_cmds='chmod +x $lib'
12257   ;;
12258
12259 sunos4*)
12260   version_type=sunos
12261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12262   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12263   shlibpath_var=LD_LIBRARY_PATH
12264   shlibpath_overrides_runpath=yes
12265   if test "$with_gnu_ld" = yes; then
12266     need_lib_prefix=no
12267   fi
12268   need_version=yes
12269   ;;
12270
12271 sysv4 | sysv4.3*)
12272   version_type=linux
12273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12274   soname_spec='${libname}${release}${shared_ext}$major'
12275   shlibpath_var=LD_LIBRARY_PATH
12276   case $host_vendor in
12277     sni)
12278       shlibpath_overrides_runpath=no
12279       need_lib_prefix=no
12280       runpath_var=LD_RUN_PATH
12281       ;;
12282     siemens)
12283       need_lib_prefix=no
12284       ;;
12285     motorola)
12286       need_lib_prefix=no
12287       need_version=no
12288       shlibpath_overrides_runpath=no
12289       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12290       ;;
12291   esac
12292   ;;
12293
12294 sysv4*MP*)
12295   if test -d /usr/nec ;then
12296     version_type=linux
12297     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12298     soname_spec='$libname${shared_ext}.$major'
12299     shlibpath_var=LD_LIBRARY_PATH
12300   fi
12301   ;;
12302
12303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12304   version_type=freebsd-elf
12305   need_lib_prefix=no
12306   need_version=no
12307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12308   soname_spec='${libname}${release}${shared_ext}$major'
12309   shlibpath_var=LD_LIBRARY_PATH
12310   shlibpath_overrides_runpath=yes
12311   hardcode_into_libs=yes
12312   if test "$with_gnu_ld" = yes; then
12313     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12314   else
12315     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12316     case $host_os in
12317       sco3.2v5*)
12318         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12319         ;;
12320     esac
12321   fi
12322   sys_lib_dlsearch_path_spec='/usr/lib'
12323   ;;
12324
12325 tpf*)
12326   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12327   version_type=linux
12328   need_lib_prefix=no
12329   need_version=no
12330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12331   shlibpath_var=LD_LIBRARY_PATH
12332   shlibpath_overrides_runpath=no
12333   hardcode_into_libs=yes
12334   ;;
12335
12336 uts4*)
12337   version_type=linux
12338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339   soname_spec='${libname}${release}${shared_ext}$major'
12340   shlibpath_var=LD_LIBRARY_PATH
12341   ;;
12342
12343 *)
12344   dynamic_linker=no
12345   ;;
12346 esac
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12348 $as_echo "$dynamic_linker" >&6; }
12349 test "$dynamic_linker" = no && can_build_shared=no
12350
12351 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12352 if test "$GCC" = yes; then
12353   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12354 fi
12355
12356 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12357   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12358 fi
12359 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12360   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12361 fi
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12455 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12456 hardcode_action=
12457 if test -n "$hardcode_libdir_flag_spec" ||
12458    test -n "$runpath_var" ||
12459    test "X$hardcode_automatic" = "Xyes" ; then
12460
12461   # We can hardcode non-existent directories.
12462   if test "$hardcode_direct" != no &&
12463      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12464      # have to relink, otherwise we might link with an installed library
12465      # when we should be linking with a yet-to-be-installed one
12466      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12467      test "$hardcode_minus_L" != no; then
12468     # Linking always hardcodes the temporary library directory.
12469     hardcode_action=relink
12470   else
12471     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12472     hardcode_action=immediate
12473   fi
12474 else
12475   # We cannot hardcode anything, or else we can only hardcode existing
12476   # directories.
12477   hardcode_action=unsupported
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12480 $as_echo "$hardcode_action" >&6; }
12481
12482 if test "$hardcode_action" = relink ||
12483    test "$inherit_rpath" = yes; then
12484   # Fast installation is not supported
12485   enable_fast_install=no
12486 elif test "$shlibpath_overrides_runpath" = yes ||
12487      test "$enable_shared" = no; then
12488   # Fast installation is not necessary
12489   enable_fast_install=needless
12490 fi
12491
12492
12493
12494
12495
12496
12497   if test "x$enable_dlopen" != xyes; then
12498   enable_dlopen=unknown
12499   enable_dlopen_self=unknown
12500   enable_dlopen_self_static=unknown
12501 else
12502   lt_cv_dlopen=no
12503   lt_cv_dlopen_libs=
12504
12505   case $host_os in
12506   beos*)
12507     lt_cv_dlopen="load_add_on"
12508     lt_cv_dlopen_libs=
12509     lt_cv_dlopen_self=yes
12510     ;;
12511
12512   mingw* | pw32* | cegcc*)
12513     lt_cv_dlopen="LoadLibrary"
12514     lt_cv_dlopen_libs=
12515     ;;
12516
12517   cygwin*)
12518     lt_cv_dlopen="dlopen"
12519     lt_cv_dlopen_libs=
12520     ;;
12521
12522   darwin*)
12523   # if libdl is installed we need to link against it
12524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12525 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12526 if ${ac_cv_lib_dl_dlopen+:} false; then :
12527   $as_echo_n "(cached) " >&6
12528 else
12529   ac_check_lib_save_LIBS=$LIBS
12530 LIBS="-ldl  $LIBS"
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h.  */
12533
12534 /* Override any GCC internal prototype to avoid an error.
12535    Use char because int might match the return type of a GCC
12536    builtin and then its argument prototype would still apply.  */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char dlopen ();
12541 int
12542 main ()
12543 {
12544 return dlopen ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_c_try_link "$LINENO"; then :
12550   ac_cv_lib_dl_dlopen=yes
12551 else
12552   ac_cv_lib_dl_dlopen=no
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext \
12555     conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12557 fi
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12559 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12560 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12561   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12562 else
12563
12564     lt_cv_dlopen="dyld"
12565     lt_cv_dlopen_libs=
12566     lt_cv_dlopen_self=yes
12567
12568 fi
12569
12570     ;;
12571
12572   *)
12573     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12574 if test "x$ac_cv_func_shl_load" = xyes; then :
12575   lt_cv_dlopen="shl_load"
12576 else
12577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12578 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12579 if ${ac_cv_lib_dld_shl_load+:} false; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582   ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-ldld  $LIBS"
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h.  */
12586
12587 /* Override any GCC internal prototype to avoid an error.
12588    Use char because int might match the return type of a GCC
12589    builtin and then its argument prototype would still apply.  */
12590 #ifdef __cplusplus
12591 extern "C"
12592 #endif
12593 char shl_load ();
12594 int
12595 main ()
12596 {
12597 return shl_load ();
12598   ;
12599   return 0;
12600 }
12601 _ACEOF
12602 if ac_fn_c_try_link "$LINENO"; then :
12603   ac_cv_lib_dld_shl_load=yes
12604 else
12605   ac_cv_lib_dld_shl_load=no
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext \
12608     conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12612 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12613 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12614   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12615 else
12616   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12617 if test "x$ac_cv_func_dlopen" = xyes; then :
12618   lt_cv_dlopen="dlopen"
12619 else
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12621 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12622 if ${ac_cv_lib_dl_dlopen+:} false; then :
12623   $as_echo_n "(cached) " >&6
12624 else
12625   ac_check_lib_save_LIBS=$LIBS
12626 LIBS="-ldl  $LIBS"
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h.  */
12629
12630 /* Override any GCC internal prototype to avoid an error.
12631    Use char because int might match the return type of a GCC
12632    builtin and then its argument prototype would still apply.  */
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636 char dlopen ();
12637 int
12638 main ()
12639 {
12640 return dlopen ();
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 if ac_fn_c_try_link "$LINENO"; then :
12646   ac_cv_lib_dl_dlopen=yes
12647 else
12648   ac_cv_lib_dl_dlopen=no
12649 fi
12650 rm -f core conftest.err conftest.$ac_objext \
12651     conftest$ac_exeext conftest.$ac_ext
12652 LIBS=$ac_check_lib_save_LIBS
12653 fi
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12655 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12656 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12657   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12658 else
12659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12660 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12661 if ${ac_cv_lib_svld_dlopen+:} false; then :
12662   $as_echo_n "(cached) " >&6
12663 else
12664   ac_check_lib_save_LIBS=$LIBS
12665 LIBS="-lsvld  $LIBS"
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h.  */
12668
12669 /* Override any GCC internal prototype to avoid an error.
12670    Use char because int might match the return type of a GCC
12671    builtin and then its argument prototype would still apply.  */
12672 #ifdef __cplusplus
12673 extern "C"
12674 #endif
12675 char dlopen ();
12676 int
12677 main ()
12678 {
12679 return dlopen ();
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 if ac_fn_c_try_link "$LINENO"; then :
12685   ac_cv_lib_svld_dlopen=yes
12686 else
12687   ac_cv_lib_svld_dlopen=no
12688 fi
12689 rm -f core conftest.err conftest.$ac_objext \
12690     conftest$ac_exeext conftest.$ac_ext
12691 LIBS=$ac_check_lib_save_LIBS
12692 fi
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12694 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12695 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12696   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12697 else
12698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12699 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12700 if ${ac_cv_lib_dld_dld_link+:} false; then :
12701   $as_echo_n "(cached) " >&6
12702 else
12703   ac_check_lib_save_LIBS=$LIBS
12704 LIBS="-ldld  $LIBS"
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h.  */
12707
12708 /* Override any GCC internal prototype to avoid an error.
12709    Use char because int might match the return type of a GCC
12710    builtin and then its argument prototype would still apply.  */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char dld_link ();
12715 int
12716 main ()
12717 {
12718 return dld_link ();
12719   ;
12720   return 0;
12721 }
12722 _ACEOF
12723 if ac_fn_c_try_link "$LINENO"; then :
12724   ac_cv_lib_dld_dld_link=yes
12725 else
12726   ac_cv_lib_dld_dld_link=no
12727 fi
12728 rm -f core conftest.err conftest.$ac_objext \
12729     conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12733 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12734 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12735   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12736 fi
12737
12738
12739 fi
12740
12741
12742 fi
12743
12744
12745 fi
12746
12747
12748 fi
12749
12750
12751 fi
12752
12753     ;;
12754   esac
12755
12756   if test "x$lt_cv_dlopen" != xno; then
12757     enable_dlopen=yes
12758   else
12759     enable_dlopen=no
12760   fi
12761
12762   case $lt_cv_dlopen in
12763   dlopen)
12764     save_CPPFLAGS="$CPPFLAGS"
12765     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12766
12767     save_LDFLAGS="$LDFLAGS"
12768     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12769
12770     save_LIBS="$LIBS"
12771     LIBS="$lt_cv_dlopen_libs $LIBS"
12772
12773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12774 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12775 if ${lt_cv_dlopen_self+:} false; then :
12776   $as_echo_n "(cached) " >&6
12777 else
12778           if test "$cross_compiling" = yes; then :
12779   lt_cv_dlopen_self=cross
12780 else
12781   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12782   lt_status=$lt_dlunknown
12783   cat > conftest.$ac_ext <<_LT_EOF
12784 #line $LINENO "configure"
12785 #include "confdefs.h"
12786
12787 #if HAVE_DLFCN_H
12788 #include <dlfcn.h>
12789 #endif
12790
12791 #include <stdio.h>
12792
12793 #ifdef RTLD_GLOBAL
12794 #  define LT_DLGLOBAL           RTLD_GLOBAL
12795 #else
12796 #  ifdef DL_GLOBAL
12797 #    define LT_DLGLOBAL         DL_GLOBAL
12798 #  else
12799 #    define LT_DLGLOBAL         0
12800 #  endif
12801 #endif
12802
12803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12804    find out it does not work in some platform. */
12805 #ifndef LT_DLLAZY_OR_NOW
12806 #  ifdef RTLD_LAZY
12807 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12808 #  else
12809 #    ifdef DL_LAZY
12810 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12811 #    else
12812 #      ifdef RTLD_NOW
12813 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12814 #      else
12815 #        ifdef DL_NOW
12816 #          define LT_DLLAZY_OR_NOW      DL_NOW
12817 #        else
12818 #          define LT_DLLAZY_OR_NOW      0
12819 #        endif
12820 #      endif
12821 #    endif
12822 #  endif
12823 #endif
12824
12825 /* When -fvisbility=hidden is used, assume the code has been annotated
12826    correspondingly for the symbols needed.  */
12827 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12828 int fnord () __attribute__((visibility("default")));
12829 #endif
12830
12831 int fnord () { return 42; }
12832 int main ()
12833 {
12834   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12835   int status = $lt_dlunknown;
12836
12837   if (self)
12838     {
12839       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12840       else
12841         {
12842           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12843           else puts (dlerror ());
12844         }
12845       /* dlclose (self); */
12846     }
12847   else
12848     puts (dlerror ());
12849
12850   return status;
12851 }
12852 _LT_EOF
12853   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12854   (eval $ac_link) 2>&5
12855   ac_status=$?
12856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12857   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12858     (./conftest; exit; ) >&5 2>/dev/null
12859     lt_status=$?
12860     case x$lt_status in
12861       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12862       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12863       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12864     esac
12865   else :
12866     # compilation failed
12867     lt_cv_dlopen_self=no
12868   fi
12869 fi
12870 rm -fr conftest*
12871
12872
12873 fi
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12875 $as_echo "$lt_cv_dlopen_self" >&6; }
12876
12877     if test "x$lt_cv_dlopen_self" = xyes; then
12878       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12879       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12880 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12881 if ${lt_cv_dlopen_self_static+:} false; then :
12882   $as_echo_n "(cached) " >&6
12883 else
12884           if test "$cross_compiling" = yes; then :
12885   lt_cv_dlopen_self_static=cross
12886 else
12887   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12888   lt_status=$lt_dlunknown
12889   cat > conftest.$ac_ext <<_LT_EOF
12890 #line $LINENO "configure"
12891 #include "confdefs.h"
12892
12893 #if HAVE_DLFCN_H
12894 #include <dlfcn.h>
12895 #endif
12896
12897 #include <stdio.h>
12898
12899 #ifdef RTLD_GLOBAL
12900 #  define LT_DLGLOBAL           RTLD_GLOBAL
12901 #else
12902 #  ifdef DL_GLOBAL
12903 #    define LT_DLGLOBAL         DL_GLOBAL
12904 #  else
12905 #    define LT_DLGLOBAL         0
12906 #  endif
12907 #endif
12908
12909 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12910    find out it does not work in some platform. */
12911 #ifndef LT_DLLAZY_OR_NOW
12912 #  ifdef RTLD_LAZY
12913 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12914 #  else
12915 #    ifdef DL_LAZY
12916 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12917 #    else
12918 #      ifdef RTLD_NOW
12919 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12920 #      else
12921 #        ifdef DL_NOW
12922 #          define LT_DLLAZY_OR_NOW      DL_NOW
12923 #        else
12924 #          define LT_DLLAZY_OR_NOW      0
12925 #        endif
12926 #      endif
12927 #    endif
12928 #  endif
12929 #endif
12930
12931 /* When -fvisbility=hidden is used, assume the code has been annotated
12932    correspondingly for the symbols needed.  */
12933 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12934 int fnord () __attribute__((visibility("default")));
12935 #endif
12936
12937 int fnord () { return 42; }
12938 int main ()
12939 {
12940   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12941   int status = $lt_dlunknown;
12942
12943   if (self)
12944     {
12945       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12946       else
12947         {
12948           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12949           else puts (dlerror ());
12950         }
12951       /* dlclose (self); */
12952     }
12953   else
12954     puts (dlerror ());
12955
12956   return status;
12957 }
12958 _LT_EOF
12959   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12960   (eval $ac_link) 2>&5
12961   ac_status=$?
12962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12964     (./conftest; exit; ) >&5 2>/dev/null
12965     lt_status=$?
12966     case x$lt_status in
12967       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12968       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12969       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12970     esac
12971   else :
12972     # compilation failed
12973     lt_cv_dlopen_self_static=no
12974   fi
12975 fi
12976 rm -fr conftest*
12977
12978
12979 fi
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12981 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12982     fi
12983
12984     CPPFLAGS="$save_CPPFLAGS"
12985     LDFLAGS="$save_LDFLAGS"
12986     LIBS="$save_LIBS"
12987     ;;
12988   esac
12989
12990   case $lt_cv_dlopen_self in
12991   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12992   *) enable_dlopen_self=unknown ;;
12993   esac
12994
12995   case $lt_cv_dlopen_self_static in
12996   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12997   *) enable_dlopen_self_static=unknown ;;
12998   esac
12999 fi
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017 striplib=
13018 old_striplib=
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13020 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13021 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13022   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13023   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13025 $as_echo "yes" >&6; }
13026 else
13027 # FIXME - insert some real tests, host_os isn't really good enough
13028   case $host_os in
13029   darwin*)
13030     if test -n "$STRIP" ; then
13031       striplib="$STRIP -x"
13032       old_striplib="$STRIP -S"
13033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13034 $as_echo "yes" >&6; }
13035     else
13036       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13038     fi
13039     ;;
13040   *)
13041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042 $as_echo "no" >&6; }
13043     ;;
13044   esac
13045 fi
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058   # Report which library types will actually be built
13059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13060 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13062 $as_echo "$can_build_shared" >&6; }
13063
13064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13065 $as_echo_n "checking whether to build shared libraries... " >&6; }
13066   test "$can_build_shared" = "no" && enable_shared=no
13067
13068   # On AIX, shared libraries and static libraries use the same namespace, and
13069   # are all built from PIC.
13070   case $host_os in
13071   aix3*)
13072     test "$enable_shared" = yes && enable_static=no
13073     if test -n "$RANLIB"; then
13074       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13075       postinstall_cmds='$RANLIB $lib'
13076     fi
13077     ;;
13078
13079   aix[4-9]*)
13080     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13081       test "$enable_shared" = yes && enable_static=no
13082     fi
13083     ;;
13084   esac
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13086 $as_echo "$enable_shared" >&6; }
13087
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13089 $as_echo_n "checking whether to build static libraries... " >&6; }
13090   # Make sure either enable_shared or enable_static is yes.
13091   test "$enable_shared" = yes || enable_static=yes
13092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13093 $as_echo "$enable_static" >&6; }
13094
13095
13096
13097
13098 fi
13099 ac_ext=c
13100 ac_cpp='$CPP $CPPFLAGS'
13101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13104
13105 CC="$lt_save_CC"
13106
13107       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13108     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13109     (test "X$CXX" != "Xg++"))) ; then
13110   ac_ext=cpp
13111 ac_cpp='$CXXCPP $CPPFLAGS'
13112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13116 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13117 if test -z "$CXXCPP"; then
13118   if ${ac_cv_prog_CXXCPP+:} false; then :
13119   $as_echo_n "(cached) " >&6
13120 else
13121       # Double quotes because CXXCPP needs to be expanded
13122     for CXXCPP in "$CXX -E" "/lib/cpp"
13123     do
13124       ac_preproc_ok=false
13125 for ac_cxx_preproc_warn_flag in '' yes
13126 do
13127   # Use a header file that comes with gcc, so configuring glibc
13128   # with a fresh cross-compiler works.
13129   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13130   # <limits.h> exists even on freestanding compilers.
13131   # On the NeXT, cc -E runs the code through the compiler's parser,
13132   # not just through cpp. "Syntax error" is here to catch this case.
13133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h.  */
13135 #ifdef __STDC__
13136 # include <limits.h>
13137 #else
13138 # include <assert.h>
13139 #endif
13140                      Syntax error
13141 _ACEOF
13142 if ac_fn_cxx_try_cpp "$LINENO"; then :
13143
13144 else
13145   # Broken: fails on valid input.
13146 continue
13147 fi
13148 rm -f conftest.err conftest.i conftest.$ac_ext
13149
13150   # OK, works on sane cases.  Now check whether nonexistent headers
13151   # can be detected and how.
13152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h.  */
13154 #include <ac_nonexistent.h>
13155 _ACEOF
13156 if ac_fn_cxx_try_cpp "$LINENO"; then :
13157   # Broken: success on invalid input.
13158 continue
13159 else
13160   # Passes both tests.
13161 ac_preproc_ok=:
13162 break
13163 fi
13164 rm -f conftest.err conftest.i conftest.$ac_ext
13165
13166 done
13167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13168 rm -f conftest.i conftest.err conftest.$ac_ext
13169 if $ac_preproc_ok; then :
13170   break
13171 fi
13172
13173     done
13174     ac_cv_prog_CXXCPP=$CXXCPP
13175
13176 fi
13177   CXXCPP=$ac_cv_prog_CXXCPP
13178 else
13179   ac_cv_prog_CXXCPP=$CXXCPP
13180 fi
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13182 $as_echo "$CXXCPP" >&6; }
13183 ac_preproc_ok=false
13184 for ac_cxx_preproc_warn_flag in '' yes
13185 do
13186   # Use a header file that comes with gcc, so configuring glibc
13187   # with a fresh cross-compiler works.
13188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13189   # <limits.h> exists even on freestanding compilers.
13190   # On the NeXT, cc -E runs the code through the compiler's parser,
13191   # not just through cpp. "Syntax error" is here to catch this case.
13192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h.  */
13194 #ifdef __STDC__
13195 # include <limits.h>
13196 #else
13197 # include <assert.h>
13198 #endif
13199                      Syntax error
13200 _ACEOF
13201 if ac_fn_cxx_try_cpp "$LINENO"; then :
13202
13203 else
13204   # Broken: fails on valid input.
13205 continue
13206 fi
13207 rm -f conftest.err conftest.i conftest.$ac_ext
13208
13209   # OK, works on sane cases.  Now check whether nonexistent headers
13210   # can be detected and how.
13211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h.  */
13213 #include <ac_nonexistent.h>
13214 _ACEOF
13215 if ac_fn_cxx_try_cpp "$LINENO"; then :
13216   # Broken: success on invalid input.
13217 continue
13218 else
13219   # Passes both tests.
13220 ac_preproc_ok=:
13221 break
13222 fi
13223 rm -f conftest.err conftest.i conftest.$ac_ext
13224
13225 done
13226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13227 rm -f conftest.i conftest.err conftest.$ac_ext
13228 if $ac_preproc_ok; then :
13229
13230 else
13231   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13233 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13234 See \`config.log' for more details" "$LINENO" 5; }
13235 fi
13236
13237 ac_ext=c
13238 ac_cpp='$CPP $CPPFLAGS'
13239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13242
13243 else
13244   _lt_caught_CXX_error=yes
13245 fi
13246
13247 ac_ext=cpp
13248 ac_cpp='$CXXCPP $CPPFLAGS'
13249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13252
13253 archive_cmds_need_lc_CXX=no
13254 allow_undefined_flag_CXX=
13255 always_export_symbols_CXX=no
13256 archive_expsym_cmds_CXX=
13257 compiler_needs_object_CXX=no
13258 export_dynamic_flag_spec_CXX=
13259 hardcode_direct_CXX=no
13260 hardcode_direct_absolute_CXX=no
13261 hardcode_libdir_flag_spec_CXX=
13262 hardcode_libdir_flag_spec_ld_CXX=
13263 hardcode_libdir_separator_CXX=
13264 hardcode_minus_L_CXX=no
13265 hardcode_shlibpath_var_CXX=unsupported
13266 hardcode_automatic_CXX=no
13267 inherit_rpath_CXX=no
13268 module_cmds_CXX=
13269 module_expsym_cmds_CXX=
13270 link_all_deplibs_CXX=unknown
13271 old_archive_cmds_CXX=$old_archive_cmds
13272 reload_flag_CXX=$reload_flag
13273 reload_cmds_CXX=$reload_cmds
13274 no_undefined_flag_CXX=
13275 whole_archive_flag_spec_CXX=
13276 enable_shared_with_static_runtimes_CXX=no
13277
13278 # Source file extension for C++ test sources.
13279 ac_ext=cpp
13280
13281 # Object file extension for compiled C++ test sources.
13282 objext=o
13283 objext_CXX=$objext
13284
13285 # No sense in running all these tests if we already determined that
13286 # the CXX compiler isn't working.  Some variables (like enable_shared)
13287 # are currently assumed to apply to all compilers on this platform,
13288 # and will be corrupted by setting them based on a non-working compiler.
13289 if test "$_lt_caught_CXX_error" != yes; then
13290   # Code to be used in simple compile tests
13291   lt_simple_compile_test_code="int some_variable = 0;"
13292
13293   # Code to be used in simple link tests
13294   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13295
13296   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13297
13298
13299
13300
13301
13302
13303 # If no C compiler was specified, use CC.
13304 LTCC=${LTCC-"$CC"}
13305
13306 # If no C compiler flags were specified, use CFLAGS.
13307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13308
13309 # Allow CC to be a program name with arguments.
13310 compiler=$CC
13311
13312
13313   # save warnings/boilerplate of simple test code
13314   ac_outfile=conftest.$ac_objext
13315 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13316 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13317 _lt_compiler_boilerplate=`cat conftest.err`
13318 $RM conftest*
13319
13320   ac_outfile=conftest.$ac_objext
13321 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13322 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13323 _lt_linker_boilerplate=`cat conftest.err`
13324 $RM -r conftest*
13325
13326
13327   # Allow CC to be a program name with arguments.
13328   lt_save_CC=$CC
13329   lt_save_CFLAGS=$CFLAGS
13330   lt_save_LD=$LD
13331   lt_save_GCC=$GCC
13332   GCC=$GXX
13333   lt_save_with_gnu_ld=$with_gnu_ld
13334   lt_save_path_LD=$lt_cv_path_LD
13335   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13336     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13337   else
13338     $as_unset lt_cv_prog_gnu_ld
13339   fi
13340   if test -n "${lt_cv_path_LDCXX+set}"; then
13341     lt_cv_path_LD=$lt_cv_path_LDCXX
13342   else
13343     $as_unset lt_cv_path_LD
13344   fi
13345   test -z "${LDCXX+set}" || LD=$LDCXX
13346   CC=${CXX-"c++"}
13347   CFLAGS=$CXXFLAGS
13348   compiler=$CC
13349   compiler_CXX=$CC
13350   for cc_temp in $compiler""; do
13351   case $cc_temp in
13352     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13353     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13354     \-*) ;;
13355     *) break;;
13356   esac
13357 done
13358 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13359
13360
13361   if test -n "$compiler"; then
13362     # We don't want -fno-exception when compiling C++ code, so set the
13363     # no_builtin_flag separately
13364     if test "$GXX" = yes; then
13365       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13366     else
13367       lt_prog_compiler_no_builtin_flag_CXX=
13368     fi
13369
13370     if test "$GXX" = yes; then
13371       # Set up default GNU C++ configuration
13372
13373
13374
13375 # Check whether --with-gnu-ld was given.
13376 if test "${with_gnu_ld+set}" = set; then :
13377   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13378 else
13379   with_gnu_ld=no
13380 fi
13381
13382 ac_prog=ld
13383 if test "$GCC" = yes; then
13384   # Check if gcc -print-prog-name=ld gives a path.
13385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13386 $as_echo_n "checking for ld used by $CC... " >&6; }
13387   case $host in
13388   *-*-mingw*)
13389     # gcc leaves a trailing carriage return which upsets mingw
13390     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13391   *)
13392     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13393   esac
13394   case $ac_prog in
13395     # Accept absolute paths.
13396     [\\/]* | ?:[\\/]*)
13397       re_direlt='/[^/][^/]*/\.\./'
13398       # Canonicalize the pathname of ld
13399       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13400       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13401         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13402       done
13403       test -z "$LD" && LD="$ac_prog"
13404       ;;
13405   "")
13406     # If it fails, then pretend we aren't using GCC.
13407     ac_prog=ld
13408     ;;
13409   *)
13410     # If it is relative, then search for the first ld in PATH.
13411     with_gnu_ld=unknown
13412     ;;
13413   esac
13414 elif test "$with_gnu_ld" = yes; then
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13416 $as_echo_n "checking for GNU ld... " >&6; }
13417 else
13418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13419 $as_echo_n "checking for non-GNU ld... " >&6; }
13420 fi
13421 if ${lt_cv_path_LD+:} false; then :
13422   $as_echo_n "(cached) " >&6
13423 else
13424   if test -z "$LD"; then
13425   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13426   for ac_dir in $PATH; do
13427     IFS="$lt_save_ifs"
13428     test -z "$ac_dir" && ac_dir=.
13429     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13430       lt_cv_path_LD="$ac_dir/$ac_prog"
13431       # Check to see if the program is GNU ld.  I'd rather use --version,
13432       # but apparently some variants of GNU ld only accept -v.
13433       # Break only if it was the GNU/non-GNU ld that we prefer.
13434       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13435       *GNU* | *'with BFD'*)
13436         test "$with_gnu_ld" != no && break
13437         ;;
13438       *)
13439         test "$with_gnu_ld" != yes && break
13440         ;;
13441       esac
13442     fi
13443   done
13444   IFS="$lt_save_ifs"
13445 else
13446   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13447 fi
13448 fi
13449
13450 LD="$lt_cv_path_LD"
13451 if test -n "$LD"; then
13452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13453 $as_echo "$LD" >&6; }
13454 else
13455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457 fi
13458 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13460 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13461 if ${lt_cv_prog_gnu_ld+:} false; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13465 case `$LD -v 2>&1 </dev/null` in
13466 *GNU* | *'with BFD'*)
13467   lt_cv_prog_gnu_ld=yes
13468   ;;
13469 *)
13470   lt_cv_prog_gnu_ld=no
13471   ;;
13472 esac
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13475 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13476 with_gnu_ld=$lt_cv_prog_gnu_ld
13477
13478
13479
13480
13481
13482
13483
13484       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13485       # archiving commands below assume that GNU ld is being used.
13486       if test "$with_gnu_ld" = yes; then
13487         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13488         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'
13489
13490         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13491         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13492
13493         # If archive_cmds runs LD, not CC, wlarc should be empty
13494         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13495         #     investigate it a little bit more. (MM)
13496         wlarc='${wl}'
13497
13498         # ancient GNU ld didn't support --whole-archive et. al.
13499         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13500           $GREP 'no-whole-archive' > /dev/null; then
13501           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13502         else
13503           whole_archive_flag_spec_CXX=
13504         fi
13505       else
13506         with_gnu_ld=no
13507         wlarc=
13508
13509         # A generic and very simple default shared library creation
13510         # command for GNU C++ for the case where it uses the native
13511         # linker, instead of GNU ld.  If possible, this setting should
13512         # overridden to take advantage of the native linker features on
13513         # the platform it is being used on.
13514         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13515       fi
13516
13517       # Commands to make compiler produce verbose output that lists
13518       # what "hidden" libraries, object files and flags are used when
13519       # linking a shared library.
13520       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13521
13522     else
13523       GXX=no
13524       with_gnu_ld=no
13525       wlarc=
13526     fi
13527
13528     # PORTME: fill in a description of your system's C++ link characteristics
13529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13530 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13531     ld_shlibs_CXX=yes
13532     case $host_os in
13533       aix3*)
13534         # FIXME: insert proper C++ library support
13535         ld_shlibs_CXX=no
13536         ;;
13537       aix[4-9]*)
13538         if test "$host_cpu" = ia64; then
13539           # On IA64, the linker does run time linking by default, so we don't
13540           # have to do anything special.
13541           aix_use_runtimelinking=no
13542           exp_sym_flag='-Bexport'
13543           no_entry_flag=""
13544         else
13545           aix_use_runtimelinking=no
13546
13547           # Test if we are trying to use run time linking or normal
13548           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13549           # need to do runtime linking.
13550           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13551             for ld_flag in $LDFLAGS; do
13552               case $ld_flag in
13553               *-brtl*)
13554                 aix_use_runtimelinking=yes
13555                 break
13556                 ;;
13557               esac
13558             done
13559             ;;
13560           esac
13561
13562           exp_sym_flag='-bexport'
13563           no_entry_flag='-bnoentry'
13564         fi
13565
13566         # When large executables or shared objects are built, AIX ld can
13567         # have problems creating the table of contents.  If linking a library
13568         # or program results in "error TOC overflow" add -mminimal-toc to
13569         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13570         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13571
13572         archive_cmds_CXX=''
13573         hardcode_direct_CXX=yes
13574         hardcode_direct_absolute_CXX=yes
13575         hardcode_libdir_separator_CXX=':'
13576         link_all_deplibs_CXX=yes
13577         file_list_spec_CXX='${wl}-f,'
13578
13579         if test "$GXX" = yes; then
13580           case $host_os in aix4.[012]|aix4.[012].*)
13581           # We only want to do this on AIX 4.2 and lower, the check
13582           # below for broken collect2 doesn't work under 4.3+
13583           collect2name=`${CC} -print-prog-name=collect2`
13584           if test -f "$collect2name" &&
13585              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13586           then
13587             # We have reworked collect2
13588             :
13589           else
13590             # We have old collect2
13591             hardcode_direct_CXX=unsupported
13592             # It fails to find uninstalled libraries when the uninstalled
13593             # path is not listed in the libpath.  Setting hardcode_minus_L
13594             # to unsupported forces relinking
13595             hardcode_minus_L_CXX=yes
13596             hardcode_libdir_flag_spec_CXX='-L$libdir'
13597             hardcode_libdir_separator_CXX=
13598           fi
13599           esac
13600           shared_flag='-shared'
13601           if test "$aix_use_runtimelinking" = yes; then
13602             shared_flag="$shared_flag "'${wl}-G'
13603           fi
13604         else
13605           # not using gcc
13606           if test "$host_cpu" = ia64; then
13607           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13608           # chokes on -Wl,-G. The following line is correct:
13609           shared_flag='-G'
13610           else
13611             if test "$aix_use_runtimelinking" = yes; then
13612               shared_flag='${wl}-G'
13613             else
13614               shared_flag='${wl}-bM:SRE'
13615             fi
13616           fi
13617         fi
13618
13619         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13620         # It seems that -bexpall does not export symbols beginning with
13621         # underscore (_), so it is better to generate a list of symbols to
13622         # export.
13623         always_export_symbols_CXX=yes
13624         if test "$aix_use_runtimelinking" = yes; then
13625           # Warning - without using the other runtime loading flags (-brtl),
13626           # -berok will link without error, but may produce a broken library.
13627           allow_undefined_flag_CXX='-berok'
13628           # Determine the default libpath from the value encoded in an empty
13629           # executable.
13630           if test "${lt_cv_aix_libpath+set}" = set; then
13631   aix_libpath=$lt_cv_aix_libpath
13632 else
13633   if ${lt_cv_aix_libpath__CXX+:} false; then :
13634   $as_echo_n "(cached) " >&6
13635 else
13636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h.  */
13638
13639 int
13640 main ()
13641 {
13642
13643   ;
13644   return 0;
13645 }
13646 _ACEOF
13647 if ac_fn_cxx_try_link "$LINENO"; then :
13648
13649   lt_aix_libpath_sed='
13650       /Import File Strings/,/^$/ {
13651           /^0/ {
13652               s/^0  *\([^ ]*\) *$/\1/
13653               p
13654           }
13655       }'
13656   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13657   # Check for a 64-bit object if we didn't find anything.
13658   if test -z "$lt_cv_aix_libpath__CXX"; then
13659     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13660   fi
13661 fi
13662 rm -f core conftest.err conftest.$ac_objext \
13663     conftest$ac_exeext conftest.$ac_ext
13664   if test -z "$lt_cv_aix_libpath__CXX"; then
13665     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13666   fi
13667
13668 fi
13669
13670   aix_libpath=$lt_cv_aix_libpath__CXX
13671 fi
13672
13673           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13674
13675           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"
13676         else
13677           if test "$host_cpu" = ia64; then
13678             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13679             allow_undefined_flag_CXX="-z nodefs"
13680             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"
13681           else
13682             # Determine the default libpath from the value encoded in an
13683             # empty executable.
13684             if test "${lt_cv_aix_libpath+set}" = set; then
13685   aix_libpath=$lt_cv_aix_libpath
13686 else
13687   if ${lt_cv_aix_libpath__CXX+:} false; then :
13688   $as_echo_n "(cached) " >&6
13689 else
13690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h.  */
13692
13693 int
13694 main ()
13695 {
13696
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_cxx_try_link "$LINENO"; then :
13702
13703   lt_aix_libpath_sed='
13704       /Import File Strings/,/^$/ {
13705           /^0/ {
13706               s/^0  *\([^ ]*\) *$/\1/
13707               p
13708           }
13709       }'
13710   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13711   # Check for a 64-bit object if we didn't find anything.
13712   if test -z "$lt_cv_aix_libpath__CXX"; then
13713     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13714   fi
13715 fi
13716 rm -f core conftest.err conftest.$ac_objext \
13717     conftest$ac_exeext conftest.$ac_ext
13718   if test -z "$lt_cv_aix_libpath__CXX"; then
13719     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13720   fi
13721
13722 fi
13723
13724   aix_libpath=$lt_cv_aix_libpath__CXX
13725 fi
13726
13727             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13728             # Warning - without using the other run time loading flags,
13729             # -berok will link without error, but may produce a broken library.
13730             no_undefined_flag_CXX=' ${wl}-bernotok'
13731             allow_undefined_flag_CXX=' ${wl}-berok'
13732             if test "$with_gnu_ld" = yes; then
13733               # We only use this code for GNU lds that support --whole-archive.
13734               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13735             else
13736               # Exported symbols can be pulled into shared objects from archives
13737               whole_archive_flag_spec_CXX='$convenience'
13738             fi
13739             archive_cmds_need_lc_CXX=yes
13740             # This is similar to how AIX traditionally builds its shared
13741             # libraries.
13742             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'
13743           fi
13744         fi
13745         ;;
13746
13747       beos*)
13748         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13749           allow_undefined_flag_CXX=unsupported
13750           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13751           # support --undefined.  This deserves some investigation.  FIXME
13752           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13753         else
13754           ld_shlibs_CXX=no
13755         fi
13756         ;;
13757
13758       chorus*)
13759         case $cc_basename in
13760           *)
13761           # FIXME: insert proper C++ library support
13762           ld_shlibs_CXX=no
13763           ;;
13764         esac
13765         ;;
13766
13767       cygwin* | mingw* | pw32* | cegcc*)
13768         case $GXX,$cc_basename in
13769         ,cl* | no,cl*)
13770           # Native MSVC
13771           # hardcode_libdir_flag_spec is actually meaningless, as there is
13772           # no search path for DLLs.
13773           hardcode_libdir_flag_spec_CXX=' '
13774           allow_undefined_flag_CXX=unsupported
13775           always_export_symbols_CXX=yes
13776           file_list_spec_CXX='@'
13777           # Tell ltmain to make .lib files, not .a files.
13778           libext=lib
13779           # Tell ltmain to make .dll files, not .so files.
13780           shrext_cmds=".dll"
13781           # FIXME: Setting linknames here is a bad hack.
13782           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13783           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13784               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13785             else
13786               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13787             fi~
13788             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13789             linknames='
13790           # The linker will not automatically build a static lib if we build a DLL.
13791           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13792           enable_shared_with_static_runtimes_CXX=yes
13793           # Don't use ranlib
13794           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13795           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13796             lt_tool_outputfile="@TOOL_OUTPUT@"~
13797             case $lt_outputfile in
13798               *.exe|*.EXE) ;;
13799               *)
13800                 lt_outputfile="$lt_outputfile.exe"
13801                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13802                 ;;
13803             esac~
13804             func_to_tool_file "$lt_outputfile"~
13805             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13806               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13807               $RM "$lt_outputfile.manifest";
13808             fi'
13809           ;;
13810         *)
13811           # g++
13812           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13813           # as there is no search path for DLLs.
13814           hardcode_libdir_flag_spec_CXX='-L$libdir'
13815           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13816           allow_undefined_flag_CXX=unsupported
13817           always_export_symbols_CXX=no
13818           enable_shared_with_static_runtimes_CXX=yes
13819
13820           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13821             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'
13822             # If the export-symbols file already is a .def file (1st line
13823             # is EXPORTS), use it as is; otherwise, prepend...
13824             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13825               cp $export_symbols $output_objdir/$soname.def;
13826             else
13827               echo EXPORTS > $output_objdir/$soname.def;
13828               cat $export_symbols >> $output_objdir/$soname.def;
13829             fi~
13830             $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'
13831           else
13832             ld_shlibs_CXX=no
13833           fi
13834           ;;
13835         esac
13836         ;;
13837       darwin* | rhapsody*)
13838
13839
13840   archive_cmds_need_lc_CXX=no
13841   hardcode_direct_CXX=no
13842   hardcode_automatic_CXX=yes
13843   hardcode_shlibpath_var_CXX=unsupported
13844   if test "$lt_cv_ld_force_load" = "yes"; then
13845     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\"`'
13846   else
13847     whole_archive_flag_spec_CXX=''
13848   fi
13849   link_all_deplibs_CXX=yes
13850   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13851   case $cc_basename in
13852      ifort*) _lt_dar_can_shared=yes ;;
13853      *) _lt_dar_can_shared=$GCC ;;
13854   esac
13855   if test "$_lt_dar_can_shared" = "yes"; then
13856     output_verbose_link_cmd=func_echo_all
13857     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}"
13858     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13859     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}"
13860     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}"
13861        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13862       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}"
13863       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}"
13864     fi
13865
13866   else
13867   ld_shlibs_CXX=no
13868   fi
13869
13870         ;;
13871
13872       dgux*)
13873         case $cc_basename in
13874           ec++*)
13875             # FIXME: insert proper C++ library support
13876             ld_shlibs_CXX=no
13877             ;;
13878           ghcx*)
13879             # Green Hills C++ Compiler
13880             # FIXME: insert proper C++ library support
13881             ld_shlibs_CXX=no
13882             ;;
13883           *)
13884             # FIXME: insert proper C++ library support
13885             ld_shlibs_CXX=no
13886             ;;
13887         esac
13888         ;;
13889
13890       freebsd[12]*)
13891         # C++ shared libraries reported to be fairly broken before
13892         # switch to ELF
13893         ld_shlibs_CXX=no
13894         ;;
13895
13896       freebsd-elf*)
13897         archive_cmds_need_lc_CXX=no
13898         ;;
13899
13900       freebsd* | dragonfly*)
13901         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13902         # conventions
13903         ld_shlibs_CXX=yes
13904         ;;
13905
13906       gnu*)
13907         ;;
13908
13909       haiku*)
13910         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13911         link_all_deplibs_CXX=yes
13912         ;;
13913
13914       hpux9*)
13915         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13916         hardcode_libdir_separator_CXX=:
13917         export_dynamic_flag_spec_CXX='${wl}-E'
13918         hardcode_direct_CXX=yes
13919         hardcode_minus_L_CXX=yes # Not in the search PATH,
13920                                              # but as the default
13921                                              # location of the library.
13922
13923         case $cc_basename in
13924           CC*)
13925             # FIXME: insert proper C++ library support
13926             ld_shlibs_CXX=no
13927             ;;
13928           aCC*)
13929             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'
13930             # Commands to make compiler produce verbose output that lists
13931             # what "hidden" libraries, object files and flags are used when
13932             # linking a shared library.
13933             #
13934             # There doesn't appear to be a way to prevent this compiler from
13935             # explicitly linking system object files so we need to strip them
13936             # from the output so that they don't get included in the library
13937             # dependencies.
13938             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"'
13939             ;;
13940           *)
13941             if test "$GXX" = yes; then
13942               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'
13943             else
13944               # FIXME: insert proper C++ library support
13945               ld_shlibs_CXX=no
13946             fi
13947             ;;
13948         esac
13949         ;;
13950
13951       hpux10*|hpux11*)
13952         if test $with_gnu_ld = no; then
13953           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13954           hardcode_libdir_separator_CXX=:
13955
13956           case $host_cpu in
13957             hppa*64*|ia64*)
13958               ;;
13959             *)
13960               export_dynamic_flag_spec_CXX='${wl}-E'
13961               ;;
13962           esac
13963         fi
13964         case $host_cpu in
13965           hppa*64*|ia64*)
13966             hardcode_direct_CXX=no
13967             hardcode_shlibpath_var_CXX=no
13968             ;;
13969           *)
13970             hardcode_direct_CXX=yes
13971             hardcode_direct_absolute_CXX=yes
13972             hardcode_minus_L_CXX=yes # Not in the search PATH,
13973                                                  # but as the default
13974                                                  # location of the library.
13975             ;;
13976         esac
13977
13978         case $cc_basename in
13979           CC*)
13980             # FIXME: insert proper C++ library support
13981             ld_shlibs_CXX=no
13982             ;;
13983           aCC*)
13984             case $host_cpu in
13985               hppa*64*)
13986                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13987                 ;;
13988               ia64*)
13989                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13990                 ;;
13991               *)
13992                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13993                 ;;
13994             esac
13995             # Commands to make compiler produce verbose output that lists
13996             # what "hidden" libraries, object files and flags are used when
13997             # linking a shared library.
13998             #
13999             # There doesn't appear to be a way to prevent this compiler from
14000             # explicitly linking system object files so we need to strip them
14001             # from the output so that they don't get included in the library
14002             # dependencies.
14003             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"'
14004             ;;
14005           *)
14006             if test "$GXX" = yes; then
14007               if test $with_gnu_ld = no; then
14008                 case $host_cpu in
14009                   hppa*64*)
14010                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14011                     ;;
14012                   ia64*)
14013                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14014                     ;;
14015                   *)
14016                     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'
14017                     ;;
14018                 esac
14019               fi
14020             else
14021               # FIXME: insert proper C++ library support
14022               ld_shlibs_CXX=no
14023             fi
14024             ;;
14025         esac
14026         ;;
14027
14028       interix[3-9]*)
14029         hardcode_direct_CXX=no
14030         hardcode_shlibpath_var_CXX=no
14031         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14032         export_dynamic_flag_spec_CXX='${wl}-E'
14033         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14034         # Instead, shared libraries are loaded at an image base (0x10000000 by
14035         # default) and relocated if they conflict, which is a slow very memory
14036         # consuming and fragmenting process.  To avoid this, we pick a random,
14037         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14038         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14039         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'
14040         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'
14041         ;;
14042       irix5* | irix6*)
14043         case $cc_basename in
14044           CC*)
14045             # SGI C++
14046             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'
14047
14048             # Archives containing C++ object files must be created using
14049             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14050             # necessary to make sure instantiated templates are included
14051             # in the archive.
14052             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14053             ;;
14054           *)
14055             if test "$GXX" = yes; then
14056               if test "$with_gnu_ld" = no; then
14057                 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'
14058               else
14059                 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'
14060               fi
14061             fi
14062             link_all_deplibs_CXX=yes
14063             ;;
14064         esac
14065         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14066         hardcode_libdir_separator_CXX=:
14067         inherit_rpath_CXX=yes
14068         ;;
14069
14070       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14071         case $cc_basename in
14072           KCC*)
14073             # Kuck and Associates, Inc. (KAI) C++ Compiler
14074
14075             # KCC will only create a shared library if the output file
14076             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14077             # to its proper name (with version) after linking.
14078             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'
14079             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'
14080             # Commands to make compiler produce verbose output that lists
14081             # what "hidden" libraries, object files and flags are used when
14082             # linking a shared library.
14083             #
14084             # There doesn't appear to be a way to prevent this compiler from
14085             # explicitly linking system object files so we need to strip them
14086             # from the output so that they don't get included in the library
14087             # dependencies.
14088             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"'
14089
14090             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14091             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14092
14093             # Archives containing C++ object files must be created using
14094             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14095             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14096             ;;
14097           icpc* | ecpc* )
14098             # Intel C++
14099             with_gnu_ld=yes
14100             # version 8.0 and above of icpc choke on multiply defined symbols
14101             # if we add $predep_objects and $postdep_objects, however 7.1 and
14102             # earlier do not add the objects themselves.
14103             case `$CC -V 2>&1` in
14104               *"Version 7."*)
14105                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14106                 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'
14107                 ;;
14108               *)  # Version 8.0 or newer
14109                 tmp_idyn=
14110                 case $host_cpu in
14111                   ia64*) tmp_idyn=' -i_dynamic';;
14112                 esac
14113                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14114                 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'
14115                 ;;
14116             esac
14117             archive_cmds_need_lc_CXX=no
14118             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14119             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14120             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14121             ;;
14122           pgCC* | pgcpp*)
14123             # Portland Group C++ compiler
14124             case `$CC -V` in
14125             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14126               prelink_cmds_CXX='tpldir=Template.dir~
14127                 rm -rf $tpldir~
14128                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14129                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14130               old_archive_cmds_CXX='tpldir=Template.dir~
14131                 rm -rf $tpldir~
14132                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14133                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14134                 $RANLIB $oldlib'
14135               archive_cmds_CXX='tpldir=Template.dir~
14136                 rm -rf $tpldir~
14137                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14138                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14139               archive_expsym_cmds_CXX='tpldir=Template.dir~
14140                 rm -rf $tpldir~
14141                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14142                 $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'
14143               ;;
14144             *) # Version 6 and above use weak symbols
14145               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14146               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'
14147               ;;
14148             esac
14149
14150             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14151             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14152             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'
14153             ;;
14154           cxx*)
14155             # Compaq C++
14156             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157             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'
14158
14159             runpath_var=LD_RUN_PATH
14160             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14161             hardcode_libdir_separator_CXX=:
14162
14163             # Commands to make compiler produce verbose output that lists
14164             # what "hidden" libraries, object files and flags are used when
14165             # linking a shared library.
14166             #
14167             # There doesn't appear to be a way to prevent this compiler from
14168             # explicitly linking system object files so we need to strip them
14169             # from the output so that they don't get included in the library
14170             # dependencies.
14171             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'
14172             ;;
14173           xl* | mpixl* | bgxl*)
14174             # IBM XL 8.0 on PPC, with GNU ld
14175             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14176             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14177             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14178             if test "x$supports_anon_versioning" = xyes; then
14179               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14180                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14181                 echo "local: *; };" >> $output_objdir/$libname.ver~
14182                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14183             fi
14184             ;;
14185           *)
14186             case `$CC -V 2>&1 | sed 5q` in
14187             *Sun\ C*)
14188               # Sun C++ 5.9
14189               no_undefined_flag_CXX=' -zdefs'
14190               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14191               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'
14192               hardcode_libdir_flag_spec_CXX='-R$libdir'
14193               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'
14194               compiler_needs_object_CXX=yes
14195
14196               # Not sure whether something based on
14197               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14198               # would be better.
14199               output_verbose_link_cmd='func_echo_all'
14200
14201               # Archives containing C++ object files must be created using
14202               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14203               # necessary to make sure instantiated templates are included
14204               # in the archive.
14205               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14206               ;;
14207             esac
14208             ;;
14209         esac
14210         ;;
14211
14212       lynxos*)
14213         # FIXME: insert proper C++ library support
14214         ld_shlibs_CXX=no
14215         ;;
14216
14217       m88k*)
14218         # FIXME: insert proper C++ library support
14219         ld_shlibs_CXX=no
14220         ;;
14221
14222       mvs*)
14223         case $cc_basename in
14224           cxx*)
14225             # FIXME: insert proper C++ library support
14226             ld_shlibs_CXX=no
14227             ;;
14228           *)
14229             # FIXME: insert proper C++ library support
14230             ld_shlibs_CXX=no
14231             ;;
14232         esac
14233         ;;
14234
14235       netbsd*)
14236         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14237           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14238           wlarc=
14239           hardcode_libdir_flag_spec_CXX='-R$libdir'
14240           hardcode_direct_CXX=yes
14241           hardcode_shlibpath_var_CXX=no
14242         fi
14243         # Workaround some broken pre-1.5 toolchains
14244         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14245         ;;
14246
14247       *nto* | *qnx*)
14248         ld_shlibs_CXX=yes
14249         ;;
14250
14251       openbsd2*)
14252         # C++ shared libraries are fairly broken
14253         ld_shlibs_CXX=no
14254         ;;
14255
14256       openbsd*)
14257         if test -f /usr/libexec/ld.so; then
14258           hardcode_direct_CXX=yes
14259           hardcode_shlibpath_var_CXX=no
14260           hardcode_direct_absolute_CXX=yes
14261           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14262           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14263           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14264             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14265             export_dynamic_flag_spec_CXX='${wl}-E'
14266             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14267           fi
14268           output_verbose_link_cmd=func_echo_all
14269         else
14270           ld_shlibs_CXX=no
14271         fi
14272         ;;
14273
14274       osf3* | osf4* | osf5*)
14275         case $cc_basename in
14276           KCC*)
14277             # Kuck and Associates, Inc. (KAI) C++ Compiler
14278
14279             # KCC will only create a shared library if the output file
14280             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14281             # to its proper name (with version) after linking.
14282             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'
14283
14284             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14285             hardcode_libdir_separator_CXX=:
14286
14287             # Archives containing C++ object files must be created using
14288             # the KAI C++ compiler.
14289             case $host in
14290               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14291               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14292             esac
14293             ;;
14294           RCC*)
14295             # Rational C++ 2.4.1
14296             # FIXME: insert proper C++ library support
14297             ld_shlibs_CXX=no
14298             ;;
14299           cxx*)
14300             case $host in
14301               osf3*)
14302                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14303                 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'
14304                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14305                 ;;
14306               *)
14307                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14308                 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'
14309                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14310                   echo "-hidden">> $lib.exp~
14311                   $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~
14312                   $RM $lib.exp'
14313                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14314                 ;;
14315             esac
14316
14317             hardcode_libdir_separator_CXX=:
14318
14319             # Commands to make compiler produce verbose output that lists
14320             # what "hidden" libraries, object files and flags are used when
14321             # linking a shared library.
14322             #
14323             # There doesn't appear to be a way to prevent this compiler from
14324             # explicitly linking system object files so we need to strip them
14325             # from the output so that they don't get included in the library
14326             # dependencies.
14327             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"'
14328             ;;
14329           *)
14330             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14331               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14332               case $host in
14333                 osf3*)
14334                   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'
14335                   ;;
14336                 *)
14337                   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'
14338                   ;;
14339               esac
14340
14341               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14342               hardcode_libdir_separator_CXX=:
14343
14344               # Commands to make compiler produce verbose output that lists
14345               # what "hidden" libraries, object files and flags are used when
14346               # linking a shared library.
14347               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14348
14349             else
14350               # FIXME: insert proper C++ library support
14351               ld_shlibs_CXX=no
14352             fi
14353             ;;
14354         esac
14355         ;;
14356
14357       psos*)
14358         # FIXME: insert proper C++ library support
14359         ld_shlibs_CXX=no
14360         ;;
14361
14362       sunos4*)
14363         case $cc_basename in
14364           CC*)
14365             # Sun C++ 4.x
14366             # FIXME: insert proper C++ library support
14367             ld_shlibs_CXX=no
14368             ;;
14369           lcc*)
14370             # Lucid
14371             # FIXME: insert proper C++ library support
14372             ld_shlibs_CXX=no
14373             ;;
14374           *)
14375             # FIXME: insert proper C++ library support
14376             ld_shlibs_CXX=no
14377             ;;
14378         esac
14379         ;;
14380
14381       solaris*)
14382         case $cc_basename in
14383           CC* | sunCC*)
14384             # Sun C++ 4.2, 5.x and Centerline C++
14385             archive_cmds_need_lc_CXX=yes
14386             no_undefined_flag_CXX=' -zdefs'
14387             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14388             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14389               $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'
14390
14391             hardcode_libdir_flag_spec_CXX='-R$libdir'
14392             hardcode_shlibpath_var_CXX=no
14393             case $host_os in
14394               solaris2.[0-5] | solaris2.[0-5].*) ;;
14395               *)
14396                 # The compiler driver will combine and reorder linker options,
14397                 # but understands `-z linker_flag'.
14398                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14399                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14400                 ;;
14401             esac
14402             link_all_deplibs_CXX=yes
14403
14404             output_verbose_link_cmd='func_echo_all'
14405
14406             # Archives containing C++ object files must be created using
14407             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14408             # necessary to make sure instantiated templates are included
14409             # in the archive.
14410             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14411             ;;
14412           gcx*)
14413             # Green Hills C++ Compiler
14414             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14415
14416             # The C++ compiler must be used to create the archive.
14417             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14418             ;;
14419           *)
14420             # GNU C++ compiler with Solaris linker
14421             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14422               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14423               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14424                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14425                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14426                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14427
14428                 # Commands to make compiler produce verbose output that lists
14429                 # what "hidden" libraries, object files and flags are used when
14430                 # linking a shared library.
14431                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14432               else
14433                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14434                 # platform.
14435                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14436                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14437                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14438
14439                 # Commands to make compiler produce verbose output that lists
14440                 # what "hidden" libraries, object files and flags are used when
14441                 # linking a shared library.
14442                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14443               fi
14444
14445               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14446               case $host_os in
14447                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14448                 *)
14449                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14450                   ;;
14451               esac
14452             fi
14453             ;;
14454         esac
14455         ;;
14456
14457     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14458       no_undefined_flag_CXX='${wl}-z,text'
14459       archive_cmds_need_lc_CXX=no
14460       hardcode_shlibpath_var_CXX=no
14461       runpath_var='LD_RUN_PATH'
14462
14463       case $cc_basename in
14464         CC*)
14465           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14466           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14467           ;;
14468         *)
14469           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14470           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14471           ;;
14472       esac
14473       ;;
14474
14475       sysv5* | sco3.2v5* | sco5v6*)
14476         # Note: We can NOT use -z defs as we might desire, because we do not
14477         # link with -lc, and that would cause any symbols used from libc to
14478         # always be unresolved, which means just about no library would
14479         # ever link correctly.  If we're not using GNU ld we use -z text
14480         # though, which does catch some bad symbols but isn't as heavy-handed
14481         # as -z defs.
14482         no_undefined_flag_CXX='${wl}-z,text'
14483         allow_undefined_flag_CXX='${wl}-z,nodefs'
14484         archive_cmds_need_lc_CXX=no
14485         hardcode_shlibpath_var_CXX=no
14486         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14487         hardcode_libdir_separator_CXX=':'
14488         link_all_deplibs_CXX=yes
14489         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14490         runpath_var='LD_RUN_PATH'
14491
14492         case $cc_basename in
14493           CC*)
14494             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14495             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14496             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14497               '"$old_archive_cmds_CXX"
14498             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14499               '"$reload_cmds_CXX"
14500             ;;
14501           *)
14502             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14504             ;;
14505         esac
14506       ;;
14507
14508       tandem*)
14509         case $cc_basename in
14510           NCC*)
14511             # NonStop-UX NCC 3.20
14512             # FIXME: insert proper C++ library support
14513             ld_shlibs_CXX=no
14514             ;;
14515           *)
14516             # FIXME: insert proper C++ library support
14517             ld_shlibs_CXX=no
14518             ;;
14519         esac
14520         ;;
14521
14522       vxworks*)
14523         # FIXME: insert proper C++ library support
14524         ld_shlibs_CXX=no
14525         ;;
14526
14527       *)
14528         # FIXME: insert proper C++ library support
14529         ld_shlibs_CXX=no
14530         ;;
14531     esac
14532
14533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14534 $as_echo "$ld_shlibs_CXX" >&6; }
14535     test "$ld_shlibs_CXX" = no && can_build_shared=no
14536
14537     GCC_CXX="$GXX"
14538     LD_CXX="$LD"
14539
14540     ## CAVEAT EMPTOR:
14541     ## There is no encapsulation within the following macros, do not change
14542     ## the running order or otherwise move them around unless you know exactly
14543     ## what you are doing...
14544     # Dependencies to place before and after the object being linked:
14545 predep_objects_CXX=
14546 postdep_objects_CXX=
14547 predeps_CXX=
14548 postdeps_CXX=
14549 compiler_lib_search_path_CXX=
14550
14551 cat > conftest.$ac_ext <<_LT_EOF
14552 class Foo
14553 {
14554 public:
14555   Foo (void) { a = 0; }
14556 private:
14557   int a;
14558 };
14559 _LT_EOF
14560
14561
14562 _lt_libdeps_save_CFLAGS=$CFLAGS
14563 case "$CC $CFLAGS " in #(
14564 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14565 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14566 esac
14567
14568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14569   (eval $ac_compile) 2>&5
14570   ac_status=$?
14571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14572   test $ac_status = 0; }; then
14573   # Parse the compiler output and extract the necessary
14574   # objects, libraries and library flags.
14575
14576   # Sentinel used to keep track of whether or not we are before
14577   # the conftest object file.
14578   pre_test_object_deps_done=no
14579
14580   for p in `eval "$output_verbose_link_cmd"`; do
14581     case ${prev}${p} in
14582
14583     -L* | -R* | -l*)
14584        # Some compilers place space between "-{L,R}" and the path.
14585        # Remove the space.
14586        if test $p = "-L" ||
14587           test $p = "-R"; then
14588          prev=$p
14589          continue
14590        fi
14591
14592        # Expand the sysroot to ease extracting the directories later.
14593        if test -z "$prev"; then
14594          case $p in
14595          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14596          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14597          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14598          esac
14599        fi
14600        case $p in
14601        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14602        esac
14603        if test "$pre_test_object_deps_done" = no; then
14604          case ${prev} in
14605          -L | -R)
14606            # Internal compiler library paths should come after those
14607            # provided the user.  The postdeps already come after the
14608            # user supplied libs so there is no need to process them.
14609            if test -z "$compiler_lib_search_path_CXX"; then
14610              compiler_lib_search_path_CXX="${prev}${p}"
14611            else
14612              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14613            fi
14614            ;;
14615          # The "-l" case would never come before the object being
14616          # linked, so don't bother handling this case.
14617          esac
14618        else
14619          if test -z "$postdeps_CXX"; then
14620            postdeps_CXX="${prev}${p}"
14621          else
14622            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14623          fi
14624        fi
14625        prev=
14626        ;;
14627
14628     *.lto.$objext) ;; # Ignore GCC LTO objects
14629     *.$objext)
14630        # This assumes that the test object file only shows up
14631        # once in the compiler output.
14632        if test "$p" = "conftest.$objext"; then
14633          pre_test_object_deps_done=yes
14634          continue
14635        fi
14636
14637        if test "$pre_test_object_deps_done" = no; then
14638          if test -z "$predep_objects_CXX"; then
14639            predep_objects_CXX="$p"
14640          else
14641            predep_objects_CXX="$predep_objects_CXX $p"
14642          fi
14643        else
14644          if test -z "$postdep_objects_CXX"; then
14645            postdep_objects_CXX="$p"
14646          else
14647            postdep_objects_CXX="$postdep_objects_CXX $p"
14648          fi
14649        fi
14650        ;;
14651
14652     *) ;; # Ignore the rest.
14653
14654     esac
14655   done
14656
14657   # Clean up.
14658   rm -f a.out a.exe
14659 else
14660   echo "libtool.m4: error: problem compiling CXX test program"
14661 fi
14662
14663 $RM -f confest.$objext
14664 CFLAGS=$_lt_libdeps_save_CFLAGS
14665
14666 # PORTME: override above test on systems where it is broken
14667 case $host_os in
14668 interix[3-9]*)
14669   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14670   # hack all around it, let's just trust "g++" to DTRT.
14671   predep_objects_CXX=
14672   postdep_objects_CXX=
14673   postdeps_CXX=
14674   ;;
14675
14676 linux*)
14677   case `$CC -V 2>&1 | sed 5q` in
14678   *Sun\ C*)
14679     # Sun C++ 5.9
14680
14681     # The more standards-conforming stlport4 library is
14682     # incompatible with the Cstd library. Avoid specifying
14683     # it if it's in CXXFLAGS. Ignore libCrun as
14684     # -library=stlport4 depends on it.
14685     case " $CXX $CXXFLAGS " in
14686     *" -library=stlport4 "*)
14687       solaris_use_stlport4=yes
14688       ;;
14689     esac
14690
14691     if test "$solaris_use_stlport4" != yes; then
14692       postdeps_CXX='-library=Cstd -library=Crun'
14693     fi
14694     ;;
14695   esac
14696   ;;
14697
14698 solaris*)
14699   case $cc_basename in
14700   CC* | sunCC*)
14701     # The more standards-conforming stlport4 library is
14702     # incompatible with the Cstd library. Avoid specifying
14703     # it if it's in CXXFLAGS. Ignore libCrun as
14704     # -library=stlport4 depends on it.
14705     case " $CXX $CXXFLAGS " in
14706     *" -library=stlport4 "*)
14707       solaris_use_stlport4=yes
14708       ;;
14709     esac
14710
14711     # Adding this requires a known-good setup of shared libraries for
14712     # Sun compiler versions before 5.6, else PIC objects from an old
14713     # archive will be linked into the output, leading to subtle bugs.
14714     if test "$solaris_use_stlport4" != yes; then
14715       postdeps_CXX='-library=Cstd -library=Crun'
14716     fi
14717     ;;
14718   esac
14719   ;;
14720 esac
14721
14722
14723 case " $postdeps_CXX " in
14724 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14725 esac
14726  compiler_lib_search_dirs_CXX=
14727 if test -n "${compiler_lib_search_path_CXX}"; then
14728  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14729 fi
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761     lt_prog_compiler_wl_CXX=
14762 lt_prog_compiler_pic_CXX=
14763 lt_prog_compiler_static_CXX=
14764
14765
14766   # C++ specific cases for pic, static, wl, etc.
14767   if test "$GXX" = yes; then
14768     lt_prog_compiler_wl_CXX='-Wl,'
14769     lt_prog_compiler_static_CXX='-static'
14770
14771     case $host_os in
14772     aix*)
14773       # All AIX code is PIC.
14774       if test "$host_cpu" = ia64; then
14775         # AIX 5 now supports IA64 processor
14776         lt_prog_compiler_static_CXX='-Bstatic'
14777       fi
14778       ;;
14779
14780     amigaos*)
14781       case $host_cpu in
14782       powerpc)
14783             # see comment about AmigaOS4 .so support
14784             lt_prog_compiler_pic_CXX='-fPIC'
14785         ;;
14786       m68k)
14787             # FIXME: we need at least 68020 code to build shared libraries, but
14788             # adding the `-m68020' flag to GCC prevents building anything better,
14789             # like `-m68040'.
14790             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14791         ;;
14792       esac
14793       ;;
14794
14795     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14796       # PIC is the default for these OSes.
14797       ;;
14798     mingw* | cygwin* | os2* | pw32* | cegcc*)
14799       # This hack is so that the source file can tell whether it is being
14800       # built for inclusion in a dll (and should export symbols for example).
14801       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14802       # (--disable-auto-import) libraries
14803       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14804       ;;
14805     darwin* | rhapsody*)
14806       # PIC is the default on this platform
14807       # Common symbols not allowed in MH_DYLIB files
14808       lt_prog_compiler_pic_CXX='-fno-common'
14809       ;;
14810     *djgpp*)
14811       # DJGPP does not support shared libraries at all
14812       lt_prog_compiler_pic_CXX=
14813       ;;
14814     haiku*)
14815       # PIC is the default for Haiku.
14816       # The "-static" flag exists, but is broken.
14817       lt_prog_compiler_static_CXX=
14818       ;;
14819     interix[3-9]*)
14820       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14821       # Instead, we relocate shared libraries at runtime.
14822       ;;
14823     sysv4*MP*)
14824       if test -d /usr/nec; then
14825         lt_prog_compiler_pic_CXX=-Kconform_pic
14826       fi
14827       ;;
14828     hpux*)
14829       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14830       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14831       # sets the default TLS model and affects inlining.
14832       case $host_cpu in
14833       hppa*64*)
14834         ;;
14835       *)
14836         lt_prog_compiler_pic_CXX='-fPIC'
14837         ;;
14838       esac
14839       ;;
14840     *qnx* | *nto*)
14841       # QNX uses GNU C++, but need to define -shared option too, otherwise
14842       # it will coredump.
14843       lt_prog_compiler_pic_CXX='-fPIC -shared'
14844       ;;
14845     *)
14846       lt_prog_compiler_pic_CXX='-fPIC'
14847       ;;
14848     esac
14849   else
14850     case $host_os in
14851       aix[4-9]*)
14852         # All AIX code is PIC.
14853         if test "$host_cpu" = ia64; then
14854           # AIX 5 now supports IA64 processor
14855           lt_prog_compiler_static_CXX='-Bstatic'
14856         else
14857           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14858         fi
14859         ;;
14860       chorus*)
14861         case $cc_basename in
14862         cxch68*)
14863           # Green Hills C++ Compiler
14864           # _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"
14865           ;;
14866         esac
14867         ;;
14868       mingw* | cygwin* | os2* | pw32* | cegcc*)
14869         # This hack is so that the source file can tell whether it is being
14870         # built for inclusion in a dll (and should export symbols for example).
14871         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14872         ;;
14873       dgux*)
14874         case $cc_basename in
14875           ec++*)
14876             lt_prog_compiler_pic_CXX='-KPIC'
14877             ;;
14878           ghcx*)
14879             # Green Hills C++ Compiler
14880             lt_prog_compiler_pic_CXX='-pic'
14881             ;;
14882           *)
14883             ;;
14884         esac
14885         ;;
14886       freebsd* | dragonfly*)
14887         # FreeBSD uses GNU C++
14888         ;;
14889       hpux9* | hpux10* | hpux11*)
14890         case $cc_basename in
14891           CC*)
14892             lt_prog_compiler_wl_CXX='-Wl,'
14893             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14894             if test "$host_cpu" != ia64; then
14895               lt_prog_compiler_pic_CXX='+Z'
14896             fi
14897             ;;
14898           aCC*)
14899             lt_prog_compiler_wl_CXX='-Wl,'
14900             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14901             case $host_cpu in
14902             hppa*64*|ia64*)
14903               # +Z the default
14904               ;;
14905             *)
14906               lt_prog_compiler_pic_CXX='+Z'
14907               ;;
14908             esac
14909             ;;
14910           *)
14911             ;;
14912         esac
14913         ;;
14914       interix*)
14915         # This is c89, which is MS Visual C++ (no shared libs)
14916         # Anyone wants to do a port?
14917         ;;
14918       irix5* | irix6* | nonstopux*)
14919         case $cc_basename in
14920           CC*)
14921             lt_prog_compiler_wl_CXX='-Wl,'
14922             lt_prog_compiler_static_CXX='-non_shared'
14923             # CC pic flag -KPIC is the default.
14924             ;;
14925           *)
14926             ;;
14927         esac
14928         ;;
14929       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14930         case $cc_basename in
14931           KCC*)
14932             # KAI C++ Compiler
14933             lt_prog_compiler_wl_CXX='--backend -Wl,'
14934             lt_prog_compiler_pic_CXX='-fPIC'
14935             ;;
14936           ecpc* )
14937             # old Intel C++ for x86_64 which still supported -KPIC.
14938             lt_prog_compiler_wl_CXX='-Wl,'
14939             lt_prog_compiler_pic_CXX='-KPIC'
14940             lt_prog_compiler_static_CXX='-static'
14941             ;;
14942           icpc* )
14943             # Intel C++, used to be incompatible with GCC.
14944             # ICC 10 doesn't accept -KPIC any more.
14945             lt_prog_compiler_wl_CXX='-Wl,'
14946             lt_prog_compiler_pic_CXX='-fPIC'
14947             lt_prog_compiler_static_CXX='-static'
14948             ;;
14949           pgCC* | pgcpp*)
14950             # Portland Group C++ compiler
14951             lt_prog_compiler_wl_CXX='-Wl,'
14952             lt_prog_compiler_pic_CXX='-fpic'
14953             lt_prog_compiler_static_CXX='-Bstatic'
14954             ;;
14955           cxx*)
14956             # Compaq C++
14957             # Make sure the PIC flag is empty.  It appears that all Alpha
14958             # Linux and Compaq Tru64 Unix objects are PIC.
14959             lt_prog_compiler_pic_CXX=
14960             lt_prog_compiler_static_CXX='-non_shared'
14961             ;;
14962           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14963             # IBM XL 8.0, 9.0 on PPC and BlueGene
14964             lt_prog_compiler_wl_CXX='-Wl,'
14965             lt_prog_compiler_pic_CXX='-qpic'
14966             lt_prog_compiler_static_CXX='-qstaticlink'
14967             ;;
14968           *)
14969             case `$CC -V 2>&1 | sed 5q` in
14970             *Sun\ C*)
14971               # Sun C++ 5.9
14972               lt_prog_compiler_pic_CXX='-KPIC'
14973               lt_prog_compiler_static_CXX='-Bstatic'
14974               lt_prog_compiler_wl_CXX='-Qoption ld '
14975               ;;
14976             esac
14977             ;;
14978         esac
14979         ;;
14980       lynxos*)
14981         ;;
14982       m88k*)
14983         ;;
14984       mvs*)
14985         case $cc_basename in
14986           cxx*)
14987             lt_prog_compiler_pic_CXX='-W c,exportall'
14988             ;;
14989           *)
14990             ;;
14991         esac
14992         ;;
14993       netbsd*)
14994         ;;
14995       *qnx* | *nto*)
14996         # QNX uses GNU C++, but need to define -shared option too, otherwise
14997         # it will coredump.
14998         lt_prog_compiler_pic_CXX='-fPIC -shared'
14999         ;;
15000       osf3* | osf4* | osf5*)
15001         case $cc_basename in
15002           KCC*)
15003             lt_prog_compiler_wl_CXX='--backend -Wl,'
15004             ;;
15005           RCC*)
15006             # Rational C++ 2.4.1
15007             lt_prog_compiler_pic_CXX='-pic'
15008             ;;
15009           cxx*)
15010             # Digital/Compaq C++
15011             lt_prog_compiler_wl_CXX='-Wl,'
15012             # Make sure the PIC flag is empty.  It appears that all Alpha
15013             # Linux and Compaq Tru64 Unix objects are PIC.
15014             lt_prog_compiler_pic_CXX=
15015             lt_prog_compiler_static_CXX='-non_shared'
15016             ;;
15017           *)
15018             ;;
15019         esac
15020         ;;
15021       psos*)
15022         ;;
15023       solaris*)
15024         case $cc_basename in
15025           CC* | sunCC*)
15026             # Sun C++ 4.2, 5.x and Centerline C++
15027             lt_prog_compiler_pic_CXX='-KPIC'
15028             lt_prog_compiler_static_CXX='-Bstatic'
15029             lt_prog_compiler_wl_CXX='-Qoption ld '
15030             ;;
15031           gcx*)
15032             # Green Hills C++ Compiler
15033             lt_prog_compiler_pic_CXX='-PIC'
15034             ;;
15035           *)
15036             ;;
15037         esac
15038         ;;
15039       sunos4*)
15040         case $cc_basename in
15041           CC*)
15042             # Sun C++ 4.x
15043             lt_prog_compiler_pic_CXX='-pic'
15044             lt_prog_compiler_static_CXX='-Bstatic'
15045             ;;
15046           lcc*)
15047             # Lucid
15048             lt_prog_compiler_pic_CXX='-pic'
15049             ;;
15050           *)
15051             ;;
15052         esac
15053         ;;
15054       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15055         case $cc_basename in
15056           CC*)
15057             lt_prog_compiler_wl_CXX='-Wl,'
15058             lt_prog_compiler_pic_CXX='-KPIC'
15059             lt_prog_compiler_static_CXX='-Bstatic'
15060             ;;
15061         esac
15062         ;;
15063       tandem*)
15064         case $cc_basename in
15065           NCC*)
15066             # NonStop-UX NCC 3.20
15067             lt_prog_compiler_pic_CXX='-KPIC'
15068             ;;
15069           *)
15070             ;;
15071         esac
15072         ;;
15073       vxworks*)
15074         ;;
15075       *)
15076         lt_prog_compiler_can_build_shared_CXX=no
15077         ;;
15078     esac
15079   fi
15080
15081 case $host_os in
15082   # For platforms which do not support PIC, -DPIC is meaningless:
15083   *djgpp*)
15084     lt_prog_compiler_pic_CXX=
15085     ;;
15086   *)
15087     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15088     ;;
15089 esac
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15092 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15093 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15094   $as_echo_n "(cached) " >&6
15095 else
15096   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15097 fi
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15099 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15100 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15101
15102 #
15103 # Check to make sure the PIC flag actually works.
15104 #
15105 if test -n "$lt_prog_compiler_pic_CXX"; then
15106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15108 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15109   $as_echo_n "(cached) " >&6
15110 else
15111   lt_cv_prog_compiler_pic_works_CXX=no
15112    ac_outfile=conftest.$ac_objext
15113    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15114    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15115    # Insert the option either (1) after the last *FLAGS variable, or
15116    # (2) before a word containing "conftest.", or (3) at the end.
15117    # Note that $ac_compile itself does not contain backslashes and begins
15118    # with a dollar sign (not a hyphen), so the echo should work correctly.
15119    # The option is referenced via a variable to avoid confusing sed.
15120    lt_compile=`echo "$ac_compile" | $SED \
15121    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15123    -e 's:$: $lt_compiler_flag:'`
15124    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15125    (eval "$lt_compile" 2>conftest.err)
15126    ac_status=$?
15127    cat conftest.err >&5
15128    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129    if (exit $ac_status) && test -s "$ac_outfile"; then
15130      # The compiler can only warn and ignore the option if not recognized
15131      # So say no if there are warnings other than the usual output.
15132      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15133      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15134      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15135        lt_cv_prog_compiler_pic_works_CXX=yes
15136      fi
15137    fi
15138    $RM conftest*
15139
15140 fi
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15142 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15143
15144 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15145     case $lt_prog_compiler_pic_CXX in
15146      "" | " "*) ;;
15147      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15148      esac
15149 else
15150     lt_prog_compiler_pic_CXX=
15151      lt_prog_compiler_can_build_shared_CXX=no
15152 fi
15153
15154 fi
15155
15156
15157
15158
15159
15160 #
15161 # Check to make sure the static flag actually works.
15162 #
15163 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15165 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15166 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15167   $as_echo_n "(cached) " >&6
15168 else
15169   lt_cv_prog_compiler_static_works_CXX=no
15170    save_LDFLAGS="$LDFLAGS"
15171    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15172    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15173    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15174      # The linker can only warn and ignore the option if not recognized
15175      # So say no if there are warnings
15176      if test -s conftest.err; then
15177        # Append any errors to the config.log.
15178        cat conftest.err 1>&5
15179        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15180        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15181        if diff conftest.exp conftest.er2 >/dev/null; then
15182          lt_cv_prog_compiler_static_works_CXX=yes
15183        fi
15184      else
15185        lt_cv_prog_compiler_static_works_CXX=yes
15186      fi
15187    fi
15188    $RM -r conftest*
15189    LDFLAGS="$save_LDFLAGS"
15190
15191 fi
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15193 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15194
15195 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15196     :
15197 else
15198     lt_prog_compiler_static_CXX=
15199 fi
15200
15201
15202
15203
15204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15205 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15206 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15207   $as_echo_n "(cached) " >&6
15208 else
15209   lt_cv_prog_compiler_c_o_CXX=no
15210    $RM -r conftest 2>/dev/null
15211    mkdir conftest
15212    cd conftest
15213    mkdir out
15214    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15215
15216    lt_compiler_flag="-o out/conftest2.$ac_objext"
15217    # Insert the option either (1) after the last *FLAGS variable, or
15218    # (2) before a word containing "conftest.", or (3) at the end.
15219    # Note that $ac_compile itself does not contain backslashes and begins
15220    # with a dollar sign (not a hyphen), so the echo should work correctly.
15221    lt_compile=`echo "$ac_compile" | $SED \
15222    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15223    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15224    -e 's:$: $lt_compiler_flag:'`
15225    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15226    (eval "$lt_compile" 2>out/conftest.err)
15227    ac_status=$?
15228    cat out/conftest.err >&5
15229    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15231    then
15232      # The compiler can only warn and ignore the option if not recognized
15233      # So say no if there are warnings
15234      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15235      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15236      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15237        lt_cv_prog_compiler_c_o_CXX=yes
15238      fi
15239    fi
15240    chmod u+w . 2>&5
15241    $RM conftest*
15242    # SGI C++ compiler will create directory out/ii_files/ for
15243    # template instantiation
15244    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15245    $RM out/* && rmdir out
15246    cd ..
15247    $RM -r conftest
15248    $RM conftest*
15249
15250 fi
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15252 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15253
15254
15255
15256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15258 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15259   $as_echo_n "(cached) " >&6
15260 else
15261   lt_cv_prog_compiler_c_o_CXX=no
15262    $RM -r conftest 2>/dev/null
15263    mkdir conftest
15264    cd conftest
15265    mkdir out
15266    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15267
15268    lt_compiler_flag="-o out/conftest2.$ac_objext"
15269    # Insert the option either (1) after the last *FLAGS variable, or
15270    # (2) before a word containing "conftest.", or (3) at the end.
15271    # Note that $ac_compile itself does not contain backslashes and begins
15272    # with a dollar sign (not a hyphen), so the echo should work correctly.
15273    lt_compile=`echo "$ac_compile" | $SED \
15274    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15275    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15276    -e 's:$: $lt_compiler_flag:'`
15277    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15278    (eval "$lt_compile" 2>out/conftest.err)
15279    ac_status=$?
15280    cat out/conftest.err >&5
15281    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15283    then
15284      # The compiler can only warn and ignore the option if not recognized
15285      # So say no if there are warnings
15286      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15287      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15288      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15289        lt_cv_prog_compiler_c_o_CXX=yes
15290      fi
15291    fi
15292    chmod u+w . 2>&5
15293    $RM conftest*
15294    # SGI C++ compiler will create directory out/ii_files/ for
15295    # template instantiation
15296    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15297    $RM out/* && rmdir out
15298    cd ..
15299    $RM -r conftest
15300    $RM conftest*
15301
15302 fi
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15304 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15305
15306
15307
15308
15309 hard_links="nottested"
15310 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15311   # do not overwrite the value of need_locks provided by the user
15312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15313 $as_echo_n "checking if we can lock with hard links... " >&6; }
15314   hard_links=yes
15315   $RM conftest*
15316   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15317   touch conftest.a
15318   ln conftest.a conftest.b 2>&5 || hard_links=no
15319   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15321 $as_echo "$hard_links" >&6; }
15322   if test "$hard_links" = no; then
15323     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15324 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15325     need_locks=warn
15326   fi
15327 else
15328   need_locks=no
15329 fi
15330
15331
15332
15333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15334 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15335
15336   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15337   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15338   case $host_os in
15339   aix[4-9]*)
15340     # If we're using GNU nm, then we don't want the "-C" option.
15341     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15342     # Also, AIX nm treats weak defined symbols like other global defined
15343     # symbols, whereas GNU nm marks them as "W".
15344     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15345       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'
15346     else
15347       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'
15348     fi
15349     ;;
15350   pw32*)
15351     export_symbols_cmds_CXX="$ltdll_cmds"
15352     ;;
15353   cygwin* | mingw* | cegcc*)
15354     case $cc_basename in
15355     cl*) ;;
15356     *)
15357       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'
15358       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15359       ;;
15360     esac
15361     ;;
15362   *)
15363     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15364     ;;
15365   esac
15366
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15368 $as_echo "$ld_shlibs_CXX" >&6; }
15369 test "$ld_shlibs_CXX" = no && can_build_shared=no
15370
15371 with_gnu_ld_CXX=$with_gnu_ld
15372
15373
15374
15375
15376
15377
15378 #
15379 # Do we need to explicitly link libc?
15380 #
15381 case "x$archive_cmds_need_lc_CXX" in
15382 x|xyes)
15383   # Assume -lc should be added
15384   archive_cmds_need_lc_CXX=yes
15385
15386   if test "$enable_shared" = yes && test "$GCC" = yes; then
15387     case $archive_cmds_CXX in
15388     *'~'*)
15389       # FIXME: we may have to deal with multi-command sequences.
15390       ;;
15391     '$CC '*)
15392       # Test whether the compiler implicitly links with -lc since on some
15393       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15394       # to ld, don't add -lc before -lgcc.
15395       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15396 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15397 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15398   $as_echo_n "(cached) " >&6
15399 else
15400   $RM conftest*
15401         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15402
15403         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15404   (eval $ac_compile) 2>&5
15405   ac_status=$?
15406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15407   test $ac_status = 0; } 2>conftest.err; then
15408           soname=conftest
15409           lib=conftest
15410           libobjs=conftest.$ac_objext
15411           deplibs=
15412           wl=$lt_prog_compiler_wl_CXX
15413           pic_flag=$lt_prog_compiler_pic_CXX
15414           compiler_flags=-v
15415           linker_flags=-v
15416           verstring=
15417           output_objdir=.
15418           libname=conftest
15419           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15420           allow_undefined_flag_CXX=
15421           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15422   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15423   ac_status=$?
15424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15425   test $ac_status = 0; }
15426           then
15427             lt_cv_archive_cmds_need_lc_CXX=no
15428           else
15429             lt_cv_archive_cmds_need_lc_CXX=yes
15430           fi
15431           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15432         else
15433           cat conftest.err 1>&5
15434         fi
15435         $RM conftest*
15436
15437 fi
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15439 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15440       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15441       ;;
15442     esac
15443   fi
15444   ;;
15445 esac
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15511 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15512
15513 library_names_spec=
15514 libname_spec='lib$name'
15515 soname_spec=
15516 shrext_cmds=".so"
15517 postinstall_cmds=
15518 postuninstall_cmds=
15519 finish_cmds=
15520 finish_eval=
15521 shlibpath_var=
15522 shlibpath_overrides_runpath=unknown
15523 version_type=none
15524 dynamic_linker="$host_os ld.so"
15525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15526 need_lib_prefix=unknown
15527 hardcode_into_libs=no
15528
15529 # when you set need_version to no, make sure it does not cause -set_version
15530 # flags to be left without arguments
15531 need_version=unknown
15532
15533 case $host_os in
15534 aix3*)
15535   version_type=linux
15536   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15537   shlibpath_var=LIBPATH
15538
15539   # AIX 3 has no versioning support, so we append a major version to the name.
15540   soname_spec='${libname}${release}${shared_ext}$major'
15541   ;;
15542
15543 aix[4-9]*)
15544   version_type=linux
15545   need_lib_prefix=no
15546   need_version=no
15547   hardcode_into_libs=yes
15548   if test "$host_cpu" = ia64; then
15549     # AIX 5 supports IA64
15550     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15551     shlibpath_var=LD_LIBRARY_PATH
15552   else
15553     # With GCC up to 2.95.x, collect2 would create an import file
15554     # for dependence libraries.  The import file would start with
15555     # the line `#! .'.  This would cause the generated library to
15556     # depend on `.', always an invalid library.  This was fixed in
15557     # development snapshots of GCC prior to 3.0.
15558     case $host_os in
15559       aix4 | aix4.[01] | aix4.[01].*)
15560       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15561            echo ' yes '
15562            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15563         :
15564       else
15565         can_build_shared=no
15566       fi
15567       ;;
15568     esac
15569     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15570     # soname into executable. Probably we can add versioning support to
15571     # collect2, so additional links can be useful in future.
15572     if test "$aix_use_runtimelinking" = yes; then
15573       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15574       # instead of lib<name>.a to let people know that these are not
15575       # typical AIX shared libraries.
15576       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577     else
15578       # We preserve .a as extension for shared libraries through AIX4.2
15579       # and later when we are not doing run time linking.
15580       library_names_spec='${libname}${release}.a $libname.a'
15581       soname_spec='${libname}${release}${shared_ext}$major'
15582     fi
15583     shlibpath_var=LIBPATH
15584   fi
15585   ;;
15586
15587 amigaos*)
15588   case $host_cpu in
15589   powerpc)
15590     # Since July 2007 AmigaOS4 officially supports .so libraries.
15591     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593     ;;
15594   m68k)
15595     library_names_spec='$libname.ixlibrary $libname.a'
15596     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15597     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'
15598     ;;
15599   esac
15600   ;;
15601
15602 beos*)
15603   library_names_spec='${libname}${shared_ext}'
15604   dynamic_linker="$host_os ld.so"
15605   shlibpath_var=LIBRARY_PATH
15606   ;;
15607
15608 bsdi[45]*)
15609   version_type=linux
15610   need_version=no
15611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612   soname_spec='${libname}${release}${shared_ext}$major'
15613   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15614   shlibpath_var=LD_LIBRARY_PATH
15615   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15616   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15617   # the default ld.so.conf also contains /usr/contrib/lib and
15618   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15619   # libtool to hard-code these into programs
15620   ;;
15621
15622 cygwin* | mingw* | pw32* | cegcc*)
15623   version_type=windows
15624   shrext_cmds=".dll"
15625   need_version=no
15626   need_lib_prefix=no
15627
15628   case $GCC,$cc_basename in
15629   yes,*)
15630     # gcc
15631     library_names_spec='$libname.dll.a'
15632     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15633     postinstall_cmds='base_file=`basename \${file}`~
15634       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15635       dldir=$destdir/`dirname \$dlpath`~
15636       test -d \$dldir || mkdir -p \$dldir~
15637       $install_prog $dir/$dlname \$dldir/$dlname~
15638       chmod a+x \$dldir/$dlname~
15639       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15640         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15641       fi'
15642     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15643       dlpath=$dir/\$dldll~
15644        $RM \$dlpath'
15645     shlibpath_overrides_runpath=yes
15646
15647     case $host_os in
15648     cygwin*)
15649       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15650       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15651
15652       ;;
15653     mingw* | cegcc*)
15654       # MinGW DLLs use traditional 'lib' prefix
15655       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15656       ;;
15657     pw32*)
15658       # pw32 DLLs use 'pw' prefix rather than 'lib'
15659       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15660       ;;
15661     esac
15662     dynamic_linker='Win32 ld.exe'
15663     ;;
15664
15665   *,cl*)
15666     # Native MSVC
15667     libname_spec='$name'
15668     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15669     library_names_spec='${libname}.dll.lib'
15670
15671     case $build_os in
15672     mingw*)
15673       sys_lib_search_path_spec=
15674       lt_save_ifs=$IFS
15675       IFS=';'
15676       for lt_path in $LIB
15677       do
15678         IFS=$lt_save_ifs
15679         # Let DOS variable expansion print the short 8.3 style file name.
15680         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15681         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15682       done
15683       IFS=$lt_save_ifs
15684       # Convert to MSYS style.
15685       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15686       ;;
15687     cygwin*)
15688       # Convert to unix form, then to dos form, then back to unix form
15689       # but this time dos style (no spaces!) so that the unix form looks
15690       # like /cygdrive/c/PROGRA~1:/cygdr...
15691       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15692       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15693       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15694       ;;
15695     *)
15696       sys_lib_search_path_spec="$LIB"
15697       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15698         # It is most probably a Windows format PATH.
15699         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15700       else
15701         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15702       fi
15703       # FIXME: find the short name or the path components, as spaces are
15704       # common. (e.g. "Program Files" -> "PROGRA~1")
15705       ;;
15706     esac
15707
15708     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15709     postinstall_cmds='base_file=`basename \${file}`~
15710       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15711       dldir=$destdir/`dirname \$dlpath`~
15712       test -d \$dldir || mkdir -p \$dldir~
15713       $install_prog $dir/$dlname \$dldir/$dlname'
15714     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15715       dlpath=$dir/\$dldll~
15716        $RM \$dlpath'
15717     shlibpath_overrides_runpath=yes
15718     dynamic_linker='Win32 link.exe'
15719     ;;
15720
15721   *)
15722     # Assume MSVC wrapper
15723     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15724     dynamic_linker='Win32 ld.exe'
15725     ;;
15726   esac
15727   # FIXME: first we should search . and the directory the executable is in
15728   shlibpath_var=PATH
15729   ;;
15730
15731 darwin* | rhapsody*)
15732   dynamic_linker="$host_os dyld"
15733   version_type=darwin
15734   need_lib_prefix=no
15735   need_version=no
15736   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15737   soname_spec='${libname}${release}${major}$shared_ext'
15738   shlibpath_overrides_runpath=yes
15739   shlibpath_var=DYLD_LIBRARY_PATH
15740   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15741
15742   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15743   ;;
15744
15745 dgux*)
15746   version_type=linux
15747   need_lib_prefix=no
15748   need_version=no
15749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15750   soname_spec='${libname}${release}${shared_ext}$major'
15751   shlibpath_var=LD_LIBRARY_PATH
15752   ;;
15753
15754 freebsd1*)
15755   dynamic_linker=no
15756   ;;
15757
15758 freebsd* | dragonfly*)
15759   # DragonFly does not have aout.  When/if they implement a new
15760   # versioning mechanism, adjust this.
15761   if test -x /usr/bin/objformat; then
15762     objformat=`/usr/bin/objformat`
15763   else
15764     case $host_os in
15765     freebsd[123]*) objformat=aout ;;
15766     *) objformat=elf ;;
15767     esac
15768   fi
15769   version_type=freebsd-$objformat
15770   case $version_type in
15771     freebsd-elf*)
15772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15773       need_version=no
15774       need_lib_prefix=no
15775       ;;
15776     freebsd-*)
15777       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15778       need_version=yes
15779       ;;
15780   esac
15781   shlibpath_var=LD_LIBRARY_PATH
15782   case $host_os in
15783   freebsd2*)
15784     shlibpath_overrides_runpath=yes
15785     ;;
15786   freebsd3.[01]* | freebsdelf3.[01]*)
15787     shlibpath_overrides_runpath=yes
15788     hardcode_into_libs=yes
15789     ;;
15790   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15791   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15792     shlibpath_overrides_runpath=no
15793     hardcode_into_libs=yes
15794     ;;
15795   *) # from 4.6 on, and DragonFly
15796     shlibpath_overrides_runpath=yes
15797     hardcode_into_libs=yes
15798     ;;
15799   esac
15800   ;;
15801
15802 gnu*)
15803   version_type=linux
15804   need_lib_prefix=no
15805   need_version=no
15806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15807   soname_spec='${libname}${release}${shared_ext}$major'
15808   shlibpath_var=LD_LIBRARY_PATH
15809   hardcode_into_libs=yes
15810   ;;
15811
15812 haiku*)
15813   version_type=linux
15814   need_lib_prefix=no
15815   need_version=no
15816   dynamic_linker="$host_os runtime_loader"
15817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15818   soname_spec='${libname}${release}${shared_ext}$major'
15819   shlibpath_var=LIBRARY_PATH
15820   shlibpath_overrides_runpath=yes
15821   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15822   hardcode_into_libs=yes
15823   ;;
15824
15825 hpux9* | hpux10* | hpux11*)
15826   # Give a soname corresponding to the major version so that dld.sl refuses to
15827   # link against other versions.
15828   version_type=sunos
15829   need_lib_prefix=no
15830   need_version=no
15831   case $host_cpu in
15832   ia64*)
15833     shrext_cmds='.so'
15834     hardcode_into_libs=yes
15835     dynamic_linker="$host_os dld.so"
15836     shlibpath_var=LD_LIBRARY_PATH
15837     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839     soname_spec='${libname}${release}${shared_ext}$major'
15840     if test "X$HPUX_IA64_MODE" = X32; then
15841       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15842     else
15843       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15844     fi
15845     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15846     ;;
15847   hppa*64*)
15848     shrext_cmds='.sl'
15849     hardcode_into_libs=yes
15850     dynamic_linker="$host_os dld.sl"
15851     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15852     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854     soname_spec='${libname}${release}${shared_ext}$major'
15855     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15856     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15857     ;;
15858   *)
15859     shrext_cmds='.sl'
15860     dynamic_linker="$host_os dld.sl"
15861     shlibpath_var=SHLIB_PATH
15862     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864     soname_spec='${libname}${release}${shared_ext}$major'
15865     ;;
15866   esac
15867   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15868   postinstall_cmds='chmod 555 $lib'
15869   # or fails outright, so override atomically:
15870   install_override_mode=555
15871   ;;
15872
15873 interix[3-9]*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15880   shlibpath_var=LD_LIBRARY_PATH
15881   shlibpath_overrides_runpath=no
15882   hardcode_into_libs=yes
15883   ;;
15884
15885 irix5* | irix6* | nonstopux*)
15886   case $host_os in
15887     nonstopux*) version_type=nonstopux ;;
15888     *)
15889         if test "$lt_cv_prog_gnu_ld" = yes; then
15890                 version_type=linux
15891         else
15892                 version_type=irix
15893         fi ;;
15894   esac
15895   need_lib_prefix=no
15896   need_version=no
15897   soname_spec='${libname}${release}${shared_ext}$major'
15898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15899   case $host_os in
15900   irix5* | nonstopux*)
15901     libsuff= shlibsuff=
15902     ;;
15903   *)
15904     case $LD in # libtool.m4 will add one of these switches to LD
15905     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15906       libsuff= shlibsuff= libmagic=32-bit;;
15907     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15908       libsuff=32 shlibsuff=N32 libmagic=N32;;
15909     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15910       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15911     *) libsuff= shlibsuff= libmagic=never-match;;
15912     esac
15913     ;;
15914   esac
15915   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15916   shlibpath_overrides_runpath=no
15917   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15918   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15919   hardcode_into_libs=yes
15920   ;;
15921
15922 # No shared lib support for Linux oldld, aout, or coff.
15923 linux*oldld* | linux*aout* | linux*coff*)
15924   dynamic_linker=no
15925   ;;
15926
15927 # This must be Linux ELF.
15928 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15929   version_type=linux
15930   need_lib_prefix=no
15931   need_version=no
15932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933   soname_spec='${libname}${release}${shared_ext}$major'
15934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15935   shlibpath_var=LD_LIBRARY_PATH
15936   shlibpath_overrides_runpath=no
15937
15938   # Some binutils ld are patched to set DT_RUNPATH
15939   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15940   $as_echo_n "(cached) " >&6
15941 else
15942   lt_cv_shlibpath_overrides_runpath=no
15943     save_LDFLAGS=$LDFLAGS
15944     save_libdir=$libdir
15945     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15946          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h.  */
15949
15950 int
15951 main ()
15952 {
15953
15954   ;
15955   return 0;
15956 }
15957 _ACEOF
15958 if ac_fn_cxx_try_link "$LINENO"; then :
15959   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15960   lt_cv_shlibpath_overrides_runpath=yes
15961 fi
15962 fi
15963 rm -f core conftest.err conftest.$ac_objext \
15964     conftest$ac_exeext conftest.$ac_ext
15965     LDFLAGS=$save_LDFLAGS
15966     libdir=$save_libdir
15967
15968 fi
15969
15970   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15971
15972   # This implies no fast_install, which is unacceptable.
15973   # Some rework will be needed to allow for fast_install
15974   # before this can be enabled.
15975   hardcode_into_libs=yes
15976
15977   # Append ld.so.conf contents to the search path
15978   if test -f /etc/ld.so.conf; then
15979     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' ' '`
15980     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15981   fi
15982
15983   # We used to test for /lib/ld.so.1 and disable shared libraries on
15984   # powerpc, because MkLinux only supported shared libraries with the
15985   # GNU dynamic linker.  Since this was broken with cross compilers,
15986   # most powerpc-linux boxes support dynamic linking these days and
15987   # people can always --disable-shared, the test was removed, and we
15988   # assume the GNU/Linux dynamic linker is in use.
15989   dynamic_linker='GNU/Linux ld.so'
15990   ;;
15991
15992 netbsd*)
15993   version_type=sunos
15994   need_lib_prefix=no
15995   need_version=no
15996   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15998     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15999     dynamic_linker='NetBSD (a.out) ld.so'
16000   else
16001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16002     soname_spec='${libname}${release}${shared_ext}$major'
16003     dynamic_linker='NetBSD ld.elf_so'
16004   fi
16005   shlibpath_var=LD_LIBRARY_PATH
16006   shlibpath_overrides_runpath=yes
16007   hardcode_into_libs=yes
16008   ;;
16009
16010 newsos6)
16011   version_type=linux
16012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013   shlibpath_var=LD_LIBRARY_PATH
16014   shlibpath_overrides_runpath=yes
16015   ;;
16016
16017 *nto* | *qnx*)
16018   version_type=qnx
16019   need_lib_prefix=no
16020   need_version=no
16021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022   soname_spec='${libname}${release}${shared_ext}$major'
16023   shlibpath_var=LD_LIBRARY_PATH
16024   shlibpath_overrides_runpath=no
16025   hardcode_into_libs=yes
16026   dynamic_linker='ldqnx.so'
16027   ;;
16028
16029 openbsd*)
16030   version_type=sunos
16031   sys_lib_dlsearch_path_spec="/usr/lib"
16032   need_lib_prefix=no
16033   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16034   case $host_os in
16035     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16036     *)                          need_version=no  ;;
16037   esac
16038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16039   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16040   shlibpath_var=LD_LIBRARY_PATH
16041   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16042     case $host_os in
16043       openbsd2.[89] | openbsd2.[89].*)
16044         shlibpath_overrides_runpath=no
16045         ;;
16046       *)
16047         shlibpath_overrides_runpath=yes
16048         ;;
16049       esac
16050   else
16051     shlibpath_overrides_runpath=yes
16052   fi
16053   ;;
16054
16055 os2*)
16056   libname_spec='$name'
16057   shrext_cmds=".dll"
16058   need_lib_prefix=no
16059   library_names_spec='$libname${shared_ext} $libname.a'
16060   dynamic_linker='OS/2 ld.exe'
16061   shlibpath_var=LIBPATH
16062   ;;
16063
16064 osf3* | osf4* | osf5*)
16065   version_type=osf
16066   need_lib_prefix=no
16067   need_version=no
16068   soname_spec='${libname}${release}${shared_ext}$major'
16069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070   shlibpath_var=LD_LIBRARY_PATH
16071   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16072   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16073   ;;
16074
16075 rdos*)
16076   dynamic_linker=no
16077   ;;
16078
16079 solaris*)
16080   version_type=linux
16081   need_lib_prefix=no
16082   need_version=no
16083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084   soname_spec='${libname}${release}${shared_ext}$major'
16085   shlibpath_var=LD_LIBRARY_PATH
16086   shlibpath_overrides_runpath=yes
16087   hardcode_into_libs=yes
16088   # ldd complains unless libraries are executable
16089   postinstall_cmds='chmod +x $lib'
16090   ;;
16091
16092 sunos4*)
16093   version_type=sunos
16094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16095   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16096   shlibpath_var=LD_LIBRARY_PATH
16097   shlibpath_overrides_runpath=yes
16098   if test "$with_gnu_ld" = yes; then
16099     need_lib_prefix=no
16100   fi
16101   need_version=yes
16102   ;;
16103
16104 sysv4 | sysv4.3*)
16105   version_type=linux
16106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107   soname_spec='${libname}${release}${shared_ext}$major'
16108   shlibpath_var=LD_LIBRARY_PATH
16109   case $host_vendor in
16110     sni)
16111       shlibpath_overrides_runpath=no
16112       need_lib_prefix=no
16113       runpath_var=LD_RUN_PATH
16114       ;;
16115     siemens)
16116       need_lib_prefix=no
16117       ;;
16118     motorola)
16119       need_lib_prefix=no
16120       need_version=no
16121       shlibpath_overrides_runpath=no
16122       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16123       ;;
16124   esac
16125   ;;
16126
16127 sysv4*MP*)
16128   if test -d /usr/nec ;then
16129     version_type=linux
16130     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16131     soname_spec='$libname${shared_ext}.$major'
16132     shlibpath_var=LD_LIBRARY_PATH
16133   fi
16134   ;;
16135
16136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16137   version_type=freebsd-elf
16138   need_lib_prefix=no
16139   need_version=no
16140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16141   soname_spec='${libname}${release}${shared_ext}$major'
16142   shlibpath_var=LD_LIBRARY_PATH
16143   shlibpath_overrides_runpath=yes
16144   hardcode_into_libs=yes
16145   if test "$with_gnu_ld" = yes; then
16146     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16147   else
16148     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16149     case $host_os in
16150       sco3.2v5*)
16151         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16152         ;;
16153     esac
16154   fi
16155   sys_lib_dlsearch_path_spec='/usr/lib'
16156   ;;
16157
16158 tpf*)
16159   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16160   version_type=linux
16161   need_lib_prefix=no
16162   need_version=no
16163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164   shlibpath_var=LD_LIBRARY_PATH
16165   shlibpath_overrides_runpath=no
16166   hardcode_into_libs=yes
16167   ;;
16168
16169 uts4*)
16170   version_type=linux
16171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172   soname_spec='${libname}${release}${shared_ext}$major'
16173   shlibpath_var=LD_LIBRARY_PATH
16174   ;;
16175
16176 *)
16177   dynamic_linker=no
16178   ;;
16179 esac
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16181 $as_echo "$dynamic_linker" >&6; }
16182 test "$dynamic_linker" = no && can_build_shared=no
16183
16184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16185 if test "$GCC" = yes; then
16186   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16187 fi
16188
16189 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16190   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16191 fi
16192 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16193   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16194 fi
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16234 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16235 hardcode_action_CXX=
16236 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16237    test -n "$runpath_var_CXX" ||
16238    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16239
16240   # We can hardcode non-existent directories.
16241   if test "$hardcode_direct_CXX" != no &&
16242      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16243      # have to relink, otherwise we might link with an installed library
16244      # when we should be linking with a yet-to-be-installed one
16245      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16246      test "$hardcode_minus_L_CXX" != no; then
16247     # Linking always hardcodes the temporary library directory.
16248     hardcode_action_CXX=relink
16249   else
16250     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16251     hardcode_action_CXX=immediate
16252   fi
16253 else
16254   # We cannot hardcode anything, or else we can only hardcode existing
16255   # directories.
16256   hardcode_action_CXX=unsupported
16257 fi
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16259 $as_echo "$hardcode_action_CXX" >&6; }
16260
16261 if test "$hardcode_action_CXX" = relink ||
16262    test "$inherit_rpath_CXX" = yes; then
16263   # Fast installation is not supported
16264   enable_fast_install=no
16265 elif test "$shlibpath_overrides_runpath" = yes ||
16266      test "$enable_shared" = no; then
16267   # Fast installation is not necessary
16268   enable_fast_install=needless
16269 fi
16270
16271
16272
16273
16274
16275
16276
16277   fi # test -n "$compiler"
16278
16279   CC=$lt_save_CC
16280   CFLAGS=$lt_save_CFLAGS
16281   LDCXX=$LD
16282   LD=$lt_save_LD
16283   GCC=$lt_save_GCC
16284   with_gnu_ld=$lt_save_with_gnu_ld
16285   lt_cv_path_LDCXX=$lt_cv_path_LD
16286   lt_cv_path_LD=$lt_save_path_LD
16287   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16288   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16289 fi # test "$_lt_caught_CXX_error" != yes
16290
16291 ac_ext=c
16292 ac_cpp='$CPP $CPPFLAGS'
16293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309         ac_config_commands="$ac_config_commands libtool"
16310
16311
16312
16313
16314 # Only expand once:
16315
16316
16317
16318 LT_DLLOADERS=
16319
16320
16321 ac_ext=c
16322 ac_cpp='$CPP $CPPFLAGS'
16323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16326
16327
16328 LIBADD_DLOPEN=
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16330 $as_echo_n "checking for library containing dlopen... " >&6; }
16331 if ${ac_cv_search_dlopen+:} false; then :
16332   $as_echo_n "(cached) " >&6
16333 else
16334   ac_func_search_save_LIBS=$LIBS
16335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16336 /* end confdefs.h.  */
16337
16338 /* Override any GCC internal prototype to avoid an error.
16339    Use char because int might match the return type of a GCC
16340    builtin and then its argument prototype would still apply.  */
16341 #ifdef __cplusplus
16342 extern "C"
16343 #endif
16344 char dlopen ();
16345 int
16346 main ()
16347 {
16348 return dlopen ();
16349   ;
16350   return 0;
16351 }
16352 _ACEOF
16353 for ac_lib in '' dl; do
16354   if test -z "$ac_lib"; then
16355     ac_res="none required"
16356   else
16357     ac_res=-l$ac_lib
16358     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16359   fi
16360   if ac_fn_c_try_link "$LINENO"; then :
16361   ac_cv_search_dlopen=$ac_res
16362 fi
16363 rm -f core conftest.err conftest.$ac_objext \
16364     conftest$ac_exeext
16365   if ${ac_cv_search_dlopen+:} false; then :
16366   break
16367 fi
16368 done
16369 if ${ac_cv_search_dlopen+:} false; then :
16370
16371 else
16372   ac_cv_search_dlopen=no
16373 fi
16374 rm conftest.$ac_ext
16375 LIBS=$ac_func_search_save_LIBS
16376 fi
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16378 $as_echo "$ac_cv_search_dlopen" >&6; }
16379 ac_res=$ac_cv_search_dlopen
16380 if test "$ac_res" != no; then :
16381   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16382
16383 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16384
16385         if test "$ac_cv_search_dlopen" != "none required" ; then
16386           LIBADD_DLOPEN="-ldl"
16387         fi
16388         libltdl_cv_lib_dl_dlopen="yes"
16389         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16390 else
16391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h.  */
16393 #if HAVE_DLFCN_H
16394 #  include <dlfcn.h>
16395 #endif
16396
16397 int
16398 main ()
16399 {
16400 dlopen(0, 0);
16401   ;
16402   return 0;
16403 }
16404 _ACEOF
16405 if ac_fn_c_try_link "$LINENO"; then :
16406
16407 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16408
16409             libltdl_cv_func_dlopen="yes"
16410             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16411 else
16412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16413 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16414 if ${ac_cv_lib_svld_dlopen+:} false; then :
16415   $as_echo_n "(cached) " >&6
16416 else
16417   ac_check_lib_save_LIBS=$LIBS
16418 LIBS="-lsvld  $LIBS"
16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h.  */
16421
16422 /* Override any GCC internal prototype to avoid an error.
16423    Use char because int might match the return type of a GCC
16424    builtin and then its argument prototype would still apply.  */
16425 #ifdef __cplusplus
16426 extern "C"
16427 #endif
16428 char dlopen ();
16429 int
16430 main ()
16431 {
16432 return dlopen ();
16433   ;
16434   return 0;
16435 }
16436 _ACEOF
16437 if ac_fn_c_try_link "$LINENO"; then :
16438   ac_cv_lib_svld_dlopen=yes
16439 else
16440   ac_cv_lib_svld_dlopen=no
16441 fi
16442 rm -f core conftest.err conftest.$ac_objext \
16443     conftest$ac_exeext conftest.$ac_ext
16444 LIBS=$ac_check_lib_save_LIBS
16445 fi
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16447 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16448 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16449
16450 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16451
16452                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16453                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16454 fi
16455
16456 fi
16457 rm -f core conftest.err conftest.$ac_objext \
16458     conftest$ac_exeext conftest.$ac_ext
16459 fi
16460
16461 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16462 then
16463   lt_save_LIBS="$LIBS"
16464   LIBS="$LIBS $LIBADD_DLOPEN"
16465   for ac_func in dlerror
16466 do :
16467   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16468 if test "x$ac_cv_func_dlerror" = xyes; then :
16469   cat >>confdefs.h <<_ACEOF
16470 #define HAVE_DLERROR 1
16471 _ACEOF
16472
16473 fi
16474 done
16475
16476   LIBS="$lt_save_LIBS"
16477 fi
16478
16479
16480 LIBADD_SHL_LOAD=
16481 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16482 if test "x$ac_cv_func_shl_load" = xyes; then :
16483
16484 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16485
16486         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16487 else
16488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16489 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16490 if ${ac_cv_lib_dld_shl_load+:} false; then :
16491   $as_echo_n "(cached) " >&6
16492 else
16493   ac_check_lib_save_LIBS=$LIBS
16494 LIBS="-ldld  $LIBS"
16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h.  */
16497
16498 /* Override any GCC internal prototype to avoid an error.
16499    Use char because int might match the return type of a GCC
16500    builtin and then its argument prototype would still apply.  */
16501 #ifdef __cplusplus
16502 extern "C"
16503 #endif
16504 char shl_load ();
16505 int
16506 main ()
16507 {
16508 return shl_load ();
16509   ;
16510   return 0;
16511 }
16512 _ACEOF
16513 if ac_fn_c_try_link "$LINENO"; then :
16514   ac_cv_lib_dld_shl_load=yes
16515 else
16516   ac_cv_lib_dld_shl_load=no
16517 fi
16518 rm -f core conftest.err conftest.$ac_objext \
16519     conftest$ac_exeext conftest.$ac_ext
16520 LIBS=$ac_check_lib_save_LIBS
16521 fi
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16523 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16524 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16525
16526 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16527
16528             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16529             LIBADD_SHL_LOAD="-ldld"
16530 fi
16531
16532 fi
16533
16534
16535
16536 case $host_os in
16537 darwin[1567].*)
16538 # We only want this for pre-Mac OS X 10.4.
16539   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16540 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16541
16542 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16543
16544         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16545 fi
16546
16547   ;;
16548 beos*)
16549   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16550   ;;
16551 cygwin* | mingw* | os2* | pw32*)
16552   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16553 "
16554 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16555   ac_have_decl=1
16556 else
16557   ac_have_decl=0
16558 fi
16559
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16562 _ACEOF
16563
16564   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16565   ;;
16566 esac
16567
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16569 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16570 if ${ac_cv_lib_dld_dld_link+:} false; then :
16571   $as_echo_n "(cached) " >&6
16572 else
16573   ac_check_lib_save_LIBS=$LIBS
16574 LIBS="-ldld  $LIBS"
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h.  */
16577
16578 /* Override any GCC internal prototype to avoid an error.
16579    Use char because int might match the return type of a GCC
16580    builtin and then its argument prototype would still apply.  */
16581 #ifdef __cplusplus
16582 extern "C"
16583 #endif
16584 char dld_link ();
16585 int
16586 main ()
16587 {
16588 return dld_link ();
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 if ac_fn_c_try_link "$LINENO"; then :
16594   ac_cv_lib_dld_dld_link=yes
16595 else
16596   ac_cv_lib_dld_dld_link=no
16597 fi
16598 rm -f core conftest.err conftest.$ac_objext \
16599     conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16601 fi
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16603 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16604 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16605
16606 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16607
16608                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16609 fi
16610
16611
16612
16613
16614 LT_DLPREOPEN=
16615 if test -n "$LT_DLLOADERS"
16616 then
16617   for lt_loader in $LT_DLLOADERS; do
16618     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16619   done
16620
16621 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16622
16623 fi
16624
16625
16626 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16627
16628
16629 ac_ext=c
16630 ac_cpp='$CPP $CPPFLAGS'
16631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16634
16635
16636
16637
16638 if test x$use_libtool != xno; then
16639    DEFAULT_OBJECT_TYPE=".lo"
16640    DEFAULT_ARCHIVE_TYPE=".la"
16641    DEFAULT_SHARED_OBJECT_TYPE=".la"
16642    LIBTOOL="\$(LIBTOOL)"
16643    LIBTOOL_INSTALL_TARGET="libtool-install"
16644    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16645    LIBTOOL_CLEAN_TARGET="libtool-clean"
16646    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16647    FD_PLUGIN_DIR="src/plugins/fd"
16648    have_plugins=yes
16649 else
16650    DEFAULT_OBJECT_TYPE=".o"
16651    DEFAULT_ARCHIVE_TYPE=".a"
16652    DEFAULT_SHARED_OBJECT_TYPE=".so"
16653    LIBTOOL="# \$(LIBTOOL)"
16654    LIBTOOL_INSTALL_TARGET=""
16655    LIBTOOL_UNINSTALL_TARGET=""
16656    LIBTOOL_CLEAN_TARGET=""
16657    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16658    FD_PLUGIN_DIR=""
16659    have_plugins=no
16660 fi
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672 # Check whether --enable-includes was given.
16673 if test "${enable_includes+set}" = set; then :
16674   enableval=$enable_includes;
16675        if test x$enableval = xyes; then
16676           install_includes=yes
16677        fi
16678
16679
16680 fi
16681
16682
16683
16684 if test x$use_libtool != xno -a x$install_includes = xyes; then
16685    INCLUDE_INSTALL_TARGET="install-includes"
16686    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16687 else
16688    INCLUDE_INSTALL_TARGET=""
16689    INCLUDE_UNINSTALL_TARGET=""
16690 fi
16691
16692
16693
16694
16695
16696 case $host_os in
16697   *cygwin* ) CYGWIN=yes;;
16698          * ) CYGWIN=no;;
16699 esac
16700
16701 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16702 then
16703
16704
16705 if $TRUEPRG; then
16706   HAVE_SUN_OS_TRUE=
16707   HAVE_SUN_OS_FALSE='#'
16708 else
16709   HAVE_SUN_OS_TRUE='#'
16710   HAVE_SUN_OS_FALSE=
16711 fi
16712         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16713
16714 else
16715
16716
16717 if $FALSEPRG; then
16718   HAVE_SUN_OS_TRUE=
16719   HAVE_SUN_OS_FALSE='#'
16720 else
16721   HAVE_SUN_OS_TRUE='#'
16722   HAVE_SUN_OS_FALSE=
16723 fi
16724 fi
16725
16726 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16727 then
16728
16729
16730 if $TRUEPRG; then
16731   HAVE_HURD_OS_TRUE=
16732   HAVE_HURD_OS_FALSE='#'
16733 else
16734   HAVE_HURD_OS_TRUE='#'
16735   HAVE_HURD_OS_FALSE=
16736 fi
16737         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16738
16739 else
16740
16741
16742 if $FALSEPRG; then
16743   HAVE_HURD_OS_TRUE=
16744   HAVE_HURD_OS_FALSE='#'
16745 else
16746   HAVE_HURD_OS_TRUE='#'
16747   HAVE_HURD_OS_FALSE=
16748 fi
16749 fi
16750
16751 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16752 then
16753
16754
16755 if $TRUEPRG; then
16756   HAVE_OSF1_OS_TRUE=
16757   HAVE_OSF1_OS_FALSE='#'
16758 else
16759   HAVE_OSF1_OS_TRUE='#'
16760   HAVE_OSF1_OS_FALSE=
16761 fi
16762         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16763
16764 else
16765
16766
16767 if $FALSEPRG; then
16768   HAVE_OSF1_OS_TRUE=
16769   HAVE_OSF1_OS_FALSE='#'
16770 else
16771   HAVE_OSF1_OS_TRUE='#'
16772   HAVE_OSF1_OS_FALSE=
16773 fi
16774 fi
16775
16776 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16777 then
16778
16779
16780 if $TRUEPRG; then
16781   HAVE_AIX_OS_TRUE=
16782   HAVE_AIX_OS_FALSE='#'
16783 else
16784   HAVE_AIX_OS_TRUE='#'
16785   HAVE_AIX_OS_FALSE=
16786 fi
16787         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16788
16789 else
16790
16791
16792 if $FALSEPRG; then
16793   HAVE_AIX_OS_TRUE=
16794   HAVE_AIX_OS_FALSE='#'
16795 else
16796   HAVE_AIX_OS_TRUE='#'
16797   HAVE_AIX_OS_FALSE=
16798 fi
16799 fi
16800
16801 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16802 then
16803
16804
16805 if $TRUEPRG; then
16806   HAVE_HPUX_OS_TRUE=
16807   HAVE_HPUX_OS_FALSE='#'
16808 else
16809   HAVE_HPUX_OS_TRUE='#'
16810   HAVE_HPUX_OS_FALSE=
16811 fi
16812         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16813
16814 else
16815
16816
16817 if $FALSEPRG; then
16818   HAVE_HPUX_OS_TRUE=
16819   HAVE_HPUX_OS_FALSE='#'
16820 else
16821   HAVE_HPUX_OS_TRUE='#'
16822   HAVE_HPUX_OS_FALSE=
16823 fi
16824 fi
16825
16826 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16827 then
16828
16829
16830 if $TRUEPRG; then
16831   HAVE_LINUX_OS_TRUE=
16832   HAVE_LINUX_OS_FALSE='#'
16833 else
16834   HAVE_LINUX_OS_TRUE='#'
16835   HAVE_LINUX_OS_FALSE=
16836 fi
16837         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16838
16839 else
16840
16841
16842 if $FALSEPRG; then
16843   HAVE_LINUX_OS_TRUE=
16844   HAVE_LINUX_OS_FALSE='#'
16845 else
16846   HAVE_LINUX_OS_TRUE='#'
16847   HAVE_LINUX_OS_FALSE=
16848 fi
16849 fi
16850
16851 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16852 then
16853
16854
16855 if $TRUEPRG; then
16856   HAVE_FREEBSD_OS_TRUE=
16857   HAVE_FREEBSD_OS_FALSE='#'
16858 else
16859   HAVE_FREEBSD_OS_TRUE='#'
16860   HAVE_FREEBSD_OS_FALSE=
16861 fi
16862         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16863
16864 else
16865
16866
16867 if $FALSEPRG; then
16868   HAVE_FREEBSD_OS_TRUE=
16869   HAVE_FREEBSD_OS_FALSE='#'
16870 else
16871   HAVE_FREEBSD_OS_TRUE='#'
16872   HAVE_FREEBSD_OS_FALSE=
16873 fi
16874 fi
16875
16876 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16877 then
16878
16879
16880 if $TRUEPRG; then
16881   HAVE_NETBSD_OS_TRUE=
16882   HAVE_NETBSD_OS_FALSE='#'
16883 else
16884   HAVE_NETBSD_OS_TRUE='#'
16885   HAVE_NETBSD_OS_FALSE=
16886 fi
16887         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16888
16889 else
16890
16891
16892 if $FALSEPRG; then
16893   HAVE_NETBSD_OS_TRUE=
16894   HAVE_NETBSD_OS_FALSE='#'
16895 else
16896   HAVE_NETBSD_OS_TRUE='#'
16897   HAVE_NETBSD_OS_FALSE=
16898 fi
16899 fi
16900
16901 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16902 then
16903
16904
16905 if $TRUEPRG; then
16906   HAVE_OPENBSD_OS_TRUE=
16907   HAVE_OPENBSD_OS_FALSE='#'
16908 else
16909   HAVE_OPENBSD_OS_TRUE='#'
16910   HAVE_OPENBSD_OS_FALSE=
16911 fi
16912         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16913
16914 else
16915
16916
16917 if $FALSEPRG; then
16918   HAVE_OPENBSD_OS_TRUE=
16919   HAVE_OPENBSD_OS_FALSE='#'
16920 else
16921   HAVE_OPENBSD_OS_TRUE='#'
16922   HAVE_OPENBSD_OS_FALSE=
16923 fi
16924 fi
16925
16926 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16927 then
16928
16929
16930 if $TRUEPRG; then
16931   HAVE_BSDI_OS_TRUE=
16932   HAVE_BSDI_OS_FALSE='#'
16933 else
16934   HAVE_BSDI_OS_TRUE='#'
16935   HAVE_BSDI_OS_FALSE=
16936 fi
16937         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16938
16939 else
16940
16941
16942 if $FALSEPRG; then
16943   HAVE_BSDI_OS_TRUE=
16944   HAVE_BSDI_OS_FALSE='#'
16945 else
16946   HAVE_BSDI_OS_TRUE='#'
16947   HAVE_BSDI_OS_FALSE=
16948 fi
16949 fi
16950
16951 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16952 then
16953
16954
16955 if $TRUEPRG; then
16956   HAVE_SGI_OS_TRUE=
16957   HAVE_SGI_OS_FALSE='#'
16958 else
16959   HAVE_SGI_OS_TRUE='#'
16960   HAVE_SGI_OS_FALSE=
16961 fi
16962         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16963
16964 else
16965
16966
16967 if $FALSEPRG; then
16968   HAVE_SGI_OS_TRUE=
16969   HAVE_SGI_OS_FALSE='#'
16970 else
16971   HAVE_SGI_OS_TRUE='#'
16972   HAVE_SGI_OS_FALSE=
16973 fi
16974 fi
16975
16976 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16977 then
16978
16979
16980 if $TRUEPRG; then
16981   HAVE_IRIX_OS_TRUE=
16982   HAVE_IRIX_OS_FALSE='#'
16983 else
16984   HAVE_IRIX_OS_TRUE='#'
16985   HAVE_IRIX_OS_FALSE=
16986 fi
16987         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16988
16989 else
16990
16991
16992 if $FALSEPRG; then
16993   HAVE_IRIX_OS_TRUE=
16994   HAVE_IRIX_OS_FALSE='#'
16995 else
16996   HAVE_IRIX_OS_TRUE='#'
16997   HAVE_IRIX_OS_FALSE=
16998 fi
16999 fi
17000
17001 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17002 then
17003
17004
17005 if $TRUEPRG; then
17006   HAVE_DARWIN_OS_TRUE=
17007   HAVE_DARWIN_OS_FALSE='#'
17008 else
17009   HAVE_DARWIN_OS_TRUE='#'
17010   HAVE_DARWIN_OS_FALSE=
17011 fi
17012     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17013
17014 else
17015
17016
17017 if $FALSEPRG; then
17018   HAVE_DARWIN_OS_TRUE=
17019   HAVE_DARWIN_OS_FALSE='#'
17020 else
17021   HAVE_DARWIN_OS_TRUE='#'
17022   HAVE_DARWIN_OS_FALSE=
17023 fi
17024 fi
17025
17026
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17028 $as_echo_n "checking for Operating System Distribution... " >&6; }
17029 if test "x$DISTNAME" != "x"
17030 then
17031         echo "distname set to $DISTNAME"
17032 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17033 then
17034         DISTNAME=alpha
17035 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17036 then
17037         DISTNAME=aix
17038 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17039 then
17040         DISTNAME=hpux
17041 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17042 then
17043         DISTNAME=solaris
17044 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17045 then
17046         DISTNAME=hurd
17047 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17048 then
17049         DISTNAME=freebsd
17050 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17051 then
17052         DISTNAME=netbsd
17053 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17054 then
17055         DISTNAME=openbsd
17056 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17057 then
17058         DISTNAME=irix
17059 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17060 then
17061         DISTNAME=bsdi
17062 elif test -f /etc/SuSE-release
17063 then
17064         DISTNAME=suse
17065 elif test -d /etc/SuSEconfig
17066 then
17067         DISTNAME=suse5
17068 elif test -f /etc/mandrake-release
17069 then
17070         DISTNAME=mandrake
17071 elif test -f /etc/whitebox-release
17072 then
17073        DISTNAME=redhat
17074 elif test -f /etc/redhat-release
17075 then
17076         DISTNAME=redhat
17077 elif test -f /etc/gentoo-release
17078 then
17079         DISTNAME=gentoo
17080 elif test -f /etc/debian_version
17081 then
17082         DISTNAME=debian
17083 elif test -f /etc/slackware-version
17084 then
17085         DISTNAME=slackware
17086 elif test x$host_vendor = xapple
17087 then
17088     DISTNAME=osx
17089 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17090 then
17091     DISTNAME=darwin
17092 elif test -f /etc/engarde-version
17093 then
17094         DISTNAME=engarde
17095 elif test -f /etc/arch-release
17096 then
17097         DISTNAME=archlinux
17098 elif test "$CYGWIN" = yes
17099 then
17100         DISTNAME=cygwin
17101         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17102
17103 else
17104         DISTNAME=unknown
17105 fi
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17107 $as_echo "done" >&6; }
17108
17109
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17111 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17112 set x ${MAKE-make}
17113 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17114 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17115   $as_echo_n "(cached) " >&6
17116 else
17117   cat >conftest.make <<\_ACEOF
17118 SHELL = /bin/sh
17119 all:
17120         @echo '@@@%%%=$(MAKE)=@@@%%%'
17121 _ACEOF
17122 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17123 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17124   *@@@%%%=?*=@@@%%%*)
17125     eval ac_cv_prog_make_${ac_make}_set=yes;;
17126   *)
17127     eval ac_cv_prog_make_${ac_make}_set=no;;
17128 esac
17129 rm -f conftest.make
17130 fi
17131 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17133 $as_echo "yes" >&6; }
17134   SET_MAKE=
17135 else
17136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17137 $as_echo "no" >&6; }
17138   SET_MAKE="MAKE=${MAKE-make}"
17139 fi
17140
17141
17142
17143         MKINSTALLDIRS=
17144   if test -n "$ac_aux_dir"; then
17145     case "$ac_aux_dir" in
17146       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17147       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17148     esac
17149   fi
17150   if test -z "$MKINSTALLDIRS"; then
17151     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17152   fi
17153
17154
17155
17156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17157 $as_echo_n "checking whether NLS is requested... " >&6; }
17158     # Check whether --enable-nls was given.
17159 if test "${enable_nls+set}" = set; then :
17160   enableval=$enable_nls; USE_NLS=$enableval
17161 else
17162   USE_NLS=yes
17163 fi
17164
17165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17166 $as_echo "$USE_NLS" >&6; }
17167
17168
17169
17170
17171
17172
17173 # Prepare PATH_SEPARATOR.
17174 # The user is always right.
17175 if test "${PATH_SEPARATOR+set}" != set; then
17176   echo "#! /bin/sh" >conf$$.sh
17177   echo  "exit 0"   >>conf$$.sh
17178   chmod +x conf$$.sh
17179   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17180     PATH_SEPARATOR=';'
17181   else
17182     PATH_SEPARATOR=:
17183   fi
17184   rm -f conf$$.sh
17185 fi
17186
17187 # Find out how to test for executable files. Don't use a zero-byte file,
17188 # as systems may use methods other than mode bits to determine executability.
17189 cat >conf$$.file <<_ASEOF
17190 #! /bin/sh
17191 exit 0
17192 _ASEOF
17193 chmod +x conf$$.file
17194 if test -x conf$$.file >/dev/null 2>&1; then
17195   ac_executable_p="test -x"
17196 else
17197   ac_executable_p="test -f"
17198 fi
17199 rm -f conf$$.file
17200
17201 # Extract the first word of "msgfmt", so it can be a program name with args.
17202 set dummy msgfmt; ac_word=$2
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17204 $as_echo_n "checking for $ac_word... " >&6; }
17205 if ${ac_cv_path_MSGFMT+:} false; then :
17206   $as_echo_n "(cached) " >&6
17207 else
17208   case "$MSGFMT" in
17209   [\\/]* | ?:[\\/]*)
17210     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17211     ;;
17212   *)
17213     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17214     for ac_dir in $PATH; do
17215       IFS="$ac_save_IFS"
17216       test -z "$ac_dir" && ac_dir=.
17217       for ac_exec_ext in '' $ac_executable_extensions; do
17218         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17219           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17220           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17221      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17222             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17223             break 2
17224           fi
17225         fi
17226       done
17227     done
17228     IFS="$ac_save_IFS"
17229   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17230     ;;
17231 esac
17232 fi
17233 MSGFMT="$ac_cv_path_MSGFMT"
17234 if test "$MSGFMT" != ":"; then
17235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17236 $as_echo "$MSGFMT" >&6; }
17237 else
17238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17239 $as_echo "no" >&6; }
17240 fi
17241
17242   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17243 set dummy gmsgfmt; ac_word=$2
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17245 $as_echo_n "checking for $ac_word... " >&6; }
17246 if ${ac_cv_path_GMSGFMT+:} false; then :
17247   $as_echo_n "(cached) " >&6
17248 else
17249   case $GMSGFMT in
17250   [\\/]* | ?:[\\/]*)
17251   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17252   ;;
17253   *)
17254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17255 for as_dir in $PATH
17256 do
17257   IFS=$as_save_IFS
17258   test -z "$as_dir" && as_dir=.
17259     for ac_exec_ext in '' $ac_executable_extensions; do
17260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17261     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17263     break 2
17264   fi
17265 done
17266   done
17267 IFS=$as_save_IFS
17268
17269   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17270   ;;
17271 esac
17272 fi
17273 GMSGFMT=$ac_cv_path_GMSGFMT
17274 if test -n "$GMSGFMT"; then
17275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17276 $as_echo "$GMSGFMT" >&6; }
17277 else
17278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17280 fi
17281
17282
17283
17284
17285 # Prepare PATH_SEPARATOR.
17286 # The user is always right.
17287 if test "${PATH_SEPARATOR+set}" != set; then
17288   echo "#! /bin/sh" >conf$$.sh
17289   echo  "exit 0"   >>conf$$.sh
17290   chmod +x conf$$.sh
17291   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17292     PATH_SEPARATOR=';'
17293   else
17294     PATH_SEPARATOR=:
17295   fi
17296   rm -f conf$$.sh
17297 fi
17298
17299 # Find out how to test for executable files. Don't use a zero-byte file,
17300 # as systems may use methods other than mode bits to determine executability.
17301 cat >conf$$.file <<_ASEOF
17302 #! /bin/sh
17303 exit 0
17304 _ASEOF
17305 chmod +x conf$$.file
17306 if test -x conf$$.file >/dev/null 2>&1; then
17307   ac_executable_p="test -x"
17308 else
17309   ac_executable_p="test -f"
17310 fi
17311 rm -f conf$$.file
17312
17313 # Extract the first word of "xgettext", so it can be a program name with args.
17314 set dummy xgettext; ac_word=$2
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17316 $as_echo_n "checking for $ac_word... " >&6; }
17317 if ${ac_cv_path_XGETTEXT+:} false; then :
17318   $as_echo_n "(cached) " >&6
17319 else
17320   case "$XGETTEXT" in
17321   [\\/]* | ?:[\\/]*)
17322     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17323     ;;
17324   *)
17325     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17326     for ac_dir in $PATH; do
17327       IFS="$ac_save_IFS"
17328       test -z "$ac_dir" && ac_dir=.
17329       for ac_exec_ext in '' $ac_executable_extensions; do
17330         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17331           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17332           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17333      (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
17334             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17335             break 2
17336           fi
17337         fi
17338       done
17339     done
17340     IFS="$ac_save_IFS"
17341   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17342     ;;
17343 esac
17344 fi
17345 XGETTEXT="$ac_cv_path_XGETTEXT"
17346 if test "$XGETTEXT" != ":"; then
17347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17348 $as_echo "$XGETTEXT" >&6; }
17349 else
17350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17351 $as_echo "no" >&6; }
17352 fi
17353
17354     rm -f messages.po
17355
17356
17357 # Prepare PATH_SEPARATOR.
17358 # The user is always right.
17359 if test "${PATH_SEPARATOR+set}" != set; then
17360   echo "#! /bin/sh" >conf$$.sh
17361   echo  "exit 0"   >>conf$$.sh
17362   chmod +x conf$$.sh
17363   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17364     PATH_SEPARATOR=';'
17365   else
17366     PATH_SEPARATOR=:
17367   fi
17368   rm -f conf$$.sh
17369 fi
17370
17371 # Find out how to test for executable files. Don't use a zero-byte file,
17372 # as systems may use methods other than mode bits to determine executability.
17373 cat >conf$$.file <<_ASEOF
17374 #! /bin/sh
17375 exit 0
17376 _ASEOF
17377 chmod +x conf$$.file
17378 if test -x conf$$.file >/dev/null 2>&1; then
17379   ac_executable_p="test -x"
17380 else
17381   ac_executable_p="test -f"
17382 fi
17383 rm -f conf$$.file
17384
17385 # Extract the first word of "msgmerge", so it can be a program name with args.
17386 set dummy msgmerge; ac_word=$2
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17388 $as_echo_n "checking for $ac_word... " >&6; }
17389 if ${ac_cv_path_MSGMERGE+:} false; then :
17390   $as_echo_n "(cached) " >&6
17391 else
17392   case "$MSGMERGE" in
17393   [\\/]* | ?:[\\/]*)
17394     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17395     ;;
17396   *)
17397     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17398     for ac_dir in $PATH; do
17399       IFS="$ac_save_IFS"
17400       test -z "$ac_dir" && ac_dir=.
17401       for ac_exec_ext in '' $ac_executable_extensions; do
17402         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17403           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17404           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17405             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17406             break 2
17407           fi
17408         fi
17409       done
17410     done
17411     IFS="$ac_save_IFS"
17412   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17413     ;;
17414 esac
17415 fi
17416 MSGMERGE="$ac_cv_path_MSGMERGE"
17417 if test "$MSGMERGE" != ":"; then
17418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17419 $as_echo "$MSGMERGE" >&6; }
17420 else
17421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17422 $as_echo "no" >&6; }
17423 fi
17424
17425
17426       if test "$GMSGFMT" != ":"; then
17427             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17428        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17429       : ;
17430     else
17431       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17432       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17433 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17434       GMSGFMT=":"
17435     fi
17436   fi
17437
17438       if test "$XGETTEXT" != ":"; then
17439             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17440        (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
17441       : ;
17442     else
17443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17444 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17445       XGETTEXT=":"
17446     fi
17447         rm -f messages.po
17448   fi
17449
17450   ac_config_commands="$ac_config_commands default-1"
17451
17452
17453
17454       if test "X$prefix" = "XNONE"; then
17455     acl_final_prefix="$ac_default_prefix"
17456   else
17457     acl_final_prefix="$prefix"
17458   fi
17459   if test "X$exec_prefix" = "XNONE"; then
17460     acl_final_exec_prefix='${prefix}'
17461   else
17462     acl_final_exec_prefix="$exec_prefix"
17463   fi
17464   acl_save_prefix="$prefix"
17465   prefix="$acl_final_prefix"
17466   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17467   prefix="$acl_save_prefix"
17468
17469
17470 # Check whether --with-gnu-ld was given.
17471 if test "${with_gnu_ld+set}" = set; then :
17472   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17473 else
17474   with_gnu_ld=no
17475 fi
17476
17477 # Prepare PATH_SEPARATOR.
17478 # The user is always right.
17479 if test "${PATH_SEPARATOR+set}" != set; then
17480   echo "#! /bin/sh" >conf$$.sh
17481   echo  "exit 0"   >>conf$$.sh
17482   chmod +x conf$$.sh
17483   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17484     PATH_SEPARATOR=';'
17485   else
17486     PATH_SEPARATOR=:
17487   fi
17488   rm -f conf$$.sh
17489 fi
17490 ac_prog=ld
17491 if test "$GCC" = yes; then
17492   # Check if gcc -print-prog-name=ld gives a path.
17493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17494 $as_echo_n "checking for ld used by GCC... " >&6; }
17495   case $host in
17496   *-*-mingw*)
17497     # gcc leaves a trailing carriage return which upsets mingw
17498     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17499   *)
17500     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17501   esac
17502   case $ac_prog in
17503     # Accept absolute paths.
17504     [\\/]* | [A-Za-z]:[\\/]*)
17505       re_direlt='/[^/][^/]*/\.\./'
17506       # Canonicalize the path of ld
17507       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17508       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17509         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17510       done
17511       test -z "$LD" && LD="$ac_prog"
17512       ;;
17513   "")
17514     # If it fails, then pretend we aren't using GCC.
17515     ac_prog=ld
17516     ;;
17517   *)
17518     # If it is relative, then search for the first ld in PATH.
17519     with_gnu_ld=unknown
17520     ;;
17521   esac
17522 elif test "$with_gnu_ld" = yes; then
17523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17524 $as_echo_n "checking for GNU ld... " >&6; }
17525 else
17526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17527 $as_echo_n "checking for non-GNU ld... " >&6; }
17528 fi
17529 if ${acl_cv_path_LD+:} false; then :
17530   $as_echo_n "(cached) " >&6
17531 else
17532   if test -z "$LD"; then
17533   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17534   for ac_dir in $PATH; do
17535     test -z "$ac_dir" && ac_dir=.
17536     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17537       acl_cv_path_LD="$ac_dir/$ac_prog"
17538       # Check to see if the program is GNU ld.  I'd rather use --version,
17539       # but apparently some GNU ld's only accept -v.
17540       # Break only if it was the GNU/non-GNU ld that we prefer.
17541       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17542       *GNU* | *'with BFD'*)
17543         test "$with_gnu_ld" != no && break ;;
17544       *)
17545         test "$with_gnu_ld" != yes && break ;;
17546       esac
17547     fi
17548   done
17549   IFS="$ac_save_ifs"
17550 else
17551   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17552 fi
17553 fi
17554
17555 LD="$acl_cv_path_LD"
17556 if test -n "$LD"; then
17557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17558 $as_echo "$LD" >&6; }
17559 else
17560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17561 $as_echo "no" >&6; }
17562 fi
17563 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17565 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17566 if ${acl_cv_prog_gnu_ld+:} false; then :
17567   $as_echo_n "(cached) " >&6
17568 else
17569   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17570 case `$LD -v 2>&1 </dev/null` in
17571 *GNU* | *'with BFD'*)
17572   acl_cv_prog_gnu_ld=yes ;;
17573 *)
17574   acl_cv_prog_gnu_ld=no ;;
17575 esac
17576 fi
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17578 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17579 with_gnu_ld=$acl_cv_prog_gnu_ld
17580
17581
17582
17583
17584                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17585 $as_echo_n "checking for shared library run path origin... " >&6; }
17586 if ${acl_cv_rpath+:} false; then :
17587   $as_echo_n "(cached) " >&6
17588 else
17589
17590     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17591     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17592     . ./conftest.sh
17593     rm -f ./conftest.sh
17594     acl_cv_rpath=done
17595
17596 fi
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17598 $as_echo "$acl_cv_rpath" >&6; }
17599   wl="$acl_cv_wl"
17600   libext="$acl_cv_libext"
17601   shlibext="$acl_cv_shlibext"
17602   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17603   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17604   hardcode_direct="$acl_cv_hardcode_direct"
17605   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17606     # Check whether --enable-rpath was given.
17607 if test "${enable_rpath+set}" = set; then :
17608   enableval=$enable_rpath; :
17609 else
17610   enable_rpath=yes
17611 fi
17612
17613
17614
17615
17616
17617
17618
17619
17620     use_additional=yes
17621
17622   acl_save_prefix="$prefix"
17623   prefix="$acl_final_prefix"
17624   acl_save_exec_prefix="$exec_prefix"
17625   exec_prefix="$acl_final_exec_prefix"
17626
17627     eval additional_includedir=\"$includedir\"
17628     eval additional_libdir=\"$libdir\"
17629
17630   exec_prefix="$acl_save_exec_prefix"
17631   prefix="$acl_save_prefix"
17632
17633
17634 # Check whether --with-libiconv-prefix was given.
17635 if test "${with_libiconv_prefix+set}" = set; then :
17636   withval=$with_libiconv_prefix;
17637     if test "X$withval" = "Xno"; then
17638       use_additional=no
17639     else
17640       if test "X$withval" = "X"; then
17641
17642   acl_save_prefix="$prefix"
17643   prefix="$acl_final_prefix"
17644   acl_save_exec_prefix="$exec_prefix"
17645   exec_prefix="$acl_final_exec_prefix"
17646
17647           eval additional_includedir=\"$includedir\"
17648           eval additional_libdir=\"$libdir\"
17649
17650   exec_prefix="$acl_save_exec_prefix"
17651   prefix="$acl_save_prefix"
17652
17653       else
17654         additional_includedir="$withval/include"
17655         additional_libdir="$withval/lib"
17656       fi
17657     fi
17658
17659 fi
17660
17661       LIBICONV=
17662   LTLIBICONV=
17663   INCICONV=
17664   rpathdirs=
17665   ltrpathdirs=
17666   names_already_handled=
17667   names_next_round='iconv '
17668   while test -n "$names_next_round"; do
17669     names_this_round="$names_next_round"
17670     names_next_round=
17671     for name in $names_this_round; do
17672       already_handled=
17673       for n in $names_already_handled; do
17674         if test "$n" = "$name"; then
17675           already_handled=yes
17676           break
17677         fi
17678       done
17679       if test -z "$already_handled"; then
17680         names_already_handled="$names_already_handled $name"
17681                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17682         eval value=\"\$HAVE_LIB$uppername\"
17683         if test -n "$value"; then
17684           if test "$value" = yes; then
17685             eval value=\"\$LIB$uppername\"
17686             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17687             eval value=\"\$LTLIB$uppername\"
17688             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17689           else
17690                                     :
17691           fi
17692         else
17693                               found_dir=
17694           found_la=
17695           found_so=
17696           found_a=
17697           if test $use_additional = yes; then
17698             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17699               found_dir="$additional_libdir"
17700               found_so="$additional_libdir/lib$name.$shlibext"
17701               if test -f "$additional_libdir/lib$name.la"; then
17702                 found_la="$additional_libdir/lib$name.la"
17703               fi
17704             else
17705               if test -f "$additional_libdir/lib$name.$libext"; then
17706                 found_dir="$additional_libdir"
17707                 found_a="$additional_libdir/lib$name.$libext"
17708                 if test -f "$additional_libdir/lib$name.la"; then
17709                   found_la="$additional_libdir/lib$name.la"
17710                 fi
17711               fi
17712             fi
17713           fi
17714           if test "X$found_dir" = "X"; then
17715             for x in $LDFLAGS $LTLIBICONV; do
17716
17717   acl_save_prefix="$prefix"
17718   prefix="$acl_final_prefix"
17719   acl_save_exec_prefix="$exec_prefix"
17720   exec_prefix="$acl_final_exec_prefix"
17721   eval x=\"$x\"
17722   exec_prefix="$acl_save_exec_prefix"
17723   prefix="$acl_save_prefix"
17724
17725               case "$x" in
17726                 -L*)
17727                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17728                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17729                     found_dir="$dir"
17730                     found_so="$dir/lib$name.$shlibext"
17731                     if test -f "$dir/lib$name.la"; then
17732                       found_la="$dir/lib$name.la"
17733                     fi
17734                   else
17735                     if test -f "$dir/lib$name.$libext"; then
17736                       found_dir="$dir"
17737                       found_a="$dir/lib$name.$libext"
17738                       if test -f "$dir/lib$name.la"; then
17739                         found_la="$dir/lib$name.la"
17740                       fi
17741                     fi
17742                   fi
17743                   ;;
17744               esac
17745               if test "X$found_dir" != "X"; then
17746                 break
17747               fi
17748             done
17749           fi
17750           if test "X$found_dir" != "X"; then
17751                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17752             if test "X$found_so" != "X"; then
17753                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17754                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17755               else
17756                                                                                 haveit=
17757                 for x in $ltrpathdirs; do
17758                   if test "X$x" = "X$found_dir"; then
17759                     haveit=yes
17760                     break
17761                   fi
17762                 done
17763                 if test -z "$haveit"; then
17764                   ltrpathdirs="$ltrpathdirs $found_dir"
17765                 fi
17766                                 if test "$hardcode_direct" = yes; then
17767                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17768                 else
17769                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17770                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17771                                                             haveit=
17772                     for x in $rpathdirs; do
17773                       if test "X$x" = "X$found_dir"; then
17774                         haveit=yes
17775                         break
17776                       fi
17777                     done
17778                     if test -z "$haveit"; then
17779                       rpathdirs="$rpathdirs $found_dir"
17780                     fi
17781                   else
17782                                                                                 haveit=
17783                     for x in $LDFLAGS $LIBICONV; do
17784
17785   acl_save_prefix="$prefix"
17786   prefix="$acl_final_prefix"
17787   acl_save_exec_prefix="$exec_prefix"
17788   exec_prefix="$acl_final_exec_prefix"
17789   eval x=\"$x\"
17790   exec_prefix="$acl_save_exec_prefix"
17791   prefix="$acl_save_prefix"
17792
17793                       if test "X$x" = "X-L$found_dir"; then
17794                         haveit=yes
17795                         break
17796                       fi
17797                     done
17798                     if test -z "$haveit"; then
17799                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17800                     fi
17801                     if test "$hardcode_minus_L" != no; then
17802                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17803                     else
17804                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17805                     fi
17806                   fi
17807                 fi
17808               fi
17809             else
17810               if test "X$found_a" != "X"; then
17811                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17812               else
17813                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17814               fi
17815             fi
17816                         additional_includedir=
17817             case "$found_dir" in
17818               */lib | */lib/)
17819                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17820                 additional_includedir="$basedir/include"
17821                 ;;
17822             esac
17823             if test "X$additional_includedir" != "X"; then
17824                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17825                 haveit=
17826                 if test "X$additional_includedir" = "X/usr/local/include"; then
17827                   if test -n "$GCC"; then
17828                     case $host_os in
17829                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17830                     esac
17831                   fi
17832                 fi
17833                 if test -z "$haveit"; then
17834                   for x in $CPPFLAGS $INCICONV; do
17835
17836   acl_save_prefix="$prefix"
17837   prefix="$acl_final_prefix"
17838   acl_save_exec_prefix="$exec_prefix"
17839   exec_prefix="$acl_final_exec_prefix"
17840   eval x=\"$x\"
17841   exec_prefix="$acl_save_exec_prefix"
17842   prefix="$acl_save_prefix"
17843
17844                     if test "X$x" = "X-I$additional_includedir"; then
17845                       haveit=yes
17846                       break
17847                     fi
17848                   done
17849                   if test -z "$haveit"; then
17850                     if test -d "$additional_includedir"; then
17851                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17852                     fi
17853                   fi
17854                 fi
17855               fi
17856             fi
17857                         if test -n "$found_la"; then
17858                                                         save_libdir="$libdir"
17859               case "$found_la" in
17860                 */* | *\\*) . "$found_la" ;;
17861                 *) . "./$found_la" ;;
17862               esac
17863               libdir="$save_libdir"
17864                             for dep in $dependency_libs; do
17865                 case "$dep" in
17866                   -L*)
17867                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17868                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17869                       haveit=
17870                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17871                         if test -n "$GCC"; then
17872                           case $host_os in
17873                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17874                           esac
17875                         fi
17876                       fi
17877                       if test -z "$haveit"; then
17878                         haveit=
17879                         for x in $LDFLAGS $LIBICONV; do
17880
17881   acl_save_prefix="$prefix"
17882   prefix="$acl_final_prefix"
17883   acl_save_exec_prefix="$exec_prefix"
17884   exec_prefix="$acl_final_exec_prefix"
17885   eval x=\"$x\"
17886   exec_prefix="$acl_save_exec_prefix"
17887   prefix="$acl_save_prefix"
17888
17889                           if test "X$x" = "X-L$additional_libdir"; then
17890                             haveit=yes
17891                             break
17892                           fi
17893                         done
17894                         if test -z "$haveit"; then
17895                           if test -d "$additional_libdir"; then
17896                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17897                           fi
17898                         fi
17899                         haveit=
17900                         for x in $LDFLAGS $LTLIBICONV; do
17901
17902   acl_save_prefix="$prefix"
17903   prefix="$acl_final_prefix"
17904   acl_save_exec_prefix="$exec_prefix"
17905   exec_prefix="$acl_final_exec_prefix"
17906   eval x=\"$x\"
17907   exec_prefix="$acl_save_exec_prefix"
17908   prefix="$acl_save_prefix"
17909
17910                           if test "X$x" = "X-L$additional_libdir"; then
17911                             haveit=yes
17912                             break
17913                           fi
17914                         done
17915                         if test -z "$haveit"; then
17916                           if test -d "$additional_libdir"; then
17917                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17918                           fi
17919                         fi
17920                       fi
17921                     fi
17922                     ;;
17923                   -R*)
17924                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17925                     if test "$enable_rpath" != no; then
17926                                                                   haveit=
17927                       for x in $rpathdirs; do
17928                         if test "X$x" = "X$dir"; then
17929                           haveit=yes
17930                           break
17931                         fi
17932                       done
17933                       if test -z "$haveit"; then
17934                         rpathdirs="$rpathdirs $dir"
17935                       fi
17936                                                                   haveit=
17937                       for x in $ltrpathdirs; do
17938                         if test "X$x" = "X$dir"; then
17939                           haveit=yes
17940                           break
17941                         fi
17942                       done
17943                       if test -z "$haveit"; then
17944                         ltrpathdirs="$ltrpathdirs $dir"
17945                       fi
17946                     fi
17947                     ;;
17948                   -l*)
17949                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17950                     ;;
17951                   *.la)
17952                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17953                     ;;
17954                   *)
17955                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17956                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17957                     ;;
17958                 esac
17959               done
17960             fi
17961           else
17962                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17963             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17964           fi
17965         fi
17966       fi
17967     done
17968   done
17969   if test "X$rpathdirs" != "X"; then
17970     if test -n "$hardcode_libdir_separator"; then
17971                         alldirs=
17972       for found_dir in $rpathdirs; do
17973         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17974       done
17975             acl_save_libdir="$libdir"
17976       libdir="$alldirs"
17977       eval flag=\"$hardcode_libdir_flag_spec\"
17978       libdir="$acl_save_libdir"
17979       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17980     else
17981             for found_dir in $rpathdirs; do
17982         acl_save_libdir="$libdir"
17983         libdir="$found_dir"
17984         eval flag=\"$hardcode_libdir_flag_spec\"
17985         libdir="$acl_save_libdir"
17986         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17987       done
17988     fi
17989   fi
17990   if test "X$ltrpathdirs" != "X"; then
17991             for found_dir in $ltrpathdirs; do
17992       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17993     done
17994   fi
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18014 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18015 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18016   $as_echo_n "(cached) " >&6
18017 else
18018   gt_save_CPPFLAGS="$CPPFLAGS"
18019      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18020      gt_save_LIBS="$LIBS"
18021      LIBS="$LIBS -framework CoreFoundation"
18022      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h.  */
18024 #include <CFPreferences.h>
18025 int
18026 main ()
18027 {
18028 CFPreferencesCopyAppValue(NULL, NULL)
18029   ;
18030   return 0;
18031 }
18032 _ACEOF
18033 if ac_fn_c_try_link "$LINENO"; then :
18034   gt_cv_func_CFPreferencesCopyAppValue=yes
18035 else
18036   gt_cv_func_CFPreferencesCopyAppValue=no
18037 fi
18038 rm -f core conftest.err conftest.$ac_objext \
18039     conftest$ac_exeext conftest.$ac_ext
18040      CPPFLAGS="$gt_save_CPPFLAGS"
18041      LIBS="$gt_save_LIBS"
18042 fi
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18044 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18045   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18046
18047 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18048
18049   fi
18050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18051 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18052 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18053   $as_echo_n "(cached) " >&6
18054 else
18055   gt_save_CPPFLAGS="$CPPFLAGS"
18056      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18057      gt_save_LIBS="$LIBS"
18058      LIBS="$LIBS -framework CoreFoundation"
18059      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h.  */
18061 #include <CFLocale.h>
18062 int
18063 main ()
18064 {
18065 CFLocaleCopyCurrent();
18066   ;
18067   return 0;
18068 }
18069 _ACEOF
18070 if ac_fn_c_try_link "$LINENO"; then :
18071   gt_cv_func_CFLocaleCopyCurrent=yes
18072 else
18073   gt_cv_func_CFLocaleCopyCurrent=no
18074 fi
18075 rm -f core conftest.err conftest.$ac_objext \
18076     conftest$ac_exeext conftest.$ac_ext
18077      CPPFLAGS="$gt_save_CPPFLAGS"
18078      LIBS="$gt_save_LIBS"
18079 fi
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18081 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18082   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18083
18084 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18085
18086   fi
18087   INTL_MACOSX_LIBS=
18088   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18089     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18090   fi
18091
18092
18093
18094
18095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18096 $as_echo_n "checking whether NLS is requested... " >&6; }
18097     # Check whether --enable-nls was given.
18098 if test "${enable_nls+set}" = set; then :
18099   enableval=$enable_nls; USE_NLS=$enableval
18100 else
18101   USE_NLS=yes
18102 fi
18103
18104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18105 $as_echo "$USE_NLS" >&6; }
18106
18107
18108
18109
18110   LIBINTL=
18111   LTLIBINTL=
18112   POSUB=
18113
18114     if test "$USE_NLS" = "yes"; then
18115     gt_use_preinstalled_gnugettext=no
18116
18117
18118
18119
18120
18121
18122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18123 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18124 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18125   $as_echo_n "(cached) " >&6
18126 else
18127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h.  */
18129 #include <libintl.h>
18130 extern int _nl_msg_cat_cntr;
18131 extern int *_nl_domain_bindings;
18132 int
18133 main ()
18134 {
18135 bindtextdomain ("", "");
18136 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 if ac_fn_c_try_link "$LINENO"; then :
18142   gt_cv_func_gnugettext1_libc=yes
18143 else
18144   gt_cv_func_gnugettext1_libc=no
18145 fi
18146 rm -f core conftest.err conftest.$ac_objext \
18147     conftest$ac_exeext conftest.$ac_ext
18148 fi
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18150 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18151
18152         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18153
18154
18155
18156
18157
18158           am_save_CPPFLAGS="$CPPFLAGS"
18159
18160   for element in $INCICONV; do
18161     haveit=
18162     for x in $CPPFLAGS; do
18163
18164   acl_save_prefix="$prefix"
18165   prefix="$acl_final_prefix"
18166   acl_save_exec_prefix="$exec_prefix"
18167   exec_prefix="$acl_final_exec_prefix"
18168   eval x=\"$x\"
18169   exec_prefix="$acl_save_exec_prefix"
18170   prefix="$acl_save_prefix"
18171
18172       if test "X$x" = "X$element"; then
18173         haveit=yes
18174         break
18175       fi
18176     done
18177     if test -z "$haveit"; then
18178       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18179     fi
18180   done
18181
18182
18183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18184 $as_echo_n "checking for iconv... " >&6; }
18185 if ${am_cv_func_iconv+:} false; then :
18186   $as_echo_n "(cached) " >&6
18187 else
18188
18189     am_cv_func_iconv="no, consider installing GNU libiconv"
18190     am_cv_lib_iconv=no
18191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h.  */
18193 #include <stdlib.h>
18194 #include <iconv.h>
18195 int
18196 main ()
18197 {
18198 iconv_t cd = iconv_open("","");
18199        iconv(cd,NULL,NULL,NULL,NULL);
18200        iconv_close(cd);
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 if ac_fn_c_try_link "$LINENO"; then :
18206   am_cv_func_iconv=yes
18207 fi
18208 rm -f core conftest.err conftest.$ac_objext \
18209     conftest$ac_exeext conftest.$ac_ext
18210     if test "$am_cv_func_iconv" != yes; then
18211       am_save_LIBS="$LIBS"
18212       LIBS="$LIBS $LIBICONV"
18213       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h.  */
18215 #include <stdlib.h>
18216 #include <iconv.h>
18217 int
18218 main ()
18219 {
18220 iconv_t cd = iconv_open("","");
18221          iconv(cd,NULL,NULL,NULL,NULL);
18222          iconv_close(cd);
18223   ;
18224   return 0;
18225 }
18226 _ACEOF
18227 if ac_fn_c_try_link "$LINENO"; then :
18228   am_cv_lib_iconv=yes
18229         am_cv_func_iconv=yes
18230 fi
18231 rm -f core conftest.err conftest.$ac_objext \
18232     conftest$ac_exeext conftest.$ac_ext
18233       LIBS="$am_save_LIBS"
18234     fi
18235
18236 fi
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18238 $as_echo "$am_cv_func_iconv" >&6; }
18239   if test "$am_cv_func_iconv" = yes; then
18240
18241 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18242
18243   fi
18244   if test "$am_cv_lib_iconv" = yes; then
18245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18246 $as_echo_n "checking how to link with libiconv... " >&6; }
18247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18248 $as_echo "$LIBICONV" >&6; }
18249   else
18250             CPPFLAGS="$am_save_CPPFLAGS"
18251     LIBICONV=
18252     LTLIBICONV=
18253   fi
18254
18255
18256
18257
18258
18259
18260     use_additional=yes
18261
18262   acl_save_prefix="$prefix"
18263   prefix="$acl_final_prefix"
18264   acl_save_exec_prefix="$exec_prefix"
18265   exec_prefix="$acl_final_exec_prefix"
18266
18267     eval additional_includedir=\"$includedir\"
18268     eval additional_libdir=\"$libdir\"
18269
18270   exec_prefix="$acl_save_exec_prefix"
18271   prefix="$acl_save_prefix"
18272
18273
18274 # Check whether --with-libintl-prefix was given.
18275 if test "${with_libintl_prefix+set}" = set; then :
18276   withval=$with_libintl_prefix;
18277     if test "X$withval" = "Xno"; then
18278       use_additional=no
18279     else
18280       if test "X$withval" = "X"; then
18281
18282   acl_save_prefix="$prefix"
18283   prefix="$acl_final_prefix"
18284   acl_save_exec_prefix="$exec_prefix"
18285   exec_prefix="$acl_final_exec_prefix"
18286
18287           eval additional_includedir=\"$includedir\"
18288           eval additional_libdir=\"$libdir\"
18289
18290   exec_prefix="$acl_save_exec_prefix"
18291   prefix="$acl_save_prefix"
18292
18293       else
18294         additional_includedir="$withval/include"
18295         additional_libdir="$withval/lib"
18296       fi
18297     fi
18298
18299 fi
18300
18301       LIBINTL=
18302   LTLIBINTL=
18303   INCINTL=
18304   rpathdirs=
18305   ltrpathdirs=
18306   names_already_handled=
18307   names_next_round='intl '
18308   while test -n "$names_next_round"; do
18309     names_this_round="$names_next_round"
18310     names_next_round=
18311     for name in $names_this_round; do
18312       already_handled=
18313       for n in $names_already_handled; do
18314         if test "$n" = "$name"; then
18315           already_handled=yes
18316           break
18317         fi
18318       done
18319       if test -z "$already_handled"; then
18320         names_already_handled="$names_already_handled $name"
18321                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18322         eval value=\"\$HAVE_LIB$uppername\"
18323         if test -n "$value"; then
18324           if test "$value" = yes; then
18325             eval value=\"\$LIB$uppername\"
18326             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18327             eval value=\"\$LTLIB$uppername\"
18328             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18329           else
18330                                     :
18331           fi
18332         else
18333                               found_dir=
18334           found_la=
18335           found_so=
18336           found_a=
18337           if test $use_additional = yes; then
18338             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18339               found_dir="$additional_libdir"
18340               found_so="$additional_libdir/lib$name.$shlibext"
18341               if test -f "$additional_libdir/lib$name.la"; then
18342                 found_la="$additional_libdir/lib$name.la"
18343               fi
18344             else
18345               if test -f "$additional_libdir/lib$name.$libext"; then
18346                 found_dir="$additional_libdir"
18347                 found_a="$additional_libdir/lib$name.$libext"
18348                 if test -f "$additional_libdir/lib$name.la"; then
18349                   found_la="$additional_libdir/lib$name.la"
18350                 fi
18351               fi
18352             fi
18353           fi
18354           if test "X$found_dir" = "X"; then
18355             for x in $LDFLAGS $LTLIBINTL; do
18356
18357   acl_save_prefix="$prefix"
18358   prefix="$acl_final_prefix"
18359   acl_save_exec_prefix="$exec_prefix"
18360   exec_prefix="$acl_final_exec_prefix"
18361   eval x=\"$x\"
18362   exec_prefix="$acl_save_exec_prefix"
18363   prefix="$acl_save_prefix"
18364
18365               case "$x" in
18366                 -L*)
18367                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18368                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18369                     found_dir="$dir"
18370                     found_so="$dir/lib$name.$shlibext"
18371                     if test -f "$dir/lib$name.la"; then
18372                       found_la="$dir/lib$name.la"
18373                     fi
18374                   else
18375                     if test -f "$dir/lib$name.$libext"; then
18376                       found_dir="$dir"
18377                       found_a="$dir/lib$name.$libext"
18378                       if test -f "$dir/lib$name.la"; then
18379                         found_la="$dir/lib$name.la"
18380                       fi
18381                     fi
18382                   fi
18383                   ;;
18384               esac
18385               if test "X$found_dir" != "X"; then
18386                 break
18387               fi
18388             done
18389           fi
18390           if test "X$found_dir" != "X"; then
18391                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18392             if test "X$found_so" != "X"; then
18393                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18394                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18395               else
18396                                                                                 haveit=
18397                 for x in $ltrpathdirs; do
18398                   if test "X$x" = "X$found_dir"; then
18399                     haveit=yes
18400                     break
18401                   fi
18402                 done
18403                 if test -z "$haveit"; then
18404                   ltrpathdirs="$ltrpathdirs $found_dir"
18405                 fi
18406                                 if test "$hardcode_direct" = yes; then
18407                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18408                 else
18409                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18410                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18411                                                             haveit=
18412                     for x in $rpathdirs; do
18413                       if test "X$x" = "X$found_dir"; then
18414                         haveit=yes
18415                         break
18416                       fi
18417                     done
18418                     if test -z "$haveit"; then
18419                       rpathdirs="$rpathdirs $found_dir"
18420                     fi
18421                   else
18422                                                                                 haveit=
18423                     for x in $LDFLAGS $LIBINTL; do
18424
18425   acl_save_prefix="$prefix"
18426   prefix="$acl_final_prefix"
18427   acl_save_exec_prefix="$exec_prefix"
18428   exec_prefix="$acl_final_exec_prefix"
18429   eval x=\"$x\"
18430   exec_prefix="$acl_save_exec_prefix"
18431   prefix="$acl_save_prefix"
18432
18433                       if test "X$x" = "X-L$found_dir"; then
18434                         haveit=yes
18435                         break
18436                       fi
18437                     done
18438                     if test -z "$haveit"; then
18439                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18440                     fi
18441                     if test "$hardcode_minus_L" != no; then
18442                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18443                     else
18444                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18445                     fi
18446                   fi
18447                 fi
18448               fi
18449             else
18450               if test "X$found_a" != "X"; then
18451                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18452               else
18453                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18454               fi
18455             fi
18456                         additional_includedir=
18457             case "$found_dir" in
18458               */lib | */lib/)
18459                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18460                 additional_includedir="$basedir/include"
18461                 ;;
18462             esac
18463             if test "X$additional_includedir" != "X"; then
18464                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18465                 haveit=
18466                 if test "X$additional_includedir" = "X/usr/local/include"; then
18467                   if test -n "$GCC"; then
18468                     case $host_os in
18469                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18470                     esac
18471                   fi
18472                 fi
18473                 if test -z "$haveit"; then
18474                   for x in $CPPFLAGS $INCINTL; do
18475
18476   acl_save_prefix="$prefix"
18477   prefix="$acl_final_prefix"
18478   acl_save_exec_prefix="$exec_prefix"
18479   exec_prefix="$acl_final_exec_prefix"
18480   eval x=\"$x\"
18481   exec_prefix="$acl_save_exec_prefix"
18482   prefix="$acl_save_prefix"
18483
18484                     if test "X$x" = "X-I$additional_includedir"; then
18485                       haveit=yes
18486                       break
18487                     fi
18488                   done
18489                   if test -z "$haveit"; then
18490                     if test -d "$additional_includedir"; then
18491                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18492                     fi
18493                   fi
18494                 fi
18495               fi
18496             fi
18497                         if test -n "$found_la"; then
18498                                                         save_libdir="$libdir"
18499               case "$found_la" in
18500                 */* | *\\*) . "$found_la" ;;
18501                 *) . "./$found_la" ;;
18502               esac
18503               libdir="$save_libdir"
18504                             for dep in $dependency_libs; do
18505                 case "$dep" in
18506                   -L*)
18507                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18508                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18509                       haveit=
18510                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18511                         if test -n "$GCC"; then
18512                           case $host_os in
18513                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18514                           esac
18515                         fi
18516                       fi
18517                       if test -z "$haveit"; then
18518                         haveit=
18519                         for x in $LDFLAGS $LIBINTL; do
18520
18521   acl_save_prefix="$prefix"
18522   prefix="$acl_final_prefix"
18523   acl_save_exec_prefix="$exec_prefix"
18524   exec_prefix="$acl_final_exec_prefix"
18525   eval x=\"$x\"
18526   exec_prefix="$acl_save_exec_prefix"
18527   prefix="$acl_save_prefix"
18528
18529                           if test "X$x" = "X-L$additional_libdir"; then
18530                             haveit=yes
18531                             break
18532                           fi
18533                         done
18534                         if test -z "$haveit"; then
18535                           if test -d "$additional_libdir"; then
18536                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18537                           fi
18538                         fi
18539                         haveit=
18540                         for x in $LDFLAGS $LTLIBINTL; do
18541
18542   acl_save_prefix="$prefix"
18543   prefix="$acl_final_prefix"
18544   acl_save_exec_prefix="$exec_prefix"
18545   exec_prefix="$acl_final_exec_prefix"
18546   eval x=\"$x\"
18547   exec_prefix="$acl_save_exec_prefix"
18548   prefix="$acl_save_prefix"
18549
18550                           if test "X$x" = "X-L$additional_libdir"; then
18551                             haveit=yes
18552                             break
18553                           fi
18554                         done
18555                         if test -z "$haveit"; then
18556                           if test -d "$additional_libdir"; then
18557                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18558                           fi
18559                         fi
18560                       fi
18561                     fi
18562                     ;;
18563                   -R*)
18564                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18565                     if test "$enable_rpath" != no; then
18566                                                                   haveit=
18567                       for x in $rpathdirs; do
18568                         if test "X$x" = "X$dir"; then
18569                           haveit=yes
18570                           break
18571                         fi
18572                       done
18573                       if test -z "$haveit"; then
18574                         rpathdirs="$rpathdirs $dir"
18575                       fi
18576                                                                   haveit=
18577                       for x in $ltrpathdirs; do
18578                         if test "X$x" = "X$dir"; then
18579                           haveit=yes
18580                           break
18581                         fi
18582                       done
18583                       if test -z "$haveit"; then
18584                         ltrpathdirs="$ltrpathdirs $dir"
18585                       fi
18586                     fi
18587                     ;;
18588                   -l*)
18589                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18590                     ;;
18591                   *.la)
18592                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18593                     ;;
18594                   *)
18595                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18596                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18597                     ;;
18598                 esac
18599               done
18600             fi
18601           else
18602                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18603             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18604           fi
18605         fi
18606       fi
18607     done
18608   done
18609   if test "X$rpathdirs" != "X"; then
18610     if test -n "$hardcode_libdir_separator"; then
18611                         alldirs=
18612       for found_dir in $rpathdirs; do
18613         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18614       done
18615             acl_save_libdir="$libdir"
18616       libdir="$alldirs"
18617       eval flag=\"$hardcode_libdir_flag_spec\"
18618       libdir="$acl_save_libdir"
18619       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18620     else
18621             for found_dir in $rpathdirs; do
18622         acl_save_libdir="$libdir"
18623         libdir="$found_dir"
18624         eval flag=\"$hardcode_libdir_flag_spec\"
18625         libdir="$acl_save_libdir"
18626         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18627       done
18628     fi
18629   fi
18630   if test "X$ltrpathdirs" != "X"; then
18631             for found_dir in $ltrpathdirs; do
18632       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18633     done
18634   fi
18635
18636           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18637 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18638 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18639   $as_echo_n "(cached) " >&6
18640 else
18641   gt_save_CPPFLAGS="$CPPFLAGS"
18642             CPPFLAGS="$CPPFLAGS $INCINTL"
18643             gt_save_LIBS="$LIBS"
18644             LIBS="$LIBS $LIBINTL"
18645                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646 /* end confdefs.h.  */
18647 #include <libintl.h>
18648 extern int _nl_msg_cat_cntr;
18649 extern
18650 #ifdef __cplusplus
18651 "C"
18652 #endif
18653 const char *_nl_expand_alias (const char *);
18654 int
18655 main ()
18656 {
18657 bindtextdomain ("", "");
18658 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18659   ;
18660   return 0;
18661 }
18662 _ACEOF
18663 if ac_fn_c_try_link "$LINENO"; then :
18664   gt_cv_func_gnugettext1_libintl=yes
18665 else
18666   gt_cv_func_gnugettext1_libintl=no
18667 fi
18668 rm -f core conftest.err conftest.$ac_objext \
18669     conftest$ac_exeext conftest.$ac_ext
18670                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18671               LIBS="$LIBS $LIBICONV"
18672               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h.  */
18674 #include <libintl.h>
18675 extern int _nl_msg_cat_cntr;
18676 extern
18677 #ifdef __cplusplus
18678 "C"
18679 #endif
18680 const char *_nl_expand_alias (const char *);
18681 int
18682 main ()
18683 {
18684 bindtextdomain ("", "");
18685 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 if ac_fn_c_try_link "$LINENO"; then :
18691   LIBINTL="$LIBINTL $LIBICONV"
18692                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18693                 gt_cv_func_gnugettext1_libintl=yes
18694
18695 fi
18696 rm -f core conftest.err conftest.$ac_objext \
18697     conftest$ac_exeext conftest.$ac_ext
18698             fi
18699             CPPFLAGS="$gt_save_CPPFLAGS"
18700             LIBS="$gt_save_LIBS"
18701 fi
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18703 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18704         fi
18705
18706                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18707            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18708                 && test "$PACKAGE" != gettext-runtime \
18709                 && test "$PACKAGE" != gettext-tools; }; then
18710           gt_use_preinstalled_gnugettext=yes
18711         else
18712                     LIBINTL=
18713           LTLIBINTL=
18714           INCINTL=
18715         fi
18716
18717
18718
18719     if test -n "$INTL_MACOSX_LIBS"; then
18720       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18721          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18722                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18723         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18724       fi
18725     fi
18726
18727     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18728        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18729
18730 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18731
18732     else
18733       USE_NLS=no
18734     fi
18735   fi
18736
18737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18738 $as_echo_n "checking whether to use NLS... " >&6; }
18739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18740 $as_echo "$USE_NLS" >&6; }
18741   if test "$USE_NLS" = "yes"; then
18742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18743 $as_echo_n "checking where the gettext function comes from... " >&6; }
18744     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18745       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18746         gt_source="external libintl"
18747       else
18748         gt_source="libc"
18749       fi
18750     else
18751       gt_source="included intl directory"
18752     fi
18753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18754 $as_echo "$gt_source" >&6; }
18755   fi
18756
18757   if test "$USE_NLS" = "yes"; then
18758
18759     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18760       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18761         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18762 $as_echo_n "checking how to link with libintl... " >&6; }
18763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18764 $as_echo "$LIBINTL" >&6; }
18765
18766   for element in $INCINTL; do
18767     haveit=
18768     for x in $CPPFLAGS; do
18769
18770   acl_save_prefix="$prefix"
18771   prefix="$acl_final_prefix"
18772   acl_save_exec_prefix="$exec_prefix"
18773   exec_prefix="$acl_final_exec_prefix"
18774   eval x=\"$x\"
18775   exec_prefix="$acl_save_exec_prefix"
18776   prefix="$acl_save_prefix"
18777
18778       if test "X$x" = "X$element"; then
18779         haveit=yes
18780         break
18781       fi
18782     done
18783     if test -z "$haveit"; then
18784       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18785     fi
18786   done
18787
18788       fi
18789
18790
18791 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18792
18793
18794 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18795
18796     fi
18797
18798         POSUB=po
18799   fi
18800
18801
18802
18803     INTLLIBS="$LIBINTL"
18804
18805
18806
18807
18808
18809
18810
18811 os_name=`uname -s 2>/dev/null`
18812 if test x${prefix} = xNONE ; then
18813    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18814       sysconfdir=/etc/bacula
18815    fi
18816
18817    if test `eval echo ${libdir}` = NONE/lib ; then
18818       case ${os_name} in
18819       Linux)
18820          os_processor=`uname -p 2>/dev/null`
18821          case ${os_processor} in
18822          x86_64)
18823             libdir=/usr/lib64
18824             ;;
18825          *)
18826             libdir=/usr/lib
18827             ;;
18828          esac
18829          ;;
18830       *)
18831          libdir=/usr/lib
18832          ;;
18833       esac
18834    fi
18835
18836    if test `eval echo ${includedir}` = NONE/include ; then
18837       includedir=/usr/include
18838    fi
18839
18840    if test `eval echo ${datarootdir}` = NONE/share ; then
18841       datarootdir=/usr/share
18842    fi
18843    prefix=
18844 fi
18845
18846 if test x${exec_prefix} = xNONE ; then
18847    exec_prefix=${prefix}
18848 fi
18849
18850 sysconfdir=`eval echo ${sysconfdir}`
18851 datarootdir=`eval echo ${datarootdir}`
18852 docdir=`eval echo ${docdir}`
18853 htmldir=`eval echo ${htmldir}`
18854 libdir=`eval echo ${libdir}`
18855 includedir=`eval echo ${includedir}`
18856 localedir=`eval echo ${datarootdir}/locale`
18857 cat >>confdefs.h <<_ACEOF
18858 #define SYSCONFDIR "$sysconfdir"
18859 _ACEOF
18860
18861 cat >>confdefs.h <<_ACEOF
18862 #define LOCALEDIR "$localedir"
18863 _ACEOF
18864
18865
18866 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18867    sbindir=${exec_prefix}/sbin
18868 fi
18869 sbindir=`eval echo ${sbindir}`
18870
18871 if test x$mandir = x'${prefix}/man' ; then
18872    mandir=/usr/share/man
18873 fi
18874
18875 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18876    htmldir=`eval echo ${docdir}html`
18877 fi
18878
18879 if test x$docdir = x'/usr/share/doc/' ; then
18880    docdir=`eval echo ${docdir}bacula`
18881 fi
18882
18883
18884 for ac_prog in msgfmt
18885 do
18886   # Extract the first word of "$ac_prog", so it can be a program name with args.
18887 set dummy $ac_prog; ac_word=$2
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18889 $as_echo_n "checking for $ac_word... " >&6; }
18890 if ${ac_cv_path_MSGFMT+:} false; then :
18891   $as_echo_n "(cached) " >&6
18892 else
18893   case $MSGFMT in
18894   [\\/]* | ?:[\\/]*)
18895   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18896   ;;
18897   *)
18898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18899 for as_dir in $PATH
18900 do
18901   IFS=$as_save_IFS
18902   test -z "$as_dir" && as_dir=.
18903     for ac_exec_ext in '' $ac_executable_extensions; do
18904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18905     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18907     break 2
18908   fi
18909 done
18910   done
18911 IFS=$as_save_IFS
18912
18913   ;;
18914 esac
18915 fi
18916 MSGFMT=$ac_cv_path_MSGFMT
18917 if test -n "$MSGFMT"; then
18918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18919 $as_echo "$MSGFMT" >&6; }
18920 else
18921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18922 $as_echo "no" >&6; }
18923 fi
18924
18925
18926   test -n "$MSGFMT" && break
18927 done
18928 test -n "$MSGFMT" || MSGFMT="no"
18929
18930 if test "$MSGFMT" = "no"
18931 then
18932    echo 'msgfmt program not found, disabling NLS !'
18933    USE_NLS=no
18934    USE_INCLUDED_LIBINTL=no
18935 #else
18936
18937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18938 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18939 if ${ac_cv_gnu_library_2+:} false; then :
18940   $as_echo_n "(cached) " >&6
18941 else
18942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18943 /* end confdefs.h.  */
18944
18945 #include <features.h>
18946 #ifdef __GNU_LIBRARY__
18947  #if (__GLIBC__ >= 2)
18948   Lucky GNU user
18949  #endif
18950 #endif
18951
18952 _ACEOF
18953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18954   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18955   ac_cv_gnu_library_2=yes
18956 else
18957   ac_cv_gnu_library_2=no
18958 fi
18959 rm -f conftest*
18960
18961
18962
18963 fi
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18965 $as_echo "$ac_cv_gnu_library_2" >&6; }
18966
18967     GLIBC2="$ac_cv_gnu_library_2"
18968
18969
18970 if test -n "$ac_tool_prefix"; then
18971   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18974 $as_echo_n "checking for $ac_word... " >&6; }
18975 if ${ac_cv_prog_RANLIB+:} false; then :
18976   $as_echo_n "(cached) " >&6
18977 else
18978   if test -n "$RANLIB"; then
18979   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18980 else
18981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18982 for as_dir in $PATH
18983 do
18984   IFS=$as_save_IFS
18985   test -z "$as_dir" && as_dir=.
18986     for ac_exec_ext in '' $ac_executable_extensions; do
18987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18988     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18990     break 2
18991   fi
18992 done
18993   done
18994 IFS=$as_save_IFS
18995
18996 fi
18997 fi
18998 RANLIB=$ac_cv_prog_RANLIB
18999 if test -n "$RANLIB"; then
19000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19001 $as_echo "$RANLIB" >&6; }
19002 else
19003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19004 $as_echo "no" >&6; }
19005 fi
19006
19007
19008 fi
19009 if test -z "$ac_cv_prog_RANLIB"; then
19010   ac_ct_RANLIB=$RANLIB
19011   # Extract the first word of "ranlib", so it can be a program name with args.
19012 set dummy ranlib; ac_word=$2
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19014 $as_echo_n "checking for $ac_word... " >&6; }
19015 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19016   $as_echo_n "(cached) " >&6
19017 else
19018   if test -n "$ac_ct_RANLIB"; then
19019   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19020 else
19021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19022 for as_dir in $PATH
19023 do
19024   IFS=$as_save_IFS
19025   test -z "$as_dir" && as_dir=.
19026     for ac_exec_ext in '' $ac_executable_extensions; do
19027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19028     ac_cv_prog_ac_ct_RANLIB="ranlib"
19029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19030     break 2
19031   fi
19032 done
19033   done
19034 IFS=$as_save_IFS
19035
19036 fi
19037 fi
19038 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19039 if test -n "$ac_ct_RANLIB"; then
19040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19041 $as_echo "$ac_ct_RANLIB" >&6; }
19042 else
19043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19044 $as_echo "no" >&6; }
19045 fi
19046
19047   if test "x$ac_ct_RANLIB" = x; then
19048     RANLIB=":"
19049   else
19050     case $cross_compiling:$ac_tool_warned in
19051 yes:)
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19054 ac_tool_warned=yes ;;
19055 esac
19056     RANLIB=$ac_ct_RANLIB
19057   fi
19058 else
19059   RANLIB="$ac_cv_prog_RANLIB"
19060 fi
19061
19062
19063         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19064 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19065 if ${ac_cv_lib_cposix_strerror+:} false; then :
19066   $as_echo_n "(cached) " >&6
19067 else
19068   ac_check_lib_save_LIBS=$LIBS
19069 LIBS="-lcposix  $LIBS"
19070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19071 /* end confdefs.h.  */
19072
19073 /* Override any GCC internal prototype to avoid an error.
19074    Use char because int might match the return type of a GCC
19075    builtin and then its argument prototype would still apply.  */
19076 #ifdef __cplusplus
19077 extern "C"
19078 #endif
19079 char strerror ();
19080 int
19081 main ()
19082 {
19083 return strerror ();
19084   ;
19085   return 0;
19086 }
19087 _ACEOF
19088 if ac_fn_c_try_link "$LINENO"; then :
19089   ac_cv_lib_cposix_strerror=yes
19090 else
19091   ac_cv_lib_cposix_strerror=no
19092 fi
19093 rm -f core conftest.err conftest.$ac_objext \
19094     conftest$ac_exeext conftest.$ac_ext
19095 LIBS=$ac_check_lib_save_LIBS
19096 fi
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19098 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19099 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19100   LIBS="$LIBS -lcposix"
19101 fi
19102
19103
19104
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19106 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19107 if ${ac_cv_c_const+:} false; then :
19108   $as_echo_n "(cached) " >&6
19109 else
19110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h.  */
19112
19113 int
19114 main ()
19115 {
19116 /* FIXME: Include the comments suggested by Paul. */
19117 #ifndef __cplusplus
19118   /* Ultrix mips cc rejects this.  */
19119   typedef int charset[2];
19120   const charset cs;
19121   /* SunOS 4.1.1 cc rejects this.  */
19122   char const *const *pcpcc;
19123   char **ppc;
19124   /* NEC SVR4.0.2 mips cc rejects this.  */
19125   struct point {int x, y;};
19126   static struct point const zero = {0,0};
19127   /* AIX XL C 1.02.0.0 rejects this.
19128      It does not let you subtract one const X* pointer from another in
19129      an arm of an if-expression whose if-part is not a constant
19130      expression */
19131   const char *g = "string";
19132   pcpcc = &g + (g ? g-g : 0);
19133   /* HPUX 7.0 cc rejects these. */
19134   ++pcpcc;
19135   ppc = (char**) pcpcc;
19136   pcpcc = (char const *const *) ppc;
19137   { /* SCO 3.2v4 cc rejects this.  */
19138     char *t;
19139     char const *s = 0 ? (char *) 0 : (char const *) 0;
19140
19141     *t++ = 0;
19142     if (s) return 0;
19143   }
19144   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19145     int x[] = {25, 17};
19146     const int *foo = &x[0];
19147     ++foo;
19148   }
19149   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19150     typedef const int *iptr;
19151     iptr p = 0;
19152     ++p;
19153   }
19154   { /* AIX XL C 1.02.0.0 rejects this saying
19155        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19156     struct s { int j; const int *ap[3]; };
19157     struct s *b; b->j = 5;
19158   }
19159   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19160     const int foo = 10;
19161     if (!foo) return 0;
19162   }
19163   return !cs[0] && !zero.x;
19164 #endif
19165
19166   ;
19167   return 0;
19168 }
19169 _ACEOF
19170 if ac_fn_c_try_compile "$LINENO"; then :
19171   ac_cv_c_const=yes
19172 else
19173   ac_cv_c_const=no
19174 fi
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176 fi
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19178 $as_echo "$ac_cv_c_const" >&6; }
19179 if test $ac_cv_c_const = no; then
19180
19181 $as_echo "#define const /**/" >>confdefs.h
19182
19183 fi
19184
19185
19186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19187 $as_echo_n "checking for signed... " >&6; }
19188 if ${bh_cv_c_signed+:} false; then :
19189   $as_echo_n "(cached) " >&6
19190 else
19191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h.  */
19193
19194 int
19195 main ()
19196 {
19197 signed char x;
19198   ;
19199   return 0;
19200 }
19201 _ACEOF
19202 if ac_fn_c_try_compile "$LINENO"; then :
19203   bh_cv_c_signed=yes
19204 else
19205   bh_cv_c_signed=no
19206 fi
19207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19208 fi
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19210 $as_echo "$bh_cv_c_signed" >&6; }
19211   if test $bh_cv_c_signed = no; then
19212
19213 $as_echo "#define signed /**/" >>confdefs.h
19214
19215   fi
19216
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19218 $as_echo_n "checking for inline... " >&6; }
19219 if ${ac_cv_c_inline+:} false; then :
19220   $as_echo_n "(cached) " >&6
19221 else
19222   ac_cv_c_inline=no
19223 for ac_kw in inline __inline__ __inline; do
19224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h.  */
19226 #ifndef __cplusplus
19227 typedef int foo_t;
19228 static $ac_kw foo_t static_foo () {return 0; }
19229 $ac_kw foo_t foo () {return 0; }
19230 #endif
19231
19232 _ACEOF
19233 if ac_fn_c_try_compile "$LINENO"; then :
19234   ac_cv_c_inline=$ac_kw
19235 fi
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237   test "$ac_cv_c_inline" != no && break
19238 done
19239
19240 fi
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19242 $as_echo "$ac_cv_c_inline" >&6; }
19243
19244 case $ac_cv_c_inline in
19245   inline | yes) ;;
19246   *)
19247     case $ac_cv_c_inline in
19248       no) ac_val=;;
19249       *) ac_val=$ac_cv_c_inline;;
19250     esac
19251     cat >>confdefs.h <<_ACEOF
19252 #ifndef __cplusplus
19253 #define inline $ac_val
19254 #endif
19255 _ACEOF
19256     ;;
19257 esac
19258
19259 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19260 if test "x$ac_cv_type_off_t" = xyes; then :
19261
19262 else
19263
19264 cat >>confdefs.h <<_ACEOF
19265 #define off_t long int
19266 _ACEOF
19267
19268 fi
19269
19270 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19271 if test "x$ac_cv_type_size_t" = xyes; then :
19272
19273 else
19274
19275 cat >>confdefs.h <<_ACEOF
19276 #define size_t unsigned int
19277 _ACEOF
19278
19279 fi
19280
19281
19282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19283 $as_echo_n "checking for long long... " >&6; }
19284 if ${ac_cv_type_long_long+:} false; then :
19285   $as_echo_n "(cached) " >&6
19286 else
19287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19288 /* end confdefs.h.  */
19289 long long ll = 1LL; int i = 63;
19290 int
19291 main ()
19292 {
19293 long long llmax = (long long) -1;
19294      return ll << i | ll >> i | llmax / ll | llmax % ll;
19295   ;
19296   return 0;
19297 }
19298 _ACEOF
19299 if ac_fn_c_try_link "$LINENO"; then :
19300   ac_cv_type_long_long=yes
19301 else
19302   ac_cv_type_long_long=no
19303 fi
19304 rm -f core conftest.err conftest.$ac_objext \
19305     conftest$ac_exeext conftest.$ac_ext
19306 fi
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19308 $as_echo "$ac_cv_type_long_long" >&6; }
19309   if test $ac_cv_type_long_long = yes; then
19310
19311 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19312
19313   fi
19314
19315
19316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19317 $as_echo_n "checking for long double... " >&6; }
19318 if ${gt_cv_c_long_double+:} false; then :
19319   $as_echo_n "(cached) " >&6
19320 else
19321   if test "$GCC" = yes; then
19322        gt_cv_c_long_double=yes
19323      else
19324        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h.  */
19326
19327          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19328          long double foo = 0.0;
19329          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19330          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19331
19332 int
19333 main ()
19334 {
19335
19336   ;
19337   return 0;
19338 }
19339 _ACEOF
19340 if ac_fn_c_try_compile "$LINENO"; then :
19341   gt_cv_c_long_double=yes
19342 else
19343   gt_cv_c_long_double=no
19344 fi
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346      fi
19347 fi
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19349 $as_echo "$gt_cv_c_long_double" >&6; }
19350   if test $gt_cv_c_long_double = yes; then
19351
19352 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19353
19354   fi
19355
19356
19357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19358 $as_echo_n "checking for wchar_t... " >&6; }
19359 if ${gt_cv_c_wchar_t+:} false; then :
19360   $as_echo_n "(cached) " >&6
19361 else
19362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h.  */
19364 #include <stddef.h>
19365        wchar_t foo = (wchar_t)'\0';
19366 int
19367 main ()
19368 {
19369
19370   ;
19371   return 0;
19372 }
19373 _ACEOF
19374 if ac_fn_c_try_compile "$LINENO"; then :
19375   gt_cv_c_wchar_t=yes
19376 else
19377   gt_cv_c_wchar_t=no
19378 fi
19379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19380 fi
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19382 $as_echo "$gt_cv_c_wchar_t" >&6; }
19383   if test $gt_cv_c_wchar_t = yes; then
19384
19385 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19386
19387   fi
19388
19389
19390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19391 $as_echo_n "checking for wint_t... " >&6; }
19392 if ${gt_cv_c_wint_t+:} false; then :
19393   $as_echo_n "(cached) " >&6
19394 else
19395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19396 /* end confdefs.h.  */
19397 #include <wchar.h>
19398        wint_t foo = (wchar_t)'\0';
19399 int
19400 main ()
19401 {
19402
19403   ;
19404   return 0;
19405 }
19406 _ACEOF
19407 if ac_fn_c_try_compile "$LINENO"; then :
19408   gt_cv_c_wint_t=yes
19409 else
19410   gt_cv_c_wint_t=no
19411 fi
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 fi
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19415 $as_echo "$gt_cv_c_wint_t" >&6; }
19416   if test $gt_cv_c_wint_t = yes; then
19417
19418 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19419
19420   fi
19421
19422
19423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19424 $as_echo_n "checking for inttypes.h... " >&6; }
19425 if ${gl_cv_header_inttypes_h+:} false; then :
19426   $as_echo_n "(cached) " >&6
19427 else
19428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h.  */
19430 #include <sys/types.h>
19431 #include <inttypes.h>
19432 int
19433 main ()
19434 {
19435 uintmax_t i = (uintmax_t) -1;
19436   ;
19437   return 0;
19438 }
19439 _ACEOF
19440 if ac_fn_c_try_compile "$LINENO"; then :
19441   gl_cv_header_inttypes_h=yes
19442 else
19443   gl_cv_header_inttypes_h=no
19444 fi
19445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446 fi
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19448 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19449   if test $gl_cv_header_inttypes_h = yes; then
19450
19451 cat >>confdefs.h <<_ACEOF
19452 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19453 _ACEOF
19454
19455   fi
19456
19457
19458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19459 $as_echo_n "checking for stdint.h... " >&6; }
19460 if ${gl_cv_header_stdint_h+:} false; then :
19461   $as_echo_n "(cached) " >&6
19462 else
19463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h.  */
19465 #include <sys/types.h>
19466 #include <stdint.h>
19467 int
19468 main ()
19469 {
19470 uintmax_t i = (uintmax_t) -1;
19471   ;
19472   return 0;
19473 }
19474 _ACEOF
19475 if ac_fn_c_try_compile "$LINENO"; then :
19476   gl_cv_header_stdint_h=yes
19477 else
19478   gl_cv_header_stdint_h=no
19479 fi
19480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19481 fi
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19483 $as_echo "$gl_cv_header_stdint_h" >&6; }
19484   if test $gl_cv_header_stdint_h = yes; then
19485
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_STDINT_H_WITH_UINTMAX 1
19488 _ACEOF
19489
19490   fi
19491
19492
19493
19494
19495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19496 $as_echo_n "checking for intmax_t... " >&6; }
19497 if ${gt_cv_c_intmax_t+:} false; then :
19498   $as_echo_n "(cached) " >&6
19499 else
19500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h.  */
19502
19503 #include <stddef.h>
19504 #include <stdlib.h>
19505 #if HAVE_STDINT_H_WITH_UINTMAX
19506 #include <stdint.h>
19507 #endif
19508 #if HAVE_INTTYPES_H_WITH_UINTMAX
19509 #include <inttypes.h>
19510 #endif
19511
19512 int
19513 main ()
19514 {
19515 intmax_t x = -1;
19516   ;
19517   return 0;
19518 }
19519 _ACEOF
19520 if ac_fn_c_try_compile "$LINENO"; then :
19521   gt_cv_c_intmax_t=yes
19522 else
19523   gt_cv_c_intmax_t=no
19524 fi
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 fi
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19528 $as_echo "$gt_cv_c_intmax_t" >&6; }
19529   if test $gt_cv_c_intmax_t = yes; then
19530
19531 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19532
19533   fi
19534
19535
19536
19537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19538 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19539 if ${gt_cv_func_printf_posix+:} false; then :
19540   $as_echo_n "(cached) " >&6
19541 else
19542
19543       if test "$cross_compiling" = yes; then :
19544
19545         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h.  */
19547
19548 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19549   notposix
19550 #endif
19551
19552 _ACEOF
19553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19554   $EGREP "notposix" >/dev/null 2>&1; then :
19555   gt_cv_func_printf_posix="guessing no"
19556 else
19557   gt_cv_func_printf_posix="guessing yes"
19558 fi
19559 rm -f conftest*
19560
19561
19562 else
19563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19564 /* end confdefs.h.  */
19565
19566 #include <stdio.h>
19567 #include <string.h>
19568 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19569    dollar expansion (possibly an autoconf bug).  */
19570 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19571 static char buf[100];
19572 int main ()
19573 {
19574   sprintf (buf, format, 33, 55);
19575   return (strcmp (buf, "55 33") != 0);
19576 }
19577 _ACEOF
19578 if ac_fn_c_try_run "$LINENO"; then :
19579   gt_cv_func_printf_posix=yes
19580 else
19581   gt_cv_func_printf_posix=no
19582 fi
19583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19584   conftest.$ac_objext conftest.beam conftest.$ac_ext
19585 fi
19586
19587
19588 fi
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19590 $as_echo "$gt_cv_func_printf_posix" >&6; }
19591   case $gt_cv_func_printf_posix in
19592     *yes)
19593
19594 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19595
19596       ;;
19597   esac
19598
19599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19600 # for constant arguments.  Useless!
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19602 $as_echo_n "checking for working alloca.h... " >&6; }
19603 if ${ac_cv_working_alloca_h+:} false; then :
19604   $as_echo_n "(cached) " >&6
19605 else
19606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h.  */
19608 #include <alloca.h>
19609 int
19610 main ()
19611 {
19612 char *p = (char *) alloca (2 * sizeof (int));
19613                           if (p) return 0;
19614   ;
19615   return 0;
19616 }
19617 _ACEOF
19618 if ac_fn_c_try_link "$LINENO"; then :
19619   ac_cv_working_alloca_h=yes
19620 else
19621   ac_cv_working_alloca_h=no
19622 fi
19623 rm -f core conftest.err conftest.$ac_objext \
19624     conftest$ac_exeext conftest.$ac_ext
19625 fi
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19627 $as_echo "$ac_cv_working_alloca_h" >&6; }
19628 if test $ac_cv_working_alloca_h = yes; then
19629
19630 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19631
19632 fi
19633
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19635 $as_echo_n "checking for alloca... " >&6; }
19636 if ${ac_cv_func_alloca_works+:} false; then :
19637   $as_echo_n "(cached) " >&6
19638 else
19639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640 /* end confdefs.h.  */
19641 #ifdef __GNUC__
19642 # define alloca __builtin_alloca
19643 #else
19644 # ifdef _MSC_VER
19645 #  include <malloc.h>
19646 #  define alloca _alloca
19647 # else
19648 #  ifdef HAVE_ALLOCA_H
19649 #   include <alloca.h>
19650 #  else
19651 #   ifdef _AIX
19652  #pragma alloca
19653 #   else
19654 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19655 void *alloca (size_t);
19656 #    endif
19657 #   endif
19658 #  endif
19659 # endif
19660 #endif
19661
19662 int
19663 main ()
19664 {
19665 char *p = (char *) alloca (1);
19666                                     if (p) return 0;
19667   ;
19668   return 0;
19669 }
19670 _ACEOF
19671 if ac_fn_c_try_link "$LINENO"; then :
19672   ac_cv_func_alloca_works=yes
19673 else
19674   ac_cv_func_alloca_works=no
19675 fi
19676 rm -f core conftest.err conftest.$ac_objext \
19677     conftest$ac_exeext conftest.$ac_ext
19678 fi
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19680 $as_echo "$ac_cv_func_alloca_works" >&6; }
19681
19682 if test $ac_cv_func_alloca_works = yes; then
19683
19684 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19685
19686 else
19687   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19688 # that cause trouble.  Some versions do not even contain alloca or
19689 # contain a buggy version.  If you still want to use their alloca,
19690 # use ar to extract alloca.o from them instead of compiling alloca.c.
19691
19692 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19693
19694 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19695
19696
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19698 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19699 if ${ac_cv_os_cray+:} false; then :
19700   $as_echo_n "(cached) " >&6
19701 else
19702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h.  */
19704 #if defined CRAY && ! defined CRAY2
19705 webecray
19706 #else
19707 wenotbecray
19708 #endif
19709
19710 _ACEOF
19711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19712   $EGREP "webecray" >/dev/null 2>&1; then :
19713   ac_cv_os_cray=yes
19714 else
19715   ac_cv_os_cray=no
19716 fi
19717 rm -f conftest*
19718
19719 fi
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19721 $as_echo "$ac_cv_os_cray" >&6; }
19722 if test $ac_cv_os_cray = yes; then
19723   for ac_func in _getb67 GETB67 getb67; do
19724     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19726 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19727
19728 cat >>confdefs.h <<_ACEOF
19729 #define CRAY_STACKSEG_END $ac_func
19730 _ACEOF
19731
19732     break
19733 fi
19734
19735   done
19736 fi
19737
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19739 $as_echo_n "checking stack direction for C alloca... " >&6; }
19740 if ${ac_cv_c_stack_direction+:} false; then :
19741   $as_echo_n "(cached) " >&6
19742 else
19743   if test "$cross_compiling" = yes; then :
19744   ac_cv_c_stack_direction=0
19745 else
19746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19747 /* end confdefs.h.  */
19748 $ac_includes_default
19749 int
19750 find_stack_direction ()
19751 {
19752   static char *addr = 0;
19753   auto char dummy;
19754   if (addr == 0)
19755     {
19756       addr = &dummy;
19757       return find_stack_direction ();
19758     }
19759   else
19760     return (&dummy > addr) ? 1 : -1;
19761 }
19762
19763 int
19764 main ()
19765 {
19766   return find_stack_direction () < 0;
19767 }
19768 _ACEOF
19769 if ac_fn_c_try_run "$LINENO"; then :
19770   ac_cv_c_stack_direction=1
19771 else
19772   ac_cv_c_stack_direction=-1
19773 fi
19774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19775   conftest.$ac_objext conftest.beam conftest.$ac_ext
19776 fi
19777
19778 fi
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19780 $as_echo "$ac_cv_c_stack_direction" >&6; }
19781 cat >>confdefs.h <<_ACEOF
19782 #define STACK_DIRECTION $ac_cv_c_stack_direction
19783 _ACEOF
19784
19785
19786 fi
19787
19788
19789
19790
19791   for ac_header in $ac_header_list
19792 do :
19793   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19794 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19795 "
19796 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19797   cat >>confdefs.h <<_ACEOF
19798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19799 _ACEOF
19800
19801 fi
19802
19803 done
19804
19805
19806
19807
19808
19809
19810
19811
19812 for ac_func in getpagesize
19813 do :
19814   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19815 if test "x$ac_cv_func_getpagesize" = xyes; then :
19816   cat >>confdefs.h <<_ACEOF
19817 #define HAVE_GETPAGESIZE 1
19818 _ACEOF
19819
19820 fi
19821 done
19822
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19824 $as_echo_n "checking for working mmap... " >&6; }
19825 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19826   $as_echo_n "(cached) " >&6
19827 else
19828   if test "$cross_compiling" = yes; then :
19829   ac_cv_func_mmap_fixed_mapped=no
19830 else
19831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h.  */
19833 $ac_includes_default
19834 /* malloc might have been renamed as rpl_malloc. */
19835 #undef malloc
19836
19837 /* Thanks to Mike Haertel and Jim Avera for this test.
19838    Here is a matrix of mmap possibilities:
19839         mmap private not fixed
19840         mmap private fixed at somewhere currently unmapped
19841         mmap private fixed at somewhere already mapped
19842         mmap shared not fixed
19843         mmap shared fixed at somewhere currently unmapped
19844         mmap shared fixed at somewhere already mapped
19845    For private mappings, we should verify that changes cannot be read()
19846    back from the file, nor mmap's back from the file at a different
19847    address.  (There have been systems where private was not correctly
19848    implemented like the infamous i386 svr4.0, and systems where the
19849    VM page cache was not coherent with the file system buffer cache
19850    like early versions of FreeBSD and possibly contemporary NetBSD.)
19851    For shared mappings, we should conversely verify that changes get
19852    propagated back to all the places they're supposed to be.
19853
19854    Grep wants private fixed already mapped.
19855    The main things grep needs to know about mmap are:
19856    * does it exist and is it safe to write into the mmap'd area
19857    * how to use it (BSD variants)  */
19858
19859 #include <fcntl.h>
19860 #include <sys/mman.h>
19861
19862 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19863 char *malloc ();
19864 #endif
19865
19866 /* This mess was copied from the GNU getpagesize.h.  */
19867 #ifndef HAVE_GETPAGESIZE
19868 # ifdef _SC_PAGESIZE
19869 #  define getpagesize() sysconf(_SC_PAGESIZE)
19870 # else /* no _SC_PAGESIZE */
19871 #  ifdef HAVE_SYS_PARAM_H
19872 #   include <sys/param.h>
19873 #   ifdef EXEC_PAGESIZE
19874 #    define getpagesize() EXEC_PAGESIZE
19875 #   else /* no EXEC_PAGESIZE */
19876 #    ifdef NBPG
19877 #     define getpagesize() NBPG * CLSIZE
19878 #     ifndef CLSIZE
19879 #      define CLSIZE 1
19880 #     endif /* no CLSIZE */
19881 #    else /* no NBPG */
19882 #     ifdef NBPC
19883 #      define getpagesize() NBPC
19884 #     else /* no NBPC */
19885 #      ifdef PAGESIZE
19886 #       define getpagesize() PAGESIZE
19887 #      endif /* PAGESIZE */
19888 #     endif /* no NBPC */
19889 #    endif /* no NBPG */
19890 #   endif /* no EXEC_PAGESIZE */
19891 #  else /* no HAVE_SYS_PARAM_H */
19892 #   define getpagesize() 8192   /* punt totally */
19893 #  endif /* no HAVE_SYS_PARAM_H */
19894 # endif /* no _SC_PAGESIZE */
19895
19896 #endif /* no HAVE_GETPAGESIZE */
19897
19898 int
19899 main ()
19900 {
19901   char *data, *data2, *data3;
19902   const char *cdata2;
19903   int i, pagesize;
19904   int fd, fd2;
19905
19906   pagesize = getpagesize ();
19907
19908   /* First, make a file with some known garbage in it. */
19909   data = (char *) malloc (pagesize);
19910   if (!data)
19911     return 1;
19912   for (i = 0; i < pagesize; ++i)
19913     *(data + i) = rand ();
19914   umask (0);
19915   fd = creat ("conftest.mmap", 0600);
19916   if (fd < 0)
19917     return 2;
19918   if (write (fd, data, pagesize) != pagesize)
19919     return 3;
19920   close (fd);
19921
19922   /* Next, check that the tail of a page is zero-filled.  File must have
19923      non-zero length, otherwise we risk SIGBUS for entire page.  */
19924   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19925   if (fd2 < 0)
19926     return 4;
19927   cdata2 = "";
19928   if (write (fd2, cdata2, 1) != 1)
19929     return 5;
19930   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19931   if (data2 == MAP_FAILED)
19932     return 6;
19933   for (i = 0; i < pagesize; ++i)
19934     if (*(data2 + i))
19935       return 7;
19936   close (fd2);
19937   if (munmap (data2, pagesize))
19938     return 8;
19939
19940   /* Next, try to mmap the file at a fixed address which already has
19941      something else allocated at it.  If we can, also make sure that
19942      we see the same garbage.  */
19943   fd = open ("conftest.mmap", O_RDWR);
19944   if (fd < 0)
19945     return 9;
19946   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19947                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19948     return 10;
19949   for (i = 0; i < pagesize; ++i)
19950     if (*(data + i) != *(data2 + i))
19951       return 11;
19952
19953   /* Finally, make sure that changes to the mapped area do not
19954      percolate back to the file as seen by read().  (This is a bug on
19955      some variants of i386 svr4.0.)  */
19956   for (i = 0; i < pagesize; ++i)
19957     *(data2 + i) = *(data2 + i) + 1;
19958   data3 = (char *) malloc (pagesize);
19959   if (!data3)
19960     return 12;
19961   if (read (fd, data3, pagesize) != pagesize)
19962     return 13;
19963   for (i = 0; i < pagesize; ++i)
19964     if (*(data + i) != *(data3 + i))
19965       return 14;
19966   close (fd);
19967   return 0;
19968 }
19969 _ACEOF
19970 if ac_fn_c_try_run "$LINENO"; then :
19971   ac_cv_func_mmap_fixed_mapped=yes
19972 else
19973   ac_cv_func_mmap_fixed_mapped=no
19974 fi
19975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19976   conftest.$ac_objext conftest.beam conftest.$ac_ext
19977 fi
19978
19979 fi
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19981 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19982 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19983
19984 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19985
19986 fi
19987 rm -f conftest.mmap conftest.txt
19988
19989
19990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19991 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19992 if ${ac_cv_gnu_library_2_1+:} false; then :
19993   $as_echo_n "(cached) " >&6
19994 else
19995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19996 /* end confdefs.h.  */
19997
19998 #include <features.h>
19999 #ifdef __GNU_LIBRARY__
20000  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20001   Lucky GNU user
20002  #endif
20003 #endif
20004
20005 _ACEOF
20006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20007   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20008   ac_cv_gnu_library_2_1=yes
20009 else
20010   ac_cv_gnu_library_2_1=no
20011 fi
20012 rm -f conftest*
20013
20014
20015
20016 fi
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20018 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20019
20020     GLIBC21="$ac_cv_gnu_library_2_1"
20021
20022
20023
20024
20025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20026 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20027 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20028   $as_echo_n "(cached) " >&6
20029 else
20030
20031       if test "$cross_compiling" = yes; then :
20032
20033           # Guess based on the CPU.
20034           case "$host_cpu" in
20035             alpha* | i3456786 | m68k | s390*)
20036               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20037             *)
20038               gt_cv_int_divbyzero_sigfpe="guessing no";;
20039           esac
20040
20041 else
20042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20043 /* end confdefs.h.  */
20044
20045 #include <stdlib.h>
20046 #include <signal.h>
20047
20048 static void
20049 #ifdef __cplusplus
20050 sigfpe_handler (int sig)
20051 #else
20052 sigfpe_handler (sig) int sig;
20053 #endif
20054 {
20055   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20056   exit (sig != SIGFPE);
20057 }
20058
20059 int x = 1;
20060 int y = 0;
20061 int z;
20062 int nan;
20063
20064 int main ()
20065 {
20066   signal (SIGFPE, sigfpe_handler);
20067 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20068 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20069   signal (SIGTRAP, sigfpe_handler);
20070 #endif
20071 /* Linux/SPARC yields signal SIGILL.  */
20072 #if defined (__sparc__) && defined (__linux__)
20073   signal (SIGILL, sigfpe_handler);
20074 #endif
20075
20076   z = x / y;
20077   nan = y / y;
20078   exit (1);
20079 }
20080
20081 _ACEOF
20082 if ac_fn_c_try_run "$LINENO"; then :
20083   gt_cv_int_divbyzero_sigfpe=yes
20084 else
20085   gt_cv_int_divbyzero_sigfpe=no
20086 fi
20087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20088   conftest.$ac_objext conftest.beam conftest.$ac_ext
20089 fi
20090
20091
20092 fi
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20094 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20095   case "$gt_cv_int_divbyzero_sigfpe" in
20096     *yes) value=1;;
20097     *) value=0;;
20098   esac
20099
20100 cat >>confdefs.h <<_ACEOF
20101 #define INTDIV0_RAISES_SIGFPE $value
20102 _ACEOF
20103
20104
20105
20106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20107 $as_echo_n "checking for unsigned long long... " >&6; }
20108 if ${ac_cv_type_unsigned_long_long+:} false; then :
20109   $as_echo_n "(cached) " >&6
20110 else
20111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112 /* end confdefs.h.  */
20113 unsigned long long ull = 1ULL; int i = 63;
20114 int
20115 main ()
20116 {
20117 unsigned long long ullmax = (unsigned long long) -1;
20118      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20119   ;
20120   return 0;
20121 }
20122 _ACEOF
20123 if ac_fn_c_try_link "$LINENO"; then :
20124   ac_cv_type_unsigned_long_long=yes
20125 else
20126   ac_cv_type_unsigned_long_long=no
20127 fi
20128 rm -f core conftest.err conftest.$ac_objext \
20129     conftest$ac_exeext conftest.$ac_ext
20130 fi
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20132 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20133   if test $ac_cv_type_unsigned_long_long = yes; then
20134
20135 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20136
20137   fi
20138
20139
20140
20141
20142   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20143
20144     test $ac_cv_type_unsigned_long_long = yes \
20145       && ac_type='unsigned long long' \
20146       || ac_type='unsigned long'
20147
20148 cat >>confdefs.h <<_ACEOF
20149 #define uintmax_t $ac_type
20150 _ACEOF
20151
20152   else
20153
20154 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20155
20156   fi
20157
20158
20159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20160 $as_echo_n "checking for inttypes.h... " >&6; }
20161 if ${gt_cv_header_inttypes_h+:} false; then :
20162   $as_echo_n "(cached) " >&6
20163 else
20164
20165     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20166 /* end confdefs.h.  */
20167 #include <sys/types.h>
20168 #include <inttypes.h>
20169 int
20170 main ()
20171 {
20172
20173   ;
20174   return 0;
20175 }
20176 _ACEOF
20177 if ac_fn_c_try_compile "$LINENO"; then :
20178   gt_cv_header_inttypes_h=yes
20179 else
20180   gt_cv_header_inttypes_h=no
20181 fi
20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183
20184 fi
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20186 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20187   if test $gt_cv_header_inttypes_h = yes; then
20188
20189 cat >>confdefs.h <<_ACEOF
20190 #define HAVE_INTTYPES_H 1
20191 _ACEOF
20192
20193   fi
20194
20195
20196
20197   if test $gt_cv_header_inttypes_h = yes; then
20198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20199 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20200 if ${gt_cv_inttypes_pri_broken+:} false; then :
20201   $as_echo_n "(cached) " >&6
20202 else
20203
20204         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20205 /* end confdefs.h.  */
20206 #include <inttypes.h>
20207 #ifdef PRId32
20208 char *p = PRId32;
20209 #endif
20210
20211 int
20212 main ()
20213 {
20214
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 if ac_fn_c_try_compile "$LINENO"; then :
20220   gt_cv_inttypes_pri_broken=no
20221 else
20222   gt_cv_inttypes_pri_broken=yes
20223 fi
20224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20225
20226 fi
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20228 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20229   fi
20230   if test "$gt_cv_inttypes_pri_broken" = yes; then
20231
20232 cat >>confdefs.h <<_ACEOF
20233 #define PRI_MACROS_BROKEN 1
20234 _ACEOF
20235
20236   fi
20237
20238
20239   for ac_header in stdint.h
20240 do :
20241   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20242 if test "x$ac_cv_header_stdint_h" = xyes; then :
20243   cat >>confdefs.h <<_ACEOF
20244 #define HAVE_STDINT_H 1
20245 _ACEOF
20246
20247 fi
20248
20249 done
20250
20251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20252 $as_echo_n "checking for SIZE_MAX... " >&6; }
20253   result=
20254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h.  */
20256
20257 #include <limits.h>
20258 #if HAVE_STDINT_H
20259 #include <stdint.h>
20260 #endif
20261 #ifdef SIZE_MAX
20262 Found it
20263 #endif
20264
20265 _ACEOF
20266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20267   $EGREP "Found it" >/dev/null 2>&1; then :
20268   result=yes
20269 fi
20270 rm -f conftest*
20271
20272   if test -z "$result"; then
20273                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20274
20275 else
20276   result=?
20277 fi
20278
20279
20280     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20281
20282 else
20283   result=?
20284 fi
20285
20286
20287     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20288
20289 else
20290   result=?
20291 fi
20292
20293
20294     if test "$fits_in_uint" = 1; then
20295                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20296 /* end confdefs.h.  */
20297 #include <stddef.h>
20298         extern size_t foo;
20299         extern unsigned long foo;
20300
20301 int
20302 main ()
20303 {
20304
20305   ;
20306   return 0;
20307 }
20308 _ACEOF
20309 if ac_fn_c_try_compile "$LINENO"; then :
20310   fits_in_uint=0
20311 fi
20312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313     fi
20314     if test -z "$result"; then
20315       if test "$fits_in_uint" = 1; then
20316         result="$res_hi$res_lo"U
20317       else
20318         result="$res_hi$res_lo"UL
20319       fi
20320     else
20321             result='~(size_t)0'
20322     fi
20323   fi
20324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20325 $as_echo "$result" >&6; }
20326   if test "$result" != yes; then
20327
20328 cat >>confdefs.h <<_ACEOF
20329 #define SIZE_MAX $result
20330 _ACEOF
20331
20332   fi
20333
20334
20335
20336
20337   for ac_header in stdint.h
20338 do :
20339   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20340 if test "x$ac_cv_header_stdint_h" = xyes; then :
20341   cat >>confdefs.h <<_ACEOF
20342 #define HAVE_STDINT_H 1
20343 _ACEOF
20344
20345 fi
20346
20347 done
20348
20349
20350
20351
20352
20353
20354
20355
20356   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20357 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20358
20359 else
20360
20361 $as_echo "#define ptrdiff_t long" >>confdefs.h
20362
20363
20364 fi
20365
20366   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20367 stdlib.h string.h unistd.h sys/param.h
20368 do :
20369   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20370 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20372   cat >>confdefs.h <<_ACEOF
20373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20374 _ACEOF
20375
20376 fi
20377
20378 done
20379
20380   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20381 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20382 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20383 __fsetlocking
20384 do :
20385   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20387 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20388   cat >>confdefs.h <<_ACEOF
20389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20390 _ACEOF
20391
20392 fi
20393 done
20394
20395
20396
20397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20398 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20399 if ${ac_cv_have_decl__snprintf+:} false; then :
20400   $as_echo_n "(cached) " >&6
20401 else
20402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20403 /* end confdefs.h.  */
20404 #include <stdio.h>
20405 int
20406 main ()
20407 {
20408
20409 #ifndef _snprintf
20410   char *p = (char *) _snprintf;
20411 #endif
20412
20413   ;
20414   return 0;
20415 }
20416 _ACEOF
20417 if ac_fn_c_try_compile "$LINENO"; then :
20418   ac_cv_have_decl__snprintf=yes
20419 else
20420   ac_cv_have_decl__snprintf=no
20421 fi
20422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20423 fi
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20425 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20426   if test $ac_cv_have_decl__snprintf = yes; then
20427     gt_value=1
20428   else
20429     gt_value=0
20430   fi
20431
20432 cat >>confdefs.h <<_ACEOF
20433 #define HAVE_DECL__SNPRINTF $gt_value
20434 _ACEOF
20435
20436
20437
20438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20439 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20440 if ${ac_cv_have_decl__snwprintf+:} false; then :
20441   $as_echo_n "(cached) " >&6
20442 else
20443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h.  */
20445 #include <stdio.h>
20446 int
20447 main ()
20448 {
20449
20450 #ifndef _snwprintf
20451   char *p = (char *) _snwprintf;
20452 #endif
20453
20454   ;
20455   return 0;
20456 }
20457 _ACEOF
20458 if ac_fn_c_try_compile "$LINENO"; then :
20459   ac_cv_have_decl__snwprintf=yes
20460 else
20461   ac_cv_have_decl__snwprintf=no
20462 fi
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 fi
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20466 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20467   if test $ac_cv_have_decl__snwprintf = yes; then
20468     gt_value=1
20469   else
20470     gt_value=0
20471   fi
20472
20473 cat >>confdefs.h <<_ACEOF
20474 #define HAVE_DECL__SNWPRINTF $gt_value
20475 _ACEOF
20476
20477
20478
20479
20480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20481 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20482 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20483   $as_echo_n "(cached) " >&6
20484 else
20485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20486 /* end confdefs.h.  */
20487 #include <stdio.h>
20488 int
20489 main ()
20490 {
20491
20492 #ifndef feof_unlocked
20493   char *p = (char *) feof_unlocked;
20494 #endif
20495
20496   ;
20497   return 0;
20498 }
20499 _ACEOF
20500 if ac_fn_c_try_compile "$LINENO"; then :
20501   ac_cv_have_decl_feof_unlocked=yes
20502 else
20503   ac_cv_have_decl_feof_unlocked=no
20504 fi
20505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20506 fi
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20508 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20509   if test $ac_cv_have_decl_feof_unlocked = yes; then
20510     gt_value=1
20511   else
20512     gt_value=0
20513   fi
20514
20515 cat >>confdefs.h <<_ACEOF
20516 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20517 _ACEOF
20518
20519
20520
20521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20522 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20523 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20524   $as_echo_n "(cached) " >&6
20525 else
20526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20527 /* end confdefs.h.  */
20528 #include <stdio.h>
20529 int
20530 main ()
20531 {
20532
20533 #ifndef fgets_unlocked
20534   char *p = (char *) fgets_unlocked;
20535 #endif
20536
20537   ;
20538   return 0;
20539 }
20540 _ACEOF
20541 if ac_fn_c_try_compile "$LINENO"; then :
20542   ac_cv_have_decl_fgets_unlocked=yes
20543 else
20544   ac_cv_have_decl_fgets_unlocked=no
20545 fi
20546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20547 fi
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20549 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20550   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20551     gt_value=1
20552   else
20553     gt_value=0
20554   fi
20555
20556 cat >>confdefs.h <<_ACEOF
20557 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20558 _ACEOF
20559
20560
20561
20562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20563 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20564 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20565   $as_echo_n "(cached) " >&6
20566 else
20567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20568 /* end confdefs.h.  */
20569 #include <stdio.h>
20570 int
20571 main ()
20572 {
20573
20574 #ifndef getc_unlocked
20575   char *p = (char *) getc_unlocked;
20576 #endif
20577
20578   ;
20579   return 0;
20580 }
20581 _ACEOF
20582 if ac_fn_c_try_compile "$LINENO"; then :
20583   ac_cv_have_decl_getc_unlocked=yes
20584 else
20585   ac_cv_have_decl_getc_unlocked=no
20586 fi
20587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20588 fi
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20590 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20591   if test $ac_cv_have_decl_getc_unlocked = yes; then
20592     gt_value=1
20593   else
20594     gt_value=0
20595   fi
20596
20597 cat >>confdefs.h <<_ACEOF
20598 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20599 _ACEOF
20600
20601
20602
20603   case $gt_cv_func_printf_posix in
20604     *yes) HAVE_POSIX_PRINTF=1 ;;
20605     *) HAVE_POSIX_PRINTF=0 ;;
20606   esac
20607
20608   if test "$ac_cv_func_asprintf" = yes; then
20609     HAVE_ASPRINTF=1
20610   else
20611     HAVE_ASPRINTF=0
20612   fi
20613
20614   if test "$ac_cv_func_snprintf" = yes; then
20615     HAVE_SNPRINTF=1
20616   else
20617     HAVE_SNPRINTF=0
20618   fi
20619
20620   if test "$ac_cv_func_wprintf" = yes; then
20621     HAVE_WPRINTF=1
20622   else
20623     HAVE_WPRINTF=0
20624   fi
20625
20626
20627
20628
20629
20630
20631
20632           am_save_CPPFLAGS="$CPPFLAGS"
20633
20634   for element in $INCICONV; do
20635     haveit=
20636     for x in $CPPFLAGS; do
20637
20638   acl_save_prefix="$prefix"
20639   prefix="$acl_final_prefix"
20640   acl_save_exec_prefix="$exec_prefix"
20641   exec_prefix="$acl_final_exec_prefix"
20642   eval x=\"$x\"
20643   exec_prefix="$acl_save_exec_prefix"
20644   prefix="$acl_save_prefix"
20645
20646       if test "X$x" = "X$element"; then
20647         haveit=yes
20648         break
20649       fi
20650     done
20651     if test -z "$haveit"; then
20652       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20653     fi
20654   done
20655
20656
20657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20658 $as_echo_n "checking for iconv... " >&6; }
20659 if ${am_cv_func_iconv+:} false; then :
20660   $as_echo_n "(cached) " >&6
20661 else
20662
20663     am_cv_func_iconv="no, consider installing GNU libiconv"
20664     am_cv_lib_iconv=no
20665     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20666 /* end confdefs.h.  */
20667 #include <stdlib.h>
20668 #include <iconv.h>
20669 int
20670 main ()
20671 {
20672 iconv_t cd = iconv_open("","");
20673        iconv(cd,NULL,NULL,NULL,NULL);
20674        iconv_close(cd);
20675   ;
20676   return 0;
20677 }
20678 _ACEOF
20679 if ac_fn_c_try_link "$LINENO"; then :
20680   am_cv_func_iconv=yes
20681 fi
20682 rm -f core conftest.err conftest.$ac_objext \
20683     conftest$ac_exeext conftest.$ac_ext
20684     if test "$am_cv_func_iconv" != yes; then
20685       am_save_LIBS="$LIBS"
20686       LIBS="$LIBS $LIBICONV"
20687       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20688 /* end confdefs.h.  */
20689 #include <stdlib.h>
20690 #include <iconv.h>
20691 int
20692 main ()
20693 {
20694 iconv_t cd = iconv_open("","");
20695          iconv(cd,NULL,NULL,NULL,NULL);
20696          iconv_close(cd);
20697   ;
20698   return 0;
20699 }
20700 _ACEOF
20701 if ac_fn_c_try_link "$LINENO"; then :
20702   am_cv_lib_iconv=yes
20703         am_cv_func_iconv=yes
20704 fi
20705 rm -f core conftest.err conftest.$ac_objext \
20706     conftest$ac_exeext conftest.$ac_ext
20707       LIBS="$am_save_LIBS"
20708     fi
20709
20710 fi
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20712 $as_echo "$am_cv_func_iconv" >&6; }
20713   if test "$am_cv_func_iconv" = yes; then
20714
20715 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20716
20717   fi
20718   if test "$am_cv_lib_iconv" = yes; then
20719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20720 $as_echo_n "checking how to link with libiconv... " >&6; }
20721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20722 $as_echo "$LIBICONV" >&6; }
20723   else
20724             CPPFLAGS="$am_save_CPPFLAGS"
20725     LIBICONV=
20726     LTLIBICONV=
20727   fi
20728
20729
20730
20731   if test "$am_cv_func_iconv" = yes; then
20732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20733 $as_echo_n "checking for iconv declaration... " >&6; }
20734     if ${am_cv_proto_iconv+:} false; then :
20735   $as_echo_n "(cached) " >&6
20736 else
20737
20738       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h.  */
20740
20741 #include <stdlib.h>
20742 #include <iconv.h>
20743 extern
20744 #ifdef __cplusplus
20745 "C"
20746 #endif
20747 #if defined(__STDC__) || defined(__cplusplus)
20748 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20749 #else
20750 size_t iconv();
20751 #endif
20752
20753 int
20754 main ()
20755 {
20756
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 if ac_fn_c_try_compile "$LINENO"; then :
20762   am_cv_proto_iconv_arg1=""
20763 else
20764   am_cv_proto_iconv_arg1="const"
20765 fi
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767       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);"
20768 fi
20769
20770     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20772          }$am_cv_proto_iconv" >&5
20773 $as_echo "${ac_t:-
20774          }$am_cv_proto_iconv" >&6; }
20775
20776 cat >>confdefs.h <<_ACEOF
20777 #define ICONV_CONST $am_cv_proto_iconv_arg1
20778 _ACEOF
20779
20780   fi
20781
20782
20783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20784 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20785 if ${am_cv_langinfo_codeset+:} false; then :
20786   $as_echo_n "(cached) " >&6
20787 else
20788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20789 /* end confdefs.h.  */
20790 #include <langinfo.h>
20791 int
20792 main ()
20793 {
20794 char* cs = nl_langinfo(CODESET);
20795   ;
20796   return 0;
20797 }
20798 _ACEOF
20799 if ac_fn_c_try_link "$LINENO"; then :
20800   am_cv_langinfo_codeset=yes
20801 else
20802   am_cv_langinfo_codeset=no
20803 fi
20804 rm -f core conftest.err conftest.$ac_objext \
20805     conftest$ac_exeext conftest.$ac_ext
20806
20807 fi
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20809 $as_echo "$am_cv_langinfo_codeset" >&6; }
20810   if test $am_cv_langinfo_codeset = yes; then
20811
20812 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20813
20814   fi
20815
20816   if test $ac_cv_header_locale_h = yes; then
20817
20818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20819 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20820 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20821   $as_echo_n "(cached) " >&6
20822 else
20823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h.  */
20825 #include <locale.h>
20826 int
20827 main ()
20828 {
20829 return LC_MESSAGES
20830   ;
20831   return 0;
20832 }
20833 _ACEOF
20834 if ac_fn_c_try_link "$LINENO"; then :
20835   gt_cv_val_LC_MESSAGES=yes
20836 else
20837   gt_cv_val_LC_MESSAGES=no
20838 fi
20839 rm -f core conftest.err conftest.$ac_objext \
20840     conftest$ac_exeext conftest.$ac_ext
20841 fi
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20843 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20844   if test $gt_cv_val_LC_MESSAGES = yes; then
20845
20846 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20847
20848   fi
20849
20850   fi
20851
20852   if test -n "$INTL_MACOSX_LIBS"; then
20853     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20854   fi
20855
20856                       for ac_prog in bison
20857 do
20858   # Extract the first word of "$ac_prog", so it can be a program name with args.
20859 set dummy $ac_prog; ac_word=$2
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20861 $as_echo_n "checking for $ac_word... " >&6; }
20862 if ${ac_cv_prog_INTLBISON+:} false; then :
20863   $as_echo_n "(cached) " >&6
20864 else
20865   if test -n "$INTLBISON"; then
20866   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20867 else
20868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20869 for as_dir in $PATH
20870 do
20871   IFS=$as_save_IFS
20872   test -z "$as_dir" && as_dir=.
20873     for ac_exec_ext in '' $ac_executable_extensions; do
20874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20875     ac_cv_prog_INTLBISON="$ac_prog"
20876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20877     break 2
20878   fi
20879 done
20880   done
20881 IFS=$as_save_IFS
20882
20883 fi
20884 fi
20885 INTLBISON=$ac_cv_prog_INTLBISON
20886 if test -n "$INTLBISON"; then
20887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20888 $as_echo "$INTLBISON" >&6; }
20889 else
20890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20891 $as_echo "no" >&6; }
20892 fi
20893
20894
20895   test -n "$INTLBISON" && break
20896 done
20897
20898   if test -z "$INTLBISON"; then
20899     ac_verc_fail=yes
20900   else
20901         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20902 $as_echo_n "checking version of bison... " >&6; }
20903     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20904     case $ac_prog_version in
20905       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20906       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20907          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20908       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20909     esac
20910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20911 $as_echo "$ac_prog_version" >&6; }
20912   fi
20913   if test $ac_verc_fail = yes; then
20914     INTLBISON=:
20915   fi
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20933 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20934 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20935   $as_echo_n "(cached) " >&6
20936 else
20937   gt_save_CPPFLAGS="$CPPFLAGS"
20938      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20939      gt_save_LIBS="$LIBS"
20940      LIBS="$LIBS -framework CoreFoundation"
20941      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h.  */
20943 #include <CFPreferences.h>
20944 int
20945 main ()
20946 {
20947 CFPreferencesCopyAppValue(NULL, NULL)
20948   ;
20949   return 0;
20950 }
20951 _ACEOF
20952 if ac_fn_c_try_link "$LINENO"; then :
20953   gt_cv_func_CFPreferencesCopyAppValue=yes
20954 else
20955   gt_cv_func_CFPreferencesCopyAppValue=no
20956 fi
20957 rm -f core conftest.err conftest.$ac_objext \
20958     conftest$ac_exeext conftest.$ac_ext
20959      CPPFLAGS="$gt_save_CPPFLAGS"
20960      LIBS="$gt_save_LIBS"
20961 fi
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20963 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20964   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20965
20966 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20967
20968   fi
20969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20970 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20971 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20972   $as_echo_n "(cached) " >&6
20973 else
20974   gt_save_CPPFLAGS="$CPPFLAGS"
20975      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20976      gt_save_LIBS="$LIBS"
20977      LIBS="$LIBS -framework CoreFoundation"
20978      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h.  */
20980 #include <CFLocale.h>
20981 int
20982 main ()
20983 {
20984 CFLocaleCopyCurrent();
20985   ;
20986   return 0;
20987 }
20988 _ACEOF
20989 if ac_fn_c_try_link "$LINENO"; then :
20990   gt_cv_func_CFLocaleCopyCurrent=yes
20991 else
20992   gt_cv_func_CFLocaleCopyCurrent=no
20993 fi
20994 rm -f core conftest.err conftest.$ac_objext \
20995     conftest$ac_exeext conftest.$ac_ext
20996      CPPFLAGS="$gt_save_CPPFLAGS"
20997      LIBS="$gt_save_LIBS"
20998 fi
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21000 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21001   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21002
21003 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21004
21005   fi
21006   INTL_MACOSX_LIBS=
21007   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21008     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21009   fi
21010
21011
21012
21013
21014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21015 $as_echo_n "checking whether NLS is requested... " >&6; }
21016     # Check whether --enable-nls was given.
21017 if test "${enable_nls+set}" = set; then :
21018   enableval=$enable_nls; USE_NLS=$enableval
21019 else
21020   USE_NLS=yes
21021 fi
21022
21023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21024 $as_echo "$USE_NLS" >&6; }
21025
21026
21027
21028
21029     BUILD_INCLUDED_LIBINTL=no
21030     USE_INCLUDED_LIBINTL=no
21031
21032   LIBINTL=
21033   LTLIBINTL=
21034   POSUB=
21035
21036     if test "$USE_NLS" = "yes"; then
21037     gt_use_preinstalled_gnugettext=no
21038
21039       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21040 $as_echo_n "checking whether included gettext is requested... " >&6; }
21041
21042 # Check whether --with-included-gettext was given.
21043 if test "${with_included_gettext+set}" = set; then :
21044   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21045 else
21046   nls_cv_force_use_gnu_gettext=no
21047 fi
21048
21049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21050 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21051
21052       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21053       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21054
21055
21056
21057
21058
21059
21060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21061 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21062 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21063   $as_echo_n "(cached) " >&6
21064 else
21065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21066 /* end confdefs.h.  */
21067 #include <libintl.h>
21068 extern int _nl_msg_cat_cntr;
21069 extern int *_nl_domain_bindings;
21070 int
21071 main ()
21072 {
21073 bindtextdomain ("", "");
21074 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21075   ;
21076   return 0;
21077 }
21078 _ACEOF
21079 if ac_fn_c_try_link "$LINENO"; then :
21080   gt_cv_func_gnugettext1_libc=yes
21081 else
21082   gt_cv_func_gnugettext1_libc=no
21083 fi
21084 rm -f core conftest.err conftest.$ac_objext \
21085     conftest$ac_exeext conftest.$ac_ext
21086 fi
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21088 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21089
21090         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21091
21092
21093
21094     use_additional=yes
21095
21096   acl_save_prefix="$prefix"
21097   prefix="$acl_final_prefix"
21098   acl_save_exec_prefix="$exec_prefix"
21099   exec_prefix="$acl_final_exec_prefix"
21100
21101     eval additional_includedir=\"$includedir\"
21102     eval additional_libdir=\"$libdir\"
21103
21104   exec_prefix="$acl_save_exec_prefix"
21105   prefix="$acl_save_prefix"
21106
21107
21108 # Check whether --with-libintl-prefix was given.
21109 if test "${with_libintl_prefix+set}" = set; then :
21110   withval=$with_libintl_prefix;
21111     if test "X$withval" = "Xno"; then
21112       use_additional=no
21113     else
21114       if test "X$withval" = "X"; then
21115
21116   acl_save_prefix="$prefix"
21117   prefix="$acl_final_prefix"
21118   acl_save_exec_prefix="$exec_prefix"
21119   exec_prefix="$acl_final_exec_prefix"
21120
21121           eval additional_includedir=\"$includedir\"
21122           eval additional_libdir=\"$libdir\"
21123
21124   exec_prefix="$acl_save_exec_prefix"
21125   prefix="$acl_save_prefix"
21126
21127       else
21128         additional_includedir="$withval/include"
21129         additional_libdir="$withval/lib"
21130       fi
21131     fi
21132
21133 fi
21134
21135       LIBINTL=
21136   LTLIBINTL=
21137   INCINTL=
21138   rpathdirs=
21139   ltrpathdirs=
21140   names_already_handled=
21141   names_next_round='intl '
21142   while test -n "$names_next_round"; do
21143     names_this_round="$names_next_round"
21144     names_next_round=
21145     for name in $names_this_round; do
21146       already_handled=
21147       for n in $names_already_handled; do
21148         if test "$n" = "$name"; then
21149           already_handled=yes
21150           break
21151         fi
21152       done
21153       if test -z "$already_handled"; then
21154         names_already_handled="$names_already_handled $name"
21155                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21156         eval value=\"\$HAVE_LIB$uppername\"
21157         if test -n "$value"; then
21158           if test "$value" = yes; then
21159             eval value=\"\$LIB$uppername\"
21160             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21161             eval value=\"\$LTLIB$uppername\"
21162             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21163           else
21164                                     :
21165           fi
21166         else
21167                               found_dir=
21168           found_la=
21169           found_so=
21170           found_a=
21171           if test $use_additional = yes; then
21172             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21173               found_dir="$additional_libdir"
21174               found_so="$additional_libdir/lib$name.$shlibext"
21175               if test -f "$additional_libdir/lib$name.la"; then
21176                 found_la="$additional_libdir/lib$name.la"
21177               fi
21178             else
21179               if test -f "$additional_libdir/lib$name.$libext"; then
21180                 found_dir="$additional_libdir"
21181                 found_a="$additional_libdir/lib$name.$libext"
21182                 if test -f "$additional_libdir/lib$name.la"; then
21183                   found_la="$additional_libdir/lib$name.la"
21184                 fi
21185               fi
21186             fi
21187           fi
21188           if test "X$found_dir" = "X"; then
21189             for x in $LDFLAGS $LTLIBINTL; do
21190
21191   acl_save_prefix="$prefix"
21192   prefix="$acl_final_prefix"
21193   acl_save_exec_prefix="$exec_prefix"
21194   exec_prefix="$acl_final_exec_prefix"
21195   eval x=\"$x\"
21196   exec_prefix="$acl_save_exec_prefix"
21197   prefix="$acl_save_prefix"
21198
21199               case "$x" in
21200                 -L*)
21201                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21202                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21203                     found_dir="$dir"
21204                     found_so="$dir/lib$name.$shlibext"
21205                     if test -f "$dir/lib$name.la"; then
21206                       found_la="$dir/lib$name.la"
21207                     fi
21208                   else
21209                     if test -f "$dir/lib$name.$libext"; then
21210                       found_dir="$dir"
21211                       found_a="$dir/lib$name.$libext"
21212                       if test -f "$dir/lib$name.la"; then
21213                         found_la="$dir/lib$name.la"
21214                       fi
21215                     fi
21216                   fi
21217                   ;;
21218               esac
21219               if test "X$found_dir" != "X"; then
21220                 break
21221               fi
21222             done
21223           fi
21224           if test "X$found_dir" != "X"; then
21225                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21226             if test "X$found_so" != "X"; then
21227                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21228                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21229               else
21230                                                                                 haveit=
21231                 for x in $ltrpathdirs; do
21232                   if test "X$x" = "X$found_dir"; then
21233                     haveit=yes
21234                     break
21235                   fi
21236                 done
21237                 if test -z "$haveit"; then
21238                   ltrpathdirs="$ltrpathdirs $found_dir"
21239                 fi
21240                                 if test "$hardcode_direct" = yes; then
21241                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21242                 else
21243                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21244                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21245                                                             haveit=
21246                     for x in $rpathdirs; do
21247                       if test "X$x" = "X$found_dir"; then
21248                         haveit=yes
21249                         break
21250                       fi
21251                     done
21252                     if test -z "$haveit"; then
21253                       rpathdirs="$rpathdirs $found_dir"
21254                     fi
21255                   else
21256                                                                                 haveit=
21257                     for x in $LDFLAGS $LIBINTL; do
21258
21259   acl_save_prefix="$prefix"
21260   prefix="$acl_final_prefix"
21261   acl_save_exec_prefix="$exec_prefix"
21262   exec_prefix="$acl_final_exec_prefix"
21263   eval x=\"$x\"
21264   exec_prefix="$acl_save_exec_prefix"
21265   prefix="$acl_save_prefix"
21266
21267                       if test "X$x" = "X-L$found_dir"; then
21268                         haveit=yes
21269                         break
21270                       fi
21271                     done
21272                     if test -z "$haveit"; then
21273                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21274                     fi
21275                     if test "$hardcode_minus_L" != no; then
21276                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21277                     else
21278                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21279                     fi
21280                   fi
21281                 fi
21282               fi
21283             else
21284               if test "X$found_a" != "X"; then
21285                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21286               else
21287                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21288               fi
21289             fi
21290                         additional_includedir=
21291             case "$found_dir" in
21292               */lib | */lib/)
21293                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21294                 additional_includedir="$basedir/include"
21295                 ;;
21296             esac
21297             if test "X$additional_includedir" != "X"; then
21298                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21299                 haveit=
21300                 if test "X$additional_includedir" = "X/usr/local/include"; then
21301                   if test -n "$GCC"; then
21302                     case $host_os in
21303                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21304                     esac
21305                   fi
21306                 fi
21307                 if test -z "$haveit"; then
21308                   for x in $CPPFLAGS $INCINTL; do
21309
21310   acl_save_prefix="$prefix"
21311   prefix="$acl_final_prefix"
21312   acl_save_exec_prefix="$exec_prefix"
21313   exec_prefix="$acl_final_exec_prefix"
21314   eval x=\"$x\"
21315   exec_prefix="$acl_save_exec_prefix"
21316   prefix="$acl_save_prefix"
21317
21318                     if test "X$x" = "X-I$additional_includedir"; then
21319                       haveit=yes
21320                       break
21321                     fi
21322                   done
21323                   if test -z "$haveit"; then
21324                     if test -d "$additional_includedir"; then
21325                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21326                     fi
21327                   fi
21328                 fi
21329               fi
21330             fi
21331                         if test -n "$found_la"; then
21332                                                         save_libdir="$libdir"
21333               case "$found_la" in
21334                 */* | *\\*) . "$found_la" ;;
21335                 *) . "./$found_la" ;;
21336               esac
21337               libdir="$save_libdir"
21338                             for dep in $dependency_libs; do
21339                 case "$dep" in
21340                   -L*)
21341                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21342                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21343                       haveit=
21344                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21345                         if test -n "$GCC"; then
21346                           case $host_os in
21347                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21348                           esac
21349                         fi
21350                       fi
21351                       if test -z "$haveit"; then
21352                         haveit=
21353                         for x in $LDFLAGS $LIBINTL; do
21354
21355   acl_save_prefix="$prefix"
21356   prefix="$acl_final_prefix"
21357   acl_save_exec_prefix="$exec_prefix"
21358   exec_prefix="$acl_final_exec_prefix"
21359   eval x=\"$x\"
21360   exec_prefix="$acl_save_exec_prefix"
21361   prefix="$acl_save_prefix"
21362
21363                           if test "X$x" = "X-L$additional_libdir"; then
21364                             haveit=yes
21365                             break
21366                           fi
21367                         done
21368                         if test -z "$haveit"; then
21369                           if test -d "$additional_libdir"; then
21370                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21371                           fi
21372                         fi
21373                         haveit=
21374                         for x in $LDFLAGS $LTLIBINTL; do
21375
21376   acl_save_prefix="$prefix"
21377   prefix="$acl_final_prefix"
21378   acl_save_exec_prefix="$exec_prefix"
21379   exec_prefix="$acl_final_exec_prefix"
21380   eval x=\"$x\"
21381   exec_prefix="$acl_save_exec_prefix"
21382   prefix="$acl_save_prefix"
21383
21384                           if test "X$x" = "X-L$additional_libdir"; then
21385                             haveit=yes
21386                             break
21387                           fi
21388                         done
21389                         if test -z "$haveit"; then
21390                           if test -d "$additional_libdir"; then
21391                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21392                           fi
21393                         fi
21394                       fi
21395                     fi
21396                     ;;
21397                   -R*)
21398                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21399                     if test "$enable_rpath" != no; then
21400                                                                   haveit=
21401                       for x in $rpathdirs; do
21402                         if test "X$x" = "X$dir"; then
21403                           haveit=yes
21404                           break
21405                         fi
21406                       done
21407                       if test -z "$haveit"; then
21408                         rpathdirs="$rpathdirs $dir"
21409                       fi
21410                                                                   haveit=
21411                       for x in $ltrpathdirs; do
21412                         if test "X$x" = "X$dir"; then
21413                           haveit=yes
21414                           break
21415                         fi
21416                       done
21417                       if test -z "$haveit"; then
21418                         ltrpathdirs="$ltrpathdirs $dir"
21419                       fi
21420                     fi
21421                     ;;
21422                   -l*)
21423                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21424                     ;;
21425                   *.la)
21426                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21427                     ;;
21428                   *)
21429                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21430                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21431                     ;;
21432                 esac
21433               done
21434             fi
21435           else
21436                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21437             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21438           fi
21439         fi
21440       fi
21441     done
21442   done
21443   if test "X$rpathdirs" != "X"; then
21444     if test -n "$hardcode_libdir_separator"; then
21445                         alldirs=
21446       for found_dir in $rpathdirs; do
21447         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21448       done
21449             acl_save_libdir="$libdir"
21450       libdir="$alldirs"
21451       eval flag=\"$hardcode_libdir_flag_spec\"
21452       libdir="$acl_save_libdir"
21453       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21454     else
21455             for found_dir in $rpathdirs; do
21456         acl_save_libdir="$libdir"
21457         libdir="$found_dir"
21458         eval flag=\"$hardcode_libdir_flag_spec\"
21459         libdir="$acl_save_libdir"
21460         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21461       done
21462     fi
21463   fi
21464   if test "X$ltrpathdirs" != "X"; then
21465             for found_dir in $ltrpathdirs; do
21466       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21467     done
21468   fi
21469
21470           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21471 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21472 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21473   $as_echo_n "(cached) " >&6
21474 else
21475   gt_save_CPPFLAGS="$CPPFLAGS"
21476             CPPFLAGS="$CPPFLAGS $INCINTL"
21477             gt_save_LIBS="$LIBS"
21478             LIBS="$LIBS $LIBINTL"
21479                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21480 /* end confdefs.h.  */
21481 #include <libintl.h>
21482 extern int _nl_msg_cat_cntr;
21483 extern
21484 #ifdef __cplusplus
21485 "C"
21486 #endif
21487 const char *_nl_expand_alias (const char *);
21488 int
21489 main ()
21490 {
21491 bindtextdomain ("", "");
21492 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21493   ;
21494   return 0;
21495 }
21496 _ACEOF
21497 if ac_fn_c_try_link "$LINENO"; then :
21498   gt_cv_func_gnugettext1_libintl=yes
21499 else
21500   gt_cv_func_gnugettext1_libintl=no
21501 fi
21502 rm -f core conftest.err conftest.$ac_objext \
21503     conftest$ac_exeext conftest.$ac_ext
21504                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21505               LIBS="$LIBS $LIBICONV"
21506               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21507 /* end confdefs.h.  */
21508 #include <libintl.h>
21509 extern int _nl_msg_cat_cntr;
21510 extern
21511 #ifdef __cplusplus
21512 "C"
21513 #endif
21514 const char *_nl_expand_alias (const char *);
21515 int
21516 main ()
21517 {
21518 bindtextdomain ("", "");
21519 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21520   ;
21521   return 0;
21522 }
21523 _ACEOF
21524 if ac_fn_c_try_link "$LINENO"; then :
21525   LIBINTL="$LIBINTL $LIBICONV"
21526                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21527                 gt_cv_func_gnugettext1_libintl=yes
21528
21529 fi
21530 rm -f core conftest.err conftest.$ac_objext \
21531     conftest$ac_exeext conftest.$ac_ext
21532             fi
21533             CPPFLAGS="$gt_save_CPPFLAGS"
21534             LIBS="$gt_save_LIBS"
21535 fi
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21537 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21538         fi
21539
21540                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21541            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21542                 && test "$PACKAGE" != gettext-runtime \
21543                 && test "$PACKAGE" != gettext-tools; }; then
21544           gt_use_preinstalled_gnugettext=yes
21545         else
21546                     LIBINTL=
21547           LTLIBINTL=
21548           INCINTL=
21549         fi
21550
21551
21552         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21553                               nls_cv_use_gnu_gettext=yes
21554         fi
21555       fi
21556
21557       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21558                 BUILD_INCLUDED_LIBINTL=yes
21559         USE_INCLUDED_LIBINTL=yes
21560         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21561         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21562         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21563       fi
21564
21565       CATOBJEXT=
21566       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21567          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21568                 CATOBJEXT=.gmo
21569       fi
21570
21571
21572     if test -n "$INTL_MACOSX_LIBS"; then
21573       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21574          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21575                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21576         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21577       fi
21578     fi
21579
21580     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21581        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21582
21583 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21584
21585     else
21586       USE_NLS=no
21587     fi
21588   fi
21589
21590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21591 $as_echo_n "checking whether to use NLS... " >&6; }
21592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21593 $as_echo "$USE_NLS" >&6; }
21594   if test "$USE_NLS" = "yes"; then
21595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21596 $as_echo_n "checking where the gettext function comes from... " >&6; }
21597     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21598       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21599         gt_source="external libintl"
21600       else
21601         gt_source="libc"
21602       fi
21603     else
21604       gt_source="included intl directory"
21605     fi
21606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21607 $as_echo "$gt_source" >&6; }
21608   fi
21609
21610   if test "$USE_NLS" = "yes"; then
21611
21612     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21613       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21615 $as_echo_n "checking how to link with libintl... " >&6; }
21616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21617 $as_echo "$LIBINTL" >&6; }
21618
21619   for element in $INCINTL; do
21620     haveit=
21621     for x in $CPPFLAGS; do
21622
21623   acl_save_prefix="$prefix"
21624   prefix="$acl_final_prefix"
21625   acl_save_exec_prefix="$exec_prefix"
21626   exec_prefix="$acl_final_exec_prefix"
21627   eval x=\"$x\"
21628   exec_prefix="$acl_save_exec_prefix"
21629   prefix="$acl_save_prefix"
21630
21631       if test "X$x" = "X$element"; then
21632         haveit=yes
21633         break
21634       fi
21635     done
21636     if test -z "$haveit"; then
21637       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21638     fi
21639   done
21640
21641       fi
21642
21643
21644 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21645
21646
21647 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21648
21649     fi
21650
21651         POSUB=po
21652   fi
21653
21654
21655             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21656       BUILD_INCLUDED_LIBINTL=yes
21657     fi
21658
21659
21660
21661
21662
21663         nls_cv_header_intl=
21664     nls_cv_header_libgt=
21665
21666         DATADIRNAME=share
21667
21668
21669         INSTOBJEXT=.mo
21670
21671
21672         GENCAT=gencat
21673
21674
21675         INTLOBJS=
21676     if test "$USE_INCLUDED_LIBINTL" = yes; then
21677       INTLOBJS="\$(GETTOBJS)"
21678     fi
21679
21680
21681         INTL_LIBTOOL_SUFFIX_PREFIX=
21682
21683
21684
21685     INTLLIBS="$LIBINTL"
21686
21687
21688
21689
21690
21691
21692 fi
21693
21694 support_smartalloc=yes
21695 support_readline=yes
21696 support_lzo=yes
21697 support_conio=yes
21698 support_bat=no
21699 support_tls=no
21700 support_crypto=no
21701 support_static_tools=no
21702 support_static_fd=no
21703 support_static_sd=no
21704 support_static_dir=no
21705 support_static_cons=no
21706 build_client_only=no
21707 build_dird=yes
21708 build_stored=yes
21709 db_backends=""
21710 batch_insert_db_backends=""
21711 support_lockmgr=no
21712
21713
21714 # Check whether --enable-bat was given.
21715 if test "${enable_bat+set}" = set; then :
21716   enableval=$enable_bat;
21717        if test x$enableval = xyes; then
21718
21719 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21720
21721           support_bat=yes
21722        fi
21723
21724
21725 fi
21726
21727
21728 BAT_DIR=
21729 if test x$support_bat = xyes; then
21730    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21731    pkg=$?
21732    if test $pkg = 0; then
21733       BAT_DIR=src/qt-console
21734    else
21735       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21736    fi
21737 fi
21738
21739 got_qwt=no
21740 QWT_INC=
21741 QWT_LDFLAGS=
21742 QWT_LIB=
21743 QWT=
21744 no_qwt=no
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754 # Check whether --enable-smartalloc was given.
21755 if test "${enable_smartalloc+set}" = set; then :
21756   enableval=$enable_smartalloc;
21757        if test x$enableval = xno; then
21758           support_smartalloc=no
21759        fi
21760
21761
21762 fi
21763
21764
21765 if test x$support_smartalloc = xyes; then
21766
21767 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21768
21769 fi
21770
21771 # Check whether --enable-lockmgr was given.
21772 if test "${enable_lockmgr+set}" = set; then :
21773   enableval=$enable_lockmgr;
21774        if test x$enableval = xyes; then
21775           support_lockmgr=yes
21776        fi
21777
21778
21779 fi
21780
21781
21782 if test x$support_lockmgr = xyes; then
21783
21784 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21785
21786 fi
21787
21788
21789 # Check whether --enable-static-tools was given.
21790 if test "${enable_static_tools+set}" = set; then :
21791   enableval=$enable_static_tools;
21792        if test x$enableval = xyes; then
21793           if test x$use_libtool = xyes; then
21794              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21795   please rerun configure with --disable-libtool" "$LINENO" 5
21796           fi
21797           support_static_tools=yes
21798        fi
21799
21800
21801 fi
21802
21803
21804 TTOOL_LDFLAGS=
21805 if test x$support_static_tools = xyes; then
21806    TTOOL_LDFLAGS="-static"
21807 fi
21808
21809
21810 # Check whether --enable-static-fd was given.
21811 if test "${enable_static_fd+set}" = set; then :
21812   enableval=$enable_static_fd;
21813        if test x$enableval = xyes; then
21814           if test x$use_libtool = xyes; then
21815              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21816   please rerun configure with --disable-libtool" "$LINENO" 5
21817           fi
21818           support_static_fd=yes
21819        fi
21820
21821
21822 fi
21823
21824
21825 STATIC_FD=
21826 if test x$support_static_fd = xyes; then
21827    STATIC_FD="static-bacula-fd"
21828 fi
21829
21830
21831 # Check whether --enable-static-sd was given.
21832 if test "${enable_static_sd+set}" = set; then :
21833   enableval=$enable_static_sd;
21834        if test x$enableval = xyes; then
21835           if test x$use_libtool = xyes; then
21836              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21837   please rerun configure with --disable-libtool" "$LINENO" 5
21838           fi
21839           support_static_sd=yes
21840        fi
21841
21842
21843 fi
21844
21845
21846 STATIC_SD=
21847 if test x$support_static_sd = xyes; then
21848    STATIC_SD="static-bacula-sd"
21849 fi
21850
21851
21852 # Check whether --enable-static-dir was given.
21853 if test "${enable_static_dir+set}" = set; then :
21854   enableval=$enable_static_dir;
21855        if test x$enableval = xyes; then
21856           if test x$use_libtool = xyes; then
21857              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21858   please rerun configure with --disable-libtool" "$LINENO" 5
21859           fi
21860           support_static_dir=yes
21861        fi
21862
21863
21864 fi
21865
21866
21867 STATIC_DIR=
21868 if test x$support_static_dir = xyes; then
21869    STATIC_DIR="static-bacula-dir"
21870 fi
21871
21872
21873 # Check whether --enable-static-cons was given.
21874 if test "${enable_static_cons+set}" = set; then :
21875   enableval=$enable_static_cons;
21876        if test x$enableval = xyes; then
21877           if test x$use_libtool = xyes; then
21878              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21879   please rerun configure with --disable-libtool" "$LINENO" 5
21880           fi
21881           support_static_cons=yes
21882        fi
21883
21884
21885 fi
21886
21887
21888 STATIC_CONS=
21889 if test x$support_static_cons = xyes; then
21890    STATIC_CONS="static-bconsole"
21891 fi
21892
21893
21894 # Check whether --enable-client-only was given.
21895 if test "${enable_client_only+set}" = set; then :
21896   enableval=$enable_client_only;
21897        if test x$enableval = xyes; then
21898           build_client_only=yes
21899           db_backends="None"
21900           DB_BACKENDS="none"
21901        fi
21902
21903
21904 fi
21905
21906 if test x$build_client_only = xno; then
21907    ALL_DIRS="subdirs"
21908 else
21909    ALL_DIRS=""
21910 fi
21911
21912
21913 # Check whether --enable-build-dird was given.
21914 if test "${enable_build_dird+set}" = set; then :
21915   enableval=$enable_build_dird;
21916        if test x$enableval = xno; then
21917           build_dird=no
21918        fi
21919
21920
21921 fi
21922
21923 if test x$build_dird = xyes; then
21924    DIRD_DIR="src/dird"
21925    DIR_TOOLS="DIRTOOLS"
21926 else
21927    DIRD_DIR=""
21928    DIR_TOOLS="NODIRTOOLS"
21929 fi
21930
21931
21932
21933 # Check whether --enable-build-stored was given.
21934 if test "${enable_build_stored+set}" = set; then :
21935   enableval=$enable_build_stored;
21936       if test x$enableval = xno; then
21937          build_stored=no
21938       fi
21939
21940
21941 fi
21942
21943 if test x$build_stored = xyes; then
21944    STORED_DIR="src/stored"
21945 else
21946    STORED_DIR=""
21947 fi
21948
21949
21950 # Check whether --enable-conio was given.
21951 if test "${enable_conio+set}" = set; then :
21952   enableval=$enable_conio;
21953        if test x$enableval = xno; then
21954           support_conio=no
21955        fi
21956
21957
21958 fi
21959
21960
21961
21962 support_ipv6=yes
21963 # Check whether --enable-ipv6 was given.
21964 if test "${enable_ipv6+set}" = set; then :
21965   enableval=$enable_ipv6;
21966        if test x$enableval = xno; then
21967           support_ipv6=no
21968        fi
21969
21970
21971 fi
21972
21973
21974 if test x$support_ipv6 = xyes; then
21975     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21976 /* end confdefs.h.  */
21977  #include <sys/types.h>
21978 #include <sys/socket.h>
21979 #include <netinet/in.h>
21980 int
21981 main ()
21982 {
21983 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21984   ;
21985   return 0;
21986 }
21987 _ACEOF
21988 if ac_fn_c_try_link "$LINENO"; then :
21989   support_ipv6=yes
21990 else
21991   support_ipv6=no
21992 fi
21993 rm -f core conftest.err conftest.$ac_objext \
21994     conftest$ac_exeext conftest.$ac_ext
21995 fi
21996
21997 if test x$support_ipv6 = xyes; then
21998
21999 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22000
22001 fi
22002
22003 TERM_LIB=""
22004 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22005 if test "x$ac_cv_header_curses_h" = xyes; then :
22006
22007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22008 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22009 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22010   $as_echo_n "(cached) " >&6
22011 else
22012   ac_check_lib_save_LIBS=$LIBS
22013 LIBS="-ltinfo  $LIBS"
22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h.  */
22016
22017 /* Override any GCC internal prototype to avoid an error.
22018    Use char because int might match the return type of a GCC
22019    builtin and then its argument prototype would still apply.  */
22020 #ifdef __cplusplus
22021 extern "C"
22022 #endif
22023 char tgetent ();
22024 int
22025 main ()
22026 {
22027 return tgetent ();
22028   ;
22029   return 0;
22030 }
22031 _ACEOF
22032 if ac_fn_c_try_link "$LINENO"; then :
22033   ac_cv_lib_tinfo_tgetent=yes
22034 else
22035   ac_cv_lib_tinfo_tgetent=no
22036 fi
22037 rm -f core conftest.err conftest.$ac_objext \
22038     conftest$ac_exeext conftest.$ac_ext
22039 LIBS=$ac_check_lib_save_LIBS
22040 fi
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22042 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22043 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22044    TERM_LIB="-ltinfo"
22045 else
22046
22047       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22048 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22049 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22050   $as_echo_n "(cached) " >&6
22051 else
22052   ac_check_lib_save_LIBS=$LIBS
22053 LIBS="-lncurses  $LIBS"
22054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055 /* end confdefs.h.  */
22056
22057 /* Override any GCC internal prototype to avoid an error.
22058    Use char because int might match the return type of a GCC
22059    builtin and then its argument prototype would still apply.  */
22060 #ifdef __cplusplus
22061 extern "C"
22062 #endif
22063 char tgetent ();
22064 int
22065 main ()
22066 {
22067 return tgetent ();
22068   ;
22069   return 0;
22070 }
22071 _ACEOF
22072 if ac_fn_c_try_link "$LINENO"; then :
22073   ac_cv_lib_ncurses_tgetent=yes
22074 else
22075   ac_cv_lib_ncurses_tgetent=no
22076 fi
22077 rm -f core conftest.err conftest.$ac_objext \
22078     conftest$ac_exeext conftest.$ac_ext
22079 LIBS=$ac_check_lib_save_LIBS
22080 fi
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22082 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22083 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22084    TERM_LIB="-lncurses"
22085 else
22086
22087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22088 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22089 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22090   $as_echo_n "(cached) " >&6
22091 else
22092   ac_check_lib_save_LIBS=$LIBS
22093 LIBS="-ltermcap  $LIBS"
22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h.  */
22096
22097 /* Override any GCC internal prototype to avoid an error.
22098    Use char because int might match the return type of a GCC
22099    builtin and then its argument prototype would still apply.  */
22100 #ifdef __cplusplus
22101 extern "C"
22102 #endif
22103 char tgetent ();
22104 int
22105 main ()
22106 {
22107 return tgetent ();
22108   ;
22109   return 0;
22110 }
22111 _ACEOF
22112 if ac_fn_c_try_link "$LINENO"; then :
22113   ac_cv_lib_termcap_tgetent=yes
22114 else
22115   ac_cv_lib_termcap_tgetent=no
22116 fi
22117 rm -f core conftest.err conftest.$ac_objext \
22118     conftest$ac_exeext conftest.$ac_ext
22119 LIBS=$ac_check_lib_save_LIBS
22120 fi
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22122 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22123 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22124    TERM_LIB="-ltermcap"
22125 fi
22126
22127
22128 fi
22129
22130
22131 fi
22132
22133
22134 else
22135     for ac_header in curses.h
22136 do :
22137   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22138 if test "x$ac_cv_header_curses_h" = xyes; then :
22139   cat >>confdefs.h <<_ACEOF
22140 #define HAVE_CURSES_H 1
22141 _ACEOF
22142
22143 fi
22144
22145 done
22146
22147      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22148 if test "x$ac_cv_header_term_h" = xyes; then :
22149    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22150 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22151 if ${ac_cv_lib_curses_tgetent+:} false; then :
22152   $as_echo_n "(cached) " >&6
22153 else
22154   ac_check_lib_save_LIBS=$LIBS
22155 LIBS="-lcurses  $LIBS"
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h.  */
22158
22159 /* Override any GCC internal prototype to avoid an error.
22160    Use char because int might match the return type of a GCC
22161    builtin and then its argument prototype would still apply.  */
22162 #ifdef __cplusplus
22163 extern "C"
22164 #endif
22165 char tgetent ();
22166 int
22167 main ()
22168 {
22169 return tgetent ();
22170   ;
22171   return 0;
22172 }
22173 _ACEOF
22174 if ac_fn_c_try_link "$LINENO"; then :
22175   ac_cv_lib_curses_tgetent=yes
22176 else
22177   ac_cv_lib_curses_tgetent=no
22178 fi
22179 rm -f core conftest.err conftest.$ac_objext \
22180     conftest$ac_exeext conftest.$ac_ext
22181 LIBS=$ac_check_lib_save_LIBS
22182 fi
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22184 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22185 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22186    TERM_LIB="-lcurses"
22187 fi
22188
22189
22190 fi
22191
22192
22193
22194 fi
22195
22196
22197
22198
22199 got_conio="no"
22200 if test x$support_conio = xyes; then
22201    if test x$TERM_LIB != x; then
22202       CONS_LIBS=$TERM_LIB
22203       CONS_OBJ="conio.o"
22204       CONS_SRC="conio.c"
22205       got_conio="yes"
22206       support_readline=no
22207
22208 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22209
22210    else
22211       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22212    fi
22213 fi
22214
22215
22216 # Check whether --enable-readline was given.
22217 if test "${enable_readline+set}" = set; then :
22218   enableval=$enable_readline;
22219        if test x$enableval = xno; then
22220           support_readline=no
22221        fi
22222
22223
22224 fi
22225
22226
22227 got_readline="no"
22228 READLINE_SRC=
22229 if test x$support_readline = xyes; then
22230
22231 # Check whether --with-readline was given.
22232 if test "${with_readline+set}" = set; then :
22233   withval=$with_readline;
22234           case "$with_readline" in
22235           no)
22236              :
22237              ;;
22238           yes|*)
22239              if test -f ${with_readline}/readline.h; then
22240                 CONS_INC="-I${with_readline}"
22241                 CONS_LDFLAGS="-L$with_readline"
22242              elif test -f ${with_readline}/include/readline/readline.h; then
22243                 CONS_INC="-I${with_readline}/include/readline"
22244                 CONS_LDFLAGS="-L${with_readline}/lib"
22245                 with_readline="${with_readline}/include/readline"
22246              else
22247                 with_readline="/usr/include/readline"
22248              fi
22249
22250              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22251 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22253
22254
22255 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22256
22257                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22258                     got_readline="yes"
22259
22260 else
22261
22262                     echo " "
22263                     echo "readline.h not found. readline turned off ..."
22264                     echo " "
22265
22266
22267 fi
22268
22269
22270              ;;
22271           esac
22272
22273 else
22274
22275                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22276 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22277
22278
22279 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22280
22281                 got_readline="yes"
22282                 CONS_INC="-I/usr/include/readline"
22283                 CONS_LIBS="-lreadline ${TERM_LIB}"
22284
22285 else
22286
22287                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22288 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22290
22291
22292 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22293
22294                         got_readline="yes"
22295                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22296                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22297                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22298                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22299
22300 else
22301
22302                         echo " "
22303                         echo "readline.h not found. readline turned off ..."
22304                         echo " "
22305
22306
22307 fi
22308
22309
22310
22311
22312 fi
22313
22314
22315
22316
22317 fi
22318
22319 fi
22320
22321
22322
22323
22324
22325
22326
22327
22328 MAKE_SHELL=/bin/sh
22329
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22331 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22332 if ${ac_cv_header_stat_broken+:} false; then :
22333   $as_echo_n "(cached) " >&6
22334 else
22335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h.  */
22337 #include <sys/types.h>
22338 #include <sys/stat.h>
22339
22340 #if defined S_ISBLK && defined S_IFDIR
22341 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22342 #endif
22343
22344 #if defined S_ISBLK && defined S_IFCHR
22345 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22346 #endif
22347
22348 #if defined S_ISLNK && defined S_IFREG
22349 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22350 #endif
22351
22352 #if defined S_ISSOCK && defined S_IFREG
22353 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22354 #endif
22355
22356 _ACEOF
22357 if ac_fn_c_try_compile "$LINENO"; then :
22358   ac_cv_header_stat_broken=no
22359 else
22360   ac_cv_header_stat_broken=yes
22361 fi
22362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363 fi
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22365 $as_echo "$ac_cv_header_stat_broken" >&6; }
22366 if test $ac_cv_header_stat_broken = yes; then
22367
22368 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22369
22370 fi
22371
22372 ac_header_dirent=no
22373 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22374   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22376 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22377 if eval \${$as_ac_Header+:} false; then :
22378   $as_echo_n "(cached) " >&6
22379 else
22380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381 /* end confdefs.h.  */
22382 #include <sys/types.h>
22383 #include <$ac_hdr>
22384
22385 int
22386 main ()
22387 {
22388 if ((DIR *) 0)
22389 return 0;
22390   ;
22391   return 0;
22392 }
22393 _ACEOF
22394 if ac_fn_c_try_compile "$LINENO"; then :
22395   eval "$as_ac_Header=yes"
22396 else
22397   eval "$as_ac_Header=no"
22398 fi
22399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22400 fi
22401 eval ac_res=\$$as_ac_Header
22402                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22403 $as_echo "$ac_res" >&6; }
22404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22405   cat >>confdefs.h <<_ACEOF
22406 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22407 _ACEOF
22408
22409 ac_header_dirent=$ac_hdr; break
22410 fi
22411
22412 done
22413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22414 if test $ac_header_dirent = dirent.h; then
22415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22416 $as_echo_n "checking for library containing opendir... " >&6; }
22417 if ${ac_cv_search_opendir+:} false; then :
22418   $as_echo_n "(cached) " >&6
22419 else
22420   ac_func_search_save_LIBS=$LIBS
22421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22422 /* end confdefs.h.  */
22423
22424 /* Override any GCC internal prototype to avoid an error.
22425    Use char because int might match the return type of a GCC
22426    builtin and then its argument prototype would still apply.  */
22427 #ifdef __cplusplus
22428 extern "C"
22429 #endif
22430 char opendir ();
22431 int
22432 main ()
22433 {
22434 return opendir ();
22435   ;
22436   return 0;
22437 }
22438 _ACEOF
22439 for ac_lib in '' dir; do
22440   if test -z "$ac_lib"; then
22441     ac_res="none required"
22442   else
22443     ac_res=-l$ac_lib
22444     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22445   fi
22446   if ac_fn_c_try_link "$LINENO"; then :
22447   ac_cv_search_opendir=$ac_res
22448 fi
22449 rm -f core conftest.err conftest.$ac_objext \
22450     conftest$ac_exeext
22451   if ${ac_cv_search_opendir+:} false; then :
22452   break
22453 fi
22454 done
22455 if ${ac_cv_search_opendir+:} false; then :
22456
22457 else
22458   ac_cv_search_opendir=no
22459 fi
22460 rm conftest.$ac_ext
22461 LIBS=$ac_func_search_save_LIBS
22462 fi
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22464 $as_echo "$ac_cv_search_opendir" >&6; }
22465 ac_res=$ac_cv_search_opendir
22466 if test "$ac_res" != no; then :
22467   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22468
22469 fi
22470
22471 else
22472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22473 $as_echo_n "checking for library containing opendir... " >&6; }
22474 if ${ac_cv_search_opendir+:} false; then :
22475   $as_echo_n "(cached) " >&6
22476 else
22477   ac_func_search_save_LIBS=$LIBS
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h.  */
22480
22481 /* Override any GCC internal prototype to avoid an error.
22482    Use char because int might match the return type of a GCC
22483    builtin and then its argument prototype would still apply.  */
22484 #ifdef __cplusplus
22485 extern "C"
22486 #endif
22487 char opendir ();
22488 int
22489 main ()
22490 {
22491 return opendir ();
22492   ;
22493   return 0;
22494 }
22495 _ACEOF
22496 for ac_lib in '' x; do
22497   if test -z "$ac_lib"; then
22498     ac_res="none required"
22499   else
22500     ac_res=-l$ac_lib
22501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22502   fi
22503   if ac_fn_c_try_link "$LINENO"; then :
22504   ac_cv_search_opendir=$ac_res
22505 fi
22506 rm -f core conftest.err conftest.$ac_objext \
22507     conftest$ac_exeext
22508   if ${ac_cv_search_opendir+:} false; then :
22509   break
22510 fi
22511 done
22512 if ${ac_cv_search_opendir+:} false; then :
22513
22514 else
22515   ac_cv_search_opendir=no
22516 fi
22517 rm conftest.$ac_ext
22518 LIBS=$ac_func_search_save_LIBS
22519 fi
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22521 $as_echo "$ac_cv_search_opendir" >&6; }
22522 ac_res=$ac_cv_search_opendir
22523 if test "$ac_res" != no; then :
22524   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22525
22526 fi
22527
22528 fi
22529
22530 for ac_func in strcasecmp select setenv putenv tcgetattr
22531 do :
22532   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22533 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22534 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22535   cat >>confdefs.h <<_ACEOF
22536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22537 _ACEOF
22538
22539 fi
22540 done
22541
22542 for ac_func in lstat lchown lchmod futimes fchmod fchown
22543 do :
22544   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22546 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22547   cat >>confdefs.h <<_ACEOF
22548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22549 _ACEOF
22550
22551 fi
22552 done
22553
22554 for ac_func in nanosleep nl_langinfo
22555 do :
22556   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22557 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22558 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22559   cat >>confdefs.h <<_ACEOF
22560 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22561 _ACEOF
22562
22563 fi
22564 done
22565
22566 for ac_header in varargs.h
22567 do :
22568   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22569 if test "x$ac_cv_header_varargs_h" = xyes; then :
22570   cat >>confdefs.h <<_ACEOF
22571 #define HAVE_VARARGS_H 1
22572 _ACEOF
22573
22574 fi
22575
22576 done
22577
22578
22579
22580 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22581 if test "x$ac_cv_func_socket" = xyes; then :
22582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22583 $as_echo "using libc's socket" >&6; }
22584 else
22585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22586 $as_echo_n "checking for socket in -lxnet... " >&6; }
22587 if ${ac_cv_lib_xnet_socket+:} false; then :
22588   $as_echo_n "(cached) " >&6
22589 else
22590   ac_check_lib_save_LIBS=$LIBS
22591 LIBS="-lxnet  $LIBS"
22592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22593 /* end confdefs.h.  */
22594
22595 /* Override any GCC internal prototype to avoid an error.
22596    Use char because int might match the return type of a GCC
22597    builtin and then its argument prototype would still apply.  */
22598 #ifdef __cplusplus
22599 extern "C"
22600 #endif
22601 char socket ();
22602 int
22603 main ()
22604 {
22605 return socket ();
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 if ac_fn_c_try_link "$LINENO"; then :
22611   ac_cv_lib_xnet_socket=yes
22612 else
22613   ac_cv_lib_xnet_socket=no
22614 fi
22615 rm -f core conftest.err conftest.$ac_objext \
22616     conftest$ac_exeext conftest.$ac_ext
22617 LIBS=$ac_check_lib_save_LIBS
22618 fi
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22620 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22621 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22622   cat >>confdefs.h <<_ACEOF
22623 #define HAVE_LIBXNET 1
22624 _ACEOF
22625
22626   LIBS="-lxnet $LIBS"
22627
22628 fi
22629
22630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22631 $as_echo_n "checking for socket in -lsocket... " >&6; }
22632 if ${ac_cv_lib_socket_socket+:} false; then :
22633   $as_echo_n "(cached) " >&6
22634 else
22635   ac_check_lib_save_LIBS=$LIBS
22636 LIBS="-lsocket  $LIBS"
22637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638 /* end confdefs.h.  */
22639
22640 /* Override any GCC internal prototype to avoid an error.
22641    Use char because int might match the return type of a GCC
22642    builtin and then its argument prototype would still apply.  */
22643 #ifdef __cplusplus
22644 extern "C"
22645 #endif
22646 char socket ();
22647 int
22648 main ()
22649 {
22650 return socket ();
22651   ;
22652   return 0;
22653 }
22654 _ACEOF
22655 if ac_fn_c_try_link "$LINENO"; then :
22656   ac_cv_lib_socket_socket=yes
22657 else
22658   ac_cv_lib_socket_socket=no
22659 fi
22660 rm -f core conftest.err conftest.$ac_objext \
22661     conftest$ac_exeext conftest.$ac_ext
22662 LIBS=$ac_check_lib_save_LIBS
22663 fi
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22665 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22666 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22667   cat >>confdefs.h <<_ACEOF
22668 #define HAVE_LIBSOCKET 1
22669 _ACEOF
22670
22671   LIBS="-lsocket $LIBS"
22672
22673 fi
22674
22675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22676 $as_echo_n "checking for socket in -linet... " >&6; }
22677 if ${ac_cv_lib_inet_socket+:} false; then :
22678   $as_echo_n "(cached) " >&6
22679 else
22680   ac_check_lib_save_LIBS=$LIBS
22681 LIBS="-linet  $LIBS"
22682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22683 /* end confdefs.h.  */
22684
22685 /* Override any GCC internal prototype to avoid an error.
22686    Use char because int might match the return type of a GCC
22687    builtin and then its argument prototype would still apply.  */
22688 #ifdef __cplusplus
22689 extern "C"
22690 #endif
22691 char socket ();
22692 int
22693 main ()
22694 {
22695 return socket ();
22696   ;
22697   return 0;
22698 }
22699 _ACEOF
22700 if ac_fn_c_try_link "$LINENO"; then :
22701   ac_cv_lib_inet_socket=yes
22702 else
22703   ac_cv_lib_inet_socket=no
22704 fi
22705 rm -f core conftest.err conftest.$ac_objext \
22706     conftest$ac_exeext conftest.$ac_ext
22707 LIBS=$ac_check_lib_save_LIBS
22708 fi
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22710 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22711 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22712   cat >>confdefs.h <<_ACEOF
22713 #define HAVE_LIBINET 1
22714 _ACEOF
22715
22716   LIBS="-linet $LIBS"
22717
22718 fi
22719
22720 fi
22721
22722
22723 TCPW_MSG="no"
22724 WRAPLIBS=""
22725
22726 # Check whether --with-tcp-wrappers was given.
22727 if test "${with_tcp_wrappers+set}" = set; then :
22728   withval=$with_tcp_wrappers;
22729        if test "x$withval" != "xno" ; then
22730           saved_LIBS="$LIBS"
22731           LIBS="$saved_LIBS -lwrap"
22732           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22733 $as_echo_n "checking for library containing nanosleep... " >&6; }
22734 if ${ac_cv_search_nanosleep+:} false; then :
22735   $as_echo_n "(cached) " >&6
22736 else
22737   ac_func_search_save_LIBS=$LIBS
22738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22739 /* end confdefs.h.  */
22740
22741 /* Override any GCC internal prototype to avoid an error.
22742    Use char because int might match the return type of a GCC
22743    builtin and then its argument prototype would still apply.  */
22744 #ifdef __cplusplus
22745 extern "C"
22746 #endif
22747 char nanosleep ();
22748 int
22749 main ()
22750 {
22751 return nanosleep ();
22752   ;
22753   return 0;
22754 }
22755 _ACEOF
22756 for ac_lib in '' rt; do
22757   if test -z "$ac_lib"; then
22758     ac_res="none required"
22759   else
22760     ac_res=-l$ac_lib
22761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22762   fi
22763   if ac_fn_c_try_link "$LINENO"; then :
22764   ac_cv_search_nanosleep=$ac_res
22765 fi
22766 rm -f core conftest.err conftest.$ac_objext \
22767     conftest$ac_exeext
22768   if ${ac_cv_search_nanosleep+:} false; then :
22769   break
22770 fi
22771 done
22772 if ${ac_cv_search_nanosleep+:} false; then :
22773
22774 else
22775   ac_cv_search_nanosleep=no
22776 fi
22777 rm conftest.$ac_ext
22778 LIBS=$ac_func_search_save_LIBS
22779 fi
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22781 $as_echo "$ac_cv_search_nanosleep" >&6; }
22782 ac_res=$ac_cv_search_nanosleep
22783 if test "$ac_res" != no; then :
22784   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22785
22786 fi
22787
22788           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22789 $as_echo_n "checking for libwrap... " >&6; }
22790           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22791 /* end confdefs.h.  */
22792
22793                #include <sys/types.h>
22794                #include <tcpd.h>
22795                int deny_severity = 0;
22796                int allow_severity = 0;
22797                struct request_info *req;
22798
22799 int
22800 main ()
22801 {
22802
22803                 hosts_access(req);
22804
22805   ;
22806   return 0;
22807 }
22808 _ACEOF
22809 if ac_fn_c_try_link "$LINENO"; then :
22810
22811                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22812 $as_echo "yes" >&6; }
22813
22814 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22815
22816                  TCPW_MSG="yes"
22817                  LIBS="$saved_LIBS"
22818                  WRAPLIBS="-lwrap"
22819
22820 else
22821
22822                  LIBS="$saved_LIBS -lwrap -lnsl"
22823                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22824                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22825 /* end confdefs.h.  */
22826
22827                        #include <sys/types.h>
22828                        #include <tcpd.h>
22829                        int deny_severity = 0;
22830                        int allow_severity = 0;
22831                        struct request_info *req;
22832
22833 int
22834 main ()
22835 {
22836
22837                        hosts_access(req);
22838
22839   ;
22840   return 0;
22841 }
22842 _ACEOF
22843 if ac_fn_c_try_link "$LINENO"; then :
22844
22845                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22846 $as_echo "yes" >&6; }
22847
22848 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22849
22850                       TCPW_MSG="yes"
22851                       LIBS="$saved_LIBS"
22852                       WRAPLIBS="-lwrap"
22853
22854 else
22855
22856                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22857
22858
22859 fi
22860 rm -f core conftest.err conftest.$ac_objext \
22861     conftest$ac_exeext conftest.$ac_ext
22862
22863
22864 fi
22865 rm -f core conftest.err conftest.$ac_objext \
22866     conftest$ac_exeext conftest.$ac_ext
22867        fi
22868
22869
22870 fi
22871
22872
22873
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22875 $as_echo_n "checking for OpenSSL... " >&6; }
22876
22877 # Check whether --with-openssl was given.
22878 if test "${with_openssl+set}" = set; then :
22879   withval=$with_openssl;
22880         with_openssl_directory=${withval}
22881
22882
22883 fi
22884
22885
22886 if test "x$with_openssl_directory" != "xno"; then
22887    OPENSSL_LIBS="-lssl -lcrypto"
22888    OPENSSL_INC=""
22889
22890    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22891       #
22892       # Make sure the $with_openssl_directory also makes sense
22893       #
22894       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22895          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22896          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22897       fi
22898    fi
22899
22900    saved_LIBS="${LIBS}"
22901    saved_CFLAGS="${CFLAGS}"
22902    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22903    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22904
22905    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22906 /* end confdefs.h.  */
22907
22908           #include <openssl/ssl.h>
22909
22910 int
22911 main ()
22912 {
22913
22914            CRYPTO_set_id_callback(NULL);
22915
22916   ;
22917   return 0;
22918 }
22919 _ACEOF
22920 if ac_fn_c_try_link "$LINENO"; then :
22921
22922           support_tls="yes"
22923           support_crypto="yes"
22924
22925 else
22926
22927           support_tls="no"
22928           support_crypto="no"
22929
22930
22931 fi
22932 rm -f core conftest.err conftest.$ac_objext \
22933     conftest$ac_exeext conftest.$ac_ext
22934
22935    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22936 /* end confdefs.h.  */
22937
22938           #include <openssl/evp.h>
22939
22940 int
22941 main ()
22942 {
22943
22944           EVP_sha512();
22945
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 if ac_fn_c_try_link "$LINENO"; then :
22951
22952           ac_cv_openssl_sha2="yes"
22953
22954 else
22955
22956           ac_cv_openssl_sha2="no"
22957
22958
22959 fi
22960 rm -f core conftest.err conftest.$ac_objext \
22961     conftest$ac_exeext conftest.$ac_ext
22962
22963                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22964 /* end confdefs.h.  */
22965
22966           #include <openssl/evp.h>
22967
22968 int
22969 main ()
22970 {
22971
22972           EVP_aes_192_cbc();
22973
22974   ;
22975   return 0;
22976 }
22977 _ACEOF
22978 if ac_fn_c_try_link "$LINENO"; then :
22979
22980           ac_cv_openssl_export="no"
22981
22982 else
22983
22984           ac_cv_openssl_export="yes"
22985
22986
22987 fi
22988 rm -f core conftest.err conftest.$ac_objext \
22989     conftest$ac_exeext conftest.$ac_ext
22990
22991    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22992 $as_echo "$support_tls" >&6; }
22993    if test "$support_tls" = "yes"; then
22994
22995 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22996
22997
22998 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22999
23000
23001 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23002
23003    fi
23004
23005    if test "$ac_cv_openssl_sha2" = "yes"; then
23006
23007 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23008
23009    fi
23010
23011    if test "$ac_cv_openssl_export" = "yes"; then
23012
23013 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23014
23015    fi
23016
23017    if test "$support_crypto" = "yes"; then
23018       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23019 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23020 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23021   $as_echo_n "(cached) " >&6
23022 else
23023   ac_check_lib_save_LIBS=$LIBS
23024 LIBS="-lcrypto  $LIBS"
23025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h.  */
23027
23028 /* Override any GCC internal prototype to avoid an error.
23029    Use char because int might match the return type of a GCC
23030    builtin and then its argument prototype would still apply.  */
23031 #ifdef __cplusplus
23032 extern "C"
23033 #endif
23034 char EVP_PKEY_encrypt_old ();
23035 int
23036 main ()
23037 {
23038 return EVP_PKEY_encrypt_old ();
23039   ;
23040   return 0;
23041 }
23042 _ACEOF
23043 if ac_fn_c_try_link "$LINENO"; then :
23044   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23045 else
23046   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23047 fi
23048 rm -f core conftest.err conftest.$ac_objext \
23049     conftest$ac_exeext conftest.$ac_ext
23050 LIBS=$ac_check_lib_save_LIBS
23051 fi
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23053 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23054 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23055
23056 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23057
23058 fi
23059
23060    fi
23061
23062    LIBS="${saved_LIBS}"
23063    CFLAGS="${saved_CFLAGS}"
23064 else
23065    support_tls="no"
23066    support_crypto="no"
23067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23068 $as_echo "$support_tls" >&6; }
23069 fi
23070
23071 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23072    OPENSSL_LIBS=""
23073    OPENSSL_INC=""
23074 fi
23075
23076
23077
23078
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23080 $as_echo_n "checking for library containing dlopen... " >&6; }
23081 if ${ac_cv_search_dlopen+:} false; then :
23082   $as_echo_n "(cached) " >&6
23083 else
23084   ac_func_search_save_LIBS=$LIBS
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h.  */
23087
23088 /* Override any GCC internal prototype to avoid an error.
23089    Use char because int might match the return type of a GCC
23090    builtin and then its argument prototype would still apply.  */
23091 #ifdef __cplusplus
23092 extern "C"
23093 #endif
23094 char dlopen ();
23095 int
23096 main ()
23097 {
23098 return dlopen ();
23099   ;
23100   return 0;
23101 }
23102 _ACEOF
23103 for ac_lib in '' dl; do
23104   if test -z "$ac_lib"; then
23105     ac_res="none required"
23106   else
23107     ac_res=-l$ac_lib
23108     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23109   fi
23110   if ac_fn_c_try_link "$LINENO"; then :
23111   ac_cv_search_dlopen=$ac_res
23112 fi
23113 rm -f core conftest.err conftest.$ac_objext \
23114     conftest$ac_exeext
23115   if ${ac_cv_search_dlopen+:} false; then :
23116   break
23117 fi
23118 done
23119 if ${ac_cv_search_dlopen+:} false; then :
23120
23121 else
23122   ac_cv_search_dlopen=no
23123 fi
23124 rm conftest.$ac_ext
23125 LIBS=$ac_func_search_save_LIBS
23126 fi
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23128 $as_echo "$ac_cv_search_dlopen" >&6; }
23129 ac_res=$ac_cv_search_dlopen
23130 if test "$ac_res" != no; then :
23131   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23132
23133 fi
23134
23135
23136 working_dir=`eval echo /opt/bacula/working`
23137
23138 # Check whether --with-working-dir was given.
23139 if test "${with_working_dir+set}" = set; then :
23140   withval=$with_working_dir;
23141        if test "x$withval" != "xno" ; then
23142          working_dir=$withval
23143        fi
23144
23145
23146 fi
23147
23148
23149
23150
23151 archivedir=/tmp
23152
23153 # Check whether --with-archivedir was given.
23154 if test "${with_archivedir+set}" = set; then :
23155   withval=$with_archivedir;
23156        if test "x$withval" != "xno" ; then
23157           archivedir=$withval
23158        fi
23159
23160
23161 fi
23162
23163
23164
23165
23166 basename=`hostname`
23167
23168 # Check whether --with-basename was given.
23169 if test "${with_basename+set}" = set; then :
23170   withval=$with_basename;
23171        if test "x$withval" != "xno" ; then
23172           basename=$withval
23173        fi
23174
23175
23176 fi
23177
23178
23179
23180
23181 hostname=`uname -n | cut -d '.' -f 1`
23182 if test x${hostname} = x ; then
23183   hostname="localhost"
23184 fi
23185 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23186 if test ! $? = 0; then
23187   hostname="localhost"
23188 fi
23189
23190 # Check whether --with-hostname was given.
23191 if test "${with_hostname+set}" = set; then :
23192   withval=$with_hostname;
23193        if test "x$withval" != "xno" ; then
23194          hostname=$withval
23195        fi
23196
23197
23198 fi
23199
23200
23201
23202
23203
23204 scriptdir=`eval echo ${sysconfdir}`
23205
23206 # Check whether --with-scriptdir was given.
23207 if test "${with_scriptdir+set}" = set; then :
23208   withval=$with_scriptdir;
23209        if test "x$withval" != "xno" ; then
23210           scriptdir=$withval
23211        fi
23212
23213
23214 fi
23215
23216
23217
23218
23219
23220 bsrdir=`eval echo /opt/bacula/bsr`
23221
23222 # Check whether --with-bsrdir was given.
23223 if test "${with_bsrdir+set}" = set; then :
23224   withval=$with_bsrdir;
23225        if test "x$withval" != "xno" ; then
23226           bsrdir=$withval
23227        fi
23228
23229
23230 fi
23231
23232
23233
23234
23235 logdir=`eval echo /opt/bacula/log`
23236
23237 # Check whether --with-logdir was given.
23238 if test "${with_logdir+set}" = set; then :
23239   withval=$with_logdir;
23240        if test "x$withval" != "xno" ; then
23241           logdir=$withval
23242        fi
23243
23244
23245 fi
23246
23247
23248
23249
23250
23251 # ------------------------------------------
23252 # Where to place plugindir (plugin files)
23253 # ------------------------------------------
23254 plugindir=`eval echo ${libdir}`
23255
23256 # Check whether --with-plugindir was given.
23257 if test "${with_plugindir+set}" = set; then :
23258   withval=$with_plugindir;
23259        if test "x$withval" != "xno" ; then
23260           plugindir=$withval
23261        fi
23262
23263
23264 fi
23265
23266
23267
23268
23269 dump_email=root@localhost
23270
23271 # Check whether --with-dump-email was given.
23272 if test "${with_dump_email+set}" = set; then :
23273   withval=$with_dump_email;
23274        if test "x$withval" != "xno" ; then
23275           dump_email=$withval
23276        fi
23277
23278
23279 fi
23280
23281
23282
23283
23284 job_email=root@localhost
23285
23286 # Check whether --with-job-email was given.
23287 if test "${with_job_email+set}" = set; then :
23288   withval=$with_job_email;
23289        if test "x$withval" != "xno" ; then
23290           job_email=$withval
23291        fi
23292
23293
23294 fi
23295
23296
23297
23298
23299 smtp_host=localhost
23300
23301 # Check whether --with-smtp_host was given.
23302 if test "${with_smtp_host+set}" = set; then :
23303   withval=$with_smtp_host;
23304        if test "x$withval" != "xno" ; then
23305           smtp_host=$withval
23306        fi
23307
23308
23309 fi
23310
23311
23312
23313
23314 piddir=/var/run
23315
23316 # Check whether --with-pid-dir was given.
23317 if test "${with_pid_dir+set}" = set; then :
23318   withval=$with_pid_dir;
23319        if test "x$withval" != "xno" ; then
23320           piddir=$withval
23321        fi
23322
23323
23324 fi
23325
23326
23327 cat >>confdefs.h <<_ACEOF
23328 #define _PATH_BACULA_PIDDIR "$piddir"
23329 _ACEOF
23330
23331
23332
23333 subsysdir=/var/run/subsys
23334 if test -d /var/run/subsys; then
23335    subsysdir=/var/run/subsys
23336 elif test -d /var/lock/subsys; then
23337    subsysdir=/var/lock/subsys
23338 else
23339    subsysdir=/var/run/subsys
23340 fi
23341
23342 # Check whether --with-subsys-dir was given.
23343 if test "${with_subsys_dir+set}" = set; then :
23344   withval=$with_subsys_dir;
23345        if test "x$withval" != "xno" ; then
23346           subsysdir=$withval
23347        fi
23348
23349
23350 fi
23351
23352
23353
23354
23355 baseport=9101
23356
23357 # Check whether --with-baseport was given.
23358 if test "${with_baseport+set}" = set; then :
23359   withval=$with_baseport;
23360        if test "x$withval" != "xno" ; then
23361           baseport=$withval
23362        fi
23363
23364
23365 fi
23366
23367
23368
23369 dir_port=`expr $baseport`
23370 fd_port=`expr $baseport + 1`
23371 sd_port=`expr $fd_port + 1`
23372
23373
23374
23375
23376
23377 dir_password=
23378
23379 # Check whether --with-dir-password was given.
23380 if test "${with_dir_password+set}" = set; then :
23381   withval=$with_dir_password;
23382        if test "x$withval" != "xno" ; then
23383           dir_password=$withval
23384        fi
23385
23386
23387 fi
23388
23389
23390 if test "x$dir_password" = "x" ; then
23391    if test "x$OPENSSL" = "xnone" ; then
23392       key=`autoconf/randpass 33`
23393    else
23394       key=`openssl rand -base64 33`
23395    fi
23396    dir_password=$key
23397 fi
23398
23399 fd_password=
23400
23401 # Check whether --with-fd-password was given.
23402 if test "${with_fd_password+set}" = set; then :
23403   withval=$with_fd_password;
23404        if test "x$withval" != "xno" ; then
23405           fd_password=$withval
23406        fi
23407
23408
23409 fi
23410
23411
23412 if test "x$fd_password" = "x" ; then
23413    if test "x$OPENSSL" = "xnone" ; then
23414       key=`autoconf/randpass 37`
23415    else
23416       key=`openssl rand -base64 33`
23417    fi
23418    fd_password=$key
23419 fi
23420
23421 sd_password=
23422
23423 # Check whether --with-sd-password was given.
23424 if test "${with_sd_password+set}" = set; then :
23425   withval=$with_sd_password;
23426        if test "x$withval" != "xno" ; then
23427           sd_password=$withval
23428        fi
23429
23430
23431 fi
23432
23433
23434 if test "x$sd_password" = "x" ; then
23435    if test "x$OPENSSL" = "xnone" ; then
23436       key=`autoconf/randpass 41`
23437    else
23438       key=`openssl rand -base64 33`
23439    fi
23440    sd_password=$key
23441 fi
23442
23443 mon_dir_password=
23444
23445 # Check whether --with-mon-dir-password was given.
23446 if test "${with_mon_dir_password+set}" = set; then :
23447   withval=$with_mon_dir_password;
23448        if test "x$withval" != "xno" ; then
23449           mon_dir_password=$withval
23450        fi
23451
23452
23453 fi
23454
23455
23456 if test "x$mon_dir_password" = "x" ; then
23457    if test "x$OPENSSL" = "xnone" ; then
23458       key=`autoconf/randpass 33`
23459    else
23460       key=`openssl rand -base64 33`
23461    fi
23462    mon_dir_password=$key
23463 fi
23464
23465 mon_fd_password=
23466
23467 # Check whether --with-mon-fd-password was given.
23468 if test "${with_mon_fd_password+set}" = set; then :
23469   withval=$with_mon_fd_password;
23470        if test "x$withval" != "xno" ; then
23471           mon_fd_password=$withval
23472        fi
23473
23474
23475 fi
23476
23477
23478 if test "x$mon_fd_password" = "x" ; then
23479    if test "x$OPENSSL" = "xnone" ; then
23480       key=`autoconf/randpass 37`
23481    else
23482       key=`openssl rand -base64 33`
23483    fi
23484    mon_fd_password=$key
23485 fi
23486
23487 mon_sd_password=
23488
23489 # Check whether --with-mon-sd-password was given.
23490 if test "${with_mon_sd_password+set}" = set; then :
23491   withval=$with_mon_sd_password;
23492        if test "x$withval" != "xno" ; then
23493           mon_sd_password=$withval
23494        fi
23495
23496
23497 fi
23498
23499
23500 if test "x$mon_sd_password" = "x" ; then
23501    if test "x$OPENSSL" = "xnone" ; then
23502       key=`autoconf/randpass 41`
23503    else
23504       key=`openssl rand -base64 33`
23505    fi
23506    mon_sd_password=$key
23507 fi
23508
23509
23510
23511
23512
23513
23514
23515
23516 db_name=bacula
23517
23518 # Check whether --with-db_name was given.
23519 if test "${with_db_name+set}" = set; then :
23520   withval=$with_db_name;
23521        if test "x$withval" != "x" ; then
23522           db_name=$withval
23523        fi
23524
23525
23526 fi
23527
23528
23529
23530 db_user=bacula
23531
23532 # Check whether --with-db_user was given.
23533 if test "${with_db_user+set}" = set; then :
23534   withval=$with_db_user;
23535        if test "x$withval" != "x" ; then
23536           db_user=$withval
23537        fi
23538
23539
23540 fi
23541
23542
23543
23544 db_password=
23545
23546 # Check whether --with-db_password was given.
23547 if test "${with_db_password+set}" = set; then :
23548   withval=$with_db_password;
23549        if test "x$withval" != "x" ; then
23550           db_password=$withval
23551        fi
23552
23553
23554 fi
23555
23556
23557
23558 db_port=" "
23559
23560 # Check whether --with-db_port was given.
23561 if test "${with_db_port+set}" = set; then :
23562   withval=$with_db_port;
23563        if test "x$withval" != "x" ; then
23564           db_port=$withval
23565        fi
23566
23567
23568 fi
23569
23570
23571
23572 #
23573 # Handle users and groups for each daemon
23574 #
23575 dir_user=
23576
23577 # Check whether --with-dir_user was given.
23578 if test "${with_dir_user+set}" = set; then :
23579   withval=$with_dir_user;
23580        if test "x$withval" != "x" ; then
23581            dir_user=$withval
23582        fi
23583
23584
23585 fi
23586
23587
23588 dir_group=
23589
23590 # Check whether --with-dir_group was given.
23591 if test "${with_dir_group+set}" = set; then :
23592   withval=$with_dir_group;
23593        if test "x$withval" != "x" ; then
23594           dir_group=$withval
23595        fi
23596
23597
23598 fi
23599
23600
23601 sd_user=
23602
23603 # Check whether --with-sd_user was given.
23604 if test "${with_sd_user+set}" = set; then :
23605   withval=$with_sd_user;
23606        if test "x$withval" != "x" ; then
23607           sd_user=$withval
23608        fi
23609
23610
23611 fi
23612
23613
23614 sd_group=
23615
23616 # Check whether --with-sd_group was given.
23617 if test "${with_sd_group+set}" = set; then :
23618   withval=$with_sd_group;
23619        if test "x$withval" != "x" ; then
23620           sd_group=$withval
23621        fi
23622
23623
23624 fi
23625
23626
23627 fd_user=
23628
23629 # Check whether --with-fd_user was given.
23630 if test "${with_fd_user+set}" = set; then :
23631   withval=$with_fd_user;
23632        if test "x$withval" != "x" ; then
23633           fd_user=$withval
23634        fi
23635
23636
23637 fi
23638
23639
23640 fd_group=
23641
23642 # Check whether --with-fd_group was given.
23643 if test "${with_fd_group+set}" = set; then :
23644   withval=$with_fd_group;
23645        if test "x$withval" != "x" ; then
23646           fd_group=$withval
23647        fi
23648
23649
23650 fi
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660 SBINPERM=0750
23661
23662 # Check whether --with-sbin-perm was given.
23663 if test "${with_sbin_perm+set}" = set; then :
23664   withval=$with_sbin_perm;
23665        if test "x$withval" != "x" ; then
23666           SBINPERM=$withval
23667        fi
23668
23669
23670 fi
23671
23672
23673
23674
23675 support_batch_insert=yes
23676 # Check whether --enable-batch-insert was given.
23677 if test "${enable_batch_insert+set}" = set; then :
23678   enableval=$enable_batch_insert;
23679        if test x$enableval = xno; then
23680           support_batch_insert=no
23681        fi
23682
23683
23684 fi
23685
23686
23687 if test x$support_batch_insert = xyes; then
23688
23689 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23690
23691 fi
23692
23693
23694 uncomment_dbi="#"
23695
23696
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23698 $as_echo_n "checking for PostgreSQL support... " >&6; }
23699
23700 # Check whether --with-postgresql was given.
23701 if test "${with_postgresql+set}" = set; then :
23702   withval=$with_postgresql;
23703   if test "$withval" != "no"; then
23704       if test "$withval" = "yes"; then
23705           PG_CONFIG=`which pg_config 2>/dev/null`
23706           if test -n "$PG_CONFIG"; then
23707               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23708               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23709               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23710           elif test -f /usr/local/include/libpq-fe.h; then
23711               POSTGRESQL_INCDIR=/usr/local/include
23712               if test -d /usr/local/lib64; then
23713                  POSTGRESQL_LIBDIR=/usr/local/lib64
23714               else
23715                  POSTGRESQL_LIBDIR=/usr/local/lib
23716               fi
23717               POSTGRESQL_BINDIR=/usr/local/bin
23718           elif test -f /usr/include/libpq-fe.h; then
23719               POSTGRESQL_INCDIR=/usr/include
23720               if test -d /usr/lib64; then
23721                  POSTGRESQL_LIBDIR=/usr/lib64
23722               else
23723                  POSTGRESQL_LIBDIR=/usr/lib
23724               fi
23725               POSTGRESQL_BINDIR=/usr/bin
23726           elif test -f /usr/include/pgsql/libpq-fe.h; then
23727               POSTGRESQL_INCDIR=/usr/include/pgsql
23728               if test -d /usr/lib64/pgsql; then
23729                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23730               else
23731                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23732               fi
23733               POSTGRESQL_BINDIR=/usr/bin
23734           elif test -f /usr/include/postgresql/libpq-fe.h; then
23735               POSTGRESQL_INCDIR=/usr/include/postgresql
23736               if test -d /usr/lib64/postgresql; then
23737                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23738               else
23739                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23740               fi
23741               POSTGRESQL_BINDIR=/usr/bin
23742           else
23743               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23744 $as_echo "no" >&6; }
23745               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23746           fi
23747       elif test -f $withval/include/libpq-fe.h; then
23748           POSTGRESQL_INCDIR=$withval/include
23749           POSTGRESQL_LIBDIR=$withval/lib
23750           POSTGRESQL_BINDIR=$withval/bin
23751       elif test -f $withval/include/postgresql/libpq-fe.h; then
23752           POSTGRESQL_INCDIR=$withval/include/postgresql
23753           if test -d $withval/lib64; then
23754               POSTGRESQL_LIBDIR=$withval/lib64
23755           else
23756               POSTGRESQL_LIBDIR=$withval/lib
23757           fi
23758           POSTGRESQL_BINDIR=$withval/bin
23759       else
23760           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23761 $as_echo "no" >&6; }
23762           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23763       fi
23764
23765 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23766
23767      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23768 $as_echo "yes" >&6; }
23769
23770      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23771      if test x$use_libtool != xno; then
23772         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23773      else
23774         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23775      fi
23776      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23777 if test "x$ac_cv_func_crypt" = xyes; then :
23778
23779 else
23780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23781 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23782 if ${ac_cv_lib_crypt_crypt+:} false; then :
23783   $as_echo_n "(cached) " >&6
23784 else
23785   ac_check_lib_save_LIBS=$LIBS
23786 LIBS="-lcrypt  $LIBS"
23787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23788 /* end confdefs.h.  */
23789
23790 /* Override any GCC internal prototype to avoid an error.
23791    Use char because int might match the return type of a GCC
23792    builtin and then its argument prototype would still apply.  */
23793 #ifdef __cplusplus
23794 extern "C"
23795 #endif
23796 char crypt ();
23797 int
23798 main ()
23799 {
23800 return crypt ();
23801   ;
23802   return 0;
23803 }
23804 _ACEOF
23805 if ac_fn_c_try_link "$LINENO"; then :
23806   ac_cv_lib_crypt_crypt=yes
23807 else
23808   ac_cv_lib_crypt_crypt=no
23809 fi
23810 rm -f core conftest.err conftest.$ac_objext \
23811     conftest$ac_exeext conftest.$ac_ext
23812 LIBS=$ac_check_lib_save_LIBS
23813 fi
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23815 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23816 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23817   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23818 fi
23819
23820 fi
23821
23822      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23823      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23824
23825      if test -z "${db_backends}"; then
23826          db_backends="PostgreSQL"
23827      else
23828          db_backends="${db_backends} PostgreSQL"
23829      fi
23830      if test -z "${DB_BACKENDS}"; then
23831          DB_BACKENDS="postgresql"
23832      else
23833          DB_BACKENDS="${DB_BACKENDS} postgresql"
23834      fi
23835
23836                     if test "x$support_batch_insert" = "xyes"; then
23837                   saved_LDFLAGS="${LDFLAGS}"
23838          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23839          saved_LIBS="${LIBS}"
23840          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23841             LIBS="${saved_LIBS} -lcrypt"
23842          fi
23843
23844          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23845 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23846 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23847   $as_echo_n "(cached) " >&6
23848 else
23849   ac_check_lib_save_LIBS=$LIBS
23850 LIBS="-lpq  $LIBS"
23851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23852 /* end confdefs.h.  */
23853
23854 /* Override any GCC internal prototype to avoid an error.
23855    Use char because int might match the return type of a GCC
23856    builtin and then its argument prototype would still apply.  */
23857 #ifdef __cplusplus
23858 extern "C"
23859 #endif
23860 char PQisthreadsafe ();
23861 int
23862 main ()
23863 {
23864 return PQisthreadsafe ();
23865   ;
23866   return 0;
23867 }
23868 _ACEOF
23869 if ac_fn_c_try_link "$LINENO"; then :
23870   ac_cv_lib_pq_PQisthreadsafe=yes
23871 else
23872   ac_cv_lib_pq_PQisthreadsafe=no
23873 fi
23874 rm -f core conftest.err conftest.$ac_objext \
23875     conftest$ac_exeext conftest.$ac_ext
23876 LIBS=$ac_check_lib_save_LIBS
23877 fi
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23879 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23880 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23881
23882 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23883
23884 fi
23885
23886          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23887 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23888 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23889   $as_echo_n "(cached) " >&6
23890 else
23891   ac_check_lib_save_LIBS=$LIBS
23892 LIBS="-lpq  $LIBS"
23893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23894 /* end confdefs.h.  */
23895
23896 /* Override any GCC internal prototype to avoid an error.
23897    Use char because int might match the return type of a GCC
23898    builtin and then its argument prototype would still apply.  */
23899 #ifdef __cplusplus
23900 extern "C"
23901 #endif
23902 char PQputCopyData ();
23903 int
23904 main ()
23905 {
23906 return PQputCopyData ();
23907   ;
23908   return 0;
23909 }
23910 _ACEOF
23911 if ac_fn_c_try_link "$LINENO"; then :
23912   ac_cv_lib_pq_PQputCopyData=yes
23913 else
23914   ac_cv_lib_pq_PQputCopyData=no
23915 fi
23916 rm -f core conftest.err conftest.$ac_objext \
23917     conftest$ac_exeext conftest.$ac_ext
23918 LIBS=$ac_check_lib_save_LIBS
23919 fi
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23921 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23922 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23923
23924 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23925
23926 fi
23927
23928          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23929              if test $support_batch_insert = yes ; then
23930
23931 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23932
23933                  if test -z "${batch_insert_db_backends}"; then
23934                      batch_insert_db_backends="PostgreSQL"
23935                  else
23936                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
23937                  fi
23938              fi
23939          fi
23940
23941          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23942          then
23943              echo "WARNING: Your PostgreSQL client library is too old to detect "
23944              echo "if it was compiled with --enable-thread-safety, consider to "
23945              echo "upgrade it in order to avoid problems with Batch insert mode"
23946          fi
23947
23948                   LDFLAGS="${saved_LDFLAGS}"
23949          LIBS="${saved_LIBS}"
23950      fi
23951   else
23952      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23953 $as_echo "no" >&6; }
23954   fi
23955
23956 else
23957
23958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23959 $as_echo "no" >&6; }
23960
23961 fi
23962
23963
23964
23965
23966
23967
23968
23969
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23971 $as_echo_n "checking for MySQL support... " >&6; }
23972
23973 # Check whether --with-mysql was given.
23974 if test "${with_mysql+set}" = set; then :
23975   withval=$with_mysql;
23976   if test "$withval" != "no"; then
23977         if test "$withval" = "yes"; then
23978 #
23979 # This code is very broken on older systems
23980 #
23981 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
23982 #           if test "x${MYSQL_CONFIG}" != x; then
23983 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
23984 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
23985 #              if test $? = 0 ; then
23986 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
23987 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
23988 #              else
23989 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
23990 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
23991 #              fi
23992 #           elif test -f /usr/local/mysql/include/mysql/mysql.h; then
23993            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23994               MYSQL_INCDIR=/usr/local/mysql/include/mysql
23995               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23996                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23997                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23998               else
23999                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24000               fi
24001               MYSQL_BINDIR=/usr/local/mysql/bin
24002            elif test -f /usr/include/mysql/mysql.h; then
24003               MYSQL_INCDIR=/usr/include/mysql
24004               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24005                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24006                  MYSQL_LIBDIR=/usr/lib64/mysql
24007               elif test -f /usr/lib64/libmysqlclient_r.a \
24008                         -o -f /usr/lib64/libmysqlclient_r.so; then
24009                  MYSQL_LIBDIR=/usr/lib64
24010               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24011                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24012                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24013               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24014                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24015                  MYSQL_LIBDIR=/usr/lib/mysql
24016               else
24017                  MYSQL_LIBDIR=/usr/lib
24018               fi
24019               MYSQL_BINDIR=/usr/bin
24020            elif test -f /usr/include/mysql.h; then
24021               MYSQL_INCDIR=/usr/include
24022               if test -f /usr/lib64/libmysqlclient_r.a \
24023                       -o -f /usr/lib64/libmysqlclient_r.so; then
24024                  MYSQL_LIBDIR=/usr/lib64
24025               else
24026                  MYSQL_LIBDIR=/usr/lib
24027               fi
24028               MYSQL_BINDIR=/usr/bin
24029            elif test -f /usr/local/include/mysql/mysql.h; then
24030               MYSQL_INCDIR=/usr/local/include/mysql
24031               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24032                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24033                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24034               else
24035                  MYSQL_LIBDIR=/usr/local/lib/mysql
24036               fi
24037               MYSQL_BINDIR=/usr/local/bin
24038            elif test -f /usr/local/include/mysql.h; then
24039               MYSQL_INCDIR=/usr/local/include
24040               if test -f /usr/local/lib64/libmysqlclient_r.a \
24041                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24042                  MYSQL_LIBDIR=/usr/local/lib64
24043               else
24044                  MYSQL_LIBDIR=/usr/local/lib
24045               fi
24046               MYSQL_BINDIR=/usr/local/bin
24047            else
24048               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24049 $as_echo "no" >&6; }
24050               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24051            fi
24052         else
24053            if test -f $withval/include/mysql/mysql.h; then
24054               MYSQL_INCDIR=$withval/include/mysql
24055               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24056                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24057                  MYSQL_LIBDIR=$withval/lib64/mysql
24058               elif test -f $withval/lib64/libmysqlclient_r.a \
24059                    -o -f $withval/lib64/libmysqlclient_r.so; then
24060                  MYSQL_LIBDIR=$withval/lib64
24061               elif test -f $withval/lib/libmysqlclient_r.a \
24062                    -o -f $withval/lib/libmysqlclient_r.so; then
24063                  MYSQL_LIBDIR=$withval/lib
24064               else
24065                  MYSQL_LIBDIR=$withval/lib/mysql
24066               fi
24067               MYSQL_BINDIR=$withval/bin
24068            elif test -f $withval/include/mysql.h; then
24069               MYSQL_INCDIR=$withval/include
24070               if test -f $withval/lib64/libmysqlclient_r.a \
24071                    -o -f $withval/lib64/libmysqlclient_r.so; then
24072                  MYSQL_LIBDIR=$withval/lib64
24073               else
24074                  MYSQL_LIBDIR=$withval/lib
24075               fi
24076               MYSQL_BINDIR=$withval/bin
24077            else
24078               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24079 $as_echo "no" >&6; }
24080               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24081            fi
24082         fi
24083      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24084      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24085           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24086         if test x$use_libtool != xno; then
24087            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24088         else
24089            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24090         fi
24091         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24092      fi
24093      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24094
24095
24096 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24097
24098      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24099 $as_echo "yes" >&6; }
24100
24101      if test -z "${db_backends}" ; then
24102          db_backends="MySQL"
24103      else
24104          db_backends="${db_backends} MySQL"
24105      fi
24106      if test -z "${DB_BACKENDS}" ; then
24107          DB_BACKENDS="mysql"
24108      else
24109          DB_BACKENDS="${DB_BACKENDS} mysql"
24110      fi
24111
24112                     if test "x$support_batch_insert" = "xyes"; then
24113                   saved_LDFLAGS="${LDFLAGS}"
24114          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24115          saved_LIBS="${LIBS}"
24116          LIBS="${saved_LIBS} -lz"
24117
24118          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24119 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24120 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24121   $as_echo_n "(cached) " >&6
24122 else
24123   ac_check_lib_save_LIBS=$LIBS
24124 LIBS="-lmysqlclient_r  $LIBS"
24125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24126 /* end confdefs.h.  */
24127
24128 /* Override any GCC internal prototype to avoid an error.
24129    Use char because int might match the return type of a GCC
24130    builtin and then its argument prototype would still apply.  */
24131 #ifdef __cplusplus
24132 extern "C"
24133 #endif
24134 char mysql_thread_safe ();
24135 int
24136 main ()
24137 {
24138 return mysql_thread_safe ();
24139   ;
24140   return 0;
24141 }
24142 _ACEOF
24143 if ac_fn_c_try_link "$LINENO"; then :
24144   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24145 else
24146   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24147 fi
24148 rm -f core conftest.err conftest.$ac_objext \
24149     conftest$ac_exeext conftest.$ac_ext
24150 LIBS=$ac_check_lib_save_LIBS
24151 fi
24152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24153 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24154 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24155
24156 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24157
24158 fi
24159
24160          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24161              if test -z "${batch_insert_db_backends}"; then
24162                  batch_insert_db_backends="MySQL"
24163              else
24164                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24165              fi
24166          fi
24167
24168                   LDFLAGS="${saved_LDFLAGS}"
24169          LIBS="${saved_LIBS}"
24170      fi
24171   else
24172      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24173 $as_echo "no" >&6; }
24174   fi
24175
24176 else
24177
24178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24179 $as_echo "no" >&6; }
24180
24181 fi
24182
24183
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24185 $as_echo_n "checking for MySQL embedded support... " >&6; }
24186
24187 # Check whether --with-embedded-mysql was given.
24188 if test "${with_embedded_mysql+set}" = set; then :
24189   withval=$with_embedded_mysql;
24190   if test "$withval" != "no"; then
24191         if test "$withval" = "yes"; then
24192                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24193                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24194                         if test -d /usr/local/mysql/lib64/mysql; then
24195                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24196                         else
24197                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24198                         fi
24199                         MYSQL_BINDIR=/usr/local/mysql/bin
24200                 elif test -f /usr/include/mysql/mysql.h; then
24201                         MYSQL_INCDIR=/usr/include/mysql
24202                         if test -d /usr/lib64/mysql; then
24203                                 MYSQL_LIBDIR=/usr/lib64/mysql
24204                         else
24205                                 MYSQL_LIBDIR=/usr/lib/mysql
24206                         fi
24207                         MYSQL_BINDIR=/usr/bin
24208                 elif test -f /usr/include/mysql.h; then
24209                         MYSQL_INCDIR=/usr/include
24210                         if test -d /usr/lib64; then
24211                                 MYSQL_LIBDIR=/usr/lib64
24212                         else
24213                                 MYSQL_LIBDIR=/usr/lib
24214                         fi
24215                         MYSQL_BINDIR=/usr/bin
24216                 elif test -f /usr/local/include/mysql/mysql.h; then
24217                         MYSQL_INCDIR=/usr/local/include/mysql
24218                         if test -d /usr/local/lib64/mysql; then
24219                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24220                         else
24221                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24222                         fi
24223                         MYSQL_BINDIR=/usr/local/bin
24224                 elif test -f /usr/local/include/mysql.h; then
24225                         MYSQL_INCDIR=/usr/local/include
24226                         if test -d /usr/local/lib64; then
24227                                 MYSQL_LIBDIR=/usr/local/lib64
24228                         else
24229                                 MYSQL_LIBDIR=/usr/local/lib
24230                         fi
24231                         MYSQL_BINDIR=/usr/local/bin
24232                 else
24233                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24234 $as_echo "no" >&6; }
24235                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24236                 fi
24237         else
24238                 if test -f $withval/include/mysql/mysql.h; then
24239                         MYSQL_INCDIR=$withval/include/mysql
24240                         if test -d $withval/lib64/mysql; then
24241                                 MYSQL_LIBDIR=$withval/lib64/mysql
24242                         else
24243                                 MYSQL_LIBDIR=$withval/lib/mysql
24244                         fi
24245                         MYSQL_BINDIR=$withval/bin
24246                 elif test -f $withval/include/mysql.h; then
24247                         MYSQL_INCDIR=$withval/include
24248                         if test -d $withval/lib64; then
24249                                 MYSQL_LIBDIR=$withval/lib64
24250                         else
24251                                 MYSQL_LIBDIR=$withval/lib
24252                         fi
24253                         MYSQL_BINDIR=$withval/bin
24254                 else
24255                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24256 $as_echo "no" >&6; }
24257                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24258                 fi
24259         fi
24260      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24261      if test x$use_libtool != xno; then
24262         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24263      else
24264         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24265      fi
24266      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24267      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24268
24269
24270 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24271
24272
24273 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24274
24275      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24276 $as_echo "yes" >&6; }
24277
24278      if test -z "${db_backends}"; then
24279          db_backends="MySQL"
24280      else
24281          db_backends="${db_backends} MySQL"
24282      fi
24283      if test -z "${DB_BACKENDS}"; then
24284          DB_BACKENDS="mysql"
24285      else
24286          DB_BACKENDS="${DB_BACKENDS} mysql"
24287      fi
24288
24289                     if test "x$support_batch_insert" = "xyes"; then
24290                   saved_LDFLAGS="${LDFLAGS}"
24291          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24292          saved_LIBS="${LIBS}"
24293          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24294
24295          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24296 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24297 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24298   $as_echo_n "(cached) " >&6
24299 else
24300   ac_check_lib_save_LIBS=$LIBS
24301 LIBS="-lmysqlclient_r  $LIBS"
24302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303 /* end confdefs.h.  */
24304
24305 /* Override any GCC internal prototype to avoid an error.
24306    Use char because int might match the return type of a GCC
24307    builtin and then its argument prototype would still apply.  */
24308 #ifdef __cplusplus
24309 extern "C"
24310 #endif
24311 char mysql_thread_safe ();
24312 int
24313 main ()
24314 {
24315 return mysql_thread_safe ();
24316   ;
24317   return 0;
24318 }
24319 _ACEOF
24320 if ac_fn_c_try_link "$LINENO"; then :
24321   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24322 else
24323   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24324 fi
24325 rm -f core conftest.err conftest.$ac_objext \
24326     conftest$ac_exeext conftest.$ac_ext
24327 LIBS=$ac_check_lib_save_LIBS
24328 fi
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24330 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24331 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24332
24333 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24334
24335 fi
24336
24337          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24338              if test -z "${batch_insert_db_backends}"; then
24339                  batch_insert_db_backends="MySQL"
24340              else
24341                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24342              fi
24343          fi
24344
24345                   LDFLAGS="${saved_LDFLAGS}"
24346          LIBS="${saved_LIBS}"
24347      fi
24348   else
24349      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24350 $as_echo "no" >&6; }
24351   fi
24352
24353 else
24354
24355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24356 $as_echo "no" >&6; }
24357
24358 fi
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24369 $as_echo_n "checking for SQLite3 support... " >&6; }
24370
24371 # Check whether --with-sqlite3 was given.
24372 if test "${with_sqlite3+set}" = set; then :
24373   withval=$with_sqlite3;
24374   if test "$withval" != "no"; then
24375      if test "$withval" = "yes"; then
24376         if test -f /usr/local/include/sqlite3.h; then
24377            SQLITE_INCDIR=/usr/local/include
24378            if test -d /usr/local/lib64; then
24379               SQLITE_LIBDIR=/usr/local/lib64
24380            else
24381               SQLITE_LIBDIR=/usr/local/lib
24382            fi
24383            SQLITE_BINDIR=/usr/local/bin
24384         elif test -f /usr/include/sqlite3.h; then
24385            SQLITE_INCDIR=/usr/include
24386            if test -d /usr/lib64; then
24387               SQLITE_LIBDIR=/usr/lib64
24388            else
24389               SQLITE_LIBDIR=/usr/lib
24390            fi
24391            SQLITE_BINDIR=/usr/bin
24392         elif test -f $prefix/include/sqlite3.h; then
24393            SQLITE_INCDIR=$prefix/include
24394            if test -d $prefix/lib64; then
24395               SQLITE_LIBDIR=$prefix/lib64
24396            else
24397               SQLITE_LIBDIR=$prefix/lib
24398            fi
24399            SQLITE_BINDIR=$prefix/bin
24400         else
24401            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24402 $as_echo "no" >&6; }
24403            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24404         fi
24405      else
24406         if test -f $withval/sqlite3.h; then
24407            SQLITE_INCDIR=$withval
24408            SQLITE_LIBDIR=$withval
24409            SQLITE_BINDIR=$withval
24410         elif test -f $withval/include/sqlite3.h; then
24411            SQLITE_INCDIR=$withval/include
24412            if test -d $withval/lib64; then
24413               SQLITE_LIBDIR=$withval/lib64
24414            else
24415               SQLITE_LIBDIR=$withval/lib
24416            fi
24417            SQLITE_BINDIR=$withval/bin
24418         else
24419            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24420 $as_echo "no" >&6; }
24421            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24422         fi
24423      fi
24424      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24425      if test x$use_libtool != xno; then
24426         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24427      else
24428         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24429      fi
24430      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24431      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24432
24433
24434 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24435
24436      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24437 $as_echo "yes" >&6; }
24438
24439      if test -z "${db_backends}"; then
24440          db_backends="SQLite3"
24441      else
24442          db_backends="${db_backends} SQLite3"
24443      fi
24444      if test -z "${DB_BACKENDS}"; then
24445          DB_BACKENDS="sqlite3"
24446      else
24447          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24448      fi
24449
24450                     if test "x$support_batch_insert" = "xyes"; then
24451                   saved_LDFLAGS="${LDFLAGS}"
24452          LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24453
24454          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24455 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24456 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24457   $as_echo_n "(cached) " >&6
24458 else
24459   ac_check_lib_save_LIBS=$LIBS
24460 LIBS="-lsqlite3  $LIBS"
24461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24462 /* end confdefs.h.  */
24463
24464 /* Override any GCC internal prototype to avoid an error.
24465    Use char because int might match the return type of a GCC
24466    builtin and then its argument prototype would still apply.  */
24467 #ifdef __cplusplus
24468 extern "C"
24469 #endif
24470 char sqlite3_threadsafe ();
24471 int
24472 main ()
24473 {
24474 return sqlite3_threadsafe ();
24475   ;
24476   return 0;
24477 }
24478 _ACEOF
24479 if ac_fn_c_try_link "$LINENO"; then :
24480   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24481 else
24482   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24483 fi
24484 rm -f core conftest.err conftest.$ac_objext \
24485     conftest$ac_exeext conftest.$ac_ext
24486 LIBS=$ac_check_lib_save_LIBS
24487 fi
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24489 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24490 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24491
24492 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24493
24494 fi
24495
24496          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24497              if test -z "${batch_insert_db_backends}"; then
24498                  batch_insert_db_backends="SQLite3"
24499              else
24500                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24501              fi
24502          fi
24503
24504                   LDFLAGS="${saved_LDFLAGS}"
24505      fi
24506   else
24507      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24508 $as_echo "no" >&6; }
24509   fi
24510
24511 else
24512
24513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24514 $as_echo "no" >&6; }
24515
24516 fi
24517
24518
24519
24520
24521
24522
24523
24524 if test -z "${batch_insert_db_backends}"; then
24525    batch_insert_db_backends="None"
24526 fi
24527
24528 if test "x${db_backends}" = "x" ; then
24529    echo " "
24530    echo " "
24531    echo "You have not specified either --enable-client-only or one of the"
24532    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24533    echo "This is not permitted. Please reconfigure."
24534    echo " "
24535    echo "Aborting the configuration ..."
24536    echo " "
24537    echo " "
24538    exit 1
24539 fi
24540
24541 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24542    1)
24543       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24544       if test x$use_libtool = xno; then
24545          SHARED_CATALOG_TARGETS=""
24546       else
24547          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24548       fi
24549       ;;
24550    *)
24551                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24552
24553                         if test x$use_libtool = xno; then
24554          echo " "
24555          echo " "
24556          echo "You have specified two or more of the"
24557          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24558          echo "This is not permitted when not using libtool Please reconfigure."
24559          echo " "
24560          echo "Aborting the configuration ..."
24561          echo " "
24562          echo " "
24563          exit 1
24564       fi
24565
24566       SHARED_CATALOG_TARGETS=""
24567       for db_type in ${DB_BACKENDS}
24568       do
24569          if test -z "${SHARED_CATALOG_TARGETS}"; then
24570             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24571          else
24572             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24573          fi
24574       done
24575       ;;
24576 esac
24577
24578 if test x$use_libtool = xyes; then
24579    DB_LIBS=""
24580 fi
24581
24582
24583
24584
24585
24586
24587
24588 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24589
24590
24591 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24592    if test -z "$CCOPTS"; then
24593       CCOPTS='-g -O2 -Wall'
24594    fi
24595    CFLAGS="$CCOPTS"
24596 fi
24597
24598
24599
24600 largefile_support="no"
24601
24602    # Check whether --enable-largefile was given.
24603 if test "${enable_largefile+set}" = set; then :
24604   enableval=$enable_largefile;
24605 fi
24606
24607    if test "$enable_largefile" != no; then
24608      if test -n "$ac_tool_prefix"; then
24609   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24610 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24612 $as_echo_n "checking for $ac_word... " >&6; }
24613 if ${ac_cv_prog_GETCONF+:} false; then :
24614   $as_echo_n "(cached) " >&6
24615 else
24616   if test -n "$GETCONF"; then
24617   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24618 else
24619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24620 for as_dir in $PATH
24621 do
24622   IFS=$as_save_IFS
24623   test -z "$as_dir" && as_dir=.
24624     for ac_exec_ext in '' $ac_executable_extensions; do
24625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24626     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24628     break 2
24629   fi
24630 done
24631   done
24632 IFS=$as_save_IFS
24633
24634 fi
24635 fi
24636 GETCONF=$ac_cv_prog_GETCONF
24637 if test -n "$GETCONF"; then
24638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24639 $as_echo "$GETCONF" >&6; }
24640 else
24641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24642 $as_echo "no" >&6; }
24643 fi
24644
24645
24646 fi
24647 if test -z "$ac_cv_prog_GETCONF"; then
24648   ac_ct_GETCONF=$GETCONF
24649   # Extract the first word of "getconf", so it can be a program name with args.
24650 set dummy getconf; ac_word=$2
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24652 $as_echo_n "checking for $ac_word... " >&6; }
24653 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24654   $as_echo_n "(cached) " >&6
24655 else
24656   if test -n "$ac_ct_GETCONF"; then
24657   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24658 else
24659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24660 for as_dir in $PATH
24661 do
24662   IFS=$as_save_IFS
24663   test -z "$as_dir" && as_dir=.
24664     for ac_exec_ext in '' $ac_executable_extensions; do
24665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24666     ac_cv_prog_ac_ct_GETCONF="getconf"
24667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24668     break 2
24669   fi
24670 done
24671   done
24672 IFS=$as_save_IFS
24673
24674 fi
24675 fi
24676 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24677 if test -n "$ac_ct_GETCONF"; then
24678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24679 $as_echo "$ac_ct_GETCONF" >&6; }
24680 else
24681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24682 $as_echo "no" >&6; }
24683 fi
24684
24685   if test "x$ac_ct_GETCONF" = x; then
24686     GETCONF=""
24687   else
24688     case $cross_compiling:$ac_tool_warned in
24689 yes:)
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24692 ac_tool_warned=yes ;;
24693 esac
24694     GETCONF=$ac_ct_GETCONF
24695   fi
24696 else
24697   GETCONF="$ac_cv_prog_GETCONF"
24698 fi
24699
24700      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24701 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24702 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24703   $as_echo_n "(cached) " >&6
24704 else
24705   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24706         ac_cv_sys_largefile_CFLAGS=no
24707         case "$host_os" in
24708            # IRIX 6.2 and later require cc -n32.
24709            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24710              if test "$GCC" != yes; then
24711                ac_cv_sys_largefile_CFLAGS=-n32
24712              fi
24713              ac_save_CC="$CC"
24714              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24715              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24716 /* end confdefs.h.  */
24717
24718 int
24719 main ()
24720 {
24721
24722   ;
24723   return 0;
24724 }
24725 _ACEOF
24726 if ac_fn_c_try_link "$LINENO"; then :
24727
24728 else
24729   ac_cv_sys_largefile_CFLAGS=no
24730 fi
24731 rm -f core conftest.err conftest.$ac_objext \
24732     conftest$ac_exeext conftest.$ac_ext
24733              CC="$ac_save_CC"
24734            esac
24735       }
24736 fi
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24738 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24739      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24740 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24741 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24742   $as_echo_n "(cached) " >&6
24743 else
24744   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24745         ac_cv_sys_largefile_LDFLAGS=no
24746
24747       }
24748 fi
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24750 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24751      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24752 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24753 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24754   $as_echo_n "(cached) " >&6
24755 else
24756   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24757         ac_cv_sys_largefile_LIBS=no
24758
24759       }
24760 fi
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24762 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24763
24764      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24765        case "$ac_flag" in
24766        no) ;;
24767        -D_FILE_OFFSET_BITS=*) ;;
24768        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24769        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24770        -D?* | -I?*)
24771          case "$ac_flag" in
24772    no) ;;
24773    ?*)
24774      case "$CPPFLAGS" in
24775      '') CPPFLAGS="$ac_flag" ;;
24776      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24777      esac ;;
24778    esac ;;
24779        *)
24780          case "$ac_flag" in
24781    no) ;;
24782    ?*)
24783      case "$CFLAGS" in
24784      '') CFLAGS="$ac_flag" ;;
24785      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24786      esac ;;
24787    esac ;;
24788        esac
24789      done
24790      case "$ac_cv_sys_largefile_LDFLAGS" in
24791    no) ;;
24792    ?*)
24793      case "$LDFLAGS" in
24794      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24795      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24796      esac ;;
24797    esac
24798      case "$ac_cv_sys_largefile_LIBS" in
24799    no) ;;
24800    ?*)
24801      case "$LIBS" in
24802      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24803      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24804      esac ;;
24805    esac
24806      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24807 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24808 if ${ac_cv_sys_file_offset_bits+:} false; then :
24809   $as_echo_n "(cached) " >&6
24810 else
24811   ac_cv_sys_file_offset_bits=no
24812       ac_cv_sys_file_offset_bits=64
24813       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24814         case "$ac_flag" in
24815         -D_FILE_OFFSET_BITS)
24816           ac_cv_sys_file_offset_bits=1 ;;
24817         -D_FILE_OFFSET_BITS=*)
24818           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24819         esac
24820       done
24821
24822 fi
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24824 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24825    if test "$ac_cv_sys_file_offset_bits" != no; then
24826
24827 cat >>confdefs.h <<_ACEOF
24828 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24829 _ACEOF
24830
24831    fi
24832      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24833 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24834 if ${ac_cv_sys_largefile_source+:} false; then :
24835   $as_echo_n "(cached) " >&6
24836 else
24837   ac_cv_sys_largefile_source=no
24838       ac_cv_sys_largefile_source=1
24839       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24840         case "$ac_flag" in
24841         -D_LARGEFILE_SOURCE)
24842           ac_cv_sys_largefile_source=1 ;;
24843         -D_LARGEFILE_SOURCE=*)
24844           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24845         esac
24846       done
24847
24848 fi
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24850 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24851    if test "$ac_cv_sys_largefile_source" != no; then
24852
24853 cat >>confdefs.h <<_ACEOF
24854 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24855 _ACEOF
24856
24857    fi
24858      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24859 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24860 if ${ac_cv_sys_large_files+:} false; then :
24861   $as_echo_n "(cached) " >&6
24862 else
24863   ac_cv_sys_large_files=no
24864       ac_cv_sys_large_files=1
24865       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24866         case "$ac_flag" in
24867         -D_LARGE_FILES)
24868           ac_cv_sys_large_files=1 ;;
24869         -D_LARGE_FILES=*)
24870           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24871         esac
24872       done
24873
24874 fi
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24876 $as_echo "$ac_cv_sys_large_files" >&6; }
24877    if test "$ac_cv_sys_large_files" != no; then
24878
24879 cat >>confdefs.h <<_ACEOF
24880 #define _LARGE_FILES $ac_cv_sys_large_files
24881 _ACEOF
24882
24883    fi
24884    fi
24885
24886
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24888 $as_echo_n "checking for X... " >&6; }
24889
24890
24891 # Check whether --with-x was given.
24892 if test "${with_x+set}" = set; then :
24893   withval=$with_x;
24894 fi
24895
24896 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24897 if test "x$with_x" = xno; then
24898   # The user explicitly disabled X.
24899   have_x=disabled
24900 else
24901   case $x_includes,$x_libraries in #(
24902     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24903     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24904   $as_echo_n "(cached) " >&6
24905 else
24906   # One or both of the vars are not set, and there is no cached value.
24907 ac_x_includes=no ac_x_libraries=no
24908 rm -f -r conftest.dir
24909 if mkdir conftest.dir; then
24910   cd conftest.dir
24911   cat >Imakefile <<'_ACEOF'
24912 incroot:
24913         @echo incroot='${INCROOT}'
24914 usrlibdir:
24915         @echo usrlibdir='${USRLIBDIR}'
24916 libdir:
24917         @echo libdir='${LIBDIR}'
24918 _ACEOF
24919   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24920     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24921     for ac_var in incroot usrlibdir libdir; do
24922       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24923     done
24924     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24925     for ac_extension in a so sl dylib la dll; do
24926       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24927          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24928         ac_im_usrlibdir=$ac_im_libdir; break
24929       fi
24930     done
24931     # Screen out bogus values from the imake configuration.  They are
24932     # bogus both because they are the default anyway, and because
24933     # using them would break gcc on systems where it needs fixed includes.
24934     case $ac_im_incroot in
24935         /usr/include) ac_x_includes= ;;
24936         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24937     esac
24938     case $ac_im_usrlibdir in
24939         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24940         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24941     esac
24942   fi
24943   cd ..
24944   rm -f -r conftest.dir
24945 fi
24946
24947 # Standard set of common directories for X headers.
24948 # Check X11 before X11Rn because it is often a symlink to the current release.
24949 ac_x_header_dirs='
24950 /usr/X11/include
24951 /usr/X11R7/include
24952 /usr/X11R6/include
24953 /usr/X11R5/include
24954 /usr/X11R4/include
24955
24956 /usr/include/X11
24957 /usr/include/X11R7
24958 /usr/include/X11R6
24959 /usr/include/X11R5
24960 /usr/include/X11R4
24961
24962 /usr/local/X11/include
24963 /usr/local/X11R7/include
24964 /usr/local/X11R6/include
24965 /usr/local/X11R5/include
24966 /usr/local/X11R4/include
24967
24968 /usr/local/include/X11
24969 /usr/local/include/X11R7
24970 /usr/local/include/X11R6
24971 /usr/local/include/X11R5
24972 /usr/local/include/X11R4
24973
24974 /usr/X386/include
24975 /usr/x386/include
24976 /usr/XFree86/include/X11
24977
24978 /usr/include
24979 /usr/local/include
24980 /usr/unsupported/include
24981 /usr/athena/include
24982 /usr/local/x11r5/include
24983 /usr/lpp/Xamples/include
24984
24985 /usr/openwin/include
24986 /usr/openwin/share/include'
24987
24988 if test "$ac_x_includes" = no; then
24989   # Guess where to find include files, by looking for Xlib.h.
24990   # First, try using that file with no special directory specified.
24991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24992 /* end confdefs.h.  */
24993 #include <X11/Xlib.h>
24994 _ACEOF
24995 if ac_fn_c_try_cpp "$LINENO"; then :
24996   # We can compile using X headers with no special include directory.
24997 ac_x_includes=
24998 else
24999   for ac_dir in $ac_x_header_dirs; do
25000   if test -r "$ac_dir/X11/Xlib.h"; then
25001     ac_x_includes=$ac_dir
25002     break
25003   fi
25004 done
25005 fi
25006 rm -f conftest.err conftest.i conftest.$ac_ext
25007 fi # $ac_x_includes = no
25008
25009 if test "$ac_x_libraries" = no; then
25010   # Check for the libraries.
25011   # See if we find them without any special options.
25012   # Don't add to $LIBS permanently.
25013   ac_save_LIBS=$LIBS
25014   LIBS="-lX11 $LIBS"
25015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25016 /* end confdefs.h.  */
25017 #include <X11/Xlib.h>
25018 int
25019 main ()
25020 {
25021 XrmInitialize ()
25022   ;
25023   return 0;
25024 }
25025 _ACEOF
25026 if ac_fn_c_try_link "$LINENO"; then :
25027   LIBS=$ac_save_LIBS
25028 # We can link X programs with no special library path.
25029 ac_x_libraries=
25030 else
25031   LIBS=$ac_save_LIBS
25032 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25033 do
25034   # Don't even attempt the hair of trying to link an X program!
25035   for ac_extension in a so sl dylib la dll; do
25036     if test -r "$ac_dir/libX11.$ac_extension"; then
25037       ac_x_libraries=$ac_dir
25038       break 2
25039     fi
25040   done
25041 done
25042 fi
25043 rm -f core conftest.err conftest.$ac_objext \
25044     conftest$ac_exeext conftest.$ac_ext
25045 fi # $ac_x_libraries = no
25046
25047 case $ac_x_includes,$ac_x_libraries in #(
25048   no,* | *,no | *\'*)
25049     # Didn't find X, or a directory has "'" in its name.
25050     ac_cv_have_x="have_x=no";; #(
25051   *)
25052     # Record where we found X for the cache.
25053     ac_cv_have_x="have_x=yes\
25054         ac_x_includes='$ac_x_includes'\
25055         ac_x_libraries='$ac_x_libraries'"
25056 esac
25057 fi
25058 ;; #(
25059     *) have_x=yes;;
25060   esac
25061   eval "$ac_cv_have_x"
25062 fi # $with_x != no
25063
25064 if test "$have_x" != yes; then
25065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25066 $as_echo "$have_x" >&6; }
25067   no_x=yes
25068 else
25069   # If each of the values was on the command line, it overrides each guess.
25070   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25071   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25072   # Update the cache value to reflect the command line values.
25073   ac_cv_have_x="have_x=yes\
25074         ac_x_includes='$x_includes'\
25075         ac_x_libraries='$x_libraries'"
25076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25077 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25078 fi
25079
25080 if test "$no_x" = yes; then
25081   # Not all programs may use this symbol, but it does not hurt to define it.
25082
25083 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25084
25085   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25086 else
25087   if test -n "$x_includes"; then
25088     X_CFLAGS="$X_CFLAGS -I$x_includes"
25089   fi
25090
25091   # It would also be nice to do this for all -L options, not just this one.
25092   if test -n "$x_libraries"; then
25093     X_LIBS="$X_LIBS -L$x_libraries"
25094     # For Solaris; some versions of Sun CC require a space after -R and
25095     # others require no space.  Words are not sufficient . . . .
25096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25097 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25098     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25099     ac_xsave_c_werror_flag=$ac_c_werror_flag
25100     ac_c_werror_flag=yes
25101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25102 /* end confdefs.h.  */
25103
25104 int
25105 main ()
25106 {
25107
25108   ;
25109   return 0;
25110 }
25111 _ACEOF
25112 if ac_fn_c_try_link "$LINENO"; then :
25113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25114 $as_echo "no" >&6; }
25115        X_LIBS="$X_LIBS -R$x_libraries"
25116 else
25117   LIBS="$ac_xsave_LIBS -R $x_libraries"
25118        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25119 /* end confdefs.h.  */
25120
25121 int
25122 main ()
25123 {
25124
25125   ;
25126   return 0;
25127 }
25128 _ACEOF
25129 if ac_fn_c_try_link "$LINENO"; then :
25130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25131 $as_echo "yes" >&6; }
25132           X_LIBS="$X_LIBS -R $x_libraries"
25133 else
25134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25135 $as_echo "neither works" >&6; }
25136 fi
25137 rm -f core conftest.err conftest.$ac_objext \
25138     conftest$ac_exeext conftest.$ac_ext
25139 fi
25140 rm -f core conftest.err conftest.$ac_objext \
25141     conftest$ac_exeext conftest.$ac_ext
25142     ac_c_werror_flag=$ac_xsave_c_werror_flag
25143     LIBS=$ac_xsave_LIBS
25144   fi
25145
25146   # Check for system-dependent libraries X programs must link with.
25147   # Do this before checking for the system-independent R6 libraries
25148   # (-lICE), since we may need -lsocket or whatever for X linking.
25149
25150   if test "$ISC" = yes; then
25151     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25152   else
25153     # Martyn Johnson says this is needed for Ultrix, if the X
25154     # libraries were built with DECnet support.  And Karl Berry says
25155     # the Alpha needs dnet_stub (dnet does not exist).
25156     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25158 /* end confdefs.h.  */
25159
25160 /* Override any GCC internal prototype to avoid an error.
25161    Use char because int might match the return type of a GCC
25162    builtin and then its argument prototype would still apply.  */
25163 #ifdef __cplusplus
25164 extern "C"
25165 #endif
25166 char XOpenDisplay ();
25167 int
25168 main ()
25169 {
25170 return XOpenDisplay ();
25171   ;
25172   return 0;
25173 }
25174 _ACEOF
25175 if ac_fn_c_try_link "$LINENO"; then :
25176
25177 else
25178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25179 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25180 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25181   $as_echo_n "(cached) " >&6
25182 else
25183   ac_check_lib_save_LIBS=$LIBS
25184 LIBS="-ldnet  $LIBS"
25185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25186 /* end confdefs.h.  */
25187
25188 /* Override any GCC internal prototype to avoid an error.
25189    Use char because int might match the return type of a GCC
25190    builtin and then its argument prototype would still apply.  */
25191 #ifdef __cplusplus
25192 extern "C"
25193 #endif
25194 char dnet_ntoa ();
25195 int
25196 main ()
25197 {
25198 return dnet_ntoa ();
25199   ;
25200   return 0;
25201 }
25202 _ACEOF
25203 if ac_fn_c_try_link "$LINENO"; then :
25204   ac_cv_lib_dnet_dnet_ntoa=yes
25205 else
25206   ac_cv_lib_dnet_dnet_ntoa=no
25207 fi
25208 rm -f core conftest.err conftest.$ac_objext \
25209     conftest$ac_exeext conftest.$ac_ext
25210 LIBS=$ac_check_lib_save_LIBS
25211 fi
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25213 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25214 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25215   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25216 fi
25217
25218     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25219       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25220 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25221 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25222   $as_echo_n "(cached) " >&6
25223 else
25224   ac_check_lib_save_LIBS=$LIBS
25225 LIBS="-ldnet_stub  $LIBS"
25226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25227 /* end confdefs.h.  */
25228
25229 /* Override any GCC internal prototype to avoid an error.
25230    Use char because int might match the return type of a GCC
25231    builtin and then its argument prototype would still apply.  */
25232 #ifdef __cplusplus
25233 extern "C"
25234 #endif
25235 char dnet_ntoa ();
25236 int
25237 main ()
25238 {
25239 return dnet_ntoa ();
25240   ;
25241   return 0;
25242 }
25243 _ACEOF
25244 if ac_fn_c_try_link "$LINENO"; then :
25245   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25246 else
25247   ac_cv_lib_dnet_stub_dnet_ntoa=no
25248 fi
25249 rm -f core conftest.err conftest.$ac_objext \
25250     conftest$ac_exeext conftest.$ac_ext
25251 LIBS=$ac_check_lib_save_LIBS
25252 fi
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25254 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25255 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25256   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25257 fi
25258
25259     fi
25260 fi
25261 rm -f core conftest.err conftest.$ac_objext \
25262     conftest$ac_exeext conftest.$ac_ext
25263     LIBS="$ac_xsave_LIBS"
25264
25265     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25266     # to get the SysV transport functions.
25267     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25268     # needs -lnsl.
25269     # The nsl library prevents programs from opening the X display
25270     # on Irix 5.2, according to T.E. Dickey.
25271     # The functions gethostbyname, getservbyname, and inet_addr are
25272     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25273     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25274 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25275
25276 fi
25277
25278     if test $ac_cv_func_gethostbyname = no; then
25279       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25280 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25281 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25282   $as_echo_n "(cached) " >&6
25283 else
25284   ac_check_lib_save_LIBS=$LIBS
25285 LIBS="-lnsl  $LIBS"
25286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25287 /* end confdefs.h.  */
25288
25289 /* Override any GCC internal prototype to avoid an error.
25290    Use char because int might match the return type of a GCC
25291    builtin and then its argument prototype would still apply.  */
25292 #ifdef __cplusplus
25293 extern "C"
25294 #endif
25295 char gethostbyname ();
25296 int
25297 main ()
25298 {
25299 return gethostbyname ();
25300   ;
25301   return 0;
25302 }
25303 _ACEOF
25304 if ac_fn_c_try_link "$LINENO"; then :
25305   ac_cv_lib_nsl_gethostbyname=yes
25306 else
25307   ac_cv_lib_nsl_gethostbyname=no
25308 fi
25309 rm -f core conftest.err conftest.$ac_objext \
25310     conftest$ac_exeext conftest.$ac_ext
25311 LIBS=$ac_check_lib_save_LIBS
25312 fi
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25314 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25315 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25316   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25317 fi
25318
25319       if test $ac_cv_lib_nsl_gethostbyname = no; then
25320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25321 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25322 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25323   $as_echo_n "(cached) " >&6
25324 else
25325   ac_check_lib_save_LIBS=$LIBS
25326 LIBS="-lbsd  $LIBS"
25327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328 /* end confdefs.h.  */
25329
25330 /* Override any GCC internal prototype to avoid an error.
25331    Use char because int might match the return type of a GCC
25332    builtin and then its argument prototype would still apply.  */
25333 #ifdef __cplusplus
25334 extern "C"
25335 #endif
25336 char gethostbyname ();
25337 int
25338 main ()
25339 {
25340 return gethostbyname ();
25341   ;
25342   return 0;
25343 }
25344 _ACEOF
25345 if ac_fn_c_try_link "$LINENO"; then :
25346   ac_cv_lib_bsd_gethostbyname=yes
25347 else
25348   ac_cv_lib_bsd_gethostbyname=no
25349 fi
25350 rm -f core conftest.err conftest.$ac_objext \
25351     conftest$ac_exeext conftest.$ac_ext
25352 LIBS=$ac_check_lib_save_LIBS
25353 fi
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25355 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25356 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25357   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25358 fi
25359
25360       fi
25361     fi
25362
25363     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25364     # socket/setsockopt and other routines are undefined under SCO ODT
25365     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25366     # on later versions), says Simon Leinen: it contains gethostby*
25367     # variants that don't use the name server (or something).  -lsocket
25368     # must be given before -lnsl if both are needed.  We assume that
25369     # if connect needs -lnsl, so does gethostbyname.
25370     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25371 if test "x$ac_cv_func_connect" = xyes; then :
25372
25373 fi
25374
25375     if test $ac_cv_func_connect = no; then
25376       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25377 $as_echo_n "checking for connect in -lsocket... " >&6; }
25378 if ${ac_cv_lib_socket_connect+:} false; then :
25379   $as_echo_n "(cached) " >&6
25380 else
25381   ac_check_lib_save_LIBS=$LIBS
25382 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25384 /* end confdefs.h.  */
25385
25386 /* Override any GCC internal prototype to avoid an error.
25387    Use char because int might match the return type of a GCC
25388    builtin and then its argument prototype would still apply.  */
25389 #ifdef __cplusplus
25390 extern "C"
25391 #endif
25392 char connect ();
25393 int
25394 main ()
25395 {
25396 return connect ();
25397   ;
25398   return 0;
25399 }
25400 _ACEOF
25401 if ac_fn_c_try_link "$LINENO"; then :
25402   ac_cv_lib_socket_connect=yes
25403 else
25404   ac_cv_lib_socket_connect=no
25405 fi
25406 rm -f core conftest.err conftest.$ac_objext \
25407     conftest$ac_exeext conftest.$ac_ext
25408 LIBS=$ac_check_lib_save_LIBS
25409 fi
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25411 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25412 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25413   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25414 fi
25415
25416     fi
25417
25418     # Guillermo Gomez says -lposix is necessary on A/UX.
25419     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25420 if test "x$ac_cv_func_remove" = xyes; then :
25421
25422 fi
25423
25424     if test $ac_cv_func_remove = no; then
25425       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25426 $as_echo_n "checking for remove in -lposix... " >&6; }
25427 if ${ac_cv_lib_posix_remove+:} false; then :
25428   $as_echo_n "(cached) " >&6
25429 else
25430   ac_check_lib_save_LIBS=$LIBS
25431 LIBS="-lposix  $LIBS"
25432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433 /* end confdefs.h.  */
25434
25435 /* Override any GCC internal prototype to avoid an error.
25436    Use char because int might match the return type of a GCC
25437    builtin and then its argument prototype would still apply.  */
25438 #ifdef __cplusplus
25439 extern "C"
25440 #endif
25441 char remove ();
25442 int
25443 main ()
25444 {
25445 return remove ();
25446   ;
25447   return 0;
25448 }
25449 _ACEOF
25450 if ac_fn_c_try_link "$LINENO"; then :
25451   ac_cv_lib_posix_remove=yes
25452 else
25453   ac_cv_lib_posix_remove=no
25454 fi
25455 rm -f core conftest.err conftest.$ac_objext \
25456     conftest$ac_exeext conftest.$ac_ext
25457 LIBS=$ac_check_lib_save_LIBS
25458 fi
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25460 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25461 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25462   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25463 fi
25464
25465     fi
25466
25467     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25468     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25469 if test "x$ac_cv_func_shmat" = xyes; then :
25470
25471 fi
25472
25473     if test $ac_cv_func_shmat = no; then
25474       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25475 $as_echo_n "checking for shmat in -lipc... " >&6; }
25476 if ${ac_cv_lib_ipc_shmat+:} false; then :
25477   $as_echo_n "(cached) " >&6
25478 else
25479   ac_check_lib_save_LIBS=$LIBS
25480 LIBS="-lipc  $LIBS"
25481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25482 /* end confdefs.h.  */
25483
25484 /* Override any GCC internal prototype to avoid an error.
25485    Use char because int might match the return type of a GCC
25486    builtin and then its argument prototype would still apply.  */
25487 #ifdef __cplusplus
25488 extern "C"
25489 #endif
25490 char shmat ();
25491 int
25492 main ()
25493 {
25494 return shmat ();
25495   ;
25496   return 0;
25497 }
25498 _ACEOF
25499 if ac_fn_c_try_link "$LINENO"; then :
25500   ac_cv_lib_ipc_shmat=yes
25501 else
25502   ac_cv_lib_ipc_shmat=no
25503 fi
25504 rm -f core conftest.err conftest.$ac_objext \
25505     conftest$ac_exeext conftest.$ac_ext
25506 LIBS=$ac_check_lib_save_LIBS
25507 fi
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25509 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25510 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25511   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25512 fi
25513
25514     fi
25515   fi
25516
25517   # Check for libraries that X11R6 Xt/Xaw programs need.
25518   ac_save_LDFLAGS=$LDFLAGS
25519   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25520   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25521   # check for ICE first), but we must link in the order -lSM -lICE or
25522   # we get undefined symbols.  So assume we have SM if we have ICE.
25523   # These have to be linked with before -lX11, unlike the other
25524   # libraries we check for below, so use a different variable.
25525   # John Interrante, Karl Berry
25526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25527 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25528 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25529   $as_echo_n "(cached) " >&6
25530 else
25531   ac_check_lib_save_LIBS=$LIBS
25532 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25534 /* end confdefs.h.  */
25535
25536 /* Override any GCC internal prototype to avoid an error.
25537    Use char because int might match the return type of a GCC
25538    builtin and then its argument prototype would still apply.  */
25539 #ifdef __cplusplus
25540 extern "C"
25541 #endif
25542 char IceConnectionNumber ();
25543 int
25544 main ()
25545 {
25546 return IceConnectionNumber ();
25547   ;
25548   return 0;
25549 }
25550 _ACEOF
25551 if ac_fn_c_try_link "$LINENO"; then :
25552   ac_cv_lib_ICE_IceConnectionNumber=yes
25553 else
25554   ac_cv_lib_ICE_IceConnectionNumber=no
25555 fi
25556 rm -f core conftest.err conftest.$ac_objext \
25557     conftest$ac_exeext conftest.$ac_ext
25558 LIBS=$ac_check_lib_save_LIBS
25559 fi
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25561 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25562 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25563   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25564 fi
25565
25566   LDFLAGS=$ac_save_LDFLAGS
25567
25568 fi
25569
25570
25571 for ac_header in \
25572    assert.h \
25573    fcntl.h \
25574    grp.h \
25575    pwd.h \
25576    libc.h \
25577    limits.h \
25578    stdarg.h \
25579    stdlib.h \
25580    stdint.h \
25581    inttypes.h \
25582    string.h \
25583    strings.h \
25584    termios.h \
25585    termcap.h \
25586    term.h \
25587    unistd.h \
25588    sys/bitypes.h \
25589    sys/byteorder.h \
25590    sys/ioctl.h \
25591    sys/select.h \
25592    sys/socket.h \
25593    sys/sockio.h \
25594    sys/stat.h \
25595    sys/time.h \
25596    sys/types.h \
25597    arpa/nameser.h \
25598    mtio.h \
25599    sys/mtio.h \
25600    sys/tape.h \
25601    regex.h \
25602
25603 do :
25604   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25605 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25607   cat >>confdefs.h <<_ACEOF
25608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25609 _ACEOF
25610
25611 fi
25612
25613 done
25614
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25616 $as_echo_n "checking for ANSI C header files... " >&6; }
25617 if ${ac_cv_header_stdc+:} false; then :
25618   $as_echo_n "(cached) " >&6
25619 else
25620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25621 /* end confdefs.h.  */
25622 #include <stdlib.h>
25623 #include <stdarg.h>
25624 #include <string.h>
25625 #include <float.h>
25626
25627 int
25628 main ()
25629 {
25630
25631   ;
25632   return 0;
25633 }
25634 _ACEOF
25635 if ac_fn_c_try_compile "$LINENO"; then :
25636   ac_cv_header_stdc=yes
25637 else
25638   ac_cv_header_stdc=no
25639 fi
25640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25641
25642 if test $ac_cv_header_stdc = yes; then
25643   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25645 /* end confdefs.h.  */
25646 #include <string.h>
25647
25648 _ACEOF
25649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25650   $EGREP "memchr" >/dev/null 2>&1; then :
25651
25652 else
25653   ac_cv_header_stdc=no
25654 fi
25655 rm -f conftest*
25656
25657 fi
25658
25659 if test $ac_cv_header_stdc = yes; then
25660   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25662 /* end confdefs.h.  */
25663 #include <stdlib.h>
25664
25665 _ACEOF
25666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25667   $EGREP "free" >/dev/null 2>&1; then :
25668
25669 else
25670   ac_cv_header_stdc=no
25671 fi
25672 rm -f conftest*
25673
25674 fi
25675
25676 if test $ac_cv_header_stdc = yes; then
25677   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25678   if test "$cross_compiling" = yes; then :
25679   :
25680 else
25681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h.  */
25683 #include <ctype.h>
25684 #include <stdlib.h>
25685 #if ((' ' & 0x0FF) == 0x020)
25686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25688 #else
25689 # define ISLOWER(c) \
25690                    (('a' <= (c) && (c) <= 'i') \
25691                      || ('j' <= (c) && (c) <= 'r') \
25692                      || ('s' <= (c) && (c) <= 'z'))
25693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25694 #endif
25695
25696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25697 int
25698 main ()
25699 {
25700   int i;
25701   for (i = 0; i < 256; i++)
25702     if (XOR (islower (i), ISLOWER (i))
25703         || toupper (i) != TOUPPER (i))
25704       return 2;
25705   return 0;
25706 }
25707 _ACEOF
25708 if ac_fn_c_try_run "$LINENO"; then :
25709
25710 else
25711   ac_cv_header_stdc=no
25712 fi
25713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25714   conftest.$ac_objext conftest.beam conftest.$ac_ext
25715 fi
25716
25717 fi
25718 fi
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25720 $as_echo "$ac_cv_header_stdc" >&6; }
25721 if test $ac_cv_header_stdc = yes; then
25722
25723 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25724
25725 fi
25726
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25728 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25729 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25730   $as_echo_n "(cached) " >&6
25731 else
25732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25733 /* end confdefs.h.  */
25734 #include <sys/types.h>
25735 int
25736 main ()
25737 {
25738 return makedev(0, 0);
25739   ;
25740   return 0;
25741 }
25742 _ACEOF
25743 if ac_fn_c_try_link "$LINENO"; then :
25744   ac_cv_header_sys_types_h_makedev=yes
25745 else
25746   ac_cv_header_sys_types_h_makedev=no
25747 fi
25748 rm -f core conftest.err conftest.$ac_objext \
25749     conftest$ac_exeext conftest.$ac_ext
25750
25751 fi
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25753 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25754
25755 if test $ac_cv_header_sys_types_h_makedev = no; then
25756 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25757 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25758
25759 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25760
25761 fi
25762
25763
25764
25765   if test $ac_cv_header_sys_mkdev_h = no; then
25766     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25767 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25768
25769 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25770
25771 fi
25772
25773
25774   fi
25775 fi
25776
25777 ac_header_dirent=no
25778 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25779   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25781 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25782 if eval \${$as_ac_Header+:} false; then :
25783   $as_echo_n "(cached) " >&6
25784 else
25785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25786 /* end confdefs.h.  */
25787 #include <sys/types.h>
25788 #include <$ac_hdr>
25789
25790 int
25791 main ()
25792 {
25793 if ((DIR *) 0)
25794 return 0;
25795   ;
25796   return 0;
25797 }
25798 _ACEOF
25799 if ac_fn_c_try_compile "$LINENO"; then :
25800   eval "$as_ac_Header=yes"
25801 else
25802   eval "$as_ac_Header=no"
25803 fi
25804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25805 fi
25806 eval ac_res=\$$as_ac_Header
25807                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25808 $as_echo "$ac_res" >&6; }
25809 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25810   cat >>confdefs.h <<_ACEOF
25811 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25812 _ACEOF
25813
25814 ac_header_dirent=$ac_hdr; break
25815 fi
25816
25817 done
25818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25819 if test $ac_header_dirent = dirent.h; then
25820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25821 $as_echo_n "checking for library containing opendir... " >&6; }
25822 if ${ac_cv_search_opendir+:} false; then :
25823   $as_echo_n "(cached) " >&6
25824 else
25825   ac_func_search_save_LIBS=$LIBS
25826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25827 /* end confdefs.h.  */
25828
25829 /* Override any GCC internal prototype to avoid an error.
25830    Use char because int might match the return type of a GCC
25831    builtin and then its argument prototype would still apply.  */
25832 #ifdef __cplusplus
25833 extern "C"
25834 #endif
25835 char opendir ();
25836 int
25837 main ()
25838 {
25839 return opendir ();
25840   ;
25841   return 0;
25842 }
25843 _ACEOF
25844 for ac_lib in '' dir; do
25845   if test -z "$ac_lib"; then
25846     ac_res="none required"
25847   else
25848     ac_res=-l$ac_lib
25849     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25850   fi
25851   if ac_fn_c_try_link "$LINENO"; then :
25852   ac_cv_search_opendir=$ac_res
25853 fi
25854 rm -f core conftest.err conftest.$ac_objext \
25855     conftest$ac_exeext
25856   if ${ac_cv_search_opendir+:} false; then :
25857   break
25858 fi
25859 done
25860 if ${ac_cv_search_opendir+:} false; then :
25861
25862 else
25863   ac_cv_search_opendir=no
25864 fi
25865 rm conftest.$ac_ext
25866 LIBS=$ac_func_search_save_LIBS
25867 fi
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25869 $as_echo "$ac_cv_search_opendir" >&6; }
25870 ac_res=$ac_cv_search_opendir
25871 if test "$ac_res" != no; then :
25872   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25873
25874 fi
25875
25876 else
25877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25878 $as_echo_n "checking for library containing opendir... " >&6; }
25879 if ${ac_cv_search_opendir+:} false; then :
25880   $as_echo_n "(cached) " >&6
25881 else
25882   ac_func_search_save_LIBS=$LIBS
25883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25884 /* end confdefs.h.  */
25885
25886 /* Override any GCC internal prototype to avoid an error.
25887    Use char because int might match the return type of a GCC
25888    builtin and then its argument prototype would still apply.  */
25889 #ifdef __cplusplus
25890 extern "C"
25891 #endif
25892 char opendir ();
25893 int
25894 main ()
25895 {
25896 return opendir ();
25897   ;
25898   return 0;
25899 }
25900 _ACEOF
25901 for ac_lib in '' x; do
25902   if test -z "$ac_lib"; then
25903     ac_res="none required"
25904   else
25905     ac_res=-l$ac_lib
25906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25907   fi
25908   if ac_fn_c_try_link "$LINENO"; then :
25909   ac_cv_search_opendir=$ac_res
25910 fi
25911 rm -f core conftest.err conftest.$ac_objext \
25912     conftest$ac_exeext
25913   if ${ac_cv_search_opendir+:} false; then :
25914   break
25915 fi
25916 done
25917 if ${ac_cv_search_opendir+:} false; then :
25918
25919 else
25920   ac_cv_search_opendir=no
25921 fi
25922 rm conftest.$ac_ext
25923 LIBS=$ac_func_search_save_LIBS
25924 fi
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25926 $as_echo "$ac_cv_search_opendir" >&6; }
25927 ac_res=$ac_cv_search_opendir
25928 if test "$ac_res" != no; then :
25929   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25930
25931 fi
25932
25933 fi
25934
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25936 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25937 if ${ac_cv_header_stat_broken+:} false; then :
25938   $as_echo_n "(cached) " >&6
25939 else
25940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25941 /* end confdefs.h.  */
25942 #include <sys/types.h>
25943 #include <sys/stat.h>
25944
25945 #if defined S_ISBLK && defined S_IFDIR
25946 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25947 #endif
25948
25949 #if defined S_ISBLK && defined S_IFCHR
25950 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25951 #endif
25952
25953 #if defined S_ISLNK && defined S_IFREG
25954 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25955 #endif
25956
25957 #if defined S_ISSOCK && defined S_IFREG
25958 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25959 #endif
25960
25961 _ACEOF
25962 if ac_fn_c_try_compile "$LINENO"; then :
25963   ac_cv_header_stat_broken=no
25964 else
25965   ac_cv_header_stat_broken=yes
25966 fi
25967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25968 fi
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25970 $as_echo "$ac_cv_header_stat_broken" >&6; }
25971 if test $ac_cv_header_stat_broken = yes; then
25972
25973 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25974
25975 fi
25976
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25978 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25979 if ${ac_cv_header_sys_wait_h+:} false; then :
25980   $as_echo_n "(cached) " >&6
25981 else
25982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25983 /* end confdefs.h.  */
25984 #include <sys/types.h>
25985 #include <sys/wait.h>
25986 #ifndef WEXITSTATUS
25987 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25988 #endif
25989 #ifndef WIFEXITED
25990 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25991 #endif
25992
25993 int
25994 main ()
25995 {
25996   int s;
25997   wait (&s);
25998   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25999   ;
26000   return 0;
26001 }
26002 _ACEOF
26003 if ac_fn_c_try_compile "$LINENO"; then :
26004   ac_cv_header_sys_wait_h=yes
26005 else
26006   ac_cv_header_sys_wait_h=no
26007 fi
26008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009 fi
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26011 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26012 if test $ac_cv_header_sys_wait_h = yes; then
26013
26014 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26015
26016 fi
26017
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26019 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26020 if ${ac_cv_header_time+:} false; then :
26021   $as_echo_n "(cached) " >&6
26022 else
26023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26024 /* end confdefs.h.  */
26025 #include <sys/types.h>
26026 #include <sys/time.h>
26027 #include <time.h>
26028
26029 int
26030 main ()
26031 {
26032 if ((struct tm *) 0)
26033 return 0;
26034   ;
26035   return 0;
26036 }
26037 _ACEOF
26038 if ac_fn_c_try_compile "$LINENO"; then :
26039   ac_cv_header_time=yes
26040 else
26041   ac_cv_header_time=no
26042 fi
26043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26044 fi
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26046 $as_echo "$ac_cv_header_time" >&6; }
26047 if test $ac_cv_header_time = yes; then
26048
26049 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26050
26051 fi
26052
26053 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26054 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26055
26056 cat >>confdefs.h <<_ACEOF
26057 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26058 _ACEOF
26059
26060
26061 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26062
26063 fi
26064
26065
26066 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26067 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26068
26069 cat >>confdefs.h <<_ACEOF
26070 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26071 _ACEOF
26072
26073
26074 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26075
26076 else
26077   case " $LIBOBJS " in
26078   *" fileblocks.$ac_objext "* ) ;;
26079   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26080  ;;
26081 esac
26082
26083 fi
26084
26085
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26087 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26088 if ${ac_cv_struct_tm+:} false; then :
26089   $as_echo_n "(cached) " >&6
26090 else
26091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26092 /* end confdefs.h.  */
26093 #include <sys/types.h>
26094 #include <time.h>
26095
26096 int
26097 main ()
26098 {
26099 struct tm tm;
26100                                      int *p = &tm.tm_sec;
26101                                      return !p;
26102   ;
26103   return 0;
26104 }
26105 _ACEOF
26106 if ac_fn_c_try_compile "$LINENO"; then :
26107   ac_cv_struct_tm=time.h
26108 else
26109   ac_cv_struct_tm=sys/time.h
26110 fi
26111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26112 fi
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26114 $as_echo "$ac_cv_struct_tm" >&6; }
26115 if test $ac_cv_struct_tm = sys/time.h; then
26116
26117 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26118
26119 fi
26120
26121 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26122 #include <$ac_cv_struct_tm>
26123
26124 "
26125 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26126
26127 cat >>confdefs.h <<_ACEOF
26128 #define HAVE_STRUCT_TM_TM_ZONE 1
26129 _ACEOF
26130
26131
26132 fi
26133
26134 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26135
26136 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26137
26138 else
26139   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26140 "
26141 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26142   ac_have_decl=1
26143 else
26144   ac_have_decl=0
26145 fi
26146
26147 cat >>confdefs.h <<_ACEOF
26148 #define HAVE_DECL_TZNAME $ac_have_decl
26149 _ACEOF
26150
26151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26152 $as_echo_n "checking for tzname... " >&6; }
26153 if ${ac_cv_var_tzname+:} false; then :
26154   $as_echo_n "(cached) " >&6
26155 else
26156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26157 /* end confdefs.h.  */
26158 #include <time.h>
26159 #if !HAVE_DECL_TZNAME
26160 extern char *tzname[];
26161 #endif
26162
26163 int
26164 main ()
26165 {
26166 return tzname[0][0];
26167   ;
26168   return 0;
26169 }
26170 _ACEOF
26171 if ac_fn_c_try_link "$LINENO"; then :
26172   ac_cv_var_tzname=yes
26173 else
26174   ac_cv_var_tzname=no
26175 fi
26176 rm -f core conftest.err conftest.$ac_objext \
26177     conftest$ac_exeext conftest.$ac_ext
26178 fi
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26180 $as_echo "$ac_cv_var_tzname" >&6; }
26181   if test $ac_cv_var_tzname = yes; then
26182
26183 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26184
26185   fi
26186 fi
26187
26188
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26190 $as_echo_n "checking for utime.h... " >&6; }
26191 if ${ba_cv_header_utime_h+:} false; then :
26192   $as_echo_n "(cached) " >&6
26193 else
26194
26195        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196 /* end confdefs.h.  */
26197
26198               #include <sys/types.h>
26199               #include <utime.h>
26200
26201 int
26202 main ()
26203 {
26204
26205               struct utimbuf foo
26206
26207   ;
26208   return 0;
26209 }
26210 _ACEOF
26211 if ac_fn_c_try_compile "$LINENO"; then :
26212
26213               ba_cv_header_utime_h=yes
26214
26215 else
26216
26217               ba_cv_header_utime_h=no
26218
26219
26220 fi
26221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26222
26223
26224 fi
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26226 $as_echo "$ba_cv_header_utime_h" >&6; }
26227 test $ba_cv_header_utime_h = yes &&
26228 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26229
26230
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26232 $as_echo_n "checking for socklen_t... " >&6; }
26233 if ${ba_cv_header_socklen_t+:} false; then :
26234   $as_echo_n "(cached) " >&6
26235 else
26236
26237        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26238 /* end confdefs.h.  */
26239
26240               #include <sys/types.h>
26241               #include <sys/socket.h>
26242
26243 int
26244 main ()
26245 {
26246
26247               socklen_t x
26248
26249   ;
26250   return 0;
26251 }
26252 _ACEOF
26253 if ac_fn_c_try_compile "$LINENO"; then :
26254
26255              ba_cv_header_socklen_t=yes
26256
26257 else
26258
26259              ba_cv_header_socklen_t=no
26260
26261
26262 fi
26263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26264
26265
26266 fi
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26268 $as_echo "$ba_cv_header_socklen_t" >&6; }
26269 test $ba_cv_header_socklen_t = yes &&
26270 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26271
26272
26273 ac_ext=cpp
26274 ac_cpp='$CXXCPP $CPPFLAGS'
26275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26278
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26280 $as_echo_n "checking for ioctl_req_t... " >&6; }
26281 if ${ba_cv_header_ioctl_req_t+:} false; then :
26282   $as_echo_n "(cached) " >&6
26283 else
26284
26285        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26286 /* end confdefs.h.  */
26287
26288               #include <unistd.h>
26289               #include <sys/types.h>
26290               #include <sys/ioctl.h>
26291
26292 int
26293 main ()
26294 {
26295
26296               int (*d_ioctl)(int fd, unsigned long int request, ...);
26297               d_ioctl = ::ioctl;
26298
26299   ;
26300   return 0;
26301 }
26302 _ACEOF
26303 if ac_fn_cxx_try_compile "$LINENO"; then :
26304
26305              ba_cv_header_ioctl_req_t=yes
26306
26307 else
26308
26309              ba_cv_header_ioctl_req_t=no
26310
26311
26312 fi
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26314
26315
26316 fi
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26318 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26319 test $ba_cv_header_ioctl_req_t = yes &&
26320 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26321
26322
26323 ac_ext=c
26324 ac_cpp='$CPP $CPPFLAGS'
26325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26328
26329
26330 ac_ext=cpp
26331 ac_cpp='$CXXCPP $CPPFLAGS'
26332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26335
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26337 $as_echo_n "checking for typeof... " >&6; }
26338 if ${ba_cv_have_typeof+:} false; then :
26339   $as_echo_n "(cached) " >&6
26340 else
26341
26342        if test "$cross_compiling" = yes; then :
26343
26344               ba_cv_have_typeof=no
26345
26346
26347 else
26348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26349 /* end confdefs.h.  */
26350
26351               main(){char *a = 0; a = (typeof a)a;}
26352
26353 _ACEOF
26354 if ac_fn_cxx_try_run "$LINENO"; then :
26355
26356               ba_cv_have_typeof=yes
26357
26358 else
26359
26360               ba_cv_have_typeof=no
26361
26362 fi
26363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26364   conftest.$ac_objext conftest.beam conftest.$ac_ext
26365 fi
26366
26367
26368
26369 fi
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26371 $as_echo "$ba_cv_have_typeof" >&6; }
26372 test $ba_cv_have_typeof = yes &&
26373 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26374
26375 ac_ext=c
26376 ac_cpp='$CPP $CPPFLAGS'
26377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26380
26381
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26383 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26384 if ${ac_cv_c_const+:} false; then :
26385   $as_echo_n "(cached) " >&6
26386 else
26387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26388 /* end confdefs.h.  */
26389
26390 int
26391 main ()
26392 {
26393 /* FIXME: Include the comments suggested by Paul. */
26394 #ifndef __cplusplus
26395   /* Ultrix mips cc rejects this.  */
26396   typedef int charset[2];
26397   const charset cs;
26398   /* SunOS 4.1.1 cc rejects this.  */
26399   char const *const *pcpcc;
26400   char **ppc;
26401   /* NEC SVR4.0.2 mips cc rejects this.  */
26402   struct point {int x, y;};
26403   static struct point const zero = {0,0};
26404   /* AIX XL C 1.02.0.0 rejects this.
26405      It does not let you subtract one const X* pointer from another in
26406      an arm of an if-expression whose if-part is not a constant
26407      expression */
26408   const char *g = "string";
26409   pcpcc = &g + (g ? g-g : 0);
26410   /* HPUX 7.0 cc rejects these. */
26411   ++pcpcc;
26412   ppc = (char**) pcpcc;
26413   pcpcc = (char const *const *) ppc;
26414   { /* SCO 3.2v4 cc rejects this.  */
26415     char *t;
26416     char const *s = 0 ? (char *) 0 : (char const *) 0;
26417
26418     *t++ = 0;
26419     if (s) return 0;
26420   }
26421   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26422     int x[] = {25, 17};
26423     const int *foo = &x[0];
26424     ++foo;
26425   }
26426   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26427     typedef const int *iptr;
26428     iptr p = 0;
26429     ++p;
26430   }
26431   { /* AIX XL C 1.02.0.0 rejects this saying
26432        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26433     struct s { int j; const int *ap[3]; };
26434     struct s *b; b->j = 5;
26435   }
26436   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26437     const int foo = 10;
26438     if (!foo) return 0;
26439   }
26440   return !cs[0] && !zero.x;
26441 #endif
26442
26443   ;
26444   return 0;
26445 }
26446 _ACEOF
26447 if ac_fn_c_try_compile "$LINENO"; then :
26448   ac_cv_c_const=yes
26449 else
26450   ac_cv_c_const=no
26451 fi
26452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26453 fi
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26455 $as_echo "$ac_cv_c_const" >&6; }
26456 if test $ac_cv_c_const = no; then
26457
26458 $as_echo "#define const /**/" >>confdefs.h
26459
26460 fi
26461
26462
26463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26464 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26465 if ${ac_cv_c_bigendian+:} false; then :
26466   $as_echo_n "(cached) " >&6
26467 else
26468   ac_cv_c_bigendian=unknown
26469     # See if we're dealing with a universal compiler.
26470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26471 /* end confdefs.h.  */
26472 #ifndef __APPLE_CC__
26473                not a universal capable compiler
26474              #endif
26475              typedef int dummy;
26476
26477 _ACEOF
26478 if ac_fn_c_try_compile "$LINENO"; then :
26479
26480         # Check for potential -arch flags.  It is not universal unless
26481         # there are at least two -arch flags with different values.
26482         ac_arch=
26483         ac_prev=
26484         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26485          if test -n "$ac_prev"; then
26486            case $ac_word in
26487              i?86 | x86_64 | ppc | ppc64)
26488                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26489                  ac_arch=$ac_word
26490                else
26491                  ac_cv_c_bigendian=universal
26492                  break
26493                fi
26494                ;;
26495            esac
26496            ac_prev=
26497          elif test "x$ac_word" = "x-arch"; then
26498            ac_prev=arch
26499          fi
26500        done
26501 fi
26502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26503     if test $ac_cv_c_bigendian = unknown; then
26504       # See if sys/param.h defines the BYTE_ORDER macro.
26505       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26506 /* end confdefs.h.  */
26507 #include <sys/types.h>
26508              #include <sys/param.h>
26509
26510 int
26511 main ()
26512 {
26513 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26514                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26515                      && LITTLE_ENDIAN)
26516               bogus endian macros
26517              #endif
26518
26519   ;
26520   return 0;
26521 }
26522 _ACEOF
26523 if ac_fn_c_try_compile "$LINENO"; then :
26524   # It does; now see whether it defined to BIG_ENDIAN or not.
26525          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26526 /* end confdefs.h.  */
26527 #include <sys/types.h>
26528                 #include <sys/param.h>
26529
26530 int
26531 main ()
26532 {
26533 #if BYTE_ORDER != BIG_ENDIAN
26534                  not big endian
26535                 #endif
26536
26537   ;
26538   return 0;
26539 }
26540 _ACEOF
26541 if ac_fn_c_try_compile "$LINENO"; then :
26542   ac_cv_c_bigendian=yes
26543 else
26544   ac_cv_c_bigendian=no
26545 fi
26546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26547 fi
26548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26549     fi
26550     if test $ac_cv_c_bigendian = unknown; then
26551       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26552       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26553 /* end confdefs.h.  */
26554 #include <limits.h>
26555
26556 int
26557 main ()
26558 {
26559 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26560               bogus endian macros
26561              #endif
26562
26563   ;
26564   return 0;
26565 }
26566 _ACEOF
26567 if ac_fn_c_try_compile "$LINENO"; then :
26568   # It does; now see whether it defined to _BIG_ENDIAN or not.
26569          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26570 /* end confdefs.h.  */
26571 #include <limits.h>
26572
26573 int
26574 main ()
26575 {
26576 #ifndef _BIG_ENDIAN
26577                  not big endian
26578                 #endif
26579
26580   ;
26581   return 0;
26582 }
26583 _ACEOF
26584 if ac_fn_c_try_compile "$LINENO"; then :
26585   ac_cv_c_bigendian=yes
26586 else
26587   ac_cv_c_bigendian=no
26588 fi
26589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26590 fi
26591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26592     fi
26593     if test $ac_cv_c_bigendian = unknown; then
26594       # Compile a test program.
26595       if test "$cross_compiling" = yes; then :
26596   # Try to guess by grepping values from an object file.
26597          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26598 /* end confdefs.h.  */
26599 short int ascii_mm[] =
26600                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26601                 short int ascii_ii[] =
26602                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26603                 int use_ascii (int i) {
26604                   return ascii_mm[i] + ascii_ii[i];
26605                 }
26606                 short int ebcdic_ii[] =
26607                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26608                 short int ebcdic_mm[] =
26609                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26610                 int use_ebcdic (int i) {
26611                   return ebcdic_mm[i] + ebcdic_ii[i];
26612                 }
26613                 extern int foo;
26614
26615 int
26616 main ()
26617 {
26618 return use_ascii (foo) == use_ebcdic (foo);
26619   ;
26620   return 0;
26621 }
26622 _ACEOF
26623 if ac_fn_c_try_compile "$LINENO"; then :
26624   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26625               ac_cv_c_bigendian=yes
26626             fi
26627             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26628               if test "$ac_cv_c_bigendian" = unknown; then
26629                 ac_cv_c_bigendian=no
26630               else
26631                 # finding both strings is unlikely to happen, but who knows?
26632                 ac_cv_c_bigendian=unknown
26633               fi
26634             fi
26635 fi
26636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26637 else
26638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26639 /* end confdefs.h.  */
26640 $ac_includes_default
26641 int
26642 main ()
26643 {
26644
26645              /* Are we little or big endian?  From Harbison&Steele.  */
26646              union
26647              {
26648                long int l;
26649                char c[sizeof (long int)];
26650              } u;
26651              u.l = 1;
26652              return u.c[sizeof (long int) - 1] == 1;
26653
26654   ;
26655   return 0;
26656 }
26657 _ACEOF
26658 if ac_fn_c_try_run "$LINENO"; then :
26659   ac_cv_c_bigendian=no
26660 else
26661   ac_cv_c_bigendian=yes
26662 fi
26663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26664   conftest.$ac_objext conftest.beam conftest.$ac_ext
26665 fi
26666
26667     fi
26668 fi
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26670 $as_echo "$ac_cv_c_bigendian" >&6; }
26671  case $ac_cv_c_bigendian in #(
26672    yes)
26673
26674 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26675 ;; #(
26676    no)
26677
26678 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26679  ;; #(
26680    universal)
26681
26682 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26683
26684      ;; #(
26685    *)
26686      as_fn_error $? "unknown endianness
26687  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26688  esac
26689
26690
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26692 $as_echo_n "checking how to get filesystem type... " >&6; }
26693 fstype=no
26694 # The order of these tests is important.
26695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26696 /* end confdefs.h.  */
26697
26698        #include <sys/statvfs.h>
26699        #include <sys/fstyp.h>
26700
26701 _ACEOF
26702 if ac_fn_c_try_cpp "$LINENO"; then :
26703   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26704  fstype=SVR4
26705
26706 fi
26707 rm -f conftest.err conftest.i conftest.$ac_ext
26708 if test $fstype = no; then
26709    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26710 /* end confdefs.h.  */
26711
26712           #include <sys/statfs.h>
26713           #include <sys/fstyp.h>
26714
26715 _ACEOF
26716 if ac_fn_c_try_cpp "$LINENO"; then :
26717   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26718  fstype=SVR3
26719
26720 fi
26721 rm -f conftest.err conftest.i conftest.$ac_ext
26722 fi
26723 if test $fstype = no; then
26724    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26725 /* end confdefs.h.  */
26726
26727           #include <sys/statfs.h>
26728           #include <sys/vmount.h>
26729
26730 _ACEOF
26731 if ac_fn_c_try_cpp "$LINENO"; then :
26732   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26733  fstype=AIX
26734
26735 fi
26736 rm -f conftest.err conftest.i conftest.$ac_ext
26737 fi
26738 if test $fstype = no; then
26739    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26740 /* end confdefs.h.  */
26741
26742           #include <mntent.h>
26743
26744 _ACEOF
26745 if ac_fn_c_try_cpp "$LINENO"; then :
26746   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26747  fstype=4.3BSD
26748
26749 fi
26750 rm -f conftest.err conftest.i conftest.$ac_ext
26751 fi
26752 if test $fstype = no; then
26753    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26754 /* end confdefs.h.  */
26755 #include <sys/mount.h>
26756
26757 _ACEOF
26758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26759   $EGREP "f_type;" >/dev/null 2>&1; then :
26760   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26761  fstype=4.4BSD/OSF1
26762 fi
26763 rm -f conftest*
26764
26765 fi
26766 if test $fstype = no; then
26767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768 /* end confdefs.h.  */
26769
26770           #include <sys/mount.h>
26771           #include <sys/fs_types.h>
26772
26773 _ACEOF
26774 if ac_fn_c_try_cpp "$LINENO"; then :
26775   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26776  fstype=Ultrix
26777
26778 fi
26779 rm -f conftest.err conftest.i conftest.$ac_ext
26780 fi
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26782 $as_echo "$fstype" >&6; }
26783
26784 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26785 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26786
26787 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26788
26789 fi
26790
26791
26792
26793 ac_ext=cpp
26794 ac_cpp='$CXXCPP $CPPFLAGS'
26795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26798
26799 for ac_func in backtrace
26800 do :
26801   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26802 if test "x$ac_cv_func_backtrace" = xyes; then :
26803   cat >>confdefs.h <<_ACEOF
26804 #define HAVE_BACKTRACE 1
26805 _ACEOF
26806
26807 fi
26808 done
26809
26810 ac_ext=c
26811 ac_cpp='$CPP $CPPFLAGS'
26812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26815
26816
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26818 $as_echo_n "checking return type of signal handlers... " >&6; }
26819 if ${ac_cv_type_signal+:} false; then :
26820   $as_echo_n "(cached) " >&6
26821 else
26822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26823 /* end confdefs.h.  */
26824 #include <sys/types.h>
26825 #include <signal.h>
26826
26827 int
26828 main ()
26829 {
26830 return *(signal (0, 0)) (0) == 1;
26831   ;
26832   return 0;
26833 }
26834 _ACEOF
26835 if ac_fn_c_try_compile "$LINENO"; then :
26836   ac_cv_type_signal=int
26837 else
26838   ac_cv_type_signal=void
26839 fi
26840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26841 fi
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26843 $as_echo "$ac_cv_type_signal" >&6; }
26844
26845 cat >>confdefs.h <<_ACEOF
26846 #define RETSIGTYPE $ac_cv_type_signal
26847 _ACEOF
26848
26849
26850
26851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26852 $as_echo_n "checking for type of signal functions... " >&6; }
26853   if ${bash_cv_signal_vintage+:} false; then :
26854   $as_echo_n "(cached) " >&6
26855 else
26856
26857     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26858 /* end confdefs.h.  */
26859 #include <signal.h>
26860 int
26861 main ()
26862 {
26863
26864       sigset_t ss;
26865       struct sigaction sa;
26866       sigemptyset(&ss); sigsuspend(&ss);
26867       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26868       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26869
26870   ;
26871   return 0;
26872 }
26873 _ACEOF
26874 if ac_fn_c_try_link "$LINENO"; then :
26875   bash_cv_signal_vintage="posix"
26876 else
26877
26878       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879 /* end confdefs.h.  */
26880 #include <signal.h>
26881 int
26882 main ()
26883 {
26884
26885           int mask = sigmask(SIGINT);
26886           sigsetmask(mask); sigblock(mask); sigpause(mask);
26887
26888   ;
26889   return 0;
26890 }
26891 _ACEOF
26892 if ac_fn_c_try_link "$LINENO"; then :
26893   bash_cv_signal_vintage="4.2bsd"
26894 else
26895
26896         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26897 /* end confdefs.h.  */
26898
26899           #include <signal.h>
26900           RETSIGTYPE foo() { }
26901 int
26902 main ()
26903 {
26904
26905                   int mask = sigmask(SIGINT);
26906                   sigset(SIGINT, foo); sigrelse(SIGINT);
26907                   sighold(SIGINT); sigpause(SIGINT);
26908
26909   ;
26910   return 0;
26911 }
26912 _ACEOF
26913 if ac_fn_c_try_link "$LINENO"; then :
26914   bash_cv_signal_vintage="svr3"
26915 else
26916   bash_cv_signal_vintage="v7"
26917
26918 fi
26919 rm -f core conftest.err conftest.$ac_objext \
26920     conftest$ac_exeext conftest.$ac_ext
26921
26922 fi
26923 rm -f core conftest.err conftest.$ac_objext \
26924     conftest$ac_exeext conftest.$ac_ext
26925
26926 fi
26927 rm -f core conftest.err conftest.$ac_objext \
26928     conftest$ac_exeext conftest.$ac_ext
26929
26930 fi
26931
26932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26933 $as_echo "$bash_cv_signal_vintage" >&6; }
26934   if test "$bash_cv_signal_vintage" = "posix"; then
26935     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26936
26937   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26938     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26939
26940   elif test "$bash_cv_signal_vintage" = "svr3"; then
26941     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26942
26943   fi
26944
26945 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26946 if test "x$ac_cv_type_mode_t" = xyes; then :
26947
26948 else
26949
26950 cat >>confdefs.h <<_ACEOF
26951 #define mode_t int
26952 _ACEOF
26953
26954 fi
26955
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26957 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26958 if ${ac_cv_type_uid_t+:} false; then :
26959   $as_echo_n "(cached) " >&6
26960 else
26961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h.  */
26963 #include <sys/types.h>
26964
26965 _ACEOF
26966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26967   $EGREP "uid_t" >/dev/null 2>&1; then :
26968   ac_cv_type_uid_t=yes
26969 else
26970   ac_cv_type_uid_t=no
26971 fi
26972 rm -f conftest*
26973
26974 fi
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26976 $as_echo "$ac_cv_type_uid_t" >&6; }
26977 if test $ac_cv_type_uid_t = no; then
26978
26979 $as_echo "#define uid_t int" >>confdefs.h
26980
26981
26982 $as_echo "#define gid_t int" >>confdefs.h
26983
26984 fi
26985
26986 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26987 if test "x$ac_cv_type_size_t" = xyes; then :
26988
26989 else
26990
26991 cat >>confdefs.h <<_ACEOF
26992 #define size_t unsigned int
26993 _ACEOF
26994
26995 fi
26996
26997 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26998 if test "x$ac_cv_type_pid_t" = xyes; then :
26999
27000 else
27001
27002 cat >>confdefs.h <<_ACEOF
27003 #define pid_t int
27004 _ACEOF
27005
27006 fi
27007
27008 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27009 if test "x$ac_cv_type_off_t" = xyes; then :
27010
27011 else
27012
27013 cat >>confdefs.h <<_ACEOF
27014 #define off_t long int
27015 _ACEOF
27016
27017 fi
27018
27019
27020   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27021 if test "x$ac_cv_type_intptr_t" = xyes; then :
27022
27023 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27024
27025 else
27026   for ac_type in 'int' 'long int' 'long long int'; do
27027        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27028 /* end confdefs.h.  */
27029 $ac_includes_default
27030 int
27031 main ()
27032 {
27033 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27034 test_array [0] = 0
27035
27036   ;
27037   return 0;
27038 }
27039 _ACEOF
27040 if ac_fn_c_try_compile "$LINENO"; then :
27041
27042 cat >>confdefs.h <<_ACEOF
27043 #define intptr_t $ac_type
27044 _ACEOF
27045
27046           ac_type=
27047 fi
27048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27049        test -z "$ac_type" && break
27050      done
27051 fi
27052
27053
27054
27055   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27056 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27057
27058 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27059
27060 else
27061   for ac_type in 'unsigned int' 'unsigned long int' \
27062         'unsigned long long int'; do
27063        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27064 /* end confdefs.h.  */
27065 $ac_includes_default
27066 int
27067 main ()
27068 {
27069 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27070 test_array [0] = 0
27071
27072   ;
27073   return 0;
27074 }
27075 _ACEOF
27076 if ac_fn_c_try_compile "$LINENO"; then :
27077
27078 cat >>confdefs.h <<_ACEOF
27079 #define uintptr_t $ac_type
27080 _ACEOF
27081
27082           ac_type=
27083 fi
27084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27085        test -z "$ac_type" && break
27086      done
27087 fi
27088
27089
27090 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27091 if test "x$ac_cv_type_ino_t" = xyes; then :
27092
27093 else
27094
27095 cat >>confdefs.h <<_ACEOF
27096 #define ino_t unsigned long
27097 _ACEOF
27098
27099 fi
27100
27101 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27102 if test "x$ac_cv_type_dev_t" = xyes; then :
27103
27104 else
27105
27106 cat >>confdefs.h <<_ACEOF
27107 #define dev_t unsigned long
27108 _ACEOF
27109
27110 fi
27111
27112 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27113 if test "x$ac_cv_type_daddr_t" = xyes; then :
27114
27115 else
27116
27117 cat >>confdefs.h <<_ACEOF
27118 #define daddr_t long
27119 _ACEOF
27120
27121 fi
27122
27123 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27124 if test "x$ac_cv_type_major_t" = xyes; then :
27125
27126 else
27127
27128 cat >>confdefs.h <<_ACEOF
27129 #define major_t int
27130 _ACEOF
27131
27132 fi
27133
27134 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27135 if test "x$ac_cv_type_minor_t" = xyes; then :
27136
27137 else
27138
27139 cat >>confdefs.h <<_ACEOF
27140 #define minor_t int
27141 _ACEOF
27142
27143 fi
27144
27145 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27146 if test "x$ac_cv_type_ssize_t" = xyes; then :
27147
27148 else
27149
27150 cat >>confdefs.h <<_ACEOF
27151 #define ssize_t int
27152 _ACEOF
27153
27154 fi
27155
27156 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27157 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27158
27159 cat >>confdefs.h <<_ACEOF
27160 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27161 _ACEOF
27162
27163
27164 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27165
27166 else
27167   case " $LIBOBJS " in
27168   *" fileblocks.$ac_objext "* ) ;;
27169   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27170  ;;
27171 esac
27172
27173 fi
27174
27175
27176 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27177 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27178
27179 cat >>confdefs.h <<_ACEOF
27180 #define HAVE_STRUCT_STAT_ST_RDEV 1
27181 _ACEOF
27182
27183
27184 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27185
27186 fi
27187
27188
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27190 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27191 if ${ac_cv_struct_tm+:} false; then :
27192   $as_echo_n "(cached) " >&6
27193 else
27194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27195 /* end confdefs.h.  */
27196 #include <sys/types.h>
27197 #include <time.h>
27198
27199 int
27200 main ()
27201 {
27202 struct tm tm;
27203                                      int *p = &tm.tm_sec;
27204                                      return !p;
27205   ;
27206   return 0;
27207 }
27208 _ACEOF
27209 if ac_fn_c_try_compile "$LINENO"; then :
27210   ac_cv_struct_tm=time.h
27211 else
27212   ac_cv_struct_tm=sys/time.h
27213 fi
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27215 fi
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27217 $as_echo "$ac_cv_struct_tm" >&6; }
27218 if test $ac_cv_struct_tm = sys/time.h; then
27219
27220 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27221
27222 fi
27223
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27225 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27226 if ${ac_cv_c_const+:} false; then :
27227   $as_echo_n "(cached) " >&6
27228 else
27229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27230 /* end confdefs.h.  */
27231
27232 int
27233 main ()
27234 {
27235 /* FIXME: Include the comments suggested by Paul. */
27236 #ifndef __cplusplus
27237   /* Ultrix mips cc rejects this.  */
27238   typedef int charset[2];
27239   const charset cs;
27240   /* SunOS 4.1.1 cc rejects this.  */
27241   char const *const *pcpcc;
27242   char **ppc;
27243   /* NEC SVR4.0.2 mips cc rejects this.  */
27244   struct point {int x, y;};
27245   static struct point const zero = {0,0};
27246   /* AIX XL C 1.02.0.0 rejects this.
27247      It does not let you subtract one const X* pointer from another in
27248      an arm of an if-expression whose if-part is not a constant
27249      expression */
27250   const char *g = "string";
27251   pcpcc = &g + (g ? g-g : 0);
27252   /* HPUX 7.0 cc rejects these. */
27253   ++pcpcc;
27254   ppc = (char**) pcpcc;
27255   pcpcc = (char const *const *) ppc;
27256   { /* SCO 3.2v4 cc rejects this.  */
27257     char *t;
27258     char const *s = 0 ? (char *) 0 : (char const *) 0;
27259
27260     *t++ = 0;
27261     if (s) return 0;
27262   }
27263   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27264     int x[] = {25, 17};
27265     const int *foo = &x[0];
27266     ++foo;
27267   }
27268   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27269     typedef const int *iptr;
27270     iptr p = 0;
27271     ++p;
27272   }
27273   { /* AIX XL C 1.02.0.0 rejects this saying
27274        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27275     struct s { int j; const int *ap[3]; };
27276     struct s *b; b->j = 5;
27277   }
27278   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27279     const int foo = 10;
27280     if (!foo) return 0;
27281   }
27282   return !cs[0] && !zero.x;
27283 #endif
27284
27285   ;
27286   return 0;
27287 }
27288 _ACEOF
27289 if ac_fn_c_try_compile "$LINENO"; then :
27290   ac_cv_c_const=yes
27291 else
27292   ac_cv_c_const=no
27293 fi
27294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27295 fi
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27297 $as_echo "$ac_cv_c_const" >&6; }
27298 if test $ac_cv_c_const = no; then
27299
27300 $as_echo "#define const /**/" >>confdefs.h
27301
27302 fi
27303
27304
27305 # The cast to long int works around a bug in the HP C Compiler
27306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27308 # This bug is HP SR number 8606223364.
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27310 $as_echo_n "checking size of char... " >&6; }
27311 if ${ac_cv_sizeof_char+:} false; then :
27312   $as_echo_n "(cached) " >&6
27313 else
27314   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27315
27316 else
27317   if test "$ac_cv_type_char" = yes; then
27318      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27320 as_fn_error 77 "cannot compute sizeof (char)
27321 See \`config.log' for more details" "$LINENO" 5; }
27322    else
27323      ac_cv_sizeof_char=0
27324    fi
27325 fi
27326
27327 fi
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27329 $as_echo "$ac_cv_sizeof_char" >&6; }
27330
27331
27332
27333 cat >>confdefs.h <<_ACEOF
27334 #define SIZEOF_CHAR $ac_cv_sizeof_char
27335 _ACEOF
27336
27337
27338 # The cast to long int works around a bug in the HP C Compiler
27339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27341 # This bug is HP SR number 8606223364.
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27343 $as_echo_n "checking size of short int... " >&6; }
27344 if ${ac_cv_sizeof_short_int+:} false; then :
27345   $as_echo_n "(cached) " >&6
27346 else
27347   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27348
27349 else
27350   if test "$ac_cv_type_short_int" = yes; then
27351      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27353 as_fn_error 77 "cannot compute sizeof (short int)
27354 See \`config.log' for more details" "$LINENO" 5; }
27355    else
27356      ac_cv_sizeof_short_int=0
27357    fi
27358 fi
27359
27360 fi
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27362 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27363
27364
27365
27366 cat >>confdefs.h <<_ACEOF
27367 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27368 _ACEOF
27369
27370
27371 # The cast to long int works around a bug in the HP C Compiler
27372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27374 # This bug is HP SR number 8606223364.
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27376 $as_echo_n "checking size of int... " >&6; }
27377 if ${ac_cv_sizeof_int+:} false; then :
27378   $as_echo_n "(cached) " >&6
27379 else
27380   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27381
27382 else
27383   if test "$ac_cv_type_int" = yes; then
27384      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27386 as_fn_error 77 "cannot compute sizeof (int)
27387 See \`config.log' for more details" "$LINENO" 5; }
27388    else
27389      ac_cv_sizeof_int=0
27390    fi
27391 fi
27392
27393 fi
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27395 $as_echo "$ac_cv_sizeof_int" >&6; }
27396
27397
27398
27399 cat >>confdefs.h <<_ACEOF
27400 #define SIZEOF_INT $ac_cv_sizeof_int
27401 _ACEOF
27402
27403
27404 # The cast to long int works around a bug in the HP C Compiler
27405 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27406 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27407 # This bug is HP SR number 8606223364.
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27409 $as_echo_n "checking size of long int... " >&6; }
27410 if ${ac_cv_sizeof_long_int+:} false; then :
27411   $as_echo_n "(cached) " >&6
27412 else
27413   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27414
27415 else
27416   if test "$ac_cv_type_long_int" = yes; then
27417      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27419 as_fn_error 77 "cannot compute sizeof (long int)
27420 See \`config.log' for more details" "$LINENO" 5; }
27421    else
27422      ac_cv_sizeof_long_int=0
27423    fi
27424 fi
27425
27426 fi
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27428 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27429
27430
27431
27432 cat >>confdefs.h <<_ACEOF
27433 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27434 _ACEOF
27435
27436
27437 # The cast to long int works around a bug in the HP C Compiler
27438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27440 # This bug is HP SR number 8606223364.
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27442 $as_echo_n "checking size of long long int... " >&6; }
27443 if ${ac_cv_sizeof_long_long_int+:} false; then :
27444   $as_echo_n "(cached) " >&6
27445 else
27446   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27447
27448 else
27449   if test "$ac_cv_type_long_long_int" = yes; then
27450      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27452 as_fn_error 77 "cannot compute sizeof (long long int)
27453 See \`config.log' for more details" "$LINENO" 5; }
27454    else
27455      ac_cv_sizeof_long_long_int=0
27456    fi
27457 fi
27458
27459 fi
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27461 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27462
27463
27464
27465 cat >>confdefs.h <<_ACEOF
27466 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27467 _ACEOF
27468
27469
27470 # The cast to long int works around a bug in the HP C Compiler
27471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27473 # This bug is HP SR number 8606223364.
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27475 $as_echo_n "checking size of int *... " >&6; }
27476 if ${ac_cv_sizeof_int_p+:} false; then :
27477   $as_echo_n "(cached) " >&6
27478 else
27479   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27480
27481 else
27482   if test "$ac_cv_type_int_p" = yes; then
27483      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27485 as_fn_error 77 "cannot compute sizeof (int *)
27486 See \`config.log' for more details" "$LINENO" 5; }
27487    else
27488      ac_cv_sizeof_int_p=0
27489    fi
27490 fi
27491
27492 fi
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27494 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27495
27496
27497
27498 cat >>confdefs.h <<_ACEOF
27499 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27500 _ACEOF
27501
27502
27503
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27505 $as_echo_n "checking for u_int type... " >&6; }
27506 if ${ac_cv_have_u_int+:} false; then :
27507   $as_echo_n "(cached) " >&6
27508 else
27509
27510        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27511 /* end confdefs.h.  */
27512
27513               #include <sys/types.h>
27514
27515 int
27516 main ()
27517 {
27518
27519               u_int a; a = 1;
27520
27521   ;
27522   return 0;
27523 }
27524 _ACEOF
27525 if ac_fn_c_try_compile "$LINENO"; then :
27526
27527               ac_cv_have_u_int="yes"
27528
27529 else
27530
27531               ac_cv_have_u_int="no"
27532
27533
27534 fi
27535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27536
27537
27538 fi
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27540 $as_echo "$ac_cv_have_u_int" >&6; }
27541 if test "x$ac_cv_have_u_int" = "xyes" ; then
27542    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27543
27544    have_u_int=1
27545 fi
27546
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27548 $as_echo_n "checking for intmax_t type... " >&6; }
27549 if ${ac_cv_have_intmax_t+:} false; then :
27550   $as_echo_n "(cached) " >&6
27551 else
27552
27553        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27554 /* end confdefs.h.  */
27555
27556               #include <sys/types.h>
27557
27558 int
27559 main ()
27560 {
27561
27562               intmax_t a; a = 1;
27563
27564   ;
27565   return 0;
27566 }
27567 _ACEOF
27568 if ac_fn_c_try_compile "$LINENO"; then :
27569
27570               ac_cv_have_intmax_t="yes"
27571
27572 else
27573
27574               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27575 /* end confdefs.h.  */
27576
27577                      #include <stdint.h>
27578
27579 int
27580 main ()
27581 {
27582
27583                      intmax_t a; a = 1;
27584
27585   ;
27586   return 0;
27587 }
27588 _ACEOF
27589 if ac_fn_c_try_compile "$LINENO"; then :
27590
27591                      ac_cv_have_intmax_t="yes"
27592
27593 else
27594
27595                      ac_cv_have_intmax_t="no"
27596
27597
27598 fi
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27600
27601
27602 fi
27603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27604
27605
27606 fi
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27608 $as_echo "$ac_cv_have_intmax_t" >&6; }
27609 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27610    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27611
27612    have_intmax_t=1
27613 fi
27614
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27616 $as_echo_n "checking for u_intmax_t type... " >&6; }
27617 if ${ac_cv_have_u_intmax_t+:} false; then :
27618   $as_echo_n "(cached) " >&6
27619 else
27620
27621        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27622 /* end confdefs.h.  */
27623
27624               #include <sys/types.h>
27625
27626 int
27627 main ()
27628 {
27629
27630               u_intmax_t a; a = 1;
27631
27632   ;
27633   return 0;
27634 }
27635 _ACEOF
27636 if ac_fn_c_try_compile "$LINENO"; then :
27637
27638               ac_cv_have_u_intmax_t="yes"
27639
27640 else
27641
27642               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27643 /* end confdefs.h.  */
27644
27645                      #include <stdint.h>
27646
27647 int
27648 main ()
27649 {
27650
27651                     u_intmax_t a; a = 1;
27652
27653   ;
27654   return 0;
27655 }
27656 _ACEOF
27657 if ac_fn_c_try_compile "$LINENO"; then :
27658
27659                     ac_cv_have_u_intmax_t="yes"
27660
27661 else
27662
27663                     ac_cv_have_u_intmax_t="no"
27664
27665
27666 fi
27667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27668
27669
27670 fi
27671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27672
27673
27674 fi
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27676 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27677 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27678    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27679
27680    have_u_intmax_t=1
27681 fi
27682
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27684 $as_echo_n "checking for intXX_t types... " >&6; }
27685 if ${ac_cv_have_intxx_t+:} false; then :
27686   $as_echo_n "(cached) " >&6
27687 else
27688
27689        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27690 /* end confdefs.h.  */
27691
27692               #include <sys/types.h>
27693
27694 int
27695 main ()
27696 {
27697
27698               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27699
27700   ;
27701   return 0;
27702 }
27703 _ACEOF
27704 if ac_fn_c_try_compile "$LINENO"; then :
27705
27706               ac_cv_have_intxx_t="yes"
27707
27708 else
27709
27710               ac_cv_have_intxx_t="no"
27711
27712
27713 fi
27714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27715
27716
27717 fi
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27719 $as_echo "$ac_cv_have_intxx_t" >&6; }
27720 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27721    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27722
27723    have_intxx_t=1
27724 fi
27725
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27727 $as_echo_n "checking for int64_t type... " >&6; }
27728 if ${ac_cv_have_int64_t+:} false; then :
27729   $as_echo_n "(cached) " >&6
27730 else
27731
27732        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27733 /* end confdefs.h.  */
27734
27735               #include <sys/types.h>
27736
27737 int
27738 main ()
27739 {
27740
27741               int64_t a; a = 1;
27742
27743   ;
27744   return 0;
27745 }
27746 _ACEOF
27747 if ac_fn_c_try_compile "$LINENO"; then :
27748
27749               ac_cv_have_int64_t="yes"
27750
27751 else
27752
27753               ac_cv_have_int64_t="no"
27754
27755
27756 fi
27757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27758
27759
27760 fi
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27762 $as_echo "$ac_cv_have_int64_t" >&6; }
27763 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27764    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27765
27766    have_int64_t=1
27767 fi
27768
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27770 $as_echo_n "checking for u_intXX_t types... " >&6; }
27771 if ${ac_cv_have_u_intxx_t+:} false; then :
27772   $as_echo_n "(cached) " >&6
27773 else
27774
27775        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27776 /* end confdefs.h.  */
27777
27778               #include <sys/types.h>
27779
27780 int
27781 main ()
27782 {
27783
27784               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27785
27786   ;
27787   return 0;
27788 }
27789 _ACEOF
27790 if ac_fn_c_try_compile "$LINENO"; then :
27791
27792              ac_cv_have_u_intxx_t="yes"
27793
27794 else
27795
27796              ac_cv_have_u_intxx_t="no"
27797
27798
27799 fi
27800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27801
27802
27803 fi
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27805 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27806 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27807    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27808
27809    have_u_intxx_t=1
27810 fi
27811
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27813 $as_echo_n "checking for u_int64_t types... " >&6; }
27814 if ${ac_cv_have_u_int64_t+:} false; then :
27815   $as_echo_n "(cached) " >&6
27816 else
27817
27818        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27819 /* end confdefs.h.  */
27820
27821               #include <sys/types.h>
27822
27823 int
27824 main ()
27825 {
27826
27827               u_int64_t a; a = 1;
27828
27829   ;
27830   return 0;
27831 }
27832 _ACEOF
27833 if ac_fn_c_try_compile "$LINENO"; then :
27834
27835              ac_cv_have_u_int64_t="yes"
27836
27837 else
27838
27839              ac_cv_have_u_int64_t="no"
27840
27841
27842 fi
27843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27844
27845
27846 fi
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27848 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27849 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27850    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27851
27852    have_u_int64_t=1
27853 fi
27854
27855 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27856     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27857 then
27858    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27859 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27860    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27861 /* end confdefs.h.  */
27862
27863           #include <sys/bitypes.h>
27864
27865 int
27866 main ()
27867 {
27868
27869           int8_t a; int16_t b; int32_t c;
27870           u_int8_t e; u_int16_t f; u_int32_t g;
27871           a = b = c = e = f = g = 1;
27872
27873   ;
27874   return 0;
27875 }
27876 _ACEOF
27877 if ac_fn_c_try_compile "$LINENO"; then :
27878
27879           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27880
27881           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27882
27883           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27884
27885           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27886 $as_echo "yes" >&6; }
27887
27888 else
27889
27890           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27891 $as_echo "no" >&6; }
27892
27893
27894 fi
27895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27896 fi
27897
27898 if test -z "$have_u_intxx_t" ; then
27899    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27900 $as_echo_n "checking for uintXX_t types... " >&6; }
27901 if ${ac_cv_have_uintxx_t+:} false; then :
27902   $as_echo_n "(cached) " >&6
27903 else
27904
27905           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27906 /* end confdefs.h.  */
27907
27908                  #include <sys/types.h>
27909
27910 int
27911 main ()
27912 {
27913
27914                  uint8_t a; uint16_t b;
27915                  uint32_t c; a = b = c = 1;
27916
27917   ;
27918   return 0;
27919 }
27920 _ACEOF
27921 if ac_fn_c_try_compile "$LINENO"; then :
27922
27923                 ac_cv_have_uintxx_t="yes"
27924
27925 else
27926
27927                 ac_cv_have_uintxx_t="no"
27928
27929
27930 fi
27931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27932
27933
27934 fi
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27936 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27937    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27938       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27939
27940    fi
27941 fi
27942
27943 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27944     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27945 then
27946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27947 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27948    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27949 /* end confdefs.h.  */
27950
27951           #include <sys/bitypes.h>
27952
27953 int
27954 main ()
27955 {
27956
27957           int64_t a; u_int64_t b;
27958           a = b = 1;
27959
27960   ;
27961   return 0;
27962 }
27963 _ACEOF
27964 if ac_fn_c_try_compile "$LINENO"; then :
27965
27966           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27967
27968           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27969
27970           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27971 $as_echo "yes" >&6; }
27972
27973 else
27974
27975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27976 $as_echo "no" >&6; }
27977
27978
27979 fi
27980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27981 fi
27982
27983 if (test -z "$have_uintxx_t" && \
27984     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27985 then
27986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27987 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27988    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27989 /* end confdefs.h.  */
27990
27991           #include <sys/bitypes.h>
27992
27993 int
27994 main ()
27995 {
27996
27997           uint8_t a; uint16_t b;
27998           uint32_t c; a = b = c = 1;
27999
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 if ac_fn_c_try_compile "$LINENO"; then :
28005
28006           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28007
28008           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28009 $as_echo "yes" >&6; }
28010
28011 else
28012
28013           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28014 $as_echo "no" >&6; }
28015
28016
28017 fi
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28019 fi
28020
28021 for ac_func in \
28022    fork \
28023    getcwd \
28024    gethostname \
28025    getpid \
28026    gettimeofday \
28027    setpgid \
28028    setpgrp \
28029    setsid \
28030    signal \
28031    strerror \
28032    strncmp \
28033    strncpy \
28034    vfprintf \
28035
28036 do :
28037   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28040   cat >>confdefs.h <<_ACEOF
28041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28042 _ACEOF
28043
28044 else
28045   echo 'configure: cannot find needed function.'; exit 1
28046
28047 fi
28048 done
28049
28050
28051 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28052
28053 "
28054 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28055
28056 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28057
28058 fi
28059
28060
28061 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28062 if test "x$ac_cv_func_closefrom" = xyes; then :
28063
28064 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28065
28066 fi
28067
28068 for ac_func in getpagesize
28069 do :
28070   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28071 if test "x$ac_cv_func_getpagesize" = xyes; then :
28072   cat >>confdefs.h <<_ACEOF
28073 #define HAVE_GETPAGESIZE 1
28074 _ACEOF
28075
28076 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28077
28078 fi
28079 done
28080
28081 for ac_func in malloc_trim
28082 do :
28083   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28084 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28085   cat >>confdefs.h <<_ACEOF
28086 #define HAVE_MALLOC_TRIM 1
28087 _ACEOF
28088
28089 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28090
28091 fi
28092 done
28093
28094
28095 for ac_func in fchdir
28096 do :
28097   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28098 if test "x$ac_cv_func_fchdir" = xyes; then :
28099   cat >>confdefs.h <<_ACEOF
28100 #define HAVE_FCHDIR 1
28101 _ACEOF
28102  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28103
28104 fi
28105 done
28106
28107 for ac_func in strtoll
28108 do :
28109   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28110 if test "x$ac_cv_func_strtoll" = xyes; then :
28111   cat >>confdefs.h <<_ACEOF
28112 #define HAVE_STRTOLL 1
28113 _ACEOF
28114  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28115
28116 fi
28117 done
28118
28119 for ac_func in posix_fadvise
28120 do :
28121   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28122 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28123   cat >>confdefs.h <<_ACEOF
28124 #define HAVE_POSIX_FADVISE 1
28125 _ACEOF
28126
28127 fi
28128 done
28129
28130 for ac_func in fdatasync
28131 do :
28132   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28133 if test "x$ac_cv_func_fdatasync" = xyes; then :
28134   cat >>confdefs.h <<_ACEOF
28135 #define HAVE_FDATASYNC 1
28136 _ACEOF
28137
28138 fi
28139 done
28140
28141
28142 for ac_func in chflags
28143 do :
28144   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28145 if test "x$ac_cv_func_chflags" = xyes; then :
28146   cat >>confdefs.h <<_ACEOF
28147 #define HAVE_CHFLAGS 1
28148 _ACEOF
28149
28150 fi
28151 done
28152
28153
28154 for ac_func in snprintf vsnprintf gethostid fseeko
28155 do :
28156   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28158 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28159   cat >>confdefs.h <<_ACEOF
28160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28161 _ACEOF
28162
28163 fi
28164 done
28165
28166
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28168 $as_echo_n "checking for va_copy... " >&6; }
28169 if ${ba_cv_va_copy+:} false; then :
28170   $as_echo_n "(cached) " >&6
28171 else
28172
28173        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28174 /* end confdefs.h.  */
28175
28176               #include <stdarg.h>
28177               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28178               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28179
28180 int
28181 main ()
28182 {
28183
28184               call_use_va_copy(1,2,3)
28185
28186   ;
28187   return 0;
28188 }
28189 _ACEOF
28190 if ac_fn_c_try_link "$LINENO"; then :
28191
28192               ba_cv_va_copy=yes
28193
28194 else
28195
28196               ba_cv_va_copy=no
28197
28198
28199 fi
28200 rm -f core conftest.err conftest.$ac_objext \
28201     conftest$ac_exeext conftest.$ac_ext
28202
28203
28204 fi
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28206 $as_echo "$ba_cv_va_copy" >&6; }
28207 test $ba_cv_va_copy = yes &&
28208 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28209
28210
28211 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28212 do :
28213   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28216   cat >>confdefs.h <<_ACEOF
28217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28218 _ACEOF
28219
28220 fi
28221 done
28222
28223
28224 # If resolver functions are not in libc check for -lnsl or -lresolv.
28225 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28226 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28228 $as_echo "using libc's resolver" >&6; }
28229 else
28230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28231 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28232 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28233   $as_echo_n "(cached) " >&6
28234 else
28235   ac_check_lib_save_LIBS=$LIBS
28236 LIBS="-lnsl  $LIBS"
28237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28238 /* end confdefs.h.  */
28239
28240 /* Override any GCC internal prototype to avoid an error.
28241    Use char because int might match the return type of a GCC
28242    builtin and then its argument prototype would still apply.  */
28243 #ifdef __cplusplus
28244 extern "C"
28245 #endif
28246 char gethostbyname_r ();
28247 int
28248 main ()
28249 {
28250 return gethostbyname_r ();
28251   ;
28252   return 0;
28253 }
28254 _ACEOF
28255 if ac_fn_c_try_link "$LINENO"; then :
28256   ac_cv_lib_nsl_gethostbyname_r=yes
28257 else
28258   ac_cv_lib_nsl_gethostbyname_r=no
28259 fi
28260 rm -f core conftest.err conftest.$ac_objext \
28261     conftest$ac_exeext conftest.$ac_ext
28262 LIBS=$ac_check_lib_save_LIBS
28263 fi
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28265 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28266 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28267   cat >>confdefs.h <<_ACEOF
28268 #define HAVE_LIBNSL 1
28269 _ACEOF
28270
28271   LIBS="-lnsl $LIBS"
28272
28273 fi
28274
28275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28276 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28277 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28278   $as_echo_n "(cached) " >&6
28279 else
28280   ac_check_lib_save_LIBS=$LIBS
28281 LIBS="-lresolv  $LIBS"
28282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28283 /* end confdefs.h.  */
28284
28285 /* Override any GCC internal prototype to avoid an error.
28286    Use char because int might match the return type of a GCC
28287    builtin and then its argument prototype would still apply.  */
28288 #ifdef __cplusplus
28289 extern "C"
28290 #endif
28291 char gethostbyname_r ();
28292 int
28293 main ()
28294 {
28295 return gethostbyname_r ();
28296   ;
28297   return 0;
28298 }
28299 _ACEOF
28300 if ac_fn_c_try_link "$LINENO"; then :
28301   ac_cv_lib_resolv_gethostbyname_r=yes
28302 else
28303   ac_cv_lib_resolv_gethostbyname_r=no
28304 fi
28305 rm -f core conftest.err conftest.$ac_objext \
28306     conftest$ac_exeext conftest.$ac_ext
28307 LIBS=$ac_check_lib_save_LIBS
28308 fi
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28310 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28311 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28312   cat >>confdefs.h <<_ACEOF
28313 #define HAVE_LIBRESOLV 1
28314 _ACEOF
28315
28316   LIBS="-lresolv $LIBS"
28317
28318 fi
28319
28320 fi
28321
28322
28323 for ac_func in inet_pton
28324 do :
28325   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28326 if test "x$ac_cv_func_inet_pton" = xyes; then :
28327   cat >>confdefs.h <<_ACEOF
28328 #define HAVE_INET_PTON 1
28329 _ACEOF
28330  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28331
28332 fi
28333 done
28334
28335 for ac_func in inet_ntop
28336 do :
28337   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28338 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28339   cat >>confdefs.h <<_ACEOF
28340 #define HAVE_INET_NTOP 1
28341 _ACEOF
28342  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28343
28344 fi
28345 done
28346
28347 for ac_func in gethostbyname2
28348 do :
28349   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28350 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28351   cat >>confdefs.h <<_ACEOF
28352 #define HAVE_GETHOSTBYNAME2 1
28353 _ACEOF
28354  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28355
28356 fi
28357 done
28358
28359 for ac_func in getnameinfo
28360 do :
28361   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28362 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28363   cat >>confdefs.h <<_ACEOF
28364 #define HAVE_GETNAMEINFO 1
28365 _ACEOF
28366  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28367
28368 fi
28369 done
28370
28371
28372
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28374 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28375 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28376   $as_echo_n "(cached) " >&6
28377 else
28378
28379        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28380 /* end confdefs.h.  */
28381
28382               #include <sys/socket.h>
28383
28384 int
28385 main ()
28386 {
28387
28388               struct sockaddr s; s.sa_len;
28389
28390   ;
28391   return 0;
28392 }
28393 _ACEOF
28394 if ac_fn_c_try_compile "$LINENO"; then :
28395
28396              ac_cv_struct_sockaddr_sa_len=yes
28397
28398 else
28399   ac_cv_struct_sockaddr_sa_len=no
28400
28401
28402 fi
28403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28404
28405
28406 fi
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28408 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28409
28410 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28411
28412 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28413
28414 fi
28415
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28417 $as_echo_n "checking for working getaddrinfo... " >&6; }
28418 if ${ac_cv_working_getaddrinfo+:} false; then :
28419   $as_echo_n "(cached) " >&6
28420 else
28421
28422        if test "$cross_compiling" = yes; then :
28423
28424               ac_cv_working_getaddrinfo="yes"
28425
28426
28427 else
28428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28429 /* end confdefs.h.  */
28430
28431               #include <netdb.h>
28432               #include <string.h>
28433               #include <sys/types.h>
28434               #include <sys/socket.h>
28435
28436               void main(void) {
28437                   struct addrinfo hints, *ai;
28438                   int error;
28439
28440                   memset(&hints, 0, sizeof(hints));
28441                   hints.ai_family = AF_UNSPEC;
28442                   hints.ai_socktype = SOCK_STREAM;
28443                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28444                   if (error) {
28445                       exit(1);
28446                   }
28447                   if (ai->ai_addr->sa_family != AF_INET) {
28448                       exit(1);
28449                   }
28450                   exit(0);
28451               }
28452
28453 _ACEOF
28454 if ac_fn_c_try_run "$LINENO"; then :
28455
28456               ac_cv_working_getaddrinfo="yes"
28457
28458 else
28459
28460               ac_cv_working_getaddrinfo="no"
28461
28462 fi
28463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28464   conftest.$ac_objext conftest.beam conftest.$ac_ext
28465 fi
28466
28467
28468
28469 fi
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28471 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28472 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28473 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28474
28475 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28476
28477 fi
28478
28479
28480 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28481   if test "$ac_cv_func_gai_strerror" != "yes"; then
28482     ac_cv_working_getaddrinfo="no"
28483   else
28484
28485 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28486
28487   fi
28488 fi
28489
28490 for ac_func in strftime
28491 do :
28492   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28493 if test "x$ac_cv_func_strftime" = xyes; then :
28494   cat >>confdefs.h <<_ACEOF
28495 #define HAVE_STRFTIME 1
28496 _ACEOF
28497
28498 else
28499   # strftime is in -lintl on SCO UNIX.
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28501 $as_echo_n "checking for strftime in -lintl... " >&6; }
28502 if ${ac_cv_lib_intl_strftime+:} false; then :
28503   $as_echo_n "(cached) " >&6
28504 else
28505   ac_check_lib_save_LIBS=$LIBS
28506 LIBS="-lintl  $LIBS"
28507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28508 /* end confdefs.h.  */
28509
28510 /* Override any GCC internal prototype to avoid an error.
28511    Use char because int might match the return type of a GCC
28512    builtin and then its argument prototype would still apply.  */
28513 #ifdef __cplusplus
28514 extern "C"
28515 #endif
28516 char strftime ();
28517 int
28518 main ()
28519 {
28520 return strftime ();
28521   ;
28522   return 0;
28523 }
28524 _ACEOF
28525 if ac_fn_c_try_link "$LINENO"; then :
28526   ac_cv_lib_intl_strftime=yes
28527 else
28528   ac_cv_lib_intl_strftime=no
28529 fi
28530 rm -f core conftest.err conftest.$ac_objext \
28531     conftest$ac_exeext conftest.$ac_ext
28532 LIBS=$ac_check_lib_save_LIBS
28533 fi
28534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28535 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28536 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28537   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28538
28539 LIBS="-lintl $LIBS"
28540 fi
28541
28542 fi
28543 done
28544
28545 for ac_func in vprintf
28546 do :
28547   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28548 if test "x$ac_cv_func_vprintf" = xyes; then :
28549   cat >>confdefs.h <<_ACEOF
28550 #define HAVE_VPRINTF 1
28551 _ACEOF
28552
28553 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28554 if test "x$ac_cv_func__doprnt" = xyes; then :
28555
28556 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28557
28558 fi
28559
28560 fi
28561 done
28562
28563
28564 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28565 # for constant arguments.  Useless!
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28567 $as_echo_n "checking for working alloca.h... " >&6; }
28568 if ${ac_cv_working_alloca_h+:} false; then :
28569   $as_echo_n "(cached) " >&6
28570 else
28571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28572 /* end confdefs.h.  */
28573 #include <alloca.h>
28574 int
28575 main ()
28576 {
28577 char *p = (char *) alloca (2 * sizeof (int));
28578                           if (p) return 0;
28579   ;
28580   return 0;
28581 }
28582 _ACEOF
28583 if ac_fn_c_try_link "$LINENO"; then :
28584   ac_cv_working_alloca_h=yes
28585 else
28586   ac_cv_working_alloca_h=no
28587 fi
28588 rm -f core conftest.err conftest.$ac_objext \
28589     conftest$ac_exeext conftest.$ac_ext
28590 fi
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28592 $as_echo "$ac_cv_working_alloca_h" >&6; }
28593 if test $ac_cv_working_alloca_h = yes; then
28594
28595 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28596
28597 fi
28598
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28600 $as_echo_n "checking for alloca... " >&6; }
28601 if ${ac_cv_func_alloca_works+:} false; then :
28602   $as_echo_n "(cached) " >&6
28603 else
28604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28605 /* end confdefs.h.  */
28606 #ifdef __GNUC__
28607 # define alloca __builtin_alloca
28608 #else
28609 # ifdef _MSC_VER
28610 #  include <malloc.h>
28611 #  define alloca _alloca
28612 # else
28613 #  ifdef HAVE_ALLOCA_H
28614 #   include <alloca.h>
28615 #  else
28616 #   ifdef _AIX
28617  #pragma alloca
28618 #   else
28619 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28620 void *alloca (size_t);
28621 #    endif
28622 #   endif
28623 #  endif
28624 # endif
28625 #endif
28626
28627 int
28628 main ()
28629 {
28630 char *p = (char *) alloca (1);
28631                                     if (p) return 0;
28632   ;
28633   return 0;
28634 }
28635 _ACEOF
28636 if ac_fn_c_try_link "$LINENO"; then :
28637   ac_cv_func_alloca_works=yes
28638 else
28639   ac_cv_func_alloca_works=no
28640 fi
28641 rm -f core conftest.err conftest.$ac_objext \
28642     conftest$ac_exeext conftest.$ac_ext
28643 fi
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28645 $as_echo "$ac_cv_func_alloca_works" >&6; }
28646
28647 if test $ac_cv_func_alloca_works = yes; then
28648
28649 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28650
28651 else
28652   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28653 # that cause trouble.  Some versions do not even contain alloca or
28654 # contain a buggy version.  If you still want to use their alloca,
28655 # use ar to extract alloca.o from them instead of compiling alloca.c.
28656
28657 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28658
28659 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28660
28661
28662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28663 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28664 if ${ac_cv_os_cray+:} false; then :
28665   $as_echo_n "(cached) " >&6
28666 else
28667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28668 /* end confdefs.h.  */
28669 #if defined CRAY && ! defined CRAY2
28670 webecray
28671 #else
28672 wenotbecray
28673 #endif
28674
28675 _ACEOF
28676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28677   $EGREP "webecray" >/dev/null 2>&1; then :
28678   ac_cv_os_cray=yes
28679 else
28680   ac_cv_os_cray=no
28681 fi
28682 rm -f conftest*
28683
28684 fi
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28686 $as_echo "$ac_cv_os_cray" >&6; }
28687 if test $ac_cv_os_cray = yes; then
28688   for ac_func in _getb67 GETB67 getb67; do
28689     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28690 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28691 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28692
28693 cat >>confdefs.h <<_ACEOF
28694 #define CRAY_STACKSEG_END $ac_func
28695 _ACEOF
28696
28697     break
28698 fi
28699
28700   done
28701 fi
28702
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28704 $as_echo_n "checking stack direction for C alloca... " >&6; }
28705 if ${ac_cv_c_stack_direction+:} false; then :
28706   $as_echo_n "(cached) " >&6
28707 else
28708   if test "$cross_compiling" = yes; then :
28709   ac_cv_c_stack_direction=0
28710 else
28711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28712 /* end confdefs.h.  */
28713 $ac_includes_default
28714 int
28715 find_stack_direction ()
28716 {
28717   static char *addr = 0;
28718   auto char dummy;
28719   if (addr == 0)
28720     {
28721       addr = &dummy;
28722       return find_stack_direction ();
28723     }
28724   else
28725     return (&dummy > addr) ? 1 : -1;
28726 }
28727
28728 int
28729 main ()
28730 {
28731   return find_stack_direction () < 0;
28732 }
28733 _ACEOF
28734 if ac_fn_c_try_run "$LINENO"; then :
28735   ac_cv_c_stack_direction=1
28736 else
28737   ac_cv_c_stack_direction=-1
28738 fi
28739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28740   conftest.$ac_objext conftest.beam conftest.$ac_ext
28741 fi
28742
28743 fi
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28745 $as_echo "$ac_cv_c_stack_direction" >&6; }
28746 cat >>confdefs.h <<_ACEOF
28747 #define STACK_DIRECTION $ac_cv_c_stack_direction
28748 _ACEOF
28749
28750
28751 fi
28752
28753 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28754 # -lseq on Dynix/PTX, -lgen on Unixware.
28755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28756 $as_echo_n "checking for library containing getmntent... " >&6; }
28757 if ${ac_cv_search_getmntent+:} false; then :
28758   $as_echo_n "(cached) " >&6
28759 else
28760   ac_func_search_save_LIBS=$LIBS
28761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28762 /* end confdefs.h.  */
28763
28764 /* Override any GCC internal prototype to avoid an error.
28765    Use char because int might match the return type of a GCC
28766    builtin and then its argument prototype would still apply.  */
28767 #ifdef __cplusplus
28768 extern "C"
28769 #endif
28770 char getmntent ();
28771 int
28772 main ()
28773 {
28774 return getmntent ();
28775   ;
28776   return 0;
28777 }
28778 _ACEOF
28779 for ac_lib in '' sun seq gen; do
28780   if test -z "$ac_lib"; then
28781     ac_res="none required"
28782   else
28783     ac_res=-l$ac_lib
28784     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28785   fi
28786   if ac_fn_c_try_link "$LINENO"; then :
28787   ac_cv_search_getmntent=$ac_res
28788 fi
28789 rm -f core conftest.err conftest.$ac_objext \
28790     conftest$ac_exeext
28791   if ${ac_cv_search_getmntent+:} false; then :
28792   break
28793 fi
28794 done
28795 if ${ac_cv_search_getmntent+:} false; then :
28796
28797 else
28798   ac_cv_search_getmntent=no
28799 fi
28800 rm conftest.$ac_ext
28801 LIBS=$ac_func_search_save_LIBS
28802 fi
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28804 $as_echo "$ac_cv_search_getmntent" >&6; }
28805 ac_res=$ac_cv_search_getmntent
28806 if test "$ac_res" != no; then :
28807   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28808   ac_cv_func_getmntent=yes
28809
28810 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28811
28812 else
28813   ac_cv_func_getmntent=no
28814 fi
28815
28816
28817 for ac_func in getmntinfo
28818 do :
28819   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28820 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28821   cat >>confdefs.h <<_ACEOF
28822 #define HAVE_GETMNTINFO 1
28823 _ACEOF
28824  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28825
28826 fi
28827 done
28828
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28830 $as_echo_n "checking whether closedir returns void... " >&6; }
28831 if ${ac_cv_func_closedir_void+:} false; then :
28832   $as_echo_n "(cached) " >&6
28833 else
28834   if test "$cross_compiling" = yes; then :
28835   ac_cv_func_closedir_void=yes
28836 else
28837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28838 /* end confdefs.h.  */
28839 $ac_includes_default
28840 #include <$ac_header_dirent>
28841 #ifndef __cplusplus
28842 int closedir ();
28843 #endif
28844
28845 int
28846 main ()
28847 {
28848 return closedir (opendir (".")) != 0;
28849   ;
28850   return 0;
28851 }
28852 _ACEOF
28853 if ac_fn_c_try_run "$LINENO"; then :
28854   ac_cv_func_closedir_void=no
28855 else
28856   ac_cv_func_closedir_void=yes
28857 fi
28858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28859   conftest.$ac_objext conftest.beam conftest.$ac_ext
28860 fi
28861
28862 fi
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28864 $as_echo "$ac_cv_func_closedir_void" >&6; }
28865 if test $ac_cv_func_closedir_void = yes; then
28866
28867 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28868
28869 fi
28870
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28872 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28873 if ${ac_cv_func_setpgrp_void+:} false; then :
28874   $as_echo_n "(cached) " >&6
28875 else
28876   if test "$cross_compiling" = yes; then :
28877   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28878 else
28879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28880 /* end confdefs.h.  */
28881 $ac_includes_default
28882 int
28883 main ()
28884 {
28885 /* If this system has a BSD-style setpgrp which takes arguments,
28886   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28887   exit successfully. */
28888   return setpgrp (1,1) != -1;
28889   ;
28890   return 0;
28891 }
28892 _ACEOF
28893 if ac_fn_c_try_run "$LINENO"; then :
28894   ac_cv_func_setpgrp_void=no
28895 else
28896   ac_cv_func_setpgrp_void=yes
28897 fi
28898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28899   conftest.$ac_objext conftest.beam conftest.$ac_ext
28900 fi
28901
28902 fi
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28904 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28905 if test $ac_cv_func_setpgrp_void = yes; then
28906
28907 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28908
28909 fi
28910             # AC_FUNC_FNMATCH    dnl use local version
28911
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28913 $as_echo_n "checking for gettext in -lintl... " >&6; }
28914 if ${ac_cv_lib_intl_gettext+:} false; then :
28915   $as_echo_n "(cached) " >&6
28916 else
28917   ac_check_lib_save_LIBS=$LIBS
28918 LIBS="-lintl  $LIBS"
28919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28920 /* end confdefs.h.  */
28921
28922 /* Override any GCC internal prototype to avoid an error.
28923    Use char because int might match the return type of a GCC
28924    builtin and then its argument prototype would still apply.  */
28925 #ifdef __cplusplus
28926 extern "C"
28927 #endif
28928 char gettext ();
28929 int
28930 main ()
28931 {
28932 return gettext ();
28933   ;
28934   return 0;
28935 }
28936 _ACEOF
28937 if ac_fn_c_try_link "$LINENO"; then :
28938   ac_cv_lib_intl_gettext=yes
28939 else
28940   ac_cv_lib_intl_gettext=no
28941 fi
28942 rm -f core conftest.err conftest.$ac_objext \
28943     conftest$ac_exeext conftest.$ac_ext
28944 LIBS=$ac_check_lib_save_LIBS
28945 fi
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28947 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28948 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28949   LIBS="$LIBS -lintl"
28950 fi
28951
28952
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28954 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28955 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28956   $as_echo_n "(cached) " >&6
28957 else
28958   ac_check_lib_save_LIBS=$LIBS
28959 LIBS="-lsun  $LIBS"
28960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28961 /* end confdefs.h.  */
28962
28963 /* Override any GCC internal prototype to avoid an error.
28964    Use char because int might match the return type of a GCC
28965    builtin and then its argument prototype would still apply.  */
28966 #ifdef __cplusplus
28967 extern "C"
28968 #endif
28969 char getpwnam ();
28970 int
28971 main ()
28972 {
28973 return getpwnam ();
28974   ;
28975   return 0;
28976 }
28977 _ACEOF
28978 if ac_fn_c_try_link "$LINENO"; then :
28979   ac_cv_lib_sun_getpwnam=yes
28980 else
28981   ac_cv_lib_sun_getpwnam=no
28982 fi
28983 rm -f core conftest.err conftest.$ac_objext \
28984     conftest$ac_exeext conftest.$ac_ext
28985 LIBS=$ac_check_lib_save_LIBS
28986 fi
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28988 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28989 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28990   cat >>confdefs.h <<_ACEOF
28991 #define HAVE_LIBSUN 1
28992 _ACEOF
28993
28994   LIBS="-lsun $LIBS"
28995
28996 fi
28997
28998
28999 for ac_header in zlib.h
29000 do :
29001   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29002 if test "x$ac_cv_header_zlib_h" = xyes; then :
29003   cat >>confdefs.h <<_ACEOF
29004 #define HAVE_ZLIB_H 1
29005 _ACEOF
29006
29007 fi
29008
29009 done
29010
29011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29012 $as_echo_n "checking for deflate in -lz... " >&6; }
29013 if ${ac_cv_lib_z_deflate+:} false; then :
29014   $as_echo_n "(cached) " >&6
29015 else
29016   ac_check_lib_save_LIBS=$LIBS
29017 LIBS="-lz  $LIBS"
29018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29019 /* end confdefs.h.  */
29020
29021 /* Override any GCC internal prototype to avoid an error.
29022    Use char because int might match the return type of a GCC
29023    builtin and then its argument prototype would still apply.  */
29024 #ifdef __cplusplus
29025 extern "C"
29026 #endif
29027 char deflate ();
29028 int
29029 main ()
29030 {
29031 return deflate ();
29032   ;
29033   return 0;
29034 }
29035 _ACEOF
29036 if ac_fn_c_try_link "$LINENO"; then :
29037   ac_cv_lib_z_deflate=yes
29038 else
29039   ac_cv_lib_z_deflate=no
29040 fi
29041 rm -f core conftest.err conftest.$ac_objext \
29042     conftest$ac_exeext conftest.$ac_ext
29043 LIBS=$ac_check_lib_save_LIBS
29044 fi
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29046 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29047 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29048   ZLIBS="-lz"
29049 fi
29050
29051 have_zlib=no
29052 if test x$ZLIBS = x-lz; then
29053    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29054
29055    have_zlib=yes
29056 fi
29057
29058
29059 AFS_CFLAGS=""
29060 AFS_LIBS=""
29061 support_afs=auto
29062 # Check whether --enable-afs was given.
29063 if test "${enable_afs+set}" = set; then :
29064   enableval=$enable_afs;
29065        if test x$enableval = xyes; then
29066           support_afs=yes
29067        elif test x$enableval = xno; then
29068           support_afs=no
29069        fi
29070
29071
29072 fi
29073
29074
29075 have_afs=no
29076 if test x$support_afs = xyes -o x$support_afs = xauto; then
29077
29078 # Check whether --with-afsdir was given.
29079 if test "${with_afsdir+set}" = set; then :
29080   withval=$with_afsdir; with_afsdir=$withval
29081
29082 fi
29083
29084
29085             if test x$with_afsdir = x; then
29086       for root in /usr /usr/local; do
29087          if test -d ${root}/include/afs/ ; then
29088             with_afsdir=${root}
29089             break
29090          fi
29091          if test -d ${root}/include/openafs/afs/ ; then
29092             with_afsdir=${root}
29093             break
29094          fi
29095       done
29096    fi
29097
29098    if test -d ${with_afsdir}/include/afs/ ; then
29099       AFS_CFLAGS="-I${with_afsdir}/include"
29100    else
29101       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29102          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29103       fi
29104    fi
29105
29106    saved_CFLAGS="${CFLAGS}"
29107    saved_CPPFLAGS="${CPPFLAGS}"
29108    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29109    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29110
29111    for ac_header in afs/afsint.h
29112 do :
29113   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29114 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29115   cat >>confdefs.h <<_ACEOF
29116 #define HAVE_AFS_AFSINT_H 1
29117 _ACEOF
29118
29119 fi
29120
29121 done
29122
29123    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29124 /* end confdefs.h.  */
29125
29126           #include <afs/afsint.h>
29127           #include <afs/venus.h>
29128
29129 _ACEOF
29130 if ac_fn_c_try_cpp "$LINENO"; then :
29131
29132 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29133
29134
29135 fi
29136 rm -f conftest.err conftest.i conftest.$ac_ext
29137
29138    CFLAGS="${saved_CFLAGS}"
29139    CPPFLAGS="${saved_CPPFLAGS}"
29140
29141             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29142 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29143    for dir in ${with_afsdir}/lib \
29144               ${with_afsdir}/lib/afs \
29145               ${with_afsdir}/lib/openafs \
29146               ${with_afsdir}/lib64 \
29147               ${with_afsdir}/lib64/afs \
29148               ${with_afsdir}/lib64/openafs
29149    do
29150       for arch_type in .a .so
29151       do
29152          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29153          pkg=$?
29154          if test $pkg = 0; then
29155             have_afs=yes
29156             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29157             break
29158          fi
29159       done
29160    done
29161
29162    if test $have_afs = yes; then
29163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29164 $as_echo "yes" >&6; }
29165    else
29166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29167 $as_echo "no" >&6; }
29168    fi
29169
29170    if test x$support_afs = xyes -a $have_afs != yes; then
29171       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29172   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29173    else
29174       if test $have_afs = yes; then
29175
29176 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29177
29178
29179 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29180
29181       fi
29182    fi
29183 fi
29184
29185
29186
29187
29188 # Check whether --enable-lzo was given.
29189 if test "${enable_lzo+set}" = set; then :
29190   enableval=$enable_lzo;
29191        if test x$enableval = xno; then
29192           support_lzo=no
29193        fi
29194
29195
29196 fi
29197
29198
29199 LZO_INC=
29200 LZO_LIBS=
29201 LZO_LDFLAGS=
29202
29203 have_lzo="no"
29204 if test x$support_lzo = xyes; then
29205
29206 # Check whether --with-lzo was given.
29207 if test "${with_lzo+set}" = set; then :
29208   withval=$with_lzo;
29209           case "$with_lzo" in
29210           no)
29211              :
29212              ;;
29213           yes|*)
29214              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29215                 LZO_INC="-I${with_lzo}/include"
29216                 LZO_LDFLAGS="-L${with_lzo}/lib"
29217                 with_lzo="${with_lzo}/include"
29218              else
29219                 with_lzo="/usr/include"
29220              fi
29221
29222              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29223 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29225
29226
29227 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29228
29229                     LZO_LIBS="${LZO_LDFLAGS} -lzo2"
29230                     have_lzo="yes"
29231
29232 else
29233
29234                     echo " "
29235                     echo "lzoconf.h not found. lzo turned off ..."
29236                     echo " "
29237
29238
29239 fi
29240
29241
29242              ;;
29243           esac
29244
29245 else
29246
29247          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29248 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29249
29250             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29251 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29252
29253                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29254 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29255 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29256   $as_echo_n "(cached) " >&6
29257 else
29258   ac_check_lib_save_LIBS=$LIBS
29259 LIBS="-llzo2  $LIBS"
29260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29261 /* end confdefs.h.  */
29262
29263 /* Override any GCC internal prototype to avoid an error.
29264    Use char because int might match the return type of a GCC
29265    builtin and then its argument prototype would still apply.  */
29266 #ifdef __cplusplus
29267 extern "C"
29268 #endif
29269 char lzo1x_1_compress ();
29270 int
29271 main ()
29272 {
29273 return lzo1x_1_compress ();
29274   ;
29275   return 0;
29276 }
29277 _ACEOF
29278 if ac_fn_c_try_link "$LINENO"; then :
29279   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29280 else
29281   ac_cv_lib_lzo2_lzo1x_1_compress=no
29282 fi
29283 rm -f core conftest.err conftest.$ac_objext \
29284     conftest$ac_exeext conftest.$ac_ext
29285 LIBS=$ac_check_lib_save_LIBS
29286 fi
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29288 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29289 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29290
29291                  LZO_LIBS="-llzo2"
29292
29293 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29294
29295                  have_lzo=yes
29296
29297 fi
29298
29299
29300 fi
29301
29302
29303
29304 fi
29305
29306
29307
29308 fi
29309
29310 fi
29311
29312
29313
29314
29315
29316 support_acl=auto
29317 # Check whether --enable-acl was given.
29318 if test "${enable_acl+set}" = set; then :
29319   enableval=$enable_acl;
29320        if test x$enableval = xyes; then
29321           support_acl=yes
29322        elif test x$enableval = xno; then
29323           support_acl=no
29324        fi
29325
29326
29327 fi
29328
29329
29330 have_acl=no
29331 have_extended_acl=no
29332 if test x$support_acl = xyes -o x$support_acl = xauto; then
29333    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29334 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29335
29336 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29337
29338 fi
29339
29340
29341
29342             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29343 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29344
29345           have_acl=yes
29346
29347
29348 fi
29349
29350
29351             if test $have_acl = no; then
29352       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29353 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29354 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29355   $as_echo_n "(cached) " >&6
29356 else
29357   ac_check_lib_save_LIBS=$LIBS
29358 LIBS="-lacl  $LIBS"
29359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29360 /* end confdefs.h.  */
29361
29362 /* Override any GCC internal prototype to avoid an error.
29363    Use char because int might match the return type of a GCC
29364    builtin and then its argument prototype would still apply.  */
29365 #ifdef __cplusplus
29366 extern "C"
29367 #endif
29368 char acl_get_file ();
29369 int
29370 main ()
29371 {
29372 return acl_get_file ();
29373   ;
29374   return 0;
29375 }
29376 _ACEOF
29377 if ac_fn_c_try_link "$LINENO"; then :
29378   ac_cv_lib_acl_acl_get_file=yes
29379 else
29380   ac_cv_lib_acl_acl_get_file=no
29381 fi
29382 rm -f core conftest.err conftest.$ac_objext \
29383     conftest$ac_exeext conftest.$ac_ext
29384 LIBS=$ac_check_lib_save_LIBS
29385 fi
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29387 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29388 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29389
29390              have_acl=yes
29391              if test $have_afs = yes; then
29392                                                                 if test -d /usr/lib64/; then
29393                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29394                 else
29395                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29396                 fi
29397              else
29398                 FDLIBS="-lacl $FDLIBS"
29399              fi
29400
29401
29402 fi
29403
29404    fi
29405
29406                if test $have_acl = no -a \
29407            x${HAVE_OSF1_OS_TRUE} = x; then
29408       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29409 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29410 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29411   $as_echo_n "(cached) " >&6
29412 else
29413   ac_check_lib_save_LIBS=$LIBS
29414 LIBS="-lpacl  $LIBS"
29415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29416 /* end confdefs.h.  */
29417
29418 /* Override any GCC internal prototype to avoid an error.
29419    Use char because int might match the return type of a GCC
29420    builtin and then its argument prototype would still apply.  */
29421 #ifdef __cplusplus
29422 extern "C"
29423 #endif
29424 char acl_get_file ();
29425 int
29426 main ()
29427 {
29428 return acl_get_file ();
29429   ;
29430   return 0;
29431 }
29432 _ACEOF
29433 if ac_fn_c_try_link "$LINENO"; then :
29434   ac_cv_lib_pacl_acl_get_file=yes
29435 else
29436   ac_cv_lib_pacl_acl_get_file=no
29437 fi
29438 rm -f core conftest.err conftest.$ac_objext \
29439     conftest$ac_exeext conftest.$ac_ext
29440 LIBS=$ac_check_lib_save_LIBS
29441 fi
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29443 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29444 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29445
29446              have_acl=yes
29447              FDLIBS="-lpacl $FDLIBS"
29448
29449
29450 fi
29451
29452
29453       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29454 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29455       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29456       if test $? = 0; then
29457
29458 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29459
29460          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29461 $as_echo "yes" >&6; }
29462       else
29463          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29464 $as_echo "no" >&6; }
29465       fi
29466    fi
29467
29468             if test $have_acl = yes -a \
29469            x${HAVE_DARWIN_OS_TRUE} = x; then
29470       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29471 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29472       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29473       if test $? = 0; then
29474
29475 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29476
29477          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29478 $as_echo "yes" >&6; }
29479       else
29480          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29481 $as_echo "no" >&6; }
29482       fi
29483    fi
29484
29485             if test $have_acl = yes -a \
29486            x${HAVE_FREEBSD_OS_TRUE} = x; then
29487       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29488 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29489       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29490       if test $? = 0; then
29491
29492 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29493
29494          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29495 $as_echo "yes" >&6; }
29496       else
29497          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29498 $as_echo "no" >&6; }
29499       fi
29500    fi
29501
29502             if test $have_acl = no -a \
29503            x${HAVE_SUN_OS_TRUE} = x; then
29504       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29505 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29506 if ${ac_cv_lib_sec_acltotext+:} false; then :
29507   $as_echo_n "(cached) " >&6
29508 else
29509   ac_check_lib_save_LIBS=$LIBS
29510 LIBS="-lsec  $LIBS"
29511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29512 /* end confdefs.h.  */
29513
29514 /* Override any GCC internal prototype to avoid an error.
29515    Use char because int might match the return type of a GCC
29516    builtin and then its argument prototype would still apply.  */
29517 #ifdef __cplusplus
29518 extern "C"
29519 #endif
29520 char acltotext ();
29521 int
29522 main ()
29523 {
29524 return acltotext ();
29525   ;
29526   return 0;
29527 }
29528 _ACEOF
29529 if ac_fn_c_try_link "$LINENO"; then :
29530   ac_cv_lib_sec_acltotext=yes
29531 else
29532   ac_cv_lib_sec_acltotext=no
29533 fi
29534 rm -f core conftest.err conftest.$ac_objext \
29535     conftest$ac_exeext conftest.$ac_ext
29536 LIBS=$ac_check_lib_save_LIBS
29537 fi
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29539 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29540 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29541
29542              have_acl=yes
29543              FDLIBS="-lsec $FDLIBS"
29544
29545              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29546 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29547 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29548   $as_echo_n "(cached) " >&6
29549 else
29550   ac_check_lib_save_LIBS=$LIBS
29551 LIBS="-lsec  $LIBS"
29552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29553 /* end confdefs.h.  */
29554
29555 /* Override any GCC internal prototype to avoid an error.
29556    Use char because int might match the return type of a GCC
29557    builtin and then its argument prototype would still apply.  */
29558 #ifdef __cplusplus
29559 extern "C"
29560 #endif
29561 char acl_totext ();
29562 int
29563 main ()
29564 {
29565 return acl_totext ();
29566   ;
29567   return 0;
29568 }
29569 _ACEOF
29570 if ac_fn_c_try_link "$LINENO"; then :
29571   ac_cv_lib_sec_acl_totext=yes
29572 else
29573   ac_cv_lib_sec_acl_totext=no
29574 fi
29575 rm -f core conftest.err conftest.$ac_objext \
29576     conftest$ac_exeext conftest.$ac_ext
29577 LIBS=$ac_check_lib_save_LIBS
29578 fi
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29580 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29581 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29582
29583                     have_extended_acl=yes
29584
29585
29586 fi
29587
29588
29589
29590 fi
29591
29592    fi
29593
29594             if test $have_acl = no -a \
29595            x${HAVE_AIX_OS_TRUE} = x; then
29596       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29597 if test "x$ac_cv_func_acl_get" = xyes; then :
29598
29599              have_acl=yes
29600
29601              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29602 if test "x$ac_cv_func_aclx_get" = xyes; then :
29603
29604                     have_extended_acl=yes
29605
29606
29607 fi
29608
29609
29610
29611 fi
29612
29613    fi
29614
29615    if test x$support_acl = xyes -a $have_acl != yes; then
29616       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29617   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29618    else
29619       if test $have_acl = yes; then
29620
29621 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29622
29623       fi
29624
29625       if test $have_extended_acl = yes; then
29626
29627 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29628
29629       fi
29630    fi
29631 fi
29632
29633 support_xattr=auto
29634 # Check whether --enable-xattr was given.
29635 if test "${enable_xattr+set}" = set; then :
29636   enableval=$enable_xattr;
29637        if test x$enableval = xyes; then
29638           support_xattr=yes
29639        elif test x$enableval = xno; then
29640           support_xattr=no
29641        fi
29642
29643
29644 fi
29645
29646
29647 have_xattr=no
29648 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29649                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29650            x${HAVE_NETBSD_OS_TRUE} = x -o \
29651            x${HAVE_OPENBSD_OS_TRUE} = x; then
29652       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29653 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29654
29655 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29656
29657 fi
29658
29659
29660       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29661 if test "x$ac_cv_header_libutil_h" = xyes; then :
29662
29663 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29664
29665 fi
29666
29667
29668       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29669 do :
29670   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29671 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29672 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29673   cat >>confdefs.h <<_ACEOF
29674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29675 _ACEOF
29676
29677              have_xattr=yes
29678
29679 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29680
29681
29682 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29683
29684
29685 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29686
29687
29688
29689 fi
29690 done
29691
29692
29693       if test $have_xattr = no; then
29694          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29695 do :
29696   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29698 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29699   cat >>confdefs.h <<_ACEOF
29700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29701 _ACEOF
29702
29703                 have_xattr=yes
29704
29705 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29706
29707
29708 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29709
29710
29711 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29712
29713
29714
29715 fi
29716 done
29717
29718       fi
29719
29720       if test $have_xattr = yes; then
29721          have_extattr_string_in_libc=no
29722          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29723 do :
29724   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29725 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29726 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29727   cat >>confdefs.h <<_ACEOF
29728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29729 _ACEOF
29730
29731                 have_extattr_string_in_libc=yes
29732
29733 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29734
29735
29736 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29737
29738
29739
29740 fi
29741 done
29742
29743
29744                                  if test $have_extattr_string_in_libc = no; then
29745             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29746 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29747 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29748   $as_echo_n "(cached) " >&6
29749 else
29750   ac_check_lib_save_LIBS=$LIBS
29751 LIBS="-lutil  $LIBS"
29752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29753 /* end confdefs.h.  */
29754
29755 /* Override any GCC internal prototype to avoid an error.
29756    Use char because int might match the return type of a GCC
29757    builtin and then its argument prototype would still apply.  */
29758 #ifdef __cplusplus
29759 extern "C"
29760 #endif
29761 char extattr_namespace_to_string extattr_string_to_namespace ();
29762 int
29763 main ()
29764 {
29765 return extattr_namespace_to_string extattr_string_to_namespace ();
29766   ;
29767   return 0;
29768 }
29769 _ACEOF
29770 if ac_fn_c_try_link "$LINENO"; then :
29771   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29772 else
29773   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29774 fi
29775 rm -f core conftest.err conftest.$ac_objext \
29776     conftest$ac_exeext conftest.$ac_ext
29777 LIBS=$ac_check_lib_save_LIBS
29778 fi
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29780 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29781 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29782
29783
29784 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29785
29786
29787 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29788
29789                    FDLIBS="-lutil $FDLIBS"
29790
29791
29792 fi
29793
29794          fi
29795       fi
29796    fi
29797
29798                if test $have_xattr = no -a \
29799            x${HAVE_AIX_OS_TRUE} = x; then
29800       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29801 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29802
29803 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29804
29805 fi
29806
29807
29808       for ac_func in llistea lgetea lsetea
29809 do :
29810   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29812 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29813   cat >>confdefs.h <<_ACEOF
29814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29815 _ACEOF
29816
29817              have_xattr=yes
29818
29819 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29820
29821
29822 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29823
29824
29825 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29826
29827
29828
29829 fi
29830 done
29831
29832
29833       if test $have_xattr = no; then
29834          for ac_func in listea getea setea
29835 do :
29836   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29837 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29838 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29839   cat >>confdefs.h <<_ACEOF
29840 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29841 _ACEOF
29842
29843                 have_xattr=yes
29844
29845 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29846
29847
29848 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29849
29850
29851 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29852
29853
29854
29855 fi
29856 done
29857
29858       fi
29859    fi
29860
29861                if test $have_xattr = no -a \
29862            x${HAVE_OSF1_OS_TRUE} = x; then
29863       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29864 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29865
29866 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29867
29868 fi
29869
29870
29871       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29872 do :
29873   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29874 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29875 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29876   cat >>confdefs.h <<_ACEOF
29877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29878 _ACEOF
29879
29880              have_xattr=yes
29881
29882 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29883
29884
29885 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29886
29887
29888 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29889
29890
29891 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29892
29893
29894 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29895
29896
29897
29898 fi
29899 done
29900
29901    fi
29902
29903                if test $have_xattr = no -a \
29904            x${HAVE_SUN_OS_TRUE} = x; then
29905       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29906 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29907
29908 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29909
29910 fi
29911
29912
29913       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29914 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29915
29916 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29917
29918 fi
29919
29920
29921       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29922 if test "x$ac_cv_header_attr_h" = xyes; then :
29923
29924 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29925
29926 fi
29927
29928
29929
29930       for ac_func in openat fstatat unlinkat fchownat futimesat
29931 do :
29932   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29933 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29934 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29935   cat >>confdefs.h <<_ACEOF
29936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29937 _ACEOF
29938
29939              have_xattr=yes
29940
29941 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29942
29943
29944 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29945
29946
29947 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29948
29949
29950 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29951
29952
29953 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29954
29955
29956
29957 fi
29958 done
29959
29960
29961       if test $have_xattr = yes; then
29962          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29963 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29964 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29965   $as_echo_n "(cached) " >&6
29966 else
29967   ac_check_lib_save_LIBS=$LIBS
29968 LIBS="-lnvpair  $LIBS"
29969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29970 /* end confdefs.h.  */
29971
29972 /* Override any GCC internal prototype to avoid an error.
29973    Use char because int might match the return type of a GCC
29974    builtin and then its argument prototype would still apply.  */
29975 #ifdef __cplusplus
29976 extern "C"
29977 #endif
29978 char nvlist_next_nvpair ();
29979 int
29980 main ()
29981 {
29982 return nvlist_next_nvpair ();
29983   ;
29984   return 0;
29985 }
29986 _ACEOF
29987 if ac_fn_c_try_link "$LINENO"; then :
29988   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29989 else
29990   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29991 fi
29992 rm -f core conftest.err conftest.$ac_objext \
29993     conftest$ac_exeext conftest.$ac_ext
29994 LIBS=$ac_check_lib_save_LIBS
29995 fi
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29997 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29998 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29999
30000
30001 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30002
30003                 FDLIBS="-lnvpair $FDLIBS"
30004
30005
30006 fi
30007
30008       fi
30009    fi
30010
30011             if test $have_xattr = no; then
30012       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30013 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30014
30015 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30016
30017 fi
30018
30019
30020       for ac_func in llistxattr lgetxattr lsetxattr
30021 do :
30022   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30023 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30024 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30025   cat >>confdefs.h <<_ACEOF
30026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30027 _ACEOF
30028
30029              have_xattr=yes
30030
30031 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30032
30033
30034 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30035
30036
30037 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30038
30039
30040
30041 fi
30042 done
30043
30044
30045       if test $have_xattr = no; then
30046          for ac_func in listxattr getxattr setxattr
30047 do :
30048   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30049 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30050 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30051   cat >>confdefs.h <<_ACEOF
30052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30053 _ACEOF
30054
30055                 have_xattr=yes
30056
30057 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30058
30059
30060 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30061
30062
30063 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30064
30065
30066
30067 fi
30068 done
30069
30070       fi
30071    fi
30072
30073    if test x$support_xattr = xyes -a $have_xattr != yes; then
30074       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30075   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30076    else
30077       if test $have_xattr = yes; then
30078
30079 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30080
30081       fi
30082    fi
30083 fi
30084
30085 PTHREAD_LIB=""
30086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30087 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30088 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30089   $as_echo_n "(cached) " >&6
30090 else
30091   ac_check_lib_save_LIBS=$LIBS
30092 LIBS="-lpthread  $LIBS"
30093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30094 /* end confdefs.h.  */
30095
30096 /* Override any GCC internal prototype to avoid an error.
30097    Use char because int might match the return type of a GCC
30098    builtin and then its argument prototype would still apply.  */
30099 #ifdef __cplusplus
30100 extern "C"
30101 #endif
30102 char pthread_create ();
30103 int
30104 main ()
30105 {
30106 return pthread_create ();
30107   ;
30108   return 0;
30109 }
30110 _ACEOF
30111 if ac_fn_c_try_link "$LINENO"; then :
30112   ac_cv_lib_pthread_pthread_create=yes
30113 else
30114   ac_cv_lib_pthread_pthread_create=no
30115 fi
30116 rm -f core conftest.err conftest.$ac_objext \
30117     conftest$ac_exeext conftest.$ac_ext
30118 LIBS=$ac_check_lib_save_LIBS
30119 fi
30120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30121 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30122 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30123   PTHREAD_LIB="-lpthread"
30124 else
30125
30126        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30127 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30128 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30129   $as_echo_n "(cached) " >&6
30130 else
30131   ac_check_lib_save_LIBS=$LIBS
30132 LIBS="-lpthreads  $LIBS"
30133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30134 /* end confdefs.h.  */
30135
30136 /* Override any GCC internal prototype to avoid an error.
30137    Use char because int might match the return type of a GCC
30138    builtin and then its argument prototype would still apply.  */
30139 #ifdef __cplusplus
30140 extern "C"
30141 #endif
30142 char pthread_create ();
30143 int
30144 main ()
30145 {
30146 return pthread_create ();
30147   ;
30148   return 0;
30149 }
30150 _ACEOF
30151 if ac_fn_c_try_link "$LINENO"; then :
30152   ac_cv_lib_pthreads_pthread_create=yes
30153 else
30154   ac_cv_lib_pthreads_pthread_create=no
30155 fi
30156 rm -f core conftest.err conftest.$ac_objext \
30157     conftest$ac_exeext conftest.$ac_ext
30158 LIBS=$ac_check_lib_save_LIBS
30159 fi
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30161 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30162 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30163   PTHREAD_LIB="-lpthreads"
30164 else
30165
30166               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30167 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30168 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30169   $as_echo_n "(cached) " >&6
30170 else
30171   ac_check_lib_save_LIBS=$LIBS
30172 LIBS="-lc_r  $LIBS"
30173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30174 /* end confdefs.h.  */
30175
30176 /* Override any GCC internal prototype to avoid an error.
30177    Use char because int might match the return type of a GCC
30178    builtin and then its argument prototype would still apply.  */
30179 #ifdef __cplusplus
30180 extern "C"
30181 #endif
30182 char pthread_create ();
30183 int
30184 main ()
30185 {
30186 return pthread_create ();
30187   ;
30188   return 0;
30189 }
30190 _ACEOF
30191 if ac_fn_c_try_link "$LINENO"; then :
30192   ac_cv_lib_c_r_pthread_create=yes
30193 else
30194   ac_cv_lib_c_r_pthread_create=no
30195 fi
30196 rm -f core conftest.err conftest.$ac_objext \
30197     conftest$ac_exeext conftest.$ac_ext
30198 LIBS=$ac_check_lib_save_LIBS
30199 fi
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30201 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30202 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30203   PTHREAD_LIB="-lc_r"
30204 else
30205
30206                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30207 if test "x$ac_cv_func_pthread_create" = xyes; then :
30208
30209 fi
30210
30211
30212
30213 fi
30214
30215
30216
30217 fi
30218
30219
30220
30221 fi
30222
30223
30224 for ac_header in sys/prctl.h sys/capability.h
30225 do :
30226   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30229   cat >>confdefs.h <<_ACEOF
30230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30231 _ACEOF
30232
30233 fi
30234
30235 done
30236
30237 for ac_func in prctl setreuid
30238 do :
30239   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30241 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30242   cat >>confdefs.h <<_ACEOF
30243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30244 _ACEOF
30245
30246 fi
30247 done
30248
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30250 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30251 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30252   $as_echo_n "(cached) " >&6
30253 else
30254   ac_check_lib_save_LIBS=$LIBS
30255 LIBS="-lcap  $LIBS"
30256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30257 /* end confdefs.h.  */
30258
30259 /* Override any GCC internal prototype to avoid an error.
30260    Use char because int might match the return type of a GCC
30261    builtin and then its argument prototype would still apply.  */
30262 #ifdef __cplusplus
30263 extern "C"
30264 #endif
30265 char cap_set_proc ();
30266 int
30267 main ()
30268 {
30269 return cap_set_proc ();
30270   ;
30271   return 0;
30272 }
30273 _ACEOF
30274 if ac_fn_c_try_link "$LINENO"; then :
30275   ac_cv_lib_cap_cap_set_proc=yes
30276 else
30277   ac_cv_lib_cap_cap_set_proc=no
30278 fi
30279 rm -f core conftest.err conftest.$ac_objext \
30280     conftest$ac_exeext conftest.$ac_ext
30281 LIBS=$ac_check_lib_save_LIBS
30282 fi
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30284 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30285 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30286   CAP_LIBS="-lcap"
30287 else
30288   CAP_LIBS=
30289 fi
30290
30291 if test x$CAP_LIBS = x-lcap; then
30292
30293 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30294
30295 fi
30296
30297
30298
30299 $as_echo "#define FDLIBS 1" >>confdefs.h
30300
30301
30302 CFLAGS=${CFLAGS--O}
30303
30304 if test x$have_gcc = xyes ; then
30305    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30306    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30307 fi
30308 LDFLAGS=${LDFLAGS--O}
30309 CPPFLAGS="$CPPFLAGS"
30310 CFLAGS="$CFLAGS"
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326 OBJLIST=
30327
30328
30329 lld="lld"
30330 llu="llu"
30331
30332 WCFLAGS=
30333 WLDFLAGS=
30334
30335 PFILES="platforms/Makefile"
30336 PSCMD="ps -e"
30337 MACOSX=
30338 COMPRESS_MANPAGES=yes
30339
30340 case "$DISTNAME" in
30341 aix)
30342    DISTVER=`uname -r`
30343    PSCMD="ps -e -o pid,comm"
30344    PFILES="${PFILES} \
30345       platforms/aix/Makefile"
30346    TAPEDRIVE="/dev/rmt0.1"
30347   ;;
30348 alpha)
30349    DISTVER=`uname -r`
30350    PTHREAD_LIB="-lpthread -lexc"
30351    if test "${CC}" = "gcc" ; then
30352       lld="lld"
30353       llu="llu"
30354    else
30355       lld="ld"
30356       llu="lu"
30357    fi
30358    TAPEDRIVE="/dev/nrmt0"
30359   ;;
30360 bsdi)
30361    DISTVER=`uname -a |awk '{print $3}'`
30362    TAPEDRIVE="/dev/nrmt0"
30363    PTHREAD_LIB="-pthread"
30364    CFLAGS="${CFLAGS} -pthread"
30365    PSCMD="ps -ax -o pid,command"
30366    lld="qd"
30367    llu="qu"
30368    PFILES="${PFILES} \
30369        platforms/bsdi/Makefile \
30370        platforms/bsdi/bacula-fd \
30371        platforms/bsdi/bacula-sd \
30372        platforms/bsdi/bacula-dir"
30373    largefile_support="yes"
30374   ;;
30375 darwin)
30376    DISTVER=`uname -r`
30377    TAPEDRIVE="/dev/nst0"
30378    PSCMD="ps -e -o pid,command"
30379    MACOSX=macosx
30380    PFILES="${PFILES} \
30381       platforms/darwin/Makefile"
30382   ;;
30383 osx)
30384    DISTVER=`uname -r`
30385    TAPEDRIVE="/dev/nst0"
30386    PSCMD="ps -e -o pid,command"
30387    MACOSX=macosx
30388    PFILES="${PFILES} \
30389       platforms/osx/Makefile"
30390   ;;
30391 debian)
30392    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30393       DISTNAME="ubuntu"
30394    fi
30395    DISTVER=`cat /etc/debian_version`
30396    if test -f /etc/lsb-release ; then
30397       . /etc/lsb-release
30398       if test "x$DISTRIB_ID" != "x" ; then
30399          DISTNAME=$DISTRIB_ID
30400       fi
30401       if test "x$DISTRIB_RELEASE" != "x" ; then
30402          DISTVER=$DISTRIB_RELEASE
30403       fi
30404    fi
30405    if test "$DISTNAME" = "Ubuntu" ; then
30406       DISTNAME="ubuntu"
30407    fi
30408    TAPEDRIVE="/dev/nst0"
30409    PSCMD="ps -e -o pid,command"
30410    if test "$DISTNAME" = "ubuntu" ; then
30411       PFILES="${PFILES} \
30412          platforms/ubuntu/Makefile \
30413          platforms/ubuntu/bacula-fd \
30414          platforms/ubuntu/bacula-sd \
30415          platforms/ubuntu/bacula-dir"
30416    else
30417       PFILES="${PFILES} \
30418          platforms/debian/Makefile \
30419          platforms/debian/bacula-fd \
30420          platforms/debian/bacula-sd \
30421          platforms/debian/bacula-dir"
30422    fi
30423   ;;
30424 freebsd)
30425    DISTVER=`uname -a |awk '{print $3}'`
30426    VER=`echo $DISTVER | cut -c 1`
30427    if test x$VER = x4 ; then
30428       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30429       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30430    fi
30431    lld="qd"
30432    llu="qu"
30433    TAPEDRIVE="/dev/nrsa0"
30434    PSCMD="ps -ax -o pid,command"
30435    PFILES="${PFILES} \
30436        platforms/freebsd/Makefile \
30437        platforms/freebsd/bacula-fd \
30438        platforms/freebsd/bacula-sd \
30439        platforms/freebsd/bacula-dir"
30440    largefile_support="yes"
30441   ;;
30442 hurd)
30443    DISTVER=`uname -r`
30444    TAPEDRIVE="/dev/nst0"
30445    PSCMD="ps -e -o pid,command"
30446    PFILES="${PFILES} \
30447        platforms/hurd/Makefile \
30448        platforms/hurd/bacula-fd \
30449        platforms/hurd/bacula-sd \
30450        platforms/hurd/bacula-dir"
30451   ;;
30452 hpux)
30453    PSCMD="UNIX95=1; ps -e -o pid,comm"
30454    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30455    DISTVER=`uname -r`
30456    TAPEDRIVE="/dev/rmt/0hnb"
30457    PTHREAD_LIB="-lpthread"
30458    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30459
30460   ;;
30461 irix)
30462    DISTVER=`uname -r`
30463    TAPEDRIVE="/dev/rmt/0cbn"
30464    PSCMD="ps -e -o pid,comm"
30465    PFILES="${PFILES} \
30466        platforms/irix/Makefile \
30467        platforms/irix/bacula-fd \
30468        platforms/irix/bacula-sd \
30469        platforms/irix/bacula-dir"
30470   ;;
30471 netbsd)
30472    DISTVER=`uname -a |awk '{print $3}'`
30473    lld="qd"
30474    llu="qu"
30475    TAPEDRIVE="/dev/nrst0"
30476    PSCMD="ps -ax -o pid,command"
30477    PTHREAD_LIB="-pthread"
30478    CFLAGS="${CFLAGS} -pthread"
30479   ;;
30480 openbsd)
30481    DISTVER=`uname -a |awk '{print $3}'`
30482    lld="qd"
30483    llu="qu"
30484    TAPEDRIVE="/dev/nrst0"
30485    PSCMD="ps -ax -o pid,command"
30486    PTHREAD_LIB="-pthread"
30487    CFLAGS="${CFLAGS} -pthread"
30488    PFILES="${PFILES} \
30489        platforms/openbsd/Makefile \
30490        platforms/openbsd/bacula-fd \
30491        platforms/openbsd/bacula-sd \
30492        platforms/openbsd/bacula-dir"
30493   ;;
30494 redhat)
30495    if test -f /etc/whitebox-release ; then
30496       f=/etc/whitebox-release
30497    else
30498       f=/etc/redhat-release
30499    fi
30500    if test `cat $f | grep release |\
30501          cut -f 3 -d ' '`x = "Enterprise"x ; then
30502       DISTVER="Enterprise "`cat $f | grep release |\
30503           cut -f 6 -d ' '`
30504    else
30505        DISTVER=`cat /etc/redhat-release | grep release |\
30506            cut -f 5 -d ' '`
30507    fi
30508    TAPEDRIVE="/dev/nst0"
30509    PSCMD="ps -e -o pid,command"
30510    PFILES="${PFILES} \
30511        platforms/redhat/Makefile \
30512        platforms/redhat/bacula-fd \
30513        platforms/redhat/bacula-sd \
30514        platforms/redhat/bacula-dir
30515        "
30516   ;;
30517 mandrake)
30518    DISTVER=`cat /etc/mandrake-release | grep release |\
30519       cut -f 5 -d ' '`
30520    TAPEDRIVE="/dev/nst0"
30521    PSCMD="ps -e -o pid,command"
30522    PFILES="${PFILES} \
30523        platforms/mandrake/Makefile \
30524        platforms/mandrake/bacula-fd \
30525        platforms/mandrake/bacula-sd \
30526        platforms/mandrake/bacula-dir \
30527        "
30528   ;;
30529 gentoo)
30530    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30531    TAPEDRIVE="/dev/nst0"
30532    PSCMD="ps -e -o pid,command"
30533    PFILES="${PFILES} \
30534        platforms/gentoo/Makefile \
30535     platforms/gentoo/bacula-init \
30536        platforms/gentoo/bacula-fd \
30537        platforms/gentoo/bacula-sd \
30538        platforms/gentoo/bacula-dir"
30539   ;;
30540 slackware)
30541    DISTVER=`cat /etc/slackware-version`
30542    TAPEDRIVE="/dev/nst0"
30543    PSCMD="ps -e -o pid,command"
30544    PFILES="${PFILES} \
30545        platforms/slackware/Makefile \
30546        platforms/slackware/rc.bacula-fd \
30547        platforms/slackware/rc.bacula-sd \
30548        platforms/slackware/rc.bacula-dir\
30549        platforms/slackware/functions.bacula"
30550   ;;
30551 solaris)
30552    DISTVER=`uname -r`
30553    TAPEDRIVE="/dev/rmt/0cbn"
30554    PSCMD="ps -e -o pid,comm"
30555    PFILES="${PFILES} \
30556        platforms/solaris/Makefile \
30557        platforms/solaris/bacula-fd \
30558        platforms/solaris/bacula-sd \
30559        platforms/solaris/bacula-dir"
30560    COMPRESS_MANPAGES=
30561    case ${DISTVER} in
30562    5.5|5.6)
30563       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30564
30565       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30566
30567       ;;
30568    5.7|5.8)
30569       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30570
30571       ;;
30572    *)
30573       ;;
30574    esac
30575    LIBS="$LIBS -lresolv -lrt"
30576   ;;
30577 suse)
30578    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30579        cut -f 3 -d ' '`
30580    TAPEDRIVE="/dev/nst0"
30581    PSCMD="ps -e -o pid,command"
30582    PFILES="${PFILES} \
30583        platforms/suse/Makefile \
30584        platforms/suse/bacula-fd \
30585        platforms/suse/bacula-sd \
30586        platforms/suse/bacula-dir \
30587        platforms/suse/bacula"
30588   ;;
30589 suse5)
30590    DISTNAME=suse
30591    DISTVER=5.x
30592    TAPEDRIVE="/dev/nst0"
30593    PSCMD="ps -e -o pid,command"
30594    PFILES="${PFILES} \
30595        platforms/suse/Makefile \
30596        platforms/suse/bacula-fd \
30597        platforms/suse/bacula-sd \
30598        platforms/suse/bacula-dir"
30599   ;;
30600 unknown)
30601    DISTVER=unknown
30602    TAPEDRIVE="/dev/nst0"
30603   ;;
30604 *)
30605   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30606   ;;
30607 esac
30608
30609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30610 $as_echo_n "checking for systemd support... " >&6; }
30611
30612 # Check whether --with-systemd was given.
30613 if test "${with_systemd+set}" = set; then :
30614   withval=$with_systemd;
30615        if test "$withval" != "no"; then
30616            if test "$withval" = "yes"; then
30617                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30618            else
30619                SYSTEMD_UNITDIR="${withval}"
30620            fi
30621
30622            PFILES="${PFILES} \
30623                    platforms/systemd/Makefile \
30624                    platforms/systemd/bacula.conf \
30625                    platforms/systemd/bacula-dir.service \
30626                    platforms/systemd/bacula-fd.service \
30627                    platforms/systemd/bacula-sd.service"
30628
30629 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30630
30631            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30632 $as_echo "yes" >&6; }
30633            support_systemd="yes"
30634        else
30635            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30636 $as_echo "no" >&6; }
30637            support_systemd="no"
30638        fi
30639
30640 else
30641
30642        support_systemd="no"
30643        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30644 $as_echo "no" >&6; }
30645
30646
30647 fi
30648
30649
30650
30651
30652
30653 LIBS="$PTHREAD_LIB $LIBS"
30654
30655 cat >>confdefs.h <<_ACEOF
30656 #define lld "$lld"
30657 _ACEOF
30658
30659 cat >>confdefs.h <<_ACEOF
30660 #define llu "$llu"
30661 _ACEOF
30662
30663
30664
30665
30666
30667
30668
30669
30670 MCOMMON=./autoconf/Make.common
30671
30672
30673 if test "x${subsysdir}" = "x${sbindir}" ; then
30674    echo " "
30675    echo " "
30676    echo "You have set both --sbindir and --with-subsys-dir"
30677    echo "  equal to: ${subsysdir} "
30678    echo "This is not permitted. Please reconfigure."
30679    echo " "
30680    echo "Aborting configuration ..."
30681    echo " "
30682    echo " "
30683    exit 1
30684 fi
30685
30686 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/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf 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/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file 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 po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30687
30688 ac_config_commands="$ac_config_commands default"
30689
30690 cat >confcache <<\_ACEOF
30691 # This file is a shell script that caches the results of configure
30692 # tests run on this system so they can be shared between configure
30693 # scripts and configure runs, see configure's option --config-cache.
30694 # It is not useful on other systems.  If it contains results you don't
30695 # want to keep, you may remove or edit it.
30696 #
30697 # config.status only pays attention to the cache file if you give it
30698 # the --recheck option to rerun configure.
30699 #
30700 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30702 # following values.
30703
30704 _ACEOF
30705
30706 # The following way of writing the cache mishandles newlines in values,
30707 # but we know of no workaround that is simple, portable, and efficient.
30708 # So, we kill variables containing newlines.
30709 # Ultrix sh set writes to stderr and can't be redirected directly,
30710 # and sets the high bit in the cache file unless we assign to the vars.
30711 (
30712   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30713     eval ac_val=\$$ac_var
30714     case $ac_val in #(
30715     *${as_nl}*)
30716       case $ac_var in #(
30717       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30718 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30719       esac
30720       case $ac_var in #(
30721       _ | IFS | as_nl) ;; #(
30722       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30723       *) { eval $ac_var=; unset $ac_var;} ;;
30724       esac ;;
30725     esac
30726   done
30727
30728   (set) 2>&1 |
30729     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30730     *${as_nl}ac_space=\ *)
30731       # `set' does not quote correctly, so add quotes: double-quote
30732       # substitution turns \\\\ into \\, and sed turns \\ into \.
30733       sed -n \
30734         "s/'/'\\\\''/g;
30735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30736       ;; #(
30737     *)
30738       # `set' quotes correctly as required by POSIX, so do not add quotes.
30739       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30740       ;;
30741     esac |
30742     sort
30743 ) |
30744   sed '
30745      /^ac_cv_env_/b end
30746      t clear
30747      :clear
30748      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30749      t end
30750      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30751      :end' >>confcache
30752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30753   if test -w "$cache_file"; then
30754     if test "x$cache_file" != "x/dev/null"; then
30755       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30756 $as_echo "$as_me: updating cache $cache_file" >&6;}
30757       if test ! -f "$cache_file" || test -h "$cache_file"; then
30758         cat confcache >"$cache_file"
30759       else
30760         case $cache_file in #(
30761         */* | ?:*)
30762           mv -f confcache "$cache_file"$$ &&
30763           mv -f "$cache_file"$$ "$cache_file" ;; #(
30764         *)
30765           mv -f confcache "$cache_file" ;;
30766         esac
30767       fi
30768     fi
30769   else
30770     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30771 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30772   fi
30773 fi
30774 rm -f confcache
30775
30776 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30777 # Let make expand exec_prefix.
30778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30779
30780 DEFS=-DHAVE_CONFIG_H
30781
30782 ac_libobjs=
30783 ac_ltlibobjs=
30784 U=
30785 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30786   # 1. Remove the extension, and $U if already installed.
30787   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30788   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30789   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30790   #    will be set to the directory where LIBOBJS objects are built.
30791   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30792   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30793 done
30794 LIBOBJS=$ac_libobjs
30795
30796 LTLIBOBJS=$ac_ltlibobjs
30797
30798
30799
30800
30801 : "${CONFIG_STATUS=./config.status}"
30802 ac_write_fail=0
30803 ac_clean_files_save=$ac_clean_files
30804 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30806 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30807 as_write_fail=0
30808 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30809 #! $SHELL
30810 # Generated by $as_me.
30811 # Run this file to recreate the current configuration.
30812 # Compiler output produced by configure, useful for debugging
30813 # configure, is in config.log if it exists.
30814
30815 debug=false
30816 ac_cs_recheck=false
30817 ac_cs_silent=false
30818
30819 SHELL=\${CONFIG_SHELL-$SHELL}
30820 export SHELL
30821 _ASEOF
30822 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30823 ## -------------------- ##
30824 ## M4sh Initialization. ##
30825 ## -------------------- ##
30826
30827 # Be more Bourne compatible
30828 DUALCASE=1; export DUALCASE # for MKS sh
30829 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30830   emulate sh
30831   NULLCMD=:
30832   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30833   # is contrary to our usage.  Disable this feature.
30834   alias -g '${1+"$@"}'='"$@"'
30835   setopt NO_GLOB_SUBST
30836 else
30837   case `(set -o) 2>/dev/null` in #(
30838   *posix*) :
30839     set -o posix ;; #(
30840   *) :
30841      ;;
30842 esac
30843 fi
30844
30845
30846 as_nl='
30847 '
30848 export as_nl
30849 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30850 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30853 # Prefer a ksh shell builtin over an external printf program on Solaris,
30854 # but without wasting forks for bash or zsh.
30855 if test -z "$BASH_VERSION$ZSH_VERSION" \
30856     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30857   as_echo='print -r --'
30858   as_echo_n='print -rn --'
30859 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30860   as_echo='printf %s\n'
30861   as_echo_n='printf %s'
30862 else
30863   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30864     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30865     as_echo_n='/usr/ucb/echo -n'
30866   else
30867     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30868     as_echo_n_body='eval
30869       arg=$1;
30870       case $arg in #(
30871       *"$as_nl"*)
30872         expr "X$arg" : "X\\(.*\\)$as_nl";
30873         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30874       esac;
30875       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30876     '
30877     export as_echo_n_body
30878     as_echo_n='sh -c $as_echo_n_body as_echo'
30879   fi
30880   export as_echo_body
30881   as_echo='sh -c $as_echo_body as_echo'
30882 fi
30883
30884 # The user is always right.
30885 if test "${PATH_SEPARATOR+set}" != set; then
30886   PATH_SEPARATOR=:
30887   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30888     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30889       PATH_SEPARATOR=';'
30890   }
30891 fi
30892
30893
30894 # IFS
30895 # We need space, tab and new line, in precisely that order.  Quoting is
30896 # there to prevent editors from complaining about space-tab.
30897 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30898 # splitting by setting IFS to empty value.)
30899 IFS=" ""        $as_nl"
30900
30901 # Find who we are.  Look in the path if we contain no directory separator.
30902 as_myself=
30903 case $0 in #((
30904   *[\\/]* ) as_myself=$0 ;;
30905   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30906 for as_dir in $PATH
30907 do
30908   IFS=$as_save_IFS
30909   test -z "$as_dir" && as_dir=.
30910     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30911   done
30912 IFS=$as_save_IFS
30913
30914      ;;
30915 esac
30916 # We did not find ourselves, most probably we were run as `sh COMMAND'
30917 # in which case we are not to be found in the path.
30918 if test "x$as_myself" = x; then
30919   as_myself=$0
30920 fi
30921 if test ! -f "$as_myself"; then
30922   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30923   exit 1
30924 fi
30925
30926 # Unset variables that we do not need and which cause bugs (e.g. in
30927 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30928 # suppresses any "Segmentation fault" message there.  '((' could
30929 # trigger a bug in pdksh 5.2.14.
30930 for as_var in BASH_ENV ENV MAIL MAILPATH
30931 do eval test x\${$as_var+set} = xset \
30932   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30933 done
30934 PS1='$ '
30935 PS2='> '
30936 PS4='+ '
30937
30938 # NLS nuisances.
30939 LC_ALL=C
30940 export LC_ALL
30941 LANGUAGE=C
30942 export LANGUAGE
30943
30944 # CDPATH.
30945 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30946
30947
30948 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30949 # ----------------------------------------
30950 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30951 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30952 # script with STATUS, using 1 if that was 0.
30953 as_fn_error ()
30954 {
30955   as_status=$1; test $as_status -eq 0 && as_status=1
30956   if test "$4"; then
30957     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30958     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30959   fi
30960   $as_echo "$as_me: error: $2" >&2
30961   as_fn_exit $as_status
30962 } # as_fn_error
30963
30964
30965 # as_fn_set_status STATUS
30966 # -----------------------
30967 # Set $? to STATUS, without forking.
30968 as_fn_set_status ()
30969 {
30970   return $1
30971 } # as_fn_set_status
30972
30973 # as_fn_exit STATUS
30974 # -----------------
30975 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30976 as_fn_exit ()
30977 {
30978   set +e
30979   as_fn_set_status $1
30980   exit $1
30981 } # as_fn_exit
30982
30983 # as_fn_unset VAR
30984 # ---------------
30985 # Portably unset VAR.
30986 as_fn_unset ()
30987 {
30988   { eval $1=; unset $1;}
30989 }
30990 as_unset=as_fn_unset
30991 # as_fn_append VAR VALUE
30992 # ----------------------
30993 # Append the text in VALUE to the end of the definition contained in VAR. Take
30994 # advantage of any shell optimizations that allow amortized linear growth over
30995 # repeated appends, instead of the typical quadratic growth present in naive
30996 # implementations.
30997 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30998   eval 'as_fn_append ()
30999   {
31000     eval $1+=\$2
31001   }'
31002 else
31003   as_fn_append ()
31004   {
31005     eval $1=\$$1\$2
31006   }
31007 fi # as_fn_append
31008
31009 # as_fn_arith ARG...
31010 # ------------------
31011 # Perform arithmetic evaluation on the ARGs, and store the result in the
31012 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31013 # must be portable across $(()) and expr.
31014 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31015   eval 'as_fn_arith ()
31016   {
31017     as_val=$(( $* ))
31018   }'
31019 else
31020   as_fn_arith ()
31021   {
31022     as_val=`expr "$@" || test $? -eq 1`
31023   }
31024 fi # as_fn_arith
31025
31026
31027 if expr a : '\(a\)' >/dev/null 2>&1 &&
31028    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31029   as_expr=expr
31030 else
31031   as_expr=false
31032 fi
31033
31034 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31035   as_basename=basename
31036 else
31037   as_basename=false
31038 fi
31039
31040 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31041   as_dirname=dirname
31042 else
31043   as_dirname=false
31044 fi
31045
31046 as_me=`$as_basename -- "$0" ||
31047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31048          X"$0" : 'X\(//\)$' \| \
31049          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31050 $as_echo X/"$0" |
31051     sed '/^.*\/\([^/][^/]*\)\/*$/{
31052             s//\1/
31053             q
31054           }
31055           /^X\/\(\/\/\)$/{
31056             s//\1/
31057             q
31058           }
31059           /^X\/\(\/\).*/{
31060             s//\1/
31061             q
31062           }
31063           s/.*/./; q'`
31064
31065 # Avoid depending upon Character Ranges.
31066 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31067 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31068 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31069 as_cr_digits='0123456789'
31070 as_cr_alnum=$as_cr_Letters$as_cr_digits
31071
31072 ECHO_C= ECHO_N= ECHO_T=
31073 case `echo -n x` in #(((((
31074 -n*)
31075   case `echo 'xy\c'` in
31076   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31077   xy)  ECHO_C='\c';;
31078   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31079        ECHO_T=' ';;
31080   esac;;
31081 *)
31082   ECHO_N='-n';;
31083 esac
31084
31085 rm -f conf$$ conf$$.exe conf$$.file
31086 if test -d conf$$.dir; then
31087   rm -f conf$$.dir/conf$$.file
31088 else
31089   rm -f conf$$.dir
31090   mkdir conf$$.dir 2>/dev/null
31091 fi
31092 if (echo >conf$$.file) 2>/dev/null; then
31093   if ln -s conf$$.file conf$$ 2>/dev/null; then
31094     as_ln_s='ln -s'
31095     # ... but there are two gotchas:
31096     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31097     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31098     # In both cases, we have to default to `cp -p'.
31099     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31100       as_ln_s='cp -p'
31101   elif ln conf$$.file conf$$ 2>/dev/null; then
31102     as_ln_s=ln
31103   else
31104     as_ln_s='cp -p'
31105   fi
31106 else
31107   as_ln_s='cp -p'
31108 fi
31109 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31110 rmdir conf$$.dir 2>/dev/null
31111
31112
31113 # as_fn_mkdir_p
31114 # -------------
31115 # Create "$as_dir" as a directory, including parents if necessary.
31116 as_fn_mkdir_p ()
31117 {
31118
31119   case $as_dir in #(
31120   -*) as_dir=./$as_dir;;
31121   esac
31122   test -d "$as_dir" || eval $as_mkdir_p || {
31123     as_dirs=
31124     while :; do
31125       case $as_dir in #(
31126       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31127       *) as_qdir=$as_dir;;
31128       esac
31129       as_dirs="'$as_qdir' $as_dirs"
31130       as_dir=`$as_dirname -- "$as_dir" ||
31131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31132          X"$as_dir" : 'X\(//\)[^/]' \| \
31133          X"$as_dir" : 'X\(//\)$' \| \
31134          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31135 $as_echo X"$as_dir" |
31136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31137             s//\1/
31138             q
31139           }
31140           /^X\(\/\/\)[^/].*/{
31141             s//\1/
31142             q
31143           }
31144           /^X\(\/\/\)$/{
31145             s//\1/
31146             q
31147           }
31148           /^X\(\/\).*/{
31149             s//\1/
31150             q
31151           }
31152           s/.*/./; q'`
31153       test -d "$as_dir" && break
31154     done
31155     test -z "$as_dirs" || eval "mkdir $as_dirs"
31156   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31157
31158
31159 } # as_fn_mkdir_p
31160 if mkdir -p . 2>/dev/null; then
31161   as_mkdir_p='mkdir -p "$as_dir"'
31162 else
31163   test -d ./-p && rmdir ./-p
31164   as_mkdir_p=false
31165 fi
31166
31167 if test -x / >/dev/null 2>&1; then
31168   as_test_x='test -x'
31169 else
31170   if ls -dL / >/dev/null 2>&1; then
31171     as_ls_L_option=L
31172   else
31173     as_ls_L_option=
31174   fi
31175   as_test_x='
31176     eval sh -c '\''
31177       if test -d "$1"; then
31178         test -d "$1/.";
31179       else
31180         case $1 in #(
31181         -*)set "./$1";;
31182         esac;
31183         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31184         ???[sx]*):;;*)false;;esac;fi
31185     '\'' sh
31186   '
31187 fi
31188 as_executable_p=$as_test_x
31189
31190 # Sed expression to map a string onto a valid CPP name.
31191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31192
31193 # Sed expression to map a string onto a valid variable name.
31194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31195
31196
31197 exec 6>&1
31198 ## ----------------------------------- ##
31199 ## Main body of $CONFIG_STATUS script. ##
31200 ## ----------------------------------- ##
31201 _ASEOF
31202 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31203
31204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31205 # Save the log message, to keep $0 and so on meaningful, and to
31206 # report actual input values of CONFIG_FILES etc. instead of their
31207 # values after options handling.
31208 ac_log="
31209 This file was extended by bacula $as_me 7.0.1, which was
31210 generated by GNU Autoconf 2.68.  Invocation command line was
31211
31212   CONFIG_FILES    = $CONFIG_FILES
31213   CONFIG_HEADERS  = $CONFIG_HEADERS
31214   CONFIG_LINKS    = $CONFIG_LINKS
31215   CONFIG_COMMANDS = $CONFIG_COMMANDS
31216   $ $0 $@
31217
31218 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31219 "
31220
31221 _ACEOF
31222
31223 case $ac_config_files in *"
31224 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31225 esac
31226
31227 case $ac_config_headers in *"
31228 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31229 esac
31230
31231
31232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31233 # Files that config.status was made for.
31234 config_files="$ac_config_files"
31235 config_headers="$ac_config_headers"
31236 config_commands="$ac_config_commands"
31237
31238 _ACEOF
31239
31240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31241 ac_cs_usage="\
31242 \`$as_me' instantiates files and other configuration actions
31243 from templates according to the current configuration.  Unless the files
31244 and actions are specified as TAGs, all are instantiated by default.
31245
31246 Usage: $0 [OPTION]... [TAG]...
31247
31248   -h, --help       print this help, then exit
31249   -V, --version    print version number and configuration settings, then exit
31250       --config     print configuration, then exit
31251   -q, --quiet, --silent
31252                    do not print progress messages
31253   -d, --debug      don't remove temporary files
31254       --recheck    update $as_me by reconfiguring in the same conditions
31255       --file=FILE[:TEMPLATE]
31256                    instantiate the configuration file FILE
31257       --header=FILE[:TEMPLATE]
31258                    instantiate the configuration header FILE
31259
31260 Configuration files:
31261 $config_files
31262
31263 Configuration headers:
31264 $config_headers
31265
31266 Configuration commands:
31267 $config_commands
31268
31269 Report bugs to the package provider."
31270
31271 _ACEOF
31272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31273 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31274 ac_cs_version="\\
31275 bacula config.status 7.0.1
31276 configured by $0, generated by GNU Autoconf 2.68,
31277   with options \\"\$ac_cs_config\\"
31278
31279 Copyright (C) 2010 Free Software Foundation, Inc.
31280 This config.status script is free software; the Free Software Foundation
31281 gives unlimited permission to copy, distribute and modify it."
31282
31283 ac_pwd='$ac_pwd'
31284 srcdir='$srcdir'
31285 INSTALL='$INSTALL'
31286 AWK='$AWK'
31287 test -n "\$AWK" || AWK=awk
31288 _ACEOF
31289
31290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31291 # The default lists apply if the user does not specify any file.
31292 ac_need_defaults=:
31293 while test $# != 0
31294 do
31295   case $1 in
31296   --*=?*)
31297     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31298     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31299     ac_shift=:
31300     ;;
31301   --*=)
31302     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31303     ac_optarg=
31304     ac_shift=:
31305     ;;
31306   *)
31307     ac_option=$1
31308     ac_optarg=$2
31309     ac_shift=shift
31310     ;;
31311   esac
31312
31313   case $ac_option in
31314   # Handling of the options.
31315   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31316     ac_cs_recheck=: ;;
31317   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31318     $as_echo "$ac_cs_version"; exit ;;
31319   --config | --confi | --conf | --con | --co | --c )
31320     $as_echo "$ac_cs_config"; exit ;;
31321   --debug | --debu | --deb | --de | --d | -d )
31322     debug=: ;;
31323   --file | --fil | --fi | --f )
31324     $ac_shift
31325     case $ac_optarg in
31326     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31327     '') as_fn_error $? "missing file argument" ;;
31328     esac
31329     as_fn_append CONFIG_FILES " '$ac_optarg'"
31330     ac_need_defaults=false;;
31331   --header | --heade | --head | --hea )
31332     $ac_shift
31333     case $ac_optarg in
31334     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31335     esac
31336     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31337     ac_need_defaults=false;;
31338   --he | --h)
31339     # Conflict between --help and --header
31340     as_fn_error $? "ambiguous option: \`$1'
31341 Try \`$0 --help' for more information.";;
31342   --help | --hel | -h )
31343     $as_echo "$ac_cs_usage"; exit ;;
31344   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31345   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31346     ac_cs_silent=: ;;
31347
31348   # This is an error.
31349   -*) as_fn_error $? "unrecognized option: \`$1'
31350 Try \`$0 --help' for more information." ;;
31351
31352   *) as_fn_append ac_config_targets " $1"
31353      ac_need_defaults=false ;;
31354
31355   esac
31356   shift
31357 done
31358
31359 ac_configure_extra_args=
31360
31361 if $ac_cs_silent; then
31362   exec 6>/dev/null
31363   ac_configure_extra_args="$ac_configure_extra_args --silent"
31364 fi
31365
31366 _ACEOF
31367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31368 if \$ac_cs_recheck; then
31369   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31370   shift
31371   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31372   CONFIG_SHELL='$SHELL'
31373   export CONFIG_SHELL
31374   exec "\$@"
31375 fi
31376
31377 _ACEOF
31378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31379 exec 5>>config.log
31380 {
31381   echo
31382   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31383 ## Running $as_me. ##
31384 _ASBOX
31385   $as_echo "$ac_log"
31386 } >&5
31387
31388 _ACEOF
31389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31390 #
31391 # INIT-COMMANDS
31392 #
31393
31394
31395 # The HP-UX ksh and POSIX shell print the target directory to stdout
31396 # if CDPATH is set.
31397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31398
31399 sed_quote_subst='$sed_quote_subst'
31400 double_quote_subst='$double_quote_subst'
31401 delay_variable_subst='$delay_variable_subst'
31402 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31403 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31404 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31405 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31406 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31407 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31408 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31409 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31410 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31411 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31412 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31413 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31414 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31415 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31416 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31417 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31418 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31419 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31420 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31421 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31422 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31423 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31424 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31425 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31426 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31427 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31428 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31429 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31430 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31431 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31432 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31433 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31434 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31435 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31436 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31437 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31438 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31439 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31440 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31441 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31442 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31443 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31444 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31445 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31446 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31447 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31448 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31449 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31450 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31451 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31452 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31453 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31454 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31455 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31456 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31457 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"`'
31458 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31459 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31460 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31461 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31462 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31463 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31464 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31465 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31466 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31467 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31468 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31469 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31470 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31471 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31472 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31473 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31474 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31475 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31476 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31477 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31478 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31479 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31480 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31481 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31482 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31483 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31484 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31485 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31486 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31487 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31488 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31489 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31490 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31491 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31492 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31493 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31494 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31495 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31496 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31497 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31498 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31499 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31500 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31501 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31502 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31503 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31504 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31505 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31506 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31507 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31508 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31509 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31510 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31511 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31512 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31513 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31514 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31515 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31516 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31517 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31518 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31519 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31520 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31521 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31522 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31523 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31524 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31525 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31526 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31527 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31528 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31529 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31530 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31531 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31532 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31533 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31534 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31535 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31536 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31537 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31538 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31539 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31540 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31541 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31542 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31543 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31544 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31545 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31546 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31547 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31548 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31549 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31550 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31551 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31552 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31553 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31554 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31555 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31556 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31557 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31558 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31559 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31560 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31561 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31562 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31563 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31564 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31565 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31566 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31567 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31568 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31569 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31570 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31571 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31572 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31573 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31574 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31575 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31576 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31577 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31578 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31579 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31580 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31581 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31582 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31583 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31584 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31585 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31586 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31587
31588 LTCC='$LTCC'
31589 LTCFLAGS='$LTCFLAGS'
31590 compiler='$compiler_DEFAULT'
31591
31592 # A function that is used when there is no print builtin or printf.
31593 func_fallback_echo ()
31594 {
31595   eval 'cat <<_LTECHO_EOF
31596 \$1
31597 _LTECHO_EOF'
31598 }
31599
31600 # Quote evaled strings.
31601 for var in SHELL \
31602 ECHO \
31603 SED \
31604 GREP \
31605 EGREP \
31606 FGREP \
31607 LD \
31608 NM \
31609 LN_S \
31610 lt_SP2NL \
31611 lt_NL2SP \
31612 reload_flag \
31613 OBJDUMP \
31614 deplibs_check_method \
31615 file_magic_cmd \
31616 file_magic_glob \
31617 want_nocaseglob \
31618 DLLTOOL \
31619 sharedlib_from_linklib_cmd \
31620 AR \
31621 AR_FLAGS \
31622 archiver_list_spec \
31623 STRIP \
31624 RANLIB \
31625 CC \
31626 CFLAGS \
31627 compiler \
31628 lt_cv_sys_global_symbol_pipe \
31629 lt_cv_sys_global_symbol_to_cdecl \
31630 lt_cv_sys_global_symbol_to_c_name_address \
31631 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31632 nm_file_list_spec \
31633 lt_prog_compiler_no_builtin_flag \
31634 lt_prog_compiler_pic \
31635 lt_prog_compiler_wl \
31636 lt_prog_compiler_static \
31637 lt_cv_prog_compiler_c_o \
31638 need_locks \
31639 MANIFEST_TOOL \
31640 DSYMUTIL \
31641 NMEDIT \
31642 LIPO \
31643 OTOOL \
31644 OTOOL64 \
31645 shrext_cmds \
31646 export_dynamic_flag_spec \
31647 whole_archive_flag_spec \
31648 compiler_needs_object \
31649 with_gnu_ld \
31650 allow_undefined_flag \
31651 no_undefined_flag \
31652 hardcode_libdir_flag_spec \
31653 hardcode_libdir_flag_spec_ld \
31654 hardcode_libdir_separator \
31655 exclude_expsyms \
31656 include_expsyms \
31657 file_list_spec \
31658 variables_saved_for_relink \
31659 libname_spec \
31660 library_names_spec \
31661 soname_spec \
31662 install_override_mode \
31663 finish_eval \
31664 old_striplib \
31665 striplib \
31666 compiler_lib_search_dirs \
31667 predep_objects \
31668 postdep_objects \
31669 predeps \
31670 postdeps \
31671 compiler_lib_search_path \
31672 LD_CXX \
31673 reload_flag_CXX \
31674 compiler_CXX \
31675 lt_prog_compiler_no_builtin_flag_CXX \
31676 lt_prog_compiler_pic_CXX \
31677 lt_prog_compiler_wl_CXX \
31678 lt_prog_compiler_static_CXX \
31679 lt_cv_prog_compiler_c_o_CXX \
31680 export_dynamic_flag_spec_CXX \
31681 whole_archive_flag_spec_CXX \
31682 compiler_needs_object_CXX \
31683 with_gnu_ld_CXX \
31684 allow_undefined_flag_CXX \
31685 no_undefined_flag_CXX \
31686 hardcode_libdir_flag_spec_CXX \
31687 hardcode_libdir_flag_spec_ld_CXX \
31688 hardcode_libdir_separator_CXX \
31689 exclude_expsyms_CXX \
31690 include_expsyms_CXX \
31691 file_list_spec_CXX \
31692 compiler_lib_search_dirs_CXX \
31693 predep_objects_CXX \
31694 postdep_objects_CXX \
31695 predeps_CXX \
31696 postdeps_CXX \
31697 compiler_lib_search_path_CXX; do
31698     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31699     *[\\\\\\\`\\"\\\$]*)
31700       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31701       ;;
31702     *)
31703       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31704       ;;
31705     esac
31706 done
31707
31708 # Double-quote double-evaled strings.
31709 for var in reload_cmds \
31710 old_postinstall_cmds \
31711 old_postuninstall_cmds \
31712 old_archive_cmds \
31713 extract_expsyms_cmds \
31714 old_archive_from_new_cmds \
31715 old_archive_from_expsyms_cmds \
31716 archive_cmds \
31717 archive_expsym_cmds \
31718 module_cmds \
31719 module_expsym_cmds \
31720 export_symbols_cmds \
31721 prelink_cmds \
31722 postlink_cmds \
31723 postinstall_cmds \
31724 postuninstall_cmds \
31725 finish_cmds \
31726 sys_lib_search_path_spec \
31727 sys_lib_dlsearch_path_spec \
31728 reload_cmds_CXX \
31729 old_archive_cmds_CXX \
31730 old_archive_from_new_cmds_CXX \
31731 old_archive_from_expsyms_cmds_CXX \
31732 archive_cmds_CXX \
31733 archive_expsym_cmds_CXX \
31734 module_cmds_CXX \
31735 module_expsym_cmds_CXX \
31736 export_symbols_cmds_CXX \
31737 prelink_cmds_CXX \
31738 postlink_cmds_CXX; do
31739     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31740     *[\\\\\\\`\\"\\\$]*)
31741       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31742       ;;
31743     *)
31744       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31745       ;;
31746     esac
31747 done
31748
31749 ac_aux_dir='$ac_aux_dir'
31750 xsi_shell='$xsi_shell'
31751 lt_shell_append='$lt_shell_append'
31752
31753 # See if we are running on zsh, and set the options which allow our
31754 # commands through without removal of \ escapes INIT.
31755 if test -n "\${ZSH_VERSION+set}" ; then
31756    setopt NO_GLOB_SUBST
31757 fi
31758
31759
31760     PACKAGE='$PACKAGE'
31761     VERSION='$VERSION'
31762     TIMESTAMP='$TIMESTAMP'
31763     RM='$RM'
31764     ofile='$ofile'
31765
31766
31767
31768
31769
31770 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31771     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31772     # from automake.
31773     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31774     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31775     LINGUAS="${LINGUAS-%UNSET%}"
31776
31777
31778 _ACEOF
31779
31780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31781
31782 # Handling of arguments.
31783 for ac_config_target in $ac_config_targets
31784 do
31785   case $ac_config_target in
31786     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31787     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31788     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31789     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31790     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31791     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31792     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31793     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31794     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31795     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31796     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31797     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31798     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31799     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31800     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31801     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31802     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31803     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31804     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31805     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31806     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31807     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31808     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31809     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31810     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31811     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31812     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31813     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31814     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31815     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31816     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31817     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31818     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31819     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31820     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31821     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31822     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31823     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31824     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31825     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31826     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31827     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31828     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31829     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31830     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31831     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31832     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31833     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31834     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31835     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31836     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31837     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31838     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31839     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31840     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31841     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31842     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31843     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31844     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31845     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31846     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31847     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31848     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31849     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31850     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31851     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31852     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31853     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31854     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31855     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31856     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31857     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31858     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31859     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31860     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31861     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31862     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31863     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31864     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31865     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31866     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31867     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31868     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31869     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31870     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31871     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31872     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31873     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
31874     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
31875     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
31876     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
31877     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
31878     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
31879     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
31880     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
31881     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31882     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31883
31884   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31885   esac
31886 done
31887
31888
31889 # If the user did not use the arguments to specify the items to instantiate,
31890 # then the envvar interface is used.  Set only those that are not.
31891 # We use the long form for the default assignment because of an extremely
31892 # bizarre bug on SunOS 4.1.3.
31893 if $ac_need_defaults; then
31894   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31895   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31896   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31897 fi
31898
31899 # Have a temporary directory for convenience.  Make it in the build tree
31900 # simply because there is no reason against having it here, and in addition,
31901 # creating and moving files from /tmp can sometimes cause problems.
31902 # Hook for its removal unless debugging.
31903 # Note that there is a small window in which the directory will not be cleaned:
31904 # after its creation but before its name has been assigned to `$tmp'.
31905 $debug ||
31906 {
31907   tmp= ac_tmp=
31908   trap 'exit_status=$?
31909   : "${ac_tmp:=$tmp}"
31910   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31911 ' 0
31912   trap 'as_fn_exit 1' 1 2 13 15
31913 }
31914 # Create a (secure) tmp directory for tmp files.
31915
31916 {
31917   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31918   test -d "$tmp"
31919 }  ||
31920 {
31921   tmp=./conf$$-$RANDOM
31922   (umask 077 && mkdir "$tmp")
31923 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31924 ac_tmp=$tmp
31925
31926 # Set up the scripts for CONFIG_FILES section.
31927 # No need to generate them if there are no CONFIG_FILES.
31928 # This happens for instance with `./config.status config.h'.
31929 if test -n "$CONFIG_FILES"; then
31930
31931 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31932   ac_cs_awk_getline=:
31933   ac_cs_awk_pipe_init=
31934   ac_cs_awk_read_file='
31935       while ((getline aline < (F[key])) > 0)
31936         print(aline)
31937       close(F[key])'
31938   ac_cs_awk_pipe_fini=
31939 else
31940   ac_cs_awk_getline=false
31941   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31942   ac_cs_awk_read_file='
31943       print "|#_!!_#|"
31944       print "cat " F[key] " &&"
31945       '$ac_cs_awk_pipe_init
31946   # The final `:' finishes the AND list.
31947   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31948 fi
31949 ac_cr=`echo X | tr X '\015'`
31950 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31951 # But we know of no other shell where ac_cr would be empty at this
31952 # point, so we can use a bashism as a fallback.
31953 if test "x$ac_cr" = x; then
31954   eval ac_cr=\$\'\\r\'
31955 fi
31956 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31957 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31958   ac_cs_awk_cr='\\r'
31959 else
31960   ac_cs_awk_cr=$ac_cr
31961 fi
31962
31963 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31964 _ACEOF
31965
31966 # Create commands to substitute file output variables.
31967 {
31968   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31969   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31970   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31971   echo "_ACAWK" &&
31972   echo "_ACEOF"
31973 } >conf$$files.sh &&
31974 . ./conf$$files.sh ||
31975   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31976 rm -f conf$$files.sh
31977
31978 {
31979   echo "cat >conf$$subs.awk <<_ACEOF" &&
31980   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31981   echo "_ACEOF"
31982 } >conf$$subs.sh ||
31983   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31985 ac_delim='%!_!# '
31986 for ac_last_try in false false false false false :; do
31987   . ./conf$$subs.sh ||
31988     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31989
31990   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31991   if test $ac_delim_n = $ac_delim_num; then
31992     break
31993   elif $ac_last_try; then
31994     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31995   else
31996     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31997   fi
31998 done
31999 rm -f conf$$subs.sh
32000
32001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32002 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32003 _ACEOF
32004 sed -n '
32005 h
32006 s/^/S["/; s/!.*/"]=/
32007 p
32008 g
32009 s/^[^!]*!//
32010 :repl
32011 t repl
32012 s/'"$ac_delim"'$//
32013 t delim
32014 :nl
32015 h
32016 s/\(.\{148\}\)..*/\1/
32017 t more1
32018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32019 p
32020 n
32021 b repl
32022 :more1
32023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32024 p
32025 g
32026 s/.\{148\}//
32027 t nl
32028 :delim
32029 h
32030 s/\(.\{148\}\)..*/\1/
32031 t more2
32032 s/["\\]/\\&/g; s/^/"/; s/$/"/
32033 p
32034 b
32035 :more2
32036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32037 p
32038 g
32039 s/.\{148\}//
32040 t delim
32041 ' <conf$$subs.awk | sed '
32042 /^[^""]/{
32043   N
32044   s/\n//
32045 }
32046 ' >>$CONFIG_STATUS || ac_write_fail=1
32047 rm -f conf$$subs.awk
32048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32049 _ACAWK
32050 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32051   for (key in S) S_is_set[key] = 1
32052   FS = "\a"
32053   \$ac_cs_awk_pipe_init
32054 }
32055 {
32056   line = $ 0
32057   nfields = split(line, field, "@")
32058   substed = 0
32059   len = length(field[1])
32060   for (i = 2; i < nfields; i++) {
32061     key = field[i]
32062     keylen = length(key)
32063     if (S_is_set[key]) {
32064       value = S[key]
32065       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32066       len += length(value) + length(field[++i])
32067       substed = 1
32068     } else
32069       len += 1 + keylen
32070   }
32071   if (nfields == 3 && !substed) {
32072     key = field[2]
32073     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32074       \$ac_cs_awk_read_file
32075       next
32076     }
32077   }
32078   print line
32079 }
32080 \$ac_cs_awk_pipe_fini
32081 _ACAWK
32082 _ACEOF
32083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32084 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32085   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32086 else
32087   cat
32088 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32089   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32090 _ACEOF
32091
32092 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32093 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32094 # trailing colons and then remove the whole line if VPATH becomes empty
32095 # (actually we leave an empty line to preserve line numbers).
32096 if test "x$srcdir" = x.; then
32097   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32098 h
32099 s///
32100 s/^/:/
32101 s/[      ]*$/:/
32102 s/:\$(srcdir):/:/g
32103 s/:\${srcdir}:/:/g
32104 s/:@srcdir@:/:/g
32105 s/^:*//
32106 s/:*$//
32107 x
32108 s/\(=[   ]*\).*/\1/
32109 G
32110 s/\n//
32111 s/^[^=]*=[       ]*$//
32112 }'
32113 fi
32114
32115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32116 fi # test -n "$CONFIG_FILES"
32117
32118 # Set up the scripts for CONFIG_HEADERS section.
32119 # No need to generate them if there are no CONFIG_HEADERS.
32120 # This happens for instance with `./config.status Makefile'.
32121 if test -n "$CONFIG_HEADERS"; then
32122 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32123 BEGIN {
32124 _ACEOF
32125
32126 # Transform confdefs.h into an awk script `defines.awk', embedded as
32127 # here-document in config.status, that substitutes the proper values into
32128 # config.h.in to produce config.h.
32129
32130 # Create a delimiter string that does not exist in confdefs.h, to ease
32131 # handling of long lines.
32132 ac_delim='%!_!# '
32133 for ac_last_try in false false :; do
32134   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32135   if test -z "$ac_tt"; then
32136     break
32137   elif $ac_last_try; then
32138     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32139   else
32140     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32141   fi
32142 done
32143
32144 # For the awk script, D is an array of macro values keyed by name,
32145 # likewise P contains macro parameters if any.  Preserve backslash
32146 # newline sequences.
32147
32148 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32149 sed -n '
32150 s/.\{148\}/&'"$ac_delim"'/g
32151 t rset
32152 :rset
32153 s/^[     ]*#[    ]*define[       ][      ]*/ /
32154 t def
32155 d
32156 :def
32157 s/\\$//
32158 t bsnl
32159 s/["\\]/\\&/g
32160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32161 D["\1"]=" \3"/p
32162 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32163 d
32164 :bsnl
32165 s/["\\]/\\&/g
32166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32167 D["\1"]=" \3\\\\\\n"\\/p
32168 t cont
32169 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32170 t cont
32171 d
32172 :cont
32173 n
32174 s/.\{148\}/&'"$ac_delim"'/g
32175 t clear
32176 :clear
32177 s/\\$//
32178 t bsnlc
32179 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32180 d
32181 :bsnlc
32182 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32183 b cont
32184 ' <confdefs.h | sed '
32185 s/'"$ac_delim"'/"\\\
32186 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32187
32188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32189   for (key in D) D_is_set[key] = 1
32190   FS = "\a"
32191 }
32192 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32193   line = \$ 0
32194   split(line, arg, " ")
32195   if (arg[1] == "#") {
32196     defundef = arg[2]
32197     mac1 = arg[3]
32198   } else {
32199     defundef = substr(arg[1], 2)
32200     mac1 = arg[2]
32201   }
32202   split(mac1, mac2, "(") #)
32203   macro = mac2[1]
32204   prefix = substr(line, 1, index(line, defundef) - 1)
32205   if (D_is_set[macro]) {
32206     # Preserve the white space surrounding the "#".
32207     print prefix "define", macro P[macro] D[macro]
32208     next
32209   } else {
32210     # Replace #undef with comments.  This is necessary, for example,
32211     # in the case of _POSIX_SOURCE, which is predefined and required
32212     # on some systems where configure will not decide to define it.
32213     if (defundef == "undef") {
32214       print "/*", prefix defundef, macro, "*/"
32215       next
32216     }
32217   }
32218 }
32219 { print }
32220 _ACAWK
32221 _ACEOF
32222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32223   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32224 fi # test -n "$CONFIG_HEADERS"
32225
32226
32227 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32228 shift
32229 for ac_tag
32230 do
32231   case $ac_tag in
32232   :[FHLC]) ac_mode=$ac_tag; continue;;
32233   esac
32234   case $ac_mode$ac_tag in
32235   :[FHL]*:*);;
32236   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32237   :[FH]-) ac_tag=-:-;;
32238   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32239   esac
32240   ac_save_IFS=$IFS
32241   IFS=:
32242   set x $ac_tag
32243   IFS=$ac_save_IFS
32244   shift
32245   ac_file=$1
32246   shift
32247
32248   case $ac_mode in
32249   :L) ac_source=$1;;
32250   :[FH])
32251     ac_file_inputs=
32252     for ac_f
32253     do
32254       case $ac_f in
32255       -) ac_f="$ac_tmp/stdin";;
32256       *) # Look for the file first in the build tree, then in the source tree
32257          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32258          # because $ac_f cannot contain `:'.
32259          test -f "$ac_f" ||
32260            case $ac_f in
32261            [\\/$]*) false;;
32262            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32263            esac ||
32264            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32265       esac
32266       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32267       as_fn_append ac_file_inputs " '$ac_f'"
32268     done
32269
32270     # Let's still pretend it is `configure' which instantiates (i.e., don't
32271     # use $as_me), people would be surprised to read:
32272     #    /* config.h.  Generated by config.status.  */
32273     configure_input='Generated from '`
32274           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32275         `' by configure.'
32276     if test x"$ac_file" != x-; then
32277       configure_input="$ac_file.  $configure_input"
32278       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32279 $as_echo "$as_me: creating $ac_file" >&6;}
32280     fi
32281     # Neutralize special characters interpreted by sed in replacement strings.
32282     case $configure_input in #(
32283     *\&* | *\|* | *\\* )
32284        ac_sed_conf_input=`$as_echo "$configure_input" |
32285        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32286     *) ac_sed_conf_input=$configure_input;;
32287     esac
32288
32289     case $ac_tag in
32290     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32291       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32292     esac
32293     ;;
32294   esac
32295
32296   ac_dir=`$as_dirname -- "$ac_file" ||
32297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32298          X"$ac_file" : 'X\(//\)[^/]' \| \
32299          X"$ac_file" : 'X\(//\)$' \| \
32300          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32301 $as_echo X"$ac_file" |
32302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32303             s//\1/
32304             q
32305           }
32306           /^X\(\/\/\)[^/].*/{
32307             s//\1/
32308             q
32309           }
32310           /^X\(\/\/\)$/{
32311             s//\1/
32312             q
32313           }
32314           /^X\(\/\).*/{
32315             s//\1/
32316             q
32317           }
32318           s/.*/./; q'`
32319   as_dir="$ac_dir"; as_fn_mkdir_p
32320   ac_builddir=.
32321
32322 case "$ac_dir" in
32323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32324 *)
32325   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32326   # A ".." for each directory in $ac_dir_suffix.
32327   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32328   case $ac_top_builddir_sub in
32329   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32330   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32331   esac ;;
32332 esac
32333 ac_abs_top_builddir=$ac_pwd
32334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32335 # for backward compatibility:
32336 ac_top_builddir=$ac_top_build_prefix
32337
32338 case $srcdir in
32339   .)  # We are building in place.
32340     ac_srcdir=.
32341     ac_top_srcdir=$ac_top_builddir_sub
32342     ac_abs_top_srcdir=$ac_pwd ;;
32343   [\\/]* | ?:[\\/]* )  # Absolute name.
32344     ac_srcdir=$srcdir$ac_dir_suffix;
32345     ac_top_srcdir=$srcdir
32346     ac_abs_top_srcdir=$srcdir ;;
32347   *) # Relative name.
32348     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32349     ac_top_srcdir=$ac_top_build_prefix$srcdir
32350     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32351 esac
32352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32353
32354
32355   case $ac_mode in
32356   :F)
32357   #
32358   # CONFIG_FILE
32359   #
32360
32361   case $INSTALL in
32362   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32363   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32364   esac
32365 _ACEOF
32366
32367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32368 # If the template does not know about datarootdir, expand it.
32369 # FIXME: This hack should be removed a few years after 2.60.
32370 ac_datarootdir_hack=; ac_datarootdir_seen=
32371 ac_sed_dataroot='
32372 /datarootdir/ {
32373   p
32374   q
32375 }
32376 /@datadir@/p
32377 /@docdir@/p
32378 /@infodir@/p
32379 /@localedir@/p
32380 /@mandir@/p'
32381 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32382 *datarootdir*) ac_datarootdir_seen=yes;;
32383 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32384   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32385 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32386 _ACEOF
32387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32388   ac_datarootdir_hack='
32389   s&@datadir@&$datadir&g
32390   s&@docdir@&$docdir&g
32391   s&@infodir@&$infodir&g
32392   s&@localedir@&$localedir&g
32393   s&@mandir@&$mandir&g
32394   s&\\\${datarootdir}&$datarootdir&g' ;;
32395 esac
32396 _ACEOF
32397
32398 # Neutralize VPATH when `$srcdir' = `.'.
32399 # Shell code in configure.ac might set extrasub.
32400 # FIXME: do we really want to maintain this feature?
32401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32402 ac_sed_extra="$ac_vpsub
32403 $extrasub
32404 _ACEOF
32405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32406 :t
32407 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32408 s|@configure_input@|$ac_sed_conf_input|;t t
32409 s&@top_builddir@&$ac_top_builddir_sub&;t t
32410 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32411 s&@srcdir@&$ac_srcdir&;t t
32412 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32413 s&@top_srcdir@&$ac_top_srcdir&;t t
32414 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32415 s&@builddir@&$ac_builddir&;t t
32416 s&@abs_builddir@&$ac_abs_builddir&;t t
32417 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32418 s&@INSTALL@&$ac_INSTALL&;t t
32419 $ac_datarootdir_hack
32420 "
32421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32422 if $ac_cs_awk_getline; then
32423   $AWK -f "$ac_tmp/subs.awk"
32424 else
32425   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32426 fi \
32427   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32428
32429 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32430   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32431   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32432       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32433   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32434 which seems to be undefined.  Please make sure it is defined" >&5
32435 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32436 which seems to be undefined.  Please make sure it is defined" >&2;}
32437
32438   rm -f "$ac_tmp/stdin"
32439   case $ac_file in
32440   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32441   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32442   esac \
32443   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32444  ;;
32445   :H)
32446   #
32447   # CONFIG_HEADER
32448   #
32449   if test x"$ac_file" != x-; then
32450     {
32451       $as_echo "/* $configure_input  */" \
32452       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32453     } >"$ac_tmp/config.h" \
32454       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32455     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32456       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32457 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32458     else
32459       rm -f "$ac_file"
32460       mv "$ac_tmp/config.h" "$ac_file" \
32461         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32462     fi
32463   else
32464     $as_echo "/* $configure_input  */" \
32465       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32466       || as_fn_error $? "could not create -" "$LINENO" 5
32467   fi
32468  ;;
32469
32470   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32471 $as_echo "$as_me: executing $ac_file commands" >&6;}
32472  ;;
32473   esac
32474
32475
32476   case $ac_file$ac_mode in
32477     "libtool":C)
32478
32479     # See if we are running on zsh, and set the options which allow our
32480     # commands through without removal of \ escapes.
32481     if test -n "${ZSH_VERSION+set}" ; then
32482       setopt NO_GLOB_SUBST
32483     fi
32484
32485     cfgfile="${ofile}T"
32486     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32487     $RM "$cfgfile"
32488
32489     cat <<_LT_EOF >> "$cfgfile"
32490 #! $SHELL
32491
32492 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32493 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32495 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32496 #
32497 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32498 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32499 #                 Inc.
32500 #   Written by Gordon Matzigkeit, 1996
32501 #
32502 #   This file is part of GNU Libtool.
32503 #
32504 # GNU Libtool is free software; you can redistribute it and/or
32505 # modify it under the terms of the GNU General Public License as
32506 # published by the Free Software Foundation; either version 2 of
32507 # the License, or (at your option) any later version.
32508 #
32509 # As a special exception to the GNU General Public License,
32510 # if you distribute this file as part of a program or library that
32511 # is built using GNU Libtool, you may include this file under the
32512 # same distribution terms that you use for the rest of that program.
32513 #
32514 # GNU Libtool is distributed in the hope that it will be useful,
32515 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32516 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32517 # GNU General Public License for more details.
32518 #
32519 # You should have received a copy of the GNU General Public License
32520 # along with GNU Libtool; see the file COPYING.  If not, a copy
32521 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32522 # obtained by writing to the Free Software Foundation, Inc.,
32523 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32524
32525
32526 # The names of the tagged configurations supported by this script.
32527 available_tags="CXX "
32528
32529 # ### BEGIN LIBTOOL CONFIG
32530
32531 # Which release of libtool.m4 was used?
32532 macro_version=$macro_version
32533 macro_revision=$macro_revision
32534
32535 # Whether or not to build shared libraries.
32536 build_libtool_libs=$enable_shared
32537
32538 # Whether or not to build static libraries.
32539 build_old_libs=$enable_static
32540
32541 # What type of objects to build.
32542 pic_mode=$pic_mode
32543
32544 # Whether or not to optimize for fast installation.
32545 fast_install=$enable_fast_install
32546
32547 # Shell to use when invoking shell scripts.
32548 SHELL=$lt_SHELL
32549
32550 # An echo program that protects backslashes.
32551 ECHO=$lt_ECHO
32552
32553 # The host system.
32554 host_alias=$host_alias
32555 host=$host
32556 host_os=$host_os
32557
32558 # The build system.
32559 build_alias=$build_alias
32560 build=$build
32561 build_os=$build_os
32562
32563 # A sed program that does not truncate output.
32564 SED=$lt_SED
32565
32566 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32567 Xsed="\$SED -e 1s/^X//"
32568
32569 # A grep program that handles long lines.
32570 GREP=$lt_GREP
32571
32572 # An ERE matcher.
32573 EGREP=$lt_EGREP
32574
32575 # A literal string matcher.
32576 FGREP=$lt_FGREP
32577
32578 # A BSD- or MS-compatible name lister.
32579 NM=$lt_NM
32580
32581 # Whether we need soft or hard links.
32582 LN_S=$lt_LN_S
32583
32584 # What is the maximum length of a command?
32585 max_cmd_len=$max_cmd_len
32586
32587 # Object file suffix (normally "o").
32588 objext=$ac_objext
32589
32590 # Executable file suffix (normally "").
32591 exeext=$exeext
32592
32593 # whether the shell understands "unset".
32594 lt_unset=$lt_unset
32595
32596 # turn spaces into newlines.
32597 SP2NL=$lt_lt_SP2NL
32598
32599 # turn newlines into spaces.
32600 NL2SP=$lt_lt_NL2SP
32601
32602 # convert \$build file names to \$host format.
32603 to_host_file_cmd=$lt_cv_to_host_file_cmd
32604
32605 # convert \$build files to toolchain format.
32606 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32607
32608 # An object symbol dumper.
32609 OBJDUMP=$lt_OBJDUMP
32610
32611 # Method to check whether dependent libraries are shared objects.
32612 deplibs_check_method=$lt_deplibs_check_method
32613
32614 # Command to use when deplibs_check_method = "file_magic".
32615 file_magic_cmd=$lt_file_magic_cmd
32616
32617 # How to find potential files when deplibs_check_method = "file_magic".
32618 file_magic_glob=$lt_file_magic_glob
32619
32620 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32621 want_nocaseglob=$lt_want_nocaseglob
32622
32623 # DLL creation program.
32624 DLLTOOL=$lt_DLLTOOL
32625
32626 # Command to associate shared and link libraries.
32627 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32628
32629 # The archiver.
32630 AR=$lt_AR
32631
32632 # Flags to create an archive.
32633 AR_FLAGS=$lt_AR_FLAGS
32634
32635 # How to feed a file listing to the archiver.
32636 archiver_list_spec=$lt_archiver_list_spec
32637
32638 # A symbol stripping program.
32639 STRIP=$lt_STRIP
32640
32641 # Commands used to install an old-style archive.
32642 RANLIB=$lt_RANLIB
32643 old_postinstall_cmds=$lt_old_postinstall_cmds
32644 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32645
32646 # Whether to use a lock for old archive extraction.
32647 lock_old_archive_extraction=$lock_old_archive_extraction
32648
32649 # A C compiler.
32650 LTCC=$lt_CC
32651
32652 # LTCC compiler flags.
32653 LTCFLAGS=$lt_CFLAGS
32654
32655 # Take the output of nm and produce a listing of raw symbols and C names.
32656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32657
32658 # Transform the output of nm in a proper C declaration.
32659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32660
32661 # Transform the output of nm in a C name address pair.
32662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32663
32664 # Transform the output of nm in a C name address pair when lib prefix is needed.
32665 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32666
32667 # Specify filename containing input files for \$NM.
32668 nm_file_list_spec=$lt_nm_file_list_spec
32669
32670 # The root where to search for dependent libraries,and in which our libraries should be installed.
32671 lt_sysroot=$lt_sysroot
32672
32673 # The name of the directory that contains temporary libtool files.
32674 objdir=$objdir
32675
32676 # Used to examine libraries when file_magic_cmd begins with "file".
32677 MAGIC_CMD=$MAGIC_CMD
32678
32679 # Must we lock files when doing compilation?
32680 need_locks=$lt_need_locks
32681
32682 # Manifest tool.
32683 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32684
32685 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32686 DSYMUTIL=$lt_DSYMUTIL
32687
32688 # Tool to change global to local symbols on Mac OS X.
32689 NMEDIT=$lt_NMEDIT
32690
32691 # Tool to manipulate fat objects and archives on Mac OS X.
32692 LIPO=$lt_LIPO
32693
32694 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32695 OTOOL=$lt_OTOOL
32696
32697 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32698 OTOOL64=$lt_OTOOL64
32699
32700 # Old archive suffix (normally "a").
32701 libext=$libext
32702
32703 # Shared library suffix (normally ".so").
32704 shrext_cmds=$lt_shrext_cmds
32705
32706 # The commands to extract the exported symbol list from a shared archive.
32707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32708
32709 # Variables whose values should be saved in libtool wrapper scripts and
32710 # restored at link time.
32711 variables_saved_for_relink=$lt_variables_saved_for_relink
32712
32713 # Do we need the "lib" prefix for modules?
32714 need_lib_prefix=$need_lib_prefix
32715
32716 # Do we need a version for libraries?
32717 need_version=$need_version
32718
32719 # Library versioning type.
32720 version_type=$version_type
32721
32722 # Shared library runtime path variable.
32723 runpath_var=$runpath_var
32724
32725 # Shared library path variable.
32726 shlibpath_var=$shlibpath_var
32727
32728 # Is shlibpath searched before the hard-coded library search path?
32729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32730
32731 # Format of library name prefix.
32732 libname_spec=$lt_libname_spec
32733
32734 # List of archive names.  First name is the real one, the rest are links.
32735 # The last name is the one that the linker finds with -lNAME
32736 library_names_spec=$lt_library_names_spec
32737
32738 # The coded name of the library, if different from the real name.
32739 soname_spec=$lt_soname_spec
32740
32741 # Permission mode override for installation of shared libraries.
32742 install_override_mode=$lt_install_override_mode
32743
32744 # Command to use after installation of a shared archive.
32745 postinstall_cmds=$lt_postinstall_cmds
32746
32747 # Command to use after uninstallation of a shared archive.
32748 postuninstall_cmds=$lt_postuninstall_cmds
32749
32750 # Commands used to finish a libtool library installation in a directory.
32751 finish_cmds=$lt_finish_cmds
32752
32753 # As "finish_cmds", except a single script fragment to be evaled but
32754 # not shown.
32755 finish_eval=$lt_finish_eval
32756
32757 # Whether we should hardcode library paths into libraries.
32758 hardcode_into_libs=$hardcode_into_libs
32759
32760 # Compile-time system search path for libraries.
32761 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32762
32763 # Run-time system search path for libraries.
32764 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32765
32766 # Whether dlopen is supported.
32767 dlopen_support=$enable_dlopen
32768
32769 # Whether dlopen of programs is supported.
32770 dlopen_self=$enable_dlopen_self
32771
32772 # Whether dlopen of statically linked programs is supported.
32773 dlopen_self_static=$enable_dlopen_self_static
32774
32775 # Commands to strip libraries.
32776 old_striplib=$lt_old_striplib
32777 striplib=$lt_striplib
32778
32779
32780 # The linker used to build libraries.
32781 LD=$lt_LD
32782
32783 # How to create reloadable object files.
32784 reload_flag=$lt_reload_flag
32785 reload_cmds=$lt_reload_cmds
32786
32787 # Commands used to build an old-style archive.
32788 old_archive_cmds=$lt_old_archive_cmds
32789
32790 # A language specific compiler.
32791 CC=$lt_compiler
32792
32793 # Is the compiler the GNU compiler?
32794 with_gcc=$GCC
32795
32796 # Compiler flag to turn off builtin functions.
32797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32798
32799 # Additional compiler flags for building library objects.
32800 pic_flag=$lt_lt_prog_compiler_pic
32801
32802 # How to pass a linker flag through the compiler.
32803 wl=$lt_lt_prog_compiler_wl
32804
32805 # Compiler flag to prevent dynamic linking.
32806 link_static_flag=$lt_lt_prog_compiler_static
32807
32808 # Does compiler simultaneously support -c and -o options?
32809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32810
32811 # Whether or not to add -lc for building shared libraries.
32812 build_libtool_need_lc=$archive_cmds_need_lc
32813
32814 # Whether or not to disallow shared libs when runtime libs are static.
32815 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32816
32817 # Compiler flag to allow reflexive dlopens.
32818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32819
32820 # Compiler flag to generate shared objects directly from archives.
32821 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32822
32823 # Whether the compiler copes with passing no objects directly.
32824 compiler_needs_object=$lt_compiler_needs_object
32825
32826 # Create an old-style archive from a shared archive.
32827 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32828
32829 # Create a temporary old-style archive to link instead of a shared archive.
32830 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32831
32832 # Commands used to build a shared archive.
32833 archive_cmds=$lt_archive_cmds
32834 archive_expsym_cmds=$lt_archive_expsym_cmds
32835
32836 # Commands used to build a loadable module if different from building
32837 # a shared archive.
32838 module_cmds=$lt_module_cmds
32839 module_expsym_cmds=$lt_module_expsym_cmds
32840
32841 # Whether we are building with GNU ld or not.
32842 with_gnu_ld=$lt_with_gnu_ld
32843
32844 # Flag that allows shared libraries with undefined symbols to be built.
32845 allow_undefined_flag=$lt_allow_undefined_flag
32846
32847 # Flag that enforces no undefined symbols.
32848 no_undefined_flag=$lt_no_undefined_flag
32849
32850 # Flag to hardcode \$libdir into a binary during linking.
32851 # This must work even if \$libdir does not exist
32852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32853
32854 # If ld is used when linking, flag to hardcode \$libdir into a binary
32855 # during linking.  This must work even if \$libdir does not exist.
32856 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32857
32858 # Whether we need a single "-rpath" flag with a separated argument.
32859 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32860
32861 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32862 # DIR into the resulting binary.
32863 hardcode_direct=$hardcode_direct
32864
32865 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32866 # DIR into the resulting binary and the resulting library dependency is
32867 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32868 # library is relocated.
32869 hardcode_direct_absolute=$hardcode_direct_absolute
32870
32871 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32872 # into the resulting binary.
32873 hardcode_minus_L=$hardcode_minus_L
32874
32875 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32876 # into the resulting binary.
32877 hardcode_shlibpath_var=$hardcode_shlibpath_var
32878
32879 # Set to "yes" if building a shared library automatically hardcodes DIR
32880 # into the library and all subsequent libraries and executables linked
32881 # against it.
32882 hardcode_automatic=$hardcode_automatic
32883
32884 # Set to yes if linker adds runtime paths of dependent libraries
32885 # to runtime path list.
32886 inherit_rpath=$inherit_rpath
32887
32888 # Whether libtool must link a program against all its dependency libraries.
32889 link_all_deplibs=$link_all_deplibs
32890
32891 # Set to "yes" if exported symbols are required.
32892 always_export_symbols=$always_export_symbols
32893
32894 # The commands to list exported symbols.
32895 export_symbols_cmds=$lt_export_symbols_cmds
32896
32897 # Symbols that should not be listed in the preloaded symbols.
32898 exclude_expsyms=$lt_exclude_expsyms
32899
32900 # Symbols that must always be exported.
32901 include_expsyms=$lt_include_expsyms
32902
32903 # Commands necessary for linking programs (against libraries) with templates.
32904 prelink_cmds=$lt_prelink_cmds
32905
32906 # Commands necessary for finishing linking programs.
32907 postlink_cmds=$lt_postlink_cmds
32908
32909 # Specify filename containing input files.
32910 file_list_spec=$lt_file_list_spec
32911
32912 # How to hardcode a shared library path into an executable.
32913 hardcode_action=$hardcode_action
32914
32915 # The directories searched by this compiler when creating a shared library.
32916 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32917
32918 # Dependencies to place before and after the objects being linked to
32919 # create a shared library.
32920 predep_objects=$lt_predep_objects
32921 postdep_objects=$lt_postdep_objects
32922 predeps=$lt_predeps
32923 postdeps=$lt_postdeps
32924
32925 # The library search path used internally by the compiler when linking
32926 # a shared library.
32927 compiler_lib_search_path=$lt_compiler_lib_search_path
32928
32929 # ### END LIBTOOL CONFIG
32930
32931 _LT_EOF
32932
32933   case $host_os in
32934   aix3*)
32935     cat <<\_LT_EOF >> "$cfgfile"
32936 # AIX sometimes has problems with the GCC collect2 program.  For some
32937 # reason, if we set the COLLECT_NAMES environment variable, the problems
32938 # vanish in a puff of smoke.
32939 if test "X${COLLECT_NAMES+set}" != Xset; then
32940   COLLECT_NAMES=
32941   export COLLECT_NAMES
32942 fi
32943 _LT_EOF
32944     ;;
32945   esac
32946
32947
32948 ltmain="$ac_aux_dir/ltmain.sh"
32949
32950
32951   # We use sed instead of cat because bash on DJGPP gets confused if
32952   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32953   # text mode, it properly converts lines to CR/LF.  This bash problem
32954   # is reportedly fixed, but why not run on old versions too?
32955   sed '$q' "$ltmain" >> "$cfgfile" \
32956      || (rm -f "$cfgfile"; exit 1)
32957
32958   if test x"$xsi_shell" = xyes; then
32959   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32960 func_dirname ()\
32961 {\
32962 \    case ${1} in\
32963 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32964 \      *  ) func_dirname_result="${3}" ;;\
32965 \    esac\
32966 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32967   && mv -f "$cfgfile.tmp" "$cfgfile" \
32968     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32969 test 0 -eq $? || _lt_function_replace_fail=:
32970
32971
32972   sed -e '/^func_basename ()$/,/^} # func_basename /c\
32973 func_basename ()\
32974 {\
32975 \    func_basename_result="${1##*/}"\
32976 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32977   && mv -f "$cfgfile.tmp" "$cfgfile" \
32978     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32979 test 0 -eq $? || _lt_function_replace_fail=:
32980
32981
32982   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32983 func_dirname_and_basename ()\
32984 {\
32985 \    case ${1} in\
32986 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32987 \      *  ) func_dirname_result="${3}" ;;\
32988 \    esac\
32989 \    func_basename_result="${1##*/}"\
32990 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32991   && mv -f "$cfgfile.tmp" "$cfgfile" \
32992     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32993 test 0 -eq $? || _lt_function_replace_fail=:
32994
32995
32996   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32997 func_stripname ()\
32998 {\
32999 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33000 \    # positional parameters, so assign one to ordinary parameter first.\
33001 \    func_stripname_result=${3}\
33002 \    func_stripname_result=${func_stripname_result#"${1}"}\
33003 \    func_stripname_result=${func_stripname_result%"${2}"}\
33004 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33005   && mv -f "$cfgfile.tmp" "$cfgfile" \
33006     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33007 test 0 -eq $? || _lt_function_replace_fail=:
33008
33009
33010   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33011 func_split_long_opt ()\
33012 {\
33013 \    func_split_long_opt_name=${1%%=*}\
33014 \    func_split_long_opt_arg=${1#*=}\
33015 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33016   && mv -f "$cfgfile.tmp" "$cfgfile" \
33017     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33018 test 0 -eq $? || _lt_function_replace_fail=:
33019
33020
33021   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33022 func_split_short_opt ()\
33023 {\
33024 \    func_split_short_opt_arg=${1#??}\
33025 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33026 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33027   && mv -f "$cfgfile.tmp" "$cfgfile" \
33028     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33029 test 0 -eq $? || _lt_function_replace_fail=:
33030
33031
33032   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33033 func_lo2o ()\
33034 {\
33035 \    case ${1} in\
33036 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33037 \      *)    func_lo2o_result=${1} ;;\
33038 \    esac\
33039 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33040   && mv -f "$cfgfile.tmp" "$cfgfile" \
33041     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33042 test 0 -eq $? || _lt_function_replace_fail=:
33043
33044
33045   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33046 func_xform ()\
33047 {\
33048     func_xform_result=${1%.*}.lo\
33049 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33050   && mv -f "$cfgfile.tmp" "$cfgfile" \
33051     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33052 test 0 -eq $? || _lt_function_replace_fail=:
33053
33054
33055   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33056 func_arith ()\
33057 {\
33058     func_arith_result=$(( $* ))\
33059 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33060   && mv -f "$cfgfile.tmp" "$cfgfile" \
33061     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33062 test 0 -eq $? || _lt_function_replace_fail=:
33063
33064
33065   sed -e '/^func_len ()$/,/^} # func_len /c\
33066 func_len ()\
33067 {\
33068     func_len_result=${#1}\
33069 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33070   && mv -f "$cfgfile.tmp" "$cfgfile" \
33071     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33072 test 0 -eq $? || _lt_function_replace_fail=:
33073
33074 fi
33075
33076 if test x"$lt_shell_append" = xyes; then
33077   sed -e '/^func_append ()$/,/^} # func_append /c\
33078 func_append ()\
33079 {\
33080     eval "${1}+=\\${2}"\
33081 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33082   && mv -f "$cfgfile.tmp" "$cfgfile" \
33083     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33084 test 0 -eq $? || _lt_function_replace_fail=:
33085
33086
33087   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33088 func_append_quoted ()\
33089 {\
33090 \    func_quote_for_eval "${2}"\
33091 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33092 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33093   && mv -f "$cfgfile.tmp" "$cfgfile" \
33094     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33095 test 0 -eq $? || _lt_function_replace_fail=:
33096
33097
33098   # Save a `func_append' function call where possible by direct use of '+='
33099   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33100     && mv -f "$cfgfile.tmp" "$cfgfile" \
33101       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33102   test 0 -eq $? || _lt_function_replace_fail=:
33103 else
33104   # Save a `func_append' function call even when '+=' is not available
33105   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33106     && mv -f "$cfgfile.tmp" "$cfgfile" \
33107       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33108   test 0 -eq $? || _lt_function_replace_fail=:
33109 fi
33110
33111 if test x"$_lt_function_replace_fail" = x":"; then
33112   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33113 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33114 fi
33115
33116
33117    mv -f "$cfgfile" "$ofile" ||
33118     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33119   chmod +x "$ofile"
33120
33121
33122     cat <<_LT_EOF >> "$ofile"
33123
33124 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33125
33126 # The linker used to build libraries.
33127 LD=$lt_LD_CXX
33128
33129 # How to create reloadable object files.
33130 reload_flag=$lt_reload_flag_CXX
33131 reload_cmds=$lt_reload_cmds_CXX
33132
33133 # Commands used to build an old-style archive.
33134 old_archive_cmds=$lt_old_archive_cmds_CXX
33135
33136 # A language specific compiler.
33137 CC=$lt_compiler_CXX
33138
33139 # Is the compiler the GNU compiler?
33140 with_gcc=$GCC_CXX
33141
33142 # Compiler flag to turn off builtin functions.
33143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33144
33145 # Additional compiler flags for building library objects.
33146 pic_flag=$lt_lt_prog_compiler_pic_CXX
33147
33148 # How to pass a linker flag through the compiler.
33149 wl=$lt_lt_prog_compiler_wl_CXX
33150
33151 # Compiler flag to prevent dynamic linking.
33152 link_static_flag=$lt_lt_prog_compiler_static_CXX
33153
33154 # Does compiler simultaneously support -c and -o options?
33155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33156
33157 # Whether or not to add -lc for building shared libraries.
33158 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33159
33160 # Whether or not to disallow shared libs when runtime libs are static.
33161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33162
33163 # Compiler flag to allow reflexive dlopens.
33164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33165
33166 # Compiler flag to generate shared objects directly from archives.
33167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33168
33169 # Whether the compiler copes with passing no objects directly.
33170 compiler_needs_object=$lt_compiler_needs_object_CXX
33171
33172 # Create an old-style archive from a shared archive.
33173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33174
33175 # Create a temporary old-style archive to link instead of a shared archive.
33176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33177
33178 # Commands used to build a shared archive.
33179 archive_cmds=$lt_archive_cmds_CXX
33180 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33181
33182 # Commands used to build a loadable module if different from building
33183 # a shared archive.
33184 module_cmds=$lt_module_cmds_CXX
33185 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33186
33187 # Whether we are building with GNU ld or not.
33188 with_gnu_ld=$lt_with_gnu_ld_CXX
33189
33190 # Flag that allows shared libraries with undefined symbols to be built.
33191 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33192
33193 # Flag that enforces no undefined symbols.
33194 no_undefined_flag=$lt_no_undefined_flag_CXX
33195
33196 # Flag to hardcode \$libdir into a binary during linking.
33197 # This must work even if \$libdir does not exist
33198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33199
33200 # If ld is used when linking, flag to hardcode \$libdir into a binary
33201 # during linking.  This must work even if \$libdir does not exist.
33202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33203
33204 # Whether we need a single "-rpath" flag with a separated argument.
33205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33206
33207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33208 # DIR into the resulting binary.
33209 hardcode_direct=$hardcode_direct_CXX
33210
33211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33212 # DIR into the resulting binary and the resulting library dependency is
33213 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33214 # library is relocated.
33215 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33216
33217 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33218 # into the resulting binary.
33219 hardcode_minus_L=$hardcode_minus_L_CXX
33220
33221 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33222 # into the resulting binary.
33223 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33224
33225 # Set to "yes" if building a shared library automatically hardcodes DIR
33226 # into the library and all subsequent libraries and executables linked
33227 # against it.
33228 hardcode_automatic=$hardcode_automatic_CXX
33229
33230 # Set to yes if linker adds runtime paths of dependent libraries
33231 # to runtime path list.
33232 inherit_rpath=$inherit_rpath_CXX
33233
33234 # Whether libtool must link a program against all its dependency libraries.
33235 link_all_deplibs=$link_all_deplibs_CXX
33236
33237 # Set to "yes" if exported symbols are required.
33238 always_export_symbols=$always_export_symbols_CXX
33239
33240 # The commands to list exported symbols.
33241 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33242
33243 # Symbols that should not be listed in the preloaded symbols.
33244 exclude_expsyms=$lt_exclude_expsyms_CXX
33245
33246 # Symbols that must always be exported.
33247 include_expsyms=$lt_include_expsyms_CXX
33248
33249 # Commands necessary for linking programs (against libraries) with templates.
33250 prelink_cmds=$lt_prelink_cmds_CXX
33251
33252 # Commands necessary for finishing linking programs.
33253 postlink_cmds=$lt_postlink_cmds_CXX
33254
33255 # Specify filename containing input files.
33256 file_list_spec=$lt_file_list_spec_CXX
33257
33258 # How to hardcode a shared library path into an executable.
33259 hardcode_action=$hardcode_action_CXX
33260
33261 # The directories searched by this compiler when creating a shared library.
33262 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33263
33264 # Dependencies to place before and after the objects being linked to
33265 # create a shared library.
33266 predep_objects=$lt_predep_objects_CXX
33267 postdep_objects=$lt_postdep_objects_CXX
33268 predeps=$lt_predeps_CXX
33269 postdeps=$lt_postdeps_CXX
33270
33271 # The library search path used internally by the compiler when linking
33272 # a shared library.
33273 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33274
33275 # ### END LIBTOOL TAG CONFIG: CXX
33276 _LT_EOF
33277
33278  ;;
33279     "default-1":C)
33280     for ac_file in $CONFIG_FILES; do
33281       # Support "outfile[:infile[:infile...]]"
33282       case "$ac_file" in
33283         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33284       esac
33285       # PO directories have a Makefile.in generated from Makefile.in.in.
33286       case "$ac_file" in */Makefile.in)
33287         # Adjust a relative srcdir.
33288         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33289         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33290         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33291         # In autoconf-2.13 it is called $ac_given_srcdir.
33292         # In autoconf-2.50 it is called $srcdir.
33293         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33294         case "$ac_given_srcdir" in
33295           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33296           /*) top_srcdir="$ac_given_srcdir" ;;
33297           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33298         esac
33299         # Treat a directory as a PO directory if and only if it has a
33300         # POTFILES.in file. This allows packages to have multiple PO
33301         # directories under different names or in different locations.
33302         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33303           rm -f "$ac_dir/POTFILES"
33304           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33305           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33306           POMAKEFILEDEPS="POTFILES.in"
33307           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33308           # on $ac_dir but don't depend on user-specified configuration
33309           # parameters.
33310           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33311             # The LINGUAS file contains the set of available languages.
33312             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33313               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33314             fi
33315             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33316             # Hide the ALL_LINGUAS assigment from automake.
33317             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33318             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33319           else
33320             # The set of available languages was given in configure.in.
33321             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33322           fi
33323           # Compute POFILES
33324           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33325           # Compute UPDATEPOFILES
33326           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33327           # Compute DUMMYPOFILES
33328           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33329           # Compute GMOFILES
33330           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33331           case "$ac_given_srcdir" in
33332             .) srcdirpre= ;;
33333             *) srcdirpre='$(srcdir)/' ;;
33334           esac
33335           POFILES=
33336           UPDATEPOFILES=
33337           DUMMYPOFILES=
33338           GMOFILES=
33339           for lang in $ALL_LINGUAS; do
33340             POFILES="$POFILES $srcdirpre$lang.po"
33341             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33342             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33343             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33344           done
33345           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33346           # environment variable.
33347           INST_LINGUAS=
33348           if test -n "$ALL_LINGUAS"; then
33349             for presentlang in $ALL_LINGUAS; do
33350               useit=no
33351               if test "%UNSET%" != "$LINGUAS"; then
33352                 desiredlanguages="$LINGUAS"
33353               else
33354                 desiredlanguages="$ALL_LINGUAS"
33355               fi
33356               for desiredlang in $desiredlanguages; do
33357                 # Use the presentlang catalog if desiredlang is
33358                 #   a. equal to presentlang, or
33359                 #   b. a variant of presentlang (because in this case,
33360                 #      presentlang can be used as a fallback for messages
33361                 #      which are not translated in the desiredlang catalog).
33362                 case "$desiredlang" in
33363                   "$presentlang"*) useit=yes;;
33364                 esac
33365               done
33366               if test $useit = yes; then
33367                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33368               fi
33369             done
33370           fi
33371           CATALOGS=
33372           if test -n "$INST_LINGUAS"; then
33373             for lang in $INST_LINGUAS; do
33374               CATALOGS="$CATALOGS $lang.gmo"
33375             done
33376           fi
33377           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33378           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"
33379           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33380             if test -f "$f"; then
33381               case "$f" in
33382                 *.orig | *.bak | *~) ;;
33383                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33384               esac
33385             fi
33386           done
33387         fi
33388         ;;
33389       esac
33390     done ;;
33391     "default":C)
33392  ;;
33393
33394   esac
33395 done # for ac_tag
33396
33397
33398 as_fn_exit 0
33399 _ACEOF
33400 ac_clean_files=$ac_clean_files_save
33401
33402 test $ac_write_fail = 0 ||
33403   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33404
33405
33406 # configure is writing to config.log, and then calls config.status.
33407 # config.status does its own redirection, appending to config.log.
33408 # Unfortunately, on DOS this fails, as config.log is still kept open
33409 # by configure, so config.status won't be able to write to it; its
33410 # output is simply discarded.  So we exec the FD to /dev/null,
33411 # effectively closing config.log, so it can be properly (re)opened and
33412 # appended to by config.status.  When coming back to configure, we
33413 # need to make the FD available again.
33414 if test "$no_create" != yes; then
33415   ac_cs_success=:
33416   ac_config_status_args=
33417   test "$silent" = yes &&
33418     ac_config_status_args="$ac_config_status_args --quiet"
33419   exec 5>/dev/null
33420   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33421   exec 5>>config.log
33422   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33423   # would make configure fail if this is the last instruction.
33424   $ac_cs_success || as_fn_exit 1
33425 fi
33426 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33427   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33428 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33429 fi
33430
33431
33432 if test "${support_bat}" = "yes" ; then
33433    if test "x$QMAKE" = "xnone"; then
33434       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33435    fi
33436
33437    cd src/qt-console
33438    echo "Creating bat Makefile"
33439    touch bat
33440    chmod 755 bat
33441    rm -f Makefile
33442    rm -rf moc32 obj32
33443    $QMAKE
33444    ${MAKE:-make} clean
33445    cd ${BUILD_DIR}
33446 fi
33447
33448 if test X"$GCC" = "Xyes" ; then
33449   echo "Doing make of dependencies"
33450   ${MAKE:-make} depend
33451 fi
33452
33453 cd src/qt-console
33454 chmod 755 install_conf_file build-depkgs-qt-console
33455 cd ${BUILD_DIR}
33456
33457 cd scripts
33458 chmod 755 bacula btraceback mtx-changer storage-ctl bsg_persist
33459 chmod 755 dvd-handler dvd-simulator
33460 chmod 755 bconsole disk-changer devel_bacula logrotate
33461 cd ..
33462
33463 c=updatedb
33464 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33465 chmod 755 $c/update_postgresql_tables_10_to_11
33466 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33467 chmod 755 $c/update_postgresql_tables_11_to_12
33468
33469
33470 c=src/cats
33471
33472 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33473 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33474
33475 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33476 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33477
33478 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33479 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33480
33481 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33482 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33483
33484 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33485 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33486
33487
33488 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33489 chmod 755 $c/sqlite
33490 chmod 755 $c/mysql
33491
33492 chmod 755 $c/install-default-backend
33493
33494 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33495    largefile_support="yes"
33496 fi
33497
33498 if test X"$GCC" = "Xyes" ; then
33499                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33500    if test "x${CCVERSION}" = "x" ; then
33501       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33502    fi
33503    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33504    if test x"${CXXVERSION}" = x ; then
33505       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33506    fi
33507 fi
33508
33509 # clean up any old junk
33510 echo " "
33511 echo "Cleaning up"
33512 echo " "
33513 ${MAKE:-make} clean
33514
33515 echo "
33516 Configuration on `date`:
33517
33518    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33519    Bacula version:          ${BACULA} ${VERSION} (${DATE})
33520    Source code location:    ${srcdir}
33521    Install binaries:        ${sbindir}
33522    Install libraries:       ${libdir}
33523    Install config files:    ${sysconfdir}
33524    Scripts directory:       ${scriptdir}
33525    Archive directory:       ${archivedir}
33526    Working directory:       ${working_dir}
33527    PID directory:           ${piddir}
33528    Subsys directory:        ${subsysdir}
33529    Man directory:           ${mandir}
33530    Data directory:          ${datarootdir}
33531    Plugin directory:        ${plugindir}
33532    C Compiler:              ${CC} ${CCVERSION}
33533    C++ Compiler:            ${CXX} ${CXXVERSION}
33534    Compiler flags:          ${WCFLAGS} ${CFLAGS}
33535    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
33536    Libraries:               ${LIBS}
33537    Statically Linked Tools: ${support_static_tools}
33538    Statically Linked FD:    ${support_static_fd}
33539    Statically Linked SD:    ${support_static_sd}
33540    Statically Linked DIR:   ${support_static_dir}
33541    Statically Linked CONS:  ${support_static_cons}
33542    Database backends:       ${db_backends}
33543    Database port:           ${db_port}
33544    Database name:           ${db_name}
33545    Database user:           ${db_user}
33546
33547    Job Output Email:        ${job_email}
33548    Traceback Email:         ${dump_email}
33549    SMTP Host Address:       ${smtp_host}
33550
33551    Director Port:           ${dir_port}
33552    File daemon Port:        ${fd_port}
33553    Storage daemon Port:     ${sd_port}
33554
33555    Director User:           ${dir_user}
33556    Director Group:          ${dir_group}
33557    Storage Daemon User:     ${sd_user}
33558    Storage DaemonGroup:     ${sd_group}
33559    File Daemon User:        ${fd_user}
33560    File Daemon Group:       ${fd_group}
33561
33562    Large file support:      $largefile_support
33563    Bacula conio support:    ${got_conio} ${CONS_LIBS}
33564    readline support:        ${got_readline} ${PRTREADLINE_SRC}
33565    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
33566    TLS support:             ${support_tls}
33567    Encryption support:      ${support_crypto}
33568    ZLIB support:            ${have_zlib}
33569    LZO support:             ${have_lzo}
33570    enable-smartalloc:       ${support_smartalloc}
33571    enable-lockmgr:          ${support_lockmgr}
33572    bat support:             ${support_bat}
33573    client-only:             ${build_client_only}
33574    build-dird:              ${build_dird}
33575    build-stored:            ${build_stored}
33576    Plugin support:          ${have_plugins}
33577    AFS support:             ${have_afs}
33578    ACL support:             ${have_acl}
33579    XATTR support:           ${have_xattr}
33580    systemd support:         ${support_systemd} ${SYSTEMD_UNITDIR}
33581    Batch insert enabled:    ${batch_insert_db_backends}
33582
33583   " > config.out
33584
33585 # create a small shell script useful for support with
33586 # configure options and config.out info
33587 cat > scripts/bacula_config << EOF
33588 #!/bin/sh
33589 cat << __EOC__
33590 $ $0 $ac_configure_args
33591 EOF
33592 cat config.out >> scripts/bacula_config
33593 echo __EOC__ >> scripts/bacula_config
33594 chmod 755 scripts/bacula_config
33595
33596 cat config.out