]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
3a80aabe5af37424978ae08c915c54e8e8ffb559
[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.2.
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.2'
571 PACKAGE_STRING='bacula 7.0.2'
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 LIBBACCFG_LT_RELEASE
859 LIBBAC_LT_RELEASE
860 BQT4_VERSION
861 DEPKGS_VERSION
862 DEPKGS_QT_VERSION
863 BDB_VERSION
864 post_host
865 BACULA
866 LSMDATE
867 DATE
868 VERSION
869 FALSEPRG
870 TRUEPRG
871 TOP_DIR
872 BUILD_DIR
873 target_alias
874 host_alias
875 build_alias
876 LIBS
877 ECHO_T
878 ECHO_N
879 ECHO_C
880 DEFS
881 mandir
882 localedir
883 libdir
884 psdir
885 pdfdir
886 dvidir
887 htmldir
888 infodir
889 docdir
890 oldincludedir
891 includedir
892 localstatedir
893 sharedstatedir
894 sysconfdir
895 datadir
896 datarootdir
897 libexecdir
898 sbindir
899 bindir
900 program_transform_name
901 prefix
902 exec_prefix
903 PACKAGE_URL
904 PACKAGE_BUGREPORT
905 PACKAGE_STRING
906 PACKAGE_VERSION
907 PACKAGE_TARNAME
908 PACKAGE_NAME
909 PATH_SEPARATOR
910 SHELL'
911 ac_subst_files='MCOMMON'
912 ac_user_opts='
913 enable_option_checking
914 enable_libtool
915 enable_shared
916 enable_static
917 with_pic
918 enable_fast_install
919 with_gnu_ld
920 with_sysroot
921 enable_libtool_lock
922 enable_includes
923 enable_nls
924 enable_rpath
925 with_libiconv_prefix
926 with_libintl_prefix
927 with_included_gettext
928 enable_bat
929 enable_smartalloc
930 enable_lockmgr
931 enable_static_tools
932 enable_static_fd
933 enable_static_sd
934 enable_static_dir
935 enable_static_cons
936 enable_client_only
937 enable_build_dird
938 enable_build_stored
939 enable_conio
940 enable_ipv6
941 enable_readline
942 with_readline
943 with_tcp_wrappers
944 with_openssl
945 with_working_dir
946 with_archivedir
947 with_basename
948 with_hostname
949 with_scriptdir
950 with_bsrdir
951 with_logdir
952 with_plugindir
953 with_dump_email
954 with_job_email
955 with_smtp_host
956 with_pid_dir
957 with_subsys_dir
958 with_baseport
959 with_dir_password
960 with_fd_password
961 with_sd_password
962 with_mon_dir_password
963 with_mon_fd_password
964 with_mon_sd_password
965 with_db_name
966 with_db_user
967 with_db_password
968 with_db_port
969 with_dir_user
970 with_dir_group
971 with_sd_user
972 with_sd_group
973 with_fd_user
974 with_fd_group
975 with_sbin_perm
976 enable_batch_insert
977 with_postgresql
978 with_mysql
979 with_embedded_mysql
980 with_sqlite3
981 enable_largefile
982 with_x
983 enable_afs
984 with_afsdir
985 enable_lzo
986 with_lzo
987 enable_acl
988 enable_xattr
989 with_systemd
990 '
991       ac_precious_vars='build_alias
992 host_alias
993 target_alias
994 CC
995 CFLAGS
996 LDFLAGS
997 LIBS
998 CPPFLAGS
999 CXX
1000 CXXFLAGS
1001 CCC
1002 CPP
1003 CXXCPP
1004 XMKMF'
1005
1006
1007 # Initialize some variables set by options.
1008 ac_init_help=
1009 ac_init_version=false
1010 ac_unrecognized_opts=
1011 ac_unrecognized_sep=
1012 # The variables have the same names as the options, with
1013 # dashes changed to underlines.
1014 cache_file=/dev/null
1015 exec_prefix=NONE
1016 no_create=
1017 no_recursion=
1018 prefix=NONE
1019 program_prefix=NONE
1020 program_suffix=NONE
1021 program_transform_name=s,x,x,
1022 silent=
1023 site=
1024 srcdir=
1025 verbose=
1026 x_includes=NONE
1027 x_libraries=NONE
1028
1029 # Installation directory options.
1030 # These are left unexpanded so users can "make install exec_prefix=/foo"
1031 # and all the variables that are supposed to be based on exec_prefix
1032 # by default will actually change.
1033 # Use braces instead of parens because sh, perl, etc. also accept them.
1034 # (The list follows the same order as the GNU Coding Standards.)
1035 bindir='${exec_prefix}/bin'
1036 sbindir='${exec_prefix}/sbin'
1037 libexecdir='${exec_prefix}/libexec'
1038 datarootdir='${prefix}/share'
1039 datadir='${datarootdir}'
1040 sysconfdir='${prefix}/etc'
1041 sharedstatedir='${prefix}/com'
1042 localstatedir='${prefix}/var'
1043 includedir='${prefix}/include'
1044 oldincludedir='/usr/include'
1045 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1046 infodir='${datarootdir}/info'
1047 htmldir='${docdir}'
1048 dvidir='${docdir}'
1049 pdfdir='${docdir}'
1050 psdir='${docdir}'
1051 libdir='${exec_prefix}/lib'
1052 localedir='${datarootdir}/locale'
1053 mandir='${datarootdir}/man'
1054
1055 ac_prev=
1056 ac_dashdash=
1057 for ac_option
1058 do
1059   # If the previous option needs an argument, assign it.
1060   if test -n "$ac_prev"; then
1061     eval $ac_prev=\$ac_option
1062     ac_prev=
1063     continue
1064   fi
1065
1066   case $ac_option in
1067   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1068   *=)   ac_optarg= ;;
1069   *)    ac_optarg=yes ;;
1070   esac
1071
1072   # Accept the important Cygnus configure options, so we can diagnose typos.
1073
1074   case $ac_dashdash$ac_option in
1075   --)
1076     ac_dashdash=yes ;;
1077
1078   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1079     ac_prev=bindir ;;
1080   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081     bindir=$ac_optarg ;;
1082
1083   -build | --build | --buil | --bui | --bu)
1084     ac_prev=build_alias ;;
1085   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086     build_alias=$ac_optarg ;;
1087
1088   -cache-file | --cache-file | --cache-fil | --cache-fi \
1089   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090     ac_prev=cache_file ;;
1091   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093     cache_file=$ac_optarg ;;
1094
1095   --config-cache | -C)
1096     cache_file=config.cache ;;
1097
1098   -datadir | --datadir | --datadi | --datad)
1099     ac_prev=datadir ;;
1100   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101     datadir=$ac_optarg ;;
1102
1103   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104   | --dataroo | --dataro | --datar)
1105     ac_prev=datarootdir ;;
1106   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108     datarootdir=$ac_optarg ;;
1109
1110   -disable-* | --disable-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       as_fn_error $? "invalid feature name: $ac_useropt"
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "enable_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval enable_$ac_useropt=no ;;
1125
1126   -docdir | --docdir | --docdi | --doc | --do)
1127     ac_prev=docdir ;;
1128   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1129     docdir=$ac_optarg ;;
1130
1131   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1132     ac_prev=dvidir ;;
1133   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1134     dvidir=$ac_optarg ;;
1135
1136   -enable-* | --enable-*)
1137     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140       as_fn_error $? "invalid feature name: $ac_useropt"
1141     ac_useropt_orig=$ac_useropt
1142     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143     case $ac_user_opts in
1144       *"
1145 "enable_$ac_useropt"
1146 "*) ;;
1147       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1148          ac_unrecognized_sep=', ';;
1149     esac
1150     eval enable_$ac_useropt=\$ac_optarg ;;
1151
1152   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1153   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1154   | --exec | --exe | --ex)
1155     ac_prev=exec_prefix ;;
1156   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1157   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1158   | --exec=* | --exe=* | --ex=*)
1159     exec_prefix=$ac_optarg ;;
1160
1161   -gas | --gas | --ga | --g)
1162     # Obsolete; use --with-gas.
1163     with_gas=yes ;;
1164
1165   -help | --help | --hel | --he | -h)
1166     ac_init_help=long ;;
1167   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1168     ac_init_help=recursive ;;
1169   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1170     ac_init_help=short ;;
1171
1172   -host | --host | --hos | --ho)
1173     ac_prev=host_alias ;;
1174   -host=* | --host=* | --hos=* | --ho=*)
1175     host_alias=$ac_optarg ;;
1176
1177   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1178     ac_prev=htmldir ;;
1179   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1180   | --ht=*)
1181     htmldir=$ac_optarg ;;
1182
1183   -includedir | --includedir | --includedi | --included | --include \
1184   | --includ | --inclu | --incl | --inc)
1185     ac_prev=includedir ;;
1186   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1187   | --includ=* | --inclu=* | --incl=* | --inc=*)
1188     includedir=$ac_optarg ;;
1189
1190   -infodir | --infodir | --infodi | --infod | --info | --inf)
1191     ac_prev=infodir ;;
1192   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1193     infodir=$ac_optarg ;;
1194
1195   -libdir | --libdir | --libdi | --libd)
1196     ac_prev=libdir ;;
1197   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1198     libdir=$ac_optarg ;;
1199
1200   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1201   | --libexe | --libex | --libe)
1202     ac_prev=libexecdir ;;
1203   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1204   | --libexe=* | --libex=* | --libe=*)
1205     libexecdir=$ac_optarg ;;
1206
1207   -localedir | --localedir | --localedi | --localed | --locale)
1208     ac_prev=localedir ;;
1209   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1210     localedir=$ac_optarg ;;
1211
1212   -localstatedir | --localstatedir | --localstatedi | --localstated \
1213   | --localstate | --localstat | --localsta | --localst | --locals)
1214     ac_prev=localstatedir ;;
1215   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1216   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1217     localstatedir=$ac_optarg ;;
1218
1219   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1220     ac_prev=mandir ;;
1221   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1222     mandir=$ac_optarg ;;
1223
1224   -nfp | --nfp | --nf)
1225     # Obsolete; use --without-fp.
1226     with_fp=no ;;
1227
1228   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1229   | --no-cr | --no-c | -n)
1230     no_create=yes ;;
1231
1232   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1233   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1234     no_recursion=yes ;;
1235
1236   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1237   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1238   | --oldin | --oldi | --old | --ol | --o)
1239     ac_prev=oldincludedir ;;
1240   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1241   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1242   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1243     oldincludedir=$ac_optarg ;;
1244
1245   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1246     ac_prev=prefix ;;
1247   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1248     prefix=$ac_optarg ;;
1249
1250   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1251   | --program-pre | --program-pr | --program-p)
1252     ac_prev=program_prefix ;;
1253   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1254   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1255     program_prefix=$ac_optarg ;;
1256
1257   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1258   | --program-suf | --program-su | --program-s)
1259     ac_prev=program_suffix ;;
1260   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1261   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1262     program_suffix=$ac_optarg ;;
1263
1264   -program-transform-name | --program-transform-name \
1265   | --program-transform-nam | --program-transform-na \
1266   | --program-transform-n | --program-transform- \
1267   | --program-transform | --program-transfor \
1268   | --program-transfo | --program-transf \
1269   | --program-trans | --program-tran \
1270   | --progr-tra | --program-tr | --program-t)
1271     ac_prev=program_transform_name ;;
1272   -program-transform-name=* | --program-transform-name=* \
1273   | --program-transform-nam=* | --program-transform-na=* \
1274   | --program-transform-n=* | --program-transform-=* \
1275   | --program-transform=* | --program-transfor=* \
1276   | --program-transfo=* | --program-transf=* \
1277   | --program-trans=* | --program-tran=* \
1278   | --progr-tra=* | --program-tr=* | --program-t=*)
1279     program_transform_name=$ac_optarg ;;
1280
1281   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1282     ac_prev=pdfdir ;;
1283   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1284     pdfdir=$ac_optarg ;;
1285
1286   -psdir | --psdir | --psdi | --psd | --ps)
1287     ac_prev=psdir ;;
1288   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1289     psdir=$ac_optarg ;;
1290
1291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292   | -silent | --silent | --silen | --sile | --sil)
1293     silent=yes ;;
1294
1295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1296     ac_prev=sbindir ;;
1297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1298   | --sbi=* | --sb=*)
1299     sbindir=$ac_optarg ;;
1300
1301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1303   | --sharedst | --shareds | --shared | --share | --shar \
1304   | --sha | --sh)
1305     ac_prev=sharedstatedir ;;
1306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1309   | --sha=* | --sh=*)
1310     sharedstatedir=$ac_optarg ;;
1311
1312   -site | --site | --sit)
1313     ac_prev=site ;;
1314   -site=* | --site=* | --sit=*)
1315     site=$ac_optarg ;;
1316
1317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1318     ac_prev=srcdir ;;
1319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1320     srcdir=$ac_optarg ;;
1321
1322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1323   | --syscon | --sysco | --sysc | --sys | --sy)
1324     ac_prev=sysconfdir ;;
1325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1327     sysconfdir=$ac_optarg ;;
1328
1329   -target | --target | --targe | --targ | --tar | --ta | --t)
1330     ac_prev=target_alias ;;
1331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1332     target_alias=$ac_optarg ;;
1333
1334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1335     verbose=yes ;;
1336
1337   -version | --version | --versio | --versi | --vers | -V)
1338     ac_init_version=: ;;
1339
1340   -with-* | --with-*)
1341     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1342     # Reject names that are not valid shell variable names.
1343     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344       as_fn_error $? "invalid package name: $ac_useropt"
1345     ac_useropt_orig=$ac_useropt
1346     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347     case $ac_user_opts in
1348       *"
1349 "with_$ac_useropt"
1350 "*) ;;
1351       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1352          ac_unrecognized_sep=', ';;
1353     esac
1354     eval with_$ac_useropt=\$ac_optarg ;;
1355
1356   -without-* | --without-*)
1357     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358     # Reject names that are not valid shell variable names.
1359     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360       as_fn_error $? "invalid package name: $ac_useropt"
1361     ac_useropt_orig=$ac_useropt
1362     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363     case $ac_user_opts in
1364       *"
1365 "with_$ac_useropt"
1366 "*) ;;
1367       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1368          ac_unrecognized_sep=', ';;
1369     esac
1370     eval with_$ac_useropt=no ;;
1371
1372   --x)
1373     # Obsolete; use --with-x.
1374     with_x=yes ;;
1375
1376   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1377   | --x-incl | --x-inc | --x-in | --x-i)
1378     ac_prev=x_includes ;;
1379   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1380   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1381     x_includes=$ac_optarg ;;
1382
1383   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1384   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1385     ac_prev=x_libraries ;;
1386   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1387   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1388     x_libraries=$ac_optarg ;;
1389
1390   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1391 Try \`$0 --help' for more information"
1392     ;;
1393
1394   *=*)
1395     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1396     # Reject names that are not valid shell variable names.
1397     case $ac_envvar in #(
1398       '' | [0-9]* | *[!_$as_cr_alnum]* )
1399       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1400     esac
1401     eval $ac_envvar=\$ac_optarg
1402     export $ac_envvar ;;
1403
1404   *)
1405     # FIXME: should be removed in autoconf 3.0.
1406     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1407     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1408       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1409     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1410     ;;
1411
1412   esac
1413 done
1414
1415 if test -n "$ac_prev"; then
1416   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1417   as_fn_error $? "missing argument to $ac_option"
1418 fi
1419
1420 if test -n "$ac_unrecognized_opts"; then
1421   case $enable_option_checking in
1422     no) ;;
1423     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1424     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1425   esac
1426 fi
1427
1428 # Check all directory arguments for consistency.
1429 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1430                 datadir sysconfdir sharedstatedir localstatedir includedir \
1431                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1432                 libdir localedir mandir
1433 do
1434   eval ac_val=\$$ac_var
1435   # Remove trailing slashes.
1436   case $ac_val in
1437     */ )
1438       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1439       eval $ac_var=\$ac_val;;
1440   esac
1441   # Be sure to have absolute directory names.
1442   case $ac_val in
1443     [\\/$]* | ?:[\\/]* )  continue;;
1444     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1445   esac
1446   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1447 done
1448
1449 # There might be people who depend on the old broken behavior: `$host'
1450 # used to hold the argument of --host etc.
1451 # FIXME: To remove some day.
1452 build=$build_alias
1453 host=$host_alias
1454 target=$target_alias
1455
1456 # FIXME: To remove some day.
1457 if test "x$host_alias" != x; then
1458   if test "x$build_alias" = x; then
1459     cross_compiling=maybe
1460     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1461     If a cross compiler is detected then cross compile mode will be used" >&2
1462   elif test "x$build_alias" != "x$host_alias"; then
1463     cross_compiling=yes
1464   fi
1465 fi
1466
1467 ac_tool_prefix=
1468 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1469
1470 test "$silent" = yes && exec 6>/dev/null
1471
1472
1473 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1474 ac_ls_di=`ls -di .` &&
1475 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1476   as_fn_error $? "working directory cannot be determined"
1477 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1478   as_fn_error $? "pwd does not report name of working directory"
1479
1480
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483   ac_srcdir_defaulted=yes
1484   # Try the directory containing this script, then the parent directory.
1485   ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487          X"$as_myself" : 'X\(//\)[^/]' \| \
1488          X"$as_myself" : 'X\(//\)$' \| \
1489          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)[^/].*/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\).*/{
1504             s//\1/
1505             q
1506           }
1507           s/.*/./; q'`
1508   srcdir=$ac_confdir
1509   if test ! -r "$srcdir/$ac_unique_file"; then
1510     srcdir=..
1511   fi
1512 else
1513   ac_srcdir_defaulted=no
1514 fi
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1518 fi
1519 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1520 ac_abs_confdir=`(
1521         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1522         pwd)`
1523 # When building in place, set srcdir=.
1524 if test "$ac_abs_confdir" = "$ac_pwd"; then
1525   srcdir=.
1526 fi
1527 # Remove unnecessary trailing slashes from srcdir.
1528 # Double slashes in file names in object file debugging info
1529 # mess up M-x gdb in Emacs.
1530 case $srcdir in
1531 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1532 esac
1533 for ac_var in $ac_precious_vars; do
1534   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1535   eval ac_env_${ac_var}_value=\$${ac_var}
1536   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1537   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1538 done
1539
1540 #
1541 # Report the --help message.
1542 #
1543 if test "$ac_init_help" = "long"; then
1544   # Omit some internal or obsolete options to make the list less imposing.
1545   # This message is too long to be a string in the A/UX 3.1 sh.
1546   cat <<_ACEOF
1547 \`configure' configures bacula 7.0.2 to adapt to many kinds of systems.
1548
1549 Usage: $0 [OPTION]... [VAR=VALUE]...
1550
1551 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1552 VAR=VALUE.  See below for descriptions of some of the useful variables.
1553
1554 Defaults for the options are specified in brackets.
1555
1556 Configuration:
1557   -h, --help              display this help and exit
1558       --help=short        display options specific to this package
1559       --help=recursive    display the short help of all the included packages
1560   -V, --version           display version information and exit
1561   -q, --quiet, --silent   do not print \`checking ...' messages
1562       --cache-file=FILE   cache test results in FILE [disabled]
1563   -C, --config-cache      alias for \`--cache-file=config.cache'
1564   -n, --no-create         do not create output files
1565       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1566
1567 Installation directories:
1568   --prefix=PREFIX         install architecture-independent files in PREFIX
1569                           [$ac_default_prefix]
1570   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1571                           [PREFIX]
1572
1573 By default, \`make install' will install all the files in
1574 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1575 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1576 for instance \`--prefix=\$HOME'.
1577
1578 For better control, use the options below.
1579
1580 Fine tuning of the installation directories:
1581   --bindir=DIR            user executables [EPREFIX/bin]
1582   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1583   --libexecdir=DIR        program executables [EPREFIX/libexec]
1584   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1585   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1586   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1587   --libdir=DIR            object code libraries [EPREFIX/lib]
1588   --includedir=DIR        C header files [PREFIX/include]
1589   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1590   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1591   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1592   --infodir=DIR           info documentation [DATAROOTDIR/info]
1593   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1594   --mandir=DIR            man documentation [DATAROOTDIR/man]
1595   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1596   --htmldir=DIR           html documentation [DOCDIR]
1597   --dvidir=DIR            dvi documentation [DOCDIR]
1598   --pdfdir=DIR            pdf documentation [DOCDIR]
1599   --psdir=DIR             ps documentation [DOCDIR]
1600 _ACEOF
1601
1602   cat <<\_ACEOF
1603
1604 X features:
1605   --x-includes=DIR    X include files are in DIR
1606   --x-libraries=DIR   X library files are in DIR
1607
1608 System types:
1609   --build=BUILD     configure for building on BUILD [guessed]
1610   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1611 _ACEOF
1612 fi
1613
1614 if test -n "$ac_init_help"; then
1615   case $ac_init_help in
1616      short | recursive ) echo "Configuration of bacula 7.0.2:";;
1617    esac
1618   cat <<\_ACEOF
1619
1620 Optional Features:
1621   --disable-option-checking  ignore unrecognized --enable/--with options
1622   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1623   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1624   --enable-libtool        enable building using GNU libtool [default=yes]
1625   --enable-shared[=PKGS]  build shared libraries [default=yes]
1626   --enable-static[=PKGS]  build static libraries [default=no]
1627   --enable-fast-install[=PKGS]
1628                           optimize for fast installation [default=yes]
1629   --disable-libtool-lock  avoid locking (might break parallel builds)
1630   --enable-includes       enable installing of include files [default=no]
1631   --disable-nls           do not use Native Language Support
1632   --disable-rpath         do not hardcode runtime library paths
1633   --enable-bat            enable build of bat Qt4 GUI [default=no]
1634   --enable-smartalloc     enable smartalloc debugging support [default=no]
1635   --enable-lockmgr        enable lock manager support [default=no]
1636   --enable-static-tools   enable static tape tools [default=no]
1637   --enable-static-fd      enable static File daemon [default=no]
1638   --enable-static-sd      enable static Storage daemon [default=no]
1639   --enable-static-dir     enable static Director [default=no]
1640   --enable-static-cons    enable static Console [default=no]
1641   --enable-client-only    build client (File daemon) only [default=no]
1642   --enable-build-dird     enable building of dird (Director) [default=yes]
1643   --enable-build-stored   enable building of stored (Storage daemon)
1644                           [default=yes]
1645   --disable-conio         disable conio support [default=no]
1646   --enable-ipv6           enable ipv6 support [default=yes]
1647   --disable-readline      disable readline support [default=yes]
1648   --enable-batch-insert   enable the DB batch insert code [default=yes]
1649   --disable-largefile     omit support for large files
1650   --disable-afs           disable afs support [default=auto]
1651   --disable-lzo           disable lzo support [default=yes]
1652   --disable-acl           disable acl support [default=auto]
1653   --disable-xattr         disable xattr support [default=auto]
1654
1655 Optional Packages:
1656   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1657   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1658   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1659                           both]
1660   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1661   --with-sysroot=DIR Search for dependent libraries within DIR
1662                         (or the compiler's sysroot if not specified).
1663   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1664   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1665   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1666   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1667   --without-libintl-prefix     don't search for libintl in includedir and libdir
1668   --with-included-gettext use the GNU gettext library included here
1669   --with-readline[=DIR]   specify readline library directory
1670   --with-tcp-wrappers[=DIR]
1671                           enable tcpwrappers support
1672   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1673   --with-working-dir=PATH specify path of Bacula working directory
1674   --with-archivedir=PATH  specify path of SD archive directory
1675   --with-basename=RESNAME specify base resource name for daemons
1676   --with-hostname=RESNAME specify host name for daemons
1677   --with-scriptdir=PATH   specify path of Bacula scripts directory
1678   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1679   --with-logdir=PATH      specify path of Bacula logs directory
1680   --with-plugindir=PATH   specify path of Bacula plugins directory
1681   --with-dump-email=EMAIL dump email address
1682   --with-job-email=EMAIL  job output email address
1683   --with-smtp-host=HOST   SMTP mail host address
1684   --with-pid-dir=PATH     specify location of Bacula pid files
1685   --with-subsys-dir=PATH  specify location of Bacula subsys file
1686   --with-baseport=PORT    specify base port address for daemons
1687   --with-dir-password=PASSWORD
1688                           specify Director's password
1689   --with-fd-password=PASSWORD
1690                           specify Client's password
1691   --with-sd-password=PASSWORD
1692                           specify Storage daemon's password
1693   --with-mon-dir-password=PASSWORD
1694                           specify Director's password used by the monitor
1695   --with-mon-fd-password=PASSWORD
1696                           specify Client's password used by the monitor
1697   --with-mon-sd-password=PASSWORD
1698                           specify Storage daemon's password used by the
1699                           monitor
1700   --with-db-name=DBNAME   specify database name [default=bacula]
1701   --with-db-user=UNAME    specify database user [default=bacula]
1702   --with-db-password=PWD  specify database password [default=*none*]
1703   --with-db-port=DBPORT   specify a database port [default=null]
1704   --with-dir-user=USER    specify user for Director daemon
1705   --with-dir-group=GROUP  specify group for Director daemon
1706   --with-sd-user=USER     specify user for Storage daemon
1707   --with-sd-group=GROUP   specify group for Storage daemon
1708   --with-fd-user=USER     specify user for File daemon
1709   --with-fd-group=GROUP   specify group for File daemon
1710   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1711   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1712                           base install directory, [default=/usr/local/pgsql]
1713   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1714                           directory, default is to search through a number of
1715                           common places for the MySQL files.
1716   --with-embedded-mysql[=DIR]
1717                           Include MySQL support. DIR is the MySQL base install
1718                           directory, default is to search through a number of
1719                           common places for the MySQL files.
1720   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1721                           install directory, default is to search through a
1722                           number of common places for the SQLite3 files.
1723   --with-x                use the X Window System
1724   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1725   --with-lzo[=DIR]        specify lzo library directory
1726   --with-systemd[=UNITDIR]
1727                           Include systemd support. UNITDIR is where systemd
1728                           system .service files are located, default is to ask
1729                           systemctl.
1730
1731 Some influential environment variables:
1732   CC          C compiler command
1733   CFLAGS      C compiler flags
1734   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1735               nonstandard directory <lib dir>
1736   LIBS        libraries to pass to the linker, e.g. -l<library>
1737   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1738               you have headers in a nonstandard directory <include dir>
1739   CXX         C++ compiler command
1740   CXXFLAGS    C++ compiler flags
1741   CPP         C preprocessor
1742   CXXCPP      C++ preprocessor
1743   XMKMF       Path to xmkmf, Makefile generator for X Window System
1744
1745 Use these variables to override the choices made by `configure' or to help
1746 it to find libraries and programs with nonstandard names/locations.
1747
1748 Report bugs to the package provider.
1749 _ACEOF
1750 ac_status=$?
1751 fi
1752
1753 if test "$ac_init_help" = "recursive"; then
1754   # If there are subdirs, report their specific --help.
1755   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1756     test -d "$ac_dir" ||
1757       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1758       continue
1759     ac_builddir=.
1760
1761 case "$ac_dir" in
1762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1763 *)
1764   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1765   # A ".." for each directory in $ac_dir_suffix.
1766   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1767   case $ac_top_builddir_sub in
1768   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1769   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1770   esac ;;
1771 esac
1772 ac_abs_top_builddir=$ac_pwd
1773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1774 # for backward compatibility:
1775 ac_top_builddir=$ac_top_build_prefix
1776
1777 case $srcdir in
1778   .)  # We are building in place.
1779     ac_srcdir=.
1780     ac_top_srcdir=$ac_top_builddir_sub
1781     ac_abs_top_srcdir=$ac_pwd ;;
1782   [\\/]* | ?:[\\/]* )  # Absolute name.
1783     ac_srcdir=$srcdir$ac_dir_suffix;
1784     ac_top_srcdir=$srcdir
1785     ac_abs_top_srcdir=$srcdir ;;
1786   *) # Relative name.
1787     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1788     ac_top_srcdir=$ac_top_build_prefix$srcdir
1789     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1790 esac
1791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1792
1793     cd "$ac_dir" || { ac_status=$?; continue; }
1794     # Check for guested configure.
1795     if test -f "$ac_srcdir/configure.gnu"; then
1796       echo &&
1797       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1798     elif test -f "$ac_srcdir/configure"; then
1799       echo &&
1800       $SHELL "$ac_srcdir/configure" --help=recursive
1801     else
1802       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1803     fi || ac_status=$?
1804     cd "$ac_pwd" || { ac_status=$?; break; }
1805   done
1806 fi
1807
1808 test -n "$ac_init_help" && exit $ac_status
1809 if $ac_init_version; then
1810   cat <<\_ACEOF
1811 bacula configure 7.0.2
1812 generated by GNU Autoconf 2.68
1813
1814 Copyright (C) 2010 Free Software Foundation, Inc.
1815 This configure script is free software; the Free Software Foundation
1816 gives unlimited permission to copy, distribute and modify it.
1817 _ACEOF
1818   exit
1819 fi
1820
1821 ## ------------------------ ##
1822 ## Autoconf initialization. ##
1823 ## ------------------------ ##
1824
1825 # ac_fn_c_try_compile LINENO
1826 # --------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_compile ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   rm -f conftest.$ac_objext
1832   if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_compile") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } && {
1848          test -z "$ac_c_werror_flag" ||
1849          test ! -s conftest.err
1850        } && test -s conftest.$ac_objext; then :
1851   ac_retval=0
1852 else
1853   $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856         ac_retval=1
1857 fi
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859   as_fn_set_status $ac_retval
1860
1861 } # ac_fn_c_try_compile
1862
1863 # ac_fn_cxx_try_compile LINENO
1864 # ----------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_compile ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext
1870   if { { ac_try="$ac_compile"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_compile") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_cxx_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest.$ac_objext; then :
1889   ac_retval=0
1890 else
1891   $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894         ac_retval=1
1895 fi
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897   as_fn_set_status $ac_retval
1898
1899 } # ac_fn_cxx_try_compile
1900
1901 # ac_fn_c_try_cpp LINENO
1902 # ----------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_c_try_cpp ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   if { { ac_try="$ac_cpp conftest.$ac_ext"
1908 case "(($ac_try" in
1909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910   *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1915   ac_status=$?
1916   if test -s conftest.err; then
1917     grep -v '^ *+' conftest.err >conftest.er1
1918     cat conftest.er1 >&5
1919     mv -f conftest.er1 conftest.err
1920   fi
1921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922   test $ac_status = 0; } > conftest.i && {
1923          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1924          test ! -s conftest.err
1925        }; then :
1926   ac_retval=0
1927 else
1928   $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931     ac_retval=1
1932 fi
1933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934   as_fn_set_status $ac_retval
1935
1936 } # ac_fn_c_try_cpp
1937
1938 # ac_fn_c_try_link LINENO
1939 # -----------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_c_try_link ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   rm -f conftest.$ac_objext conftest$ac_exeext
1945   if { { ac_try="$ac_link"
1946 case "(($ac_try" in
1947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948   *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952   (eval "$ac_link") 2>conftest.err
1953   ac_status=$?
1954   if test -s conftest.err; then
1955     grep -v '^ *+' conftest.err >conftest.er1
1956     cat conftest.er1 >&5
1957     mv -f conftest.er1 conftest.err
1958   fi
1959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; } && {
1961          test -z "$ac_c_werror_flag" ||
1962          test ! -s conftest.err
1963        } && test -s conftest$ac_exeext && {
1964          test "$cross_compiling" = yes ||
1965          $as_test_x conftest$ac_exeext
1966        }; then :
1967   ac_retval=0
1968 else
1969   $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972         ac_retval=1
1973 fi
1974   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1975   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1976   # interfere with the next link command; also delete a directory that is
1977   # left behind by Apple's compiler.  We do this before executing the actions.
1978   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980   as_fn_set_status $ac_retval
1981
1982 } # ac_fn_c_try_link
1983
1984 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists and can be compiled using the include files in
1987 # INCLUDES, setting the cache variable VAR accordingly.
1988 ac_fn_c_check_header_compile ()
1989 {
1990   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994   $as_echo_n "(cached) " >&6
1995 else
1996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h.  */
1998 $4
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002   eval "$3=yes"
2003 else
2004   eval "$3=no"
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013 } # ac_fn_c_check_header_compile
2014
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2019 ac_fn_c_try_run ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025   *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029   (eval "$ac_link") 2>&5
2030   ac_status=$?
2031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2033   { { case "(($ac_try" in
2034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035   *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039   (eval "$ac_try") 2>&5
2040   ac_status=$?
2041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042   test $ac_status = 0; }; }; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: program exited with status $ac_status" >&5
2046        $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049        ac_retval=$ac_status
2050 fi
2051   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053   as_fn_set_status $ac_retval
2054
2055 } # ac_fn_c_try_run
2056
2057 # ac_fn_c_check_func LINENO FUNC VAR
2058 # ----------------------------------
2059 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2060 ac_fn_c_check_func ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066   $as_echo_n "(cached) " >&6
2067 else
2068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h.  */
2070 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2072 #define $2 innocuous_$2
2073
2074 /* System header to define __stub macros and hopefully few prototypes,
2075     which can conflict with char $2 (); below.
2076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2077     <limits.h> exists even on freestanding compilers.  */
2078
2079 #ifdef __STDC__
2080 # include <limits.h>
2081 #else
2082 # include <assert.h>
2083 #endif
2084
2085 #undef $2
2086
2087 /* Override any GCC internal prototype to avoid an error.
2088    Use char because int might match the return type of a GCC
2089    builtin and then its argument prototype would still apply.  */
2090 #ifdef __cplusplus
2091 extern "C"
2092 #endif
2093 char $2 ();
2094 /* The GNU C library defines this for functions which it implements
2095     to always fail with ENOSYS.  Some functions are actually named
2096     something starting with __ and the normal name is an alias.  */
2097 #if defined __stub_$2 || defined __stub___$2
2098 choke me
2099 #endif
2100
2101 int
2102 main ()
2103 {
2104 return $2 ();
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_link "$LINENO"; then :
2110   eval "$3=yes"
2111 else
2112   eval "$3=no"
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext \
2115     conftest$ac_exeext conftest.$ac_ext
2116 fi
2117 eval ac_res=\$$3
2118                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121
2122 } # ac_fn_c_check_func
2123
2124 # ac_fn_cxx_try_cpp LINENO
2125 # ------------------------
2126 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2127 ac_fn_cxx_try_cpp ()
2128 {
2129   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130   if { { ac_try="$ac_cpp conftest.$ac_ext"
2131 case "(($ac_try" in
2132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133   *) ac_try_echo=$ac_try;;
2134 esac
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 $as_echo "$ac_try_echo"; } >&5
2137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2138   ac_status=$?
2139   if test -s conftest.err; then
2140     grep -v '^ *+' conftest.err >conftest.er1
2141     cat conftest.er1 >&5
2142     mv -f conftest.er1 conftest.err
2143   fi
2144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145   test $ac_status = 0; } > conftest.i && {
2146          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2147          test ! -s conftest.err
2148        }; then :
2149   ac_retval=0
2150 else
2151   $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154     ac_retval=1
2155 fi
2156   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157   as_fn_set_status $ac_retval
2158
2159 } # ac_fn_cxx_try_cpp
2160
2161 # ac_fn_cxx_try_link LINENO
2162 # -------------------------
2163 # Try to link conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_cxx_try_link ()
2165 {
2166   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167   rm -f conftest.$ac_objext conftest$ac_exeext
2168   if { { ac_try="$ac_link"
2169 case "(($ac_try" in
2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171   *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175   (eval "$ac_link") 2>conftest.err
2176   ac_status=$?
2177   if test -s conftest.err; then
2178     grep -v '^ *+' conftest.err >conftest.er1
2179     cat conftest.er1 >&5
2180     mv -f conftest.er1 conftest.err
2181   fi
2182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183   test $ac_status = 0; } && {
2184          test -z "$ac_cxx_werror_flag" ||
2185          test ! -s conftest.err
2186        } && test -s conftest$ac_exeext && {
2187          test "$cross_compiling" = yes ||
2188          $as_test_x conftest$ac_exeext
2189        }; then :
2190   ac_retval=0
2191 else
2192   $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195         ac_retval=1
2196 fi
2197   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2198   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2199   # interfere with the next link command; also delete a directory that is
2200   # left behind by Apple's compiler.  We do this before executing the actions.
2201   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2202   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203   as_fn_set_status $ac_retval
2204
2205 } # ac_fn_cxx_try_link
2206
2207 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2208 # ---------------------------------------------
2209 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2210 # accordingly.
2211 ac_fn_c_check_decl ()
2212 {
2213   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214   as_decl_name=`echo $2|sed 's/ *(.*//'`
2215   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2217 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2218 if eval \${$3+:} false; then :
2219   $as_echo_n "(cached) " >&6
2220 else
2221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $4
2224 int
2225 main ()
2226 {
2227 #ifndef $as_decl_name
2228 #ifdef __cplusplus
2229   (void) $as_decl_use;
2230 #else
2231   (void) $as_decl_name;
2232 #endif
2233 #endif
2234
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240   eval "$3=yes"
2241 else
2242   eval "$3=no"
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 eval ac_res=\$$3
2247                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250
2251 } # ac_fn_c_check_decl
2252
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2258 {
2259   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263   $as_echo_n "(cached) " >&6
2264 else
2265   eval "$3=no"
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof ($2))
2273          return 0;
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 int
2283 main ()
2284 {
2285 if (sizeof (($2)))
2286             return 0;
2287   ;
2288   return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292
2293 else
2294   eval "$3=yes"
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 eval ac_res=\$$3
2301                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304
2305 } # ac_fn_c_check_type
2306
2307 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2308 # -------------------------------------------------------
2309 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2310 # the include files in INCLUDES and setting the cache variable VAR
2311 # accordingly.
2312 ac_fn_c_check_header_mongrel ()
2313 {
2314   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315   if eval \${$3+:} false; then :
2316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if eval \${$3+:} false; then :
2319   $as_echo_n "(cached) " >&6
2320 fi
2321 eval ac_res=\$$3
2322                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2324 else
2325   # Is the header compilable?
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2327 $as_echo_n "checking $2 usability... " >&6; }
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h.  */
2330 $4
2331 #include <$2>
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334   ac_header_compiler=yes
2335 else
2336   ac_header_compiler=no
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2340 $as_echo "$ac_header_compiler" >&6; }
2341
2342 # Is the header present?
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2344 $as_echo_n "checking $2 presence... " >&6; }
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 #include <$2>
2348 _ACEOF
2349 if ac_fn_c_try_cpp "$LINENO"; then :
2350   ac_header_preproc=yes
2351 else
2352   ac_header_preproc=no
2353 fi
2354 rm -f conftest.err conftest.i conftest.$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2356 $as_echo "$ac_header_preproc" >&6; }
2357
2358 # So?  What about this header?
2359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2360   yes:no: )
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2362 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2363     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2365     ;;
2366   no:yes:* )
2367     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2368 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2370 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2371     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2372 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2374 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2376 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2377     ;;
2378 esac
2379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \${$3+:} false; then :
2382   $as_echo_n "(cached) " >&6
2383 else
2384   eval "$3=\$ac_header_compiler"
2385 fi
2386 eval ac_res=\$$3
2387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 fi
2390   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2391
2392 } # ac_fn_c_check_header_mongrel
2393
2394 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2395 # --------------------------------------------
2396 # Tries to find the compile-time value of EXPR in a program that includes
2397 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2398 # computed
2399 ac_fn_c_compute_int ()
2400 {
2401   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402   if test "$cross_compiling" = yes; then
2403     # Depending upon the size, compute the lo and hi bounds.
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h.  */
2406 $4
2407 int
2408 main ()
2409 {
2410 static int test_array [1 - 2 * !(($2) >= 0)];
2411 test_array [0] = 0
2412
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418   ac_lo=0 ac_mid=0
2419   while :; do
2420     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h.  */
2422 $4
2423 int
2424 main ()
2425 {
2426 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2427 test_array [0] = 0
2428
2429   ;
2430   return 0;
2431 }
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434   ac_hi=$ac_mid; break
2435 else
2436   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2437                         if test $ac_lo -le $ac_mid; then
2438                           ac_lo= ac_hi=
2439                           break
2440                         fi
2441                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444   done
2445 else
2446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h.  */
2448 $4
2449 int
2450 main ()
2451 {
2452 static int test_array [1 - 2 * !(($2) < 0)];
2453 test_array [0] = 0
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 if ac_fn_c_try_compile "$LINENO"; then :
2460   ac_hi=-1 ac_mid=-1
2461   while :; do
2462     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h.  */
2464 $4
2465 int
2466 main ()
2467 {
2468 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2469 test_array [0] = 0
2470
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 if ac_fn_c_try_compile "$LINENO"; then :
2476   ac_lo=$ac_mid; break
2477 else
2478   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2479                         if test $ac_mid -le $ac_hi; then
2480                           ac_lo= ac_hi=
2481                           break
2482                         fi
2483                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2484 fi
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486   done
2487 else
2488   ac_lo= ac_hi=
2489 fi
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 # Binary search between lo and hi bounds.
2494 while test "x$ac_lo" != "x$ac_hi"; do
2495   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h.  */
2498 $4
2499 int
2500 main ()
2501 {
2502 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2503 test_array [0] = 0
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510   ac_hi=$ac_mid
2511 else
2512   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2513 fi
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 done
2516 case $ac_lo in #((
2517 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2518 '') ac_retval=1 ;;
2519 esac
2520   else
2521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h.  */
2523 $4
2524 static long int longval () { return $2; }
2525 static unsigned long int ulongval () { return $2; }
2526 #include <stdio.h>
2527 #include <stdlib.h>
2528 int
2529 main ()
2530 {
2531
2532   FILE *f = fopen ("conftest.val", "w");
2533   if (! f)
2534     return 1;
2535   if (($2) < 0)
2536     {
2537       long int i = longval ();
2538       if (i != ($2))
2539         return 1;
2540       fprintf (f, "%ld", i);
2541     }
2542   else
2543     {
2544       unsigned long int i = ulongval ();
2545       if (i != ($2))
2546         return 1;
2547       fprintf (f, "%lu", i);
2548     }
2549   /* Do not output a trailing newline, as this causes \r\n confusion
2550      on some platforms.  */
2551   return ferror (f) || fclose (f) != 0;
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 if ac_fn_c_try_run "$LINENO"; then :
2558   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2559 else
2560   ac_retval=1
2561 fi
2562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2563   conftest.$ac_objext conftest.beam conftest.$ac_ext
2564 rm -f conftest.val
2565
2566   fi
2567   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2568   as_fn_set_status $ac_retval
2569
2570 } # ac_fn_c_compute_int
2571
2572 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2573 # ----------------------------------------------------
2574 # Tries to find if the field MEMBER exists in type AGGR, after including
2575 # INCLUDES, setting cache variable VAR accordingly.
2576 ac_fn_c_check_member ()
2577 {
2578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2580 $as_echo_n "checking for $2.$3... " >&6; }
2581 if eval \${$4+:} false; then :
2582   $as_echo_n "(cached) " >&6
2583 else
2584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h.  */
2586 $5
2587 int
2588 main ()
2589 {
2590 static $2 ac_aggr;
2591 if (ac_aggr.$3)
2592 return 0;
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 if ac_fn_c_try_compile "$LINENO"; then :
2598   eval "$4=yes"
2599 else
2600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h.  */
2602 $5
2603 int
2604 main ()
2605 {
2606 static $2 ac_aggr;
2607 if (sizeof ac_aggr.$3)
2608 return 0;
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 if ac_fn_c_try_compile "$LINENO"; then :
2614   eval "$4=yes"
2615 else
2616   eval "$4=no"
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 fi
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 fi
2622 eval ac_res=\$$4
2623                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2626
2627 } # ac_fn_c_check_member
2628
2629 # ac_fn_cxx_try_run LINENO
2630 # ------------------------
2631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2632 # that executables *can* be run.
2633 ac_fn_cxx_try_run ()
2634 {
2635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636   if { { ac_try="$ac_link"
2637 case "(($ac_try" in
2638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639   *) ac_try_echo=$ac_try;;
2640 esac
2641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643   (eval "$ac_link") 2>&5
2644   ac_status=$?
2645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2647   { { case "(($ac_try" in
2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649   *) ac_try_echo=$ac_try;;
2650 esac
2651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652 $as_echo "$ac_try_echo"; } >&5
2653   (eval "$ac_try") 2>&5
2654   ac_status=$?
2655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656   test $ac_status = 0; }; }; then :
2657   ac_retval=0
2658 else
2659   $as_echo "$as_me: program exited with status $ac_status" >&5
2660        $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663        ac_retval=$ac_status
2664 fi
2665   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667   as_fn_set_status $ac_retval
2668
2669 } # ac_fn_cxx_try_run
2670
2671 # ac_fn_cxx_check_func LINENO FUNC VAR
2672 # ------------------------------------
2673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2674 ac_fn_cxx_check_func ()
2675 {
2676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2678 $as_echo_n "checking for $2... " >&6; }
2679 if eval \${$3+:} false; then :
2680   $as_echo_n "(cached) " >&6
2681 else
2682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h.  */
2684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2686 #define $2 innocuous_$2
2687
2688 /* System header to define __stub macros and hopefully few prototypes,
2689     which can conflict with char $2 (); below.
2690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2691     <limits.h> exists even on freestanding compilers.  */
2692
2693 #ifdef __STDC__
2694 # include <limits.h>
2695 #else
2696 # include <assert.h>
2697 #endif
2698
2699 #undef $2
2700
2701 /* Override any GCC internal prototype to avoid an error.
2702    Use char because int might match the return type of a GCC
2703    builtin and then its argument prototype would still apply.  */
2704 #ifdef __cplusplus
2705 extern "C"
2706 #endif
2707 char $2 ();
2708 /* The GNU C library defines this for functions which it implements
2709     to always fail with ENOSYS.  Some functions are actually named
2710     something starting with __ and the normal name is an alias.  */
2711 #if defined __stub_$2 || defined __stub___$2
2712 choke me
2713 #endif
2714
2715 int
2716 main ()
2717 {
2718 return $2 ();
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 if ac_fn_cxx_try_link "$LINENO"; then :
2724   eval "$3=yes"
2725 else
2726   eval "$3=no"
2727 fi
2728 rm -f core conftest.err conftest.$ac_objext \
2729     conftest$ac_exeext conftest.$ac_ext
2730 fi
2731 eval ac_res=\$$3
2732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733 $as_echo "$ac_res" >&6; }
2734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735
2736 } # ac_fn_cxx_check_func
2737 cat >config.log <<_ACEOF
2738 This file contains any messages produced by compilers while
2739 running configure, to aid debugging if configure makes a mistake.
2740
2741 It was created by bacula $as_me 7.0.2, which was
2742 generated by GNU Autoconf 2.68.  Invocation command line was
2743
2744   $ $0 $@
2745
2746 _ACEOF
2747 exec 5>>config.log
2748 {
2749 cat <<_ASUNAME
2750 ## --------- ##
2751 ## Platform. ##
2752 ## --------- ##
2753
2754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2759
2760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2761 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2762
2763 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2764 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2766 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2767 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2768 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2769 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2770
2771 _ASUNAME
2772
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776   IFS=$as_save_IFS
2777   test -z "$as_dir" && as_dir=.
2778     $as_echo "PATH: $as_dir"
2779   done
2780 IFS=$as_save_IFS
2781
2782 } >&5
2783
2784 cat >&5 <<_ACEOF
2785
2786
2787 ## ----------- ##
2788 ## Core tests. ##
2789 ## ----------- ##
2790
2791 _ACEOF
2792
2793
2794 # Keep a trace of the command line.
2795 # Strip out --no-create and --no-recursion so they do not pile up.
2796 # Strip out --silent because we don't want to record it for future runs.
2797 # Also quote any args containing shell meta-characters.
2798 # Make two passes to allow for proper duplicate-argument suppression.
2799 ac_configure_args=
2800 ac_configure_args0=
2801 ac_configure_args1=
2802 ac_must_keep_next=false
2803 for ac_pass in 1 2
2804 do
2805   for ac_arg
2806   do
2807     case $ac_arg in
2808     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2809     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2810     | -silent | --silent | --silen | --sile | --sil)
2811       continue ;;
2812     *\'*)
2813       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2814     esac
2815     case $ac_pass in
2816     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2817     2)
2818       as_fn_append ac_configure_args1 " '$ac_arg'"
2819       if test $ac_must_keep_next = true; then
2820         ac_must_keep_next=false # Got value, back to normal.
2821       else
2822         case $ac_arg in
2823           *=* | --config-cache | -C | -disable-* | --disable-* \
2824           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2825           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2826           | -with-* | --with-* | -without-* | --without-* | --x)
2827             case "$ac_configure_args0 " in
2828               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2829             esac
2830             ;;
2831           -* ) ac_must_keep_next=true ;;
2832         esac
2833       fi
2834       as_fn_append ac_configure_args " '$ac_arg'"
2835       ;;
2836     esac
2837   done
2838 done
2839 { ac_configure_args0=; unset ac_configure_args0;}
2840 { ac_configure_args1=; unset ac_configure_args1;}
2841
2842 # When interrupted or exit'd, cleanup temporary files, and complete
2843 # config.log.  We remove comments because anyway the quotes in there
2844 # would cause problems or look ugly.
2845 # WARNING: Use '\'' to represent an apostrophe within the trap.
2846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2847 trap 'exit_status=$?
2848   # Save into config.log some information that might help in debugging.
2849   {
2850     echo
2851
2852     $as_echo "## ---------------- ##
2853 ## Cache variables. ##
2854 ## ---------------- ##"
2855     echo
2856     # The following way of writing the cache mishandles newlines in values,
2857 (
2858   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2859     eval ac_val=\$$ac_var
2860     case $ac_val in #(
2861     *${as_nl}*)
2862       case $ac_var in #(
2863       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2865       esac
2866       case $ac_var in #(
2867       _ | IFS | as_nl) ;; #(
2868       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2869       *) { eval $ac_var=; unset $ac_var;} ;;
2870       esac ;;
2871     esac
2872   done
2873   (set) 2>&1 |
2874     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2875     *${as_nl}ac_space=\ *)
2876       sed -n \
2877         "s/'\''/'\''\\\\'\'''\''/g;
2878           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2879       ;; #(
2880     *)
2881       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2882       ;;
2883     esac |
2884     sort
2885 )
2886     echo
2887
2888     $as_echo "## ----------------- ##
2889 ## Output variables. ##
2890 ## ----------------- ##"
2891     echo
2892     for ac_var in $ac_subst_vars
2893     do
2894       eval ac_val=\$$ac_var
2895       case $ac_val in
2896       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2897       esac
2898       $as_echo "$ac_var='\''$ac_val'\''"
2899     done | sort
2900     echo
2901
2902     if test -n "$ac_subst_files"; then
2903       $as_echo "## ------------------- ##
2904 ## File substitutions. ##
2905 ## ------------------- ##"
2906       echo
2907       for ac_var in $ac_subst_files
2908       do
2909         eval ac_val=\$$ac_var
2910         case $ac_val in
2911         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2912         esac
2913         $as_echo "$ac_var='\''$ac_val'\''"
2914       done | sort
2915       echo
2916     fi
2917
2918     if test -s confdefs.h; then
2919       $as_echo "## ----------- ##
2920 ## confdefs.h. ##
2921 ## ----------- ##"
2922       echo
2923       cat confdefs.h
2924       echo
2925     fi
2926     test "$ac_signal" != 0 &&
2927       $as_echo "$as_me: caught signal $ac_signal"
2928     $as_echo "$as_me: exit $exit_status"
2929   } >&5
2930   rm -f core *.core core.conftest.* &&
2931     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2932     exit $exit_status
2933 ' 0
2934 for ac_signal in 1 2 13 15; do
2935   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2936 done
2937 ac_signal=0
2938
2939 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2940 rm -f -r conftest* confdefs.h
2941
2942 $as_echo "/* confdefs.h */" > confdefs.h
2943
2944 # Predefined preprocessor variables.
2945
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE_NAME "$PACKAGE_NAME"
2948 _ACEOF
2949
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2952 _ACEOF
2953
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2956 _ACEOF
2957
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE_STRING "$PACKAGE_STRING"
2960 _ACEOF
2961
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2964 _ACEOF
2965
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_URL "$PACKAGE_URL"
2968 _ACEOF
2969
2970
2971 # Let the site file select an alternate cache file if it wants to.
2972 # Prefer an explicitly selected file to automatically selected ones.
2973 ac_site_file1=NONE
2974 ac_site_file2=NONE
2975 if test -n "$CONFIG_SITE"; then
2976   # We do not want a PATH search for config.site.
2977   case $CONFIG_SITE in #((
2978     -*)  ac_site_file1=./$CONFIG_SITE;;
2979     */*) ac_site_file1=$CONFIG_SITE;;
2980     *)   ac_site_file1=./$CONFIG_SITE;;
2981   esac
2982 elif test "x$prefix" != xNONE; then
2983   ac_site_file1=$prefix/share/config.site
2984   ac_site_file2=$prefix/etc/config.site
2985 else
2986   ac_site_file1=$ac_default_prefix/share/config.site
2987   ac_site_file2=$ac_default_prefix/etc/config.site
2988 fi
2989 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2990 do
2991   test "x$ac_site_file" = xNONE && continue
2992   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2993     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2994 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2995     sed 's/^/| /' "$ac_site_file" >&5
2996     . "$ac_site_file" \
2997       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error $? "failed to load site script $ac_site_file
3000 See \`config.log' for more details" "$LINENO" 5; }
3001   fi
3002 done
3003
3004 if test -r "$cache_file"; then
3005   # Some versions of bash will fail to source /dev/null (special files
3006   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3007   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3008     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3009 $as_echo "$as_me: loading cache $cache_file" >&6;}
3010     case $cache_file in
3011       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3012       *)                      . "./$cache_file";;
3013     esac
3014   fi
3015 else
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3017 $as_echo "$as_me: creating cache $cache_file" >&6;}
3018   >$cache_file
3019 fi
3020
3021 as_fn_append ac_header_list " stdlib.h"
3022 as_fn_append ac_header_list " unistd.h"
3023 as_fn_append ac_header_list " sys/param.h"
3024 # Check that the precious variables saved in the cache have kept the same
3025 # value.
3026 ac_cache_corrupted=false
3027 for ac_var in $ac_precious_vars; do
3028   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3029   eval ac_new_set=\$ac_env_${ac_var}_set
3030   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3031   eval ac_new_val=\$ac_env_${ac_var}_value
3032   case $ac_old_set,$ac_new_set in
3033     set,)
3034       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3035 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3036       ac_cache_corrupted=: ;;
3037     ,set)
3038       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3039 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3040       ac_cache_corrupted=: ;;
3041     ,);;
3042     *)
3043       if test "x$ac_old_val" != "x$ac_new_val"; then
3044         # differences in whitespace do not lead to failure.
3045         ac_old_val_w=`echo x $ac_old_val`
3046         ac_new_val_w=`echo x $ac_new_val`
3047         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3048           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3050           ac_cache_corrupted=:
3051         else
3052           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3054           eval $ac_var=\$ac_old_val
3055         fi
3056         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3057 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3058         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3059 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3060       fi;;
3061   esac
3062   # Pass precious variables to config.status.
3063   if test "$ac_new_set" = set; then
3064     case $ac_new_val in
3065     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3066     *) ac_arg=$ac_var=$ac_new_val ;;
3067     esac
3068     case " $ac_configure_args " in
3069       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3070       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3071     esac
3072   fi
3073 done
3074 if $ac_cache_corrupted; then
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3079   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3080 fi
3081 ## -------------------- ##
3082 ## Main body of script. ##
3083 ## -------------------- ##
3084
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090
3091
3092
3093
3094 BUILD_DIR=`pwd`
3095 cd ..
3096 TOP_DIR=`pwd`
3097 cd ${BUILD_DIR}
3098
3099
3100 ac_aux_dir=
3101 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3102   if test -f "$ac_dir/install-sh"; then
3103     ac_aux_dir=$ac_dir
3104     ac_install_sh="$ac_aux_dir/install-sh -c"
3105     break
3106   elif test -f "$ac_dir/install.sh"; then
3107     ac_aux_dir=$ac_dir
3108     ac_install_sh="$ac_aux_dir/install.sh -c"
3109     break
3110   elif test -f "$ac_dir/shtool"; then
3111     ac_aux_dir=$ac_dir
3112     ac_install_sh="$ac_aux_dir/shtool install -c"
3113     break
3114   fi
3115 done
3116 if test -z "$ac_aux_dir"; then
3117   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3118 fi
3119
3120 # These three variables are undocumented and unsupported,
3121 # and are intended to be withdrawn in a future Autoconf release.
3122 # They can cause serious problems if a builder's source tree is in a directory
3123 # whose full name contains unusual characters.
3124 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3125 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3126 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3127
3128
3129 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3130
3131
3132 for ac_prog in true
3133 do
3134   # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_path_TRUEPRG+:} false; then :
3139   $as_echo_n "(cached) " >&6
3140 else
3141   case $TRUEPRG in
3142   [\\/]* | ?:[\\/]*)
3143   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3144   ;;
3145   *)
3146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151     for ac_exec_ext in '' $ac_executable_extensions; do
3152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155     break 2
3156   fi
3157 done
3158   done
3159 IFS=$as_save_IFS
3160
3161   ;;
3162 esac
3163 fi
3164 TRUEPRG=$ac_cv_path_TRUEPRG
3165 if test -n "$TRUEPRG"; then
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3167 $as_echo "$TRUEPRG" >&6; }
3168 else
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174   test -n "$TRUEPRG" && break
3175 done
3176 test -n "$TRUEPRG" || TRUEPRG=":"
3177
3178 for ac_prog in false
3179 do
3180   # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_path_FALSEPRG+:} false; then :
3185   $as_echo_n "(cached) " >&6
3186 else
3187   case $FALSEPRG in
3188   [\\/]* | ?:[\\/]*)
3189   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3190   ;;
3191   *)
3192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197     for ac_exec_ext in '' $ac_executable_extensions; do
3198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201     break 2
3202   fi
3203 done
3204   done
3205 IFS=$as_save_IFS
3206
3207   ;;
3208 esac
3209 fi
3210 FALSEPRG=$ac_cv_path_FALSEPRG
3211 if test -n "$FALSEPRG"; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3213 $as_echo "$FALSEPRG" >&6; }
3214 else
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220   test -n "$FALSEPRG" && break
3221 done
3222 test -n "$FALSEPRG" || FALSEPRG=":"
3223
3224
3225
3226 post_host=
3227 if test "x$BACULA" != x; then
3228    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3229 fi
3230 BACULA=${BACULA:-Bacula}
3231 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3232 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3233 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3234 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3235 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3236 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3237 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3238 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3239
3240 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3241 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3242
3243 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3244 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3245
3246
3247 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3248 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3249
3250 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3251 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3252
3253
3254 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3255
3256 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3257
3258
3259 echo "configuring for ${BACULA} $VERSION ($DATE)"
3260
3261
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 if test -n "$ac_tool_prefix"; then
3269   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274   $as_echo_n "(cached) " >&6
3275 else
3276   if test -n "$CC"; then
3277   ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282   IFS=$as_save_IFS
3283   test -z "$as_dir" && as_dir=.
3284     for ac_exec_ext in '' $ac_executable_extensions; do
3285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288     break 2
3289   fi
3290 done
3291   done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3300 else
3301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 if test -z "$ac_cv_prog_CC"; then
3308   ac_ct_CC=$CC
3309   # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3314   $as_echo_n "(cached) " >&6
3315 else
3316   if test -n "$ac_ct_CC"; then
3317   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322   IFS=$as_save_IFS
3323   test -z "$as_dir" && as_dir=.
3324     for ac_exec_ext in '' $ac_executable_extensions; do
3325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326     ac_cv_prog_ac_ct_CC="gcc"
3327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328     break 2
3329   fi
3330 done
3331   done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3339 $as_echo "$ac_ct_CC" >&6; }
3340 else
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345   if test "x$ac_ct_CC" = x; then
3346     CC=""
3347   else
3348     case $cross_compiling:$ac_tool_warned in
3349 yes:)
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3352 ac_tool_warned=yes ;;
3353 esac
3354     CC=$ac_ct_CC
3355   fi
3356 else
3357   CC="$ac_cv_prog_CC"
3358 fi
3359
3360 if test -z "$CC"; then
3361           if test -n "$ac_tool_prefix"; then
3362     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}cc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367   $as_echo_n "(cached) " >&6
3368 else
3369   if test -n "$CC"; then
3370   ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377     for ac_exec_ext in '' $ac_executable_extensions; do
3378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379     ac_cv_prog_CC="${ac_tool_prefix}cc"
3380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381     break 2
3382   fi
3383 done
3384   done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399   fi
3400 fi
3401 if test -z "$CC"; then
3402   # Extract the first word of "cc", so it can be a program name with args.
3403 set dummy cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test -n "$CC"; then
3410   ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412   ac_prog_rejected=no
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418     for ac_exec_ext in '' $ac_executable_extensions; do
3419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3421        ac_prog_rejected=yes
3422        continue
3423      fi
3424     ac_cv_prog_CC="cc"
3425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426     break 2
3427   fi
3428 done
3429   done
3430 IFS=$as_save_IFS
3431
3432 if test $ac_prog_rejected = yes; then
3433   # We found a bogon in the path, so make sure we never use it.
3434   set dummy $ac_cv_prog_CC
3435   shift
3436   if test $# != 0; then
3437     # We chose a different compiler from the bogus one.
3438     # However, it has the same basename, so the bogon will be chosen
3439     # first if we set CC to just the basename; use the full file name.
3440     shift
3441     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3442   fi
3443 fi
3444 fi
3445 fi
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3450 else
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456 fi
3457 if test -z "$CC"; then
3458   if test -n "$ac_tool_prefix"; then
3459   for ac_prog in cl.exe
3460   do
3461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466   $as_echo_n "(cached) " >&6
3467 else
3468   if test -n "$CC"; then
3469   ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476     for ac_exec_ext in '' $ac_executable_extensions; do
3477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480     break 2
3481   fi
3482 done
3483   done
3484 IFS=$as_save_IFS
3485
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498     test -n "$CC" && break
3499   done
3500 fi
3501 if test -z "$CC"; then
3502   ac_ct_CC=$CC
3503   for ac_prog in cl.exe
3504 do
3505   # Extract the first word of "$ac_prog", so it can be a program name with args.
3506 set dummy $ac_prog; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3510   $as_echo_n "(cached) " >&6
3511 else
3512   if test -n "$ac_ct_CC"; then
3513   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518   IFS=$as_save_IFS
3519   test -z "$as_dir" && as_dir=.
3520     for ac_exec_ext in '' $ac_executable_extensions; do
3521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522     ac_cv_prog_ac_ct_CC="$ac_prog"
3523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524     break 2
3525   fi
3526 done
3527   done
3528 IFS=$as_save_IFS
3529
3530 fi
3531 fi
3532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533 if test -n "$ac_ct_CC"; then
3534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3535 $as_echo "$ac_ct_CC" >&6; }
3536 else
3537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540
3541
3542   test -n "$ac_ct_CC" && break
3543 done
3544
3545   if test "x$ac_ct_CC" = x; then
3546     CC=""
3547   else
3548     case $cross_compiling:$ac_tool_warned in
3549 yes:)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3553 esac
3554     CC=$ac_ct_CC
3555   fi
3556 fi
3557
3558 fi
3559
3560
3561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "no acceptable C compiler found in \$PATH
3564 See \`config.log' for more details" "$LINENO" 5; }
3565
3566 # Provide some information about the compiler.
3567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3568 set X $ac_compile
3569 ac_compiler=$2
3570 for ac_option in --version -v -V -qversion; do
3571   { { ac_try="$ac_compiler $ac_option >&5"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3579   ac_status=$?
3580   if test -s conftest.err; then
3581     sed '10a\
3582 ... rest of stderr output deleted ...
3583          10q' conftest.err >conftest.er1
3584     cat conftest.er1 >&5
3585   fi
3586   rm -f conftest.er1 conftest.err
3587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588   test $ac_status = 0; }
3589 done
3590
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593
3594 int
3595 main ()
3596 {
3597
3598   ;
3599   return 0;
3600 }
3601 _ACEOF
3602 ac_clean_files_save=$ac_clean_files
3603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3604 # Try to create an executable without -o first, disregard a.out.
3605 # It will help us diagnose broken compilers, and finding out an intuition
3606 # of exeext.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3608 $as_echo_n "checking whether the C compiler works... " >&6; }
3609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3610
3611 # The possible output files:
3612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3613
3614 ac_rmfiles=
3615 for ac_file in $ac_files
3616 do
3617   case $ac_file in
3618     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3620   esac
3621 done
3622 rm -f $ac_rmfiles
3623
3624 if { { ac_try="$ac_link_default"
3625 case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631   (eval "$ac_link_default") 2>&5
3632   ac_status=$?
3633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634   test $ac_status = 0; }; then :
3635   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3639 # Autoconf.
3640 for ac_file in $ac_files ''
3641 do
3642   test -f "$ac_file" || continue
3643   case $ac_file in
3644     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3645         ;;
3646     [ab].out )
3647         # We found the default executable, but exeext='' is most
3648         # certainly right.
3649         break;;
3650     *.* )
3651         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3652         then :; else
3653            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3654         fi
3655         # We set ac_cv_exeext here because the later test for it is not
3656         # safe: cross compilers may not add the suffix if given an `-o'
3657         # argument, so we may need to know it at that point already.
3658         # Even if this section looks crufty: it has the advantage of
3659         # actually working.
3660         break;;
3661     * )
3662         break;;
3663   esac
3664 done
3665 test "$ac_cv_exeext" = no && ac_cv_exeext=
3666
3667 else
3668   ac_file=''
3669 fi
3670 if test -z "$ac_file"; then :
3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error 77 "C compiler cannot create executables
3679 See \`config.log' for more details" "$LINENO" 5; }
3680 else
3681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3682 $as_echo "yes" >&6; }
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3685 $as_echo_n "checking for C compiler default output file name... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3687 $as_echo "$ac_file" >&6; }
3688 ac_exeext=$ac_cv_exeext
3689
3690 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3691 ac_clean_files=$ac_clean_files_save
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3693 $as_echo_n "checking for suffix of executables... " >&6; }
3694 if { { ac_try="$ac_link"
3695 case "(($ac_try" in
3696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697   *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701   (eval "$ac_link") 2>&5
3702   ac_status=$?
3703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704   test $ac_status = 0; }; then :
3705   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3706 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3707 # work properly (i.e., refer to `conftest.exe'), while it won't with
3708 # `rm'.
3709 for ac_file in conftest.exe conftest conftest.*; do
3710   test -f "$ac_file" || continue
3711   case $ac_file in
3712     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714           break;;
3715     * ) break;;
3716   esac
3717 done
3718 else
3719   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3722 See \`config.log' for more details" "$LINENO" 5; }
3723 fi
3724 rm -f conftest conftest$ac_cv_exeext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3726 $as_echo "$ac_cv_exeext" >&6; }
3727
3728 rm -f conftest.$ac_ext
3729 EXEEXT=$ac_cv_exeext
3730 ac_exeext=$EXEEXT
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733 #include <stdio.h>
3734 int
3735 main ()
3736 {
3737 FILE *f = fopen ("conftest.out", "w");
3738  return ferror (f) || fclose (f) != 0;
3739
3740   ;
3741   return 0;
3742 }
3743 _ACEOF
3744 ac_clean_files="$ac_clean_files conftest.out"
3745 # Check that the compiler produces executables we can run.  If not, either
3746 # the compiler is broken, or we cross compile.
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3748 $as_echo_n "checking whether we are cross compiling... " >&6; }
3749 if test "$cross_compiling" != yes; then
3750   { { ac_try="$ac_link"
3751 case "(($ac_try" in
3752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753   *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757   (eval "$ac_link") 2>&5
3758   ac_status=$?
3759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760   test $ac_status = 0; }
3761   if { ac_try='./conftest$ac_cv_exeext'
3762   { { case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768   (eval "$ac_try") 2>&5
3769   ac_status=$?
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; }; }; then
3772     cross_compiling=no
3773   else
3774     if test "$cross_compiling" = maybe; then
3775         cross_compiling=yes
3776     else
3777         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot run C compiled programs.
3780 If you meant to cross compile, use \`--host'.
3781 See \`config.log' for more details" "$LINENO" 5; }
3782     fi
3783   fi
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3786 $as_echo "$cross_compiling" >&6; }
3787
3788 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3789 ac_clean_files=$ac_clean_files_save
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3791 $as_echo_n "checking for suffix of object files... " >&6; }
3792 if ${ac_cv_objext+:} false; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h.  */
3797
3798 int
3799 main ()
3800 {
3801
3802   ;
3803   return 0;
3804 }
3805 _ACEOF
3806 rm -f conftest.o conftest.obj
3807 if { { ac_try="$ac_compile"
3808 case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814   (eval "$ac_compile") 2>&5
3815   ac_status=$?
3816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817   test $ac_status = 0; }; then :
3818   for ac_file in conftest.o conftest.obj conftest.*; do
3819   test -f "$ac_file" || continue;
3820   case $ac_file in
3821     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3822     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3823        break;;
3824   esac
3825 done
3826 else
3827   $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "cannot compute suffix of object files: cannot compile
3833 See \`config.log' for more details" "$LINENO" 5; }
3834 fi
3835 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3838 $as_echo "$ac_cv_objext" >&6; }
3839 OBJEXT=$ac_cv_objext
3840 ac_objext=$OBJEXT
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3842 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3843 if ${ac_cv_c_compiler_gnu+:} false; then :
3844   $as_echo_n "(cached) " >&6
3845 else
3846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h.  */
3848
3849 int
3850 main ()
3851 {
3852 #ifndef __GNUC__
3853        choke me
3854 #endif
3855
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_compile "$LINENO"; then :
3861   ac_compiler_gnu=yes
3862 else
3863   ac_compiler_gnu=no
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3867
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3870 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3871 if test $ac_compiler_gnu = yes; then
3872   GCC=yes
3873 else
3874   GCC=
3875 fi
3876 ac_test_CFLAGS=${CFLAGS+set}
3877 ac_save_CFLAGS=$CFLAGS
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3879 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3880 if ${ac_cv_prog_cc_g+:} false; then :
3881   $as_echo_n "(cached) " >&6
3882 else
3883   ac_save_c_werror_flag=$ac_c_werror_flag
3884    ac_c_werror_flag=yes
3885    ac_cv_prog_cc_g=no
3886    CFLAGS="-g"
3887    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h.  */
3889
3890 int
3891 main ()
3892 {
3893
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899   ac_cv_prog_cc_g=yes
3900 else
3901   CFLAGS=""
3902       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h.  */
3904
3905 int
3906 main ()
3907 {
3908
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914
3915 else
3916   ac_c_werror_flag=$ac_save_c_werror_flag
3917          CFLAGS="-g"
3918          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h.  */
3920
3921 int
3922 main ()
3923 {
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930   ac_cv_prog_cc_g=yes
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937    ac_c_werror_flag=$ac_save_c_werror_flag
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3940 $as_echo "$ac_cv_prog_cc_g" >&6; }
3941 if test "$ac_test_CFLAGS" = set; then
3942   CFLAGS=$ac_save_CFLAGS
3943 elif test $ac_cv_prog_cc_g = yes; then
3944   if test "$GCC" = yes; then
3945     CFLAGS="-g -O2"
3946   else
3947     CFLAGS="-g"
3948   fi
3949 else
3950   if test "$GCC" = yes; then
3951     CFLAGS="-O2"
3952   else
3953     CFLAGS=
3954   fi
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3957 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3958 if ${ac_cv_prog_cc_c89+:} false; then :
3959   $as_echo_n "(cached) " >&6
3960 else
3961   ac_cv_prog_cc_c89=no
3962 ac_save_CC=$CC
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h.  */
3965 #include <stdarg.h>
3966 #include <stdio.h>
3967 #include <sys/types.h>
3968 #include <sys/stat.h>
3969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3970 struct buf { int x; };
3971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3972 static char *e (p, i)
3973      char **p;
3974      int i;
3975 {
3976   return p[i];
3977 }
3978 static char *f (char * (*g) (char **, int), char **p, ...)
3979 {
3980   char *s;
3981   va_list v;
3982   va_start (v,p);
3983   s = g (p, va_arg (v,int));
3984   va_end (v);
3985   return s;
3986 }
3987
3988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3989    function prototypes and stuff, but not '\xHH' hex character constants.
3990    These don't provoke an error unfortunately, instead are silently treated
3991    as 'x'.  The following induces an error, until -std is added to get
3992    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3993    array size at least.  It's necessary to write '\x00'==0 to get something
3994    that's true only with -std.  */
3995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3996
3997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3998    inside strings and character constants.  */
3999 #define FOO(x) 'x'
4000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4001
4002 int test (int i, double x);
4003 struct s1 {int (*f) (int a);};
4004 struct s2 {int (*f) (double a);};
4005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4006 int argc;
4007 char **argv;
4008 int
4009 main ()
4010 {
4011 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4017         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4018 do
4019   CC="$ac_save_CC $ac_arg"
4020   if ac_fn_c_try_compile "$LINENO"; then :
4021   ac_cv_prog_cc_c89=$ac_arg
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext
4024   test "x$ac_cv_prog_cc_c89" != "xno" && break
4025 done
4026 rm -f conftest.$ac_ext
4027 CC=$ac_save_CC
4028
4029 fi
4030 # AC_CACHE_VAL
4031 case "x$ac_cv_prog_cc_c89" in
4032   x)
4033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4034 $as_echo "none needed" >&6; } ;;
4035   xno)
4036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4037 $as_echo "unsupported" >&6; } ;;
4038   *)
4039     CC="$CC $ac_cv_prog_cc_c89"
4040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4042 esac
4043 if test "x$ac_cv_prog_cc_c89" != xno; then :
4044
4045 fi
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052
4053 ac_ext=cpp
4054 ac_cpp='$CXXCPP $CPPFLAGS'
4055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4058 if test -z "$CXX"; then
4059   if test -n "$CCC"; then
4060     CXX=$CCC
4061   else
4062     if test -n "$ac_tool_prefix"; then
4063   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4064   do
4065     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if ${ac_cv_prog_CXX+:} false; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   if test -n "$CXX"; then
4073   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080     for ac_exec_ext in '' $ac_executable_extensions; do
4081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087   done
4088 IFS=$as_save_IFS
4089
4090 fi
4091 fi
4092 CXX=$ac_cv_prog_CXX
4093 if test -n "$CXX"; then
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4095 $as_echo "$CXX" >&6; }
4096 else
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 fi
4100
4101
4102     test -n "$CXX" && break
4103   done
4104 fi
4105 if test -z "$CXX"; then
4106   ac_ct_CXX=$CXX
4107   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4108 do
4109   # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy $ac_prog; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4114   $as_echo_n "(cached) " >&6
4115 else
4116   if test -n "$ac_ct_CXX"; then
4117   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124     for ac_exec_ext in '' $ac_executable_extensions; do
4125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126     ac_cv_prog_ac_ct_CXX="$ac_prog"
4127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128     break 2
4129   fi
4130 done
4131   done
4132 IFS=$as_save_IFS
4133
4134 fi
4135 fi
4136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4137 if test -n "$ac_ct_CXX"; then
4138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4139 $as_echo "$ac_ct_CXX" >&6; }
4140 else
4141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4143 fi
4144
4145
4146   test -n "$ac_ct_CXX" && break
4147 done
4148
4149   if test "x$ac_ct_CXX" = x; then
4150     CXX="g++"
4151   else
4152     case $cross_compiling:$ac_tool_warned in
4153 yes:)
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4156 ac_tool_warned=yes ;;
4157 esac
4158     CXX=$ac_ct_CXX
4159   fi
4160 fi
4161
4162   fi
4163 fi
4164 # Provide some information about the compiler.
4165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4166 set X $ac_compile
4167 ac_compiler=$2
4168 for ac_option in --version -v -V -qversion; do
4169   { { ac_try="$ac_compiler $ac_option >&5"
4170 case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 $as_echo "$ac_try_echo"; } >&5
4176   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4177   ac_status=$?
4178   if test -s conftest.err; then
4179     sed '10a\
4180 ... rest of stderr output deleted ...
4181          10q' conftest.err >conftest.er1
4182     cat conftest.er1 >&5
4183   fi
4184   rm -f conftest.er1 conftest.err
4185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186   test $ac_status = 0; }
4187 done
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4190 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4191 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h.  */
4196
4197 int
4198 main ()
4199 {
4200 #ifndef __GNUC__
4201        choke me
4202 #endif
4203
4204   ;
4205   return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_cxx_try_compile "$LINENO"; then :
4209   ac_compiler_gnu=yes
4210 else
4211   ac_compiler_gnu=no
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4215
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4218 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4219 if test $ac_compiler_gnu = yes; then
4220   GXX=yes
4221 else
4222   GXX=
4223 fi
4224 ac_test_CXXFLAGS=${CXXFLAGS+set}
4225 ac_save_CXXFLAGS=$CXXFLAGS
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4227 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4228 if ${ac_cv_prog_cxx_g+:} false; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4232    ac_cxx_werror_flag=yes
4233    ac_cv_prog_cxx_g=no
4234    CXXFLAGS="-g"
4235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237
4238 int
4239 main ()
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_cxx_try_compile "$LINENO"; then :
4247   ac_cv_prog_cxx_g=yes
4248 else
4249   CXXFLAGS=""
4250       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h.  */
4252
4253 int
4254 main ()
4255 {
4256
4257   ;
4258   return 0;
4259 }
4260 _ACEOF
4261 if ac_fn_cxx_try_compile "$LINENO"; then :
4262
4263 else
4264   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4265          CXXFLAGS="-g"
4266          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4278   ac_cv_prog_cxx_g=yes
4279 fi
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 fi
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4288 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4289 if test "$ac_test_CXXFLAGS" = set; then
4290   CXXFLAGS=$ac_save_CXXFLAGS
4291 elif test $ac_cv_prog_cxx_g = yes; then
4292   if test "$GXX" = yes; then
4293     CXXFLAGS="-g -O2"
4294   else
4295     CXXFLAGS="-g"
4296   fi
4297 else
4298   if test "$GXX" = yes; then
4299     CXXFLAGS="-O2"
4300   else
4301     CXXFLAGS=
4302   fi
4303 fi
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309
4310 if test "x$CC" != xcc; then
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4312 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4313 else
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4315 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4316 fi
4317 set dummy $CC; ac_cc=`$as_echo "$2" |
4318                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4319 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 # Make sure it works both with $CC and with simple cc.
4334 # We do the test twice because some compilers refuse to overwrite an
4335 # existing .o file with -o, though they will create one.
4336 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4337 rm -f conftest2.*
4338 if { { case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344   (eval "$ac_try") 2>&5
4345   ac_status=$?
4346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347   test $ac_status = 0; } &&
4348    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350   *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354   (eval "$ac_try") 2>&5
4355   ac_status=$?
4356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357   test $ac_status = 0; };
4358 then
4359   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4360   if test "x$CC" != xcc; then
4361     # Test first that cc exists at all.
4362     if { ac_try='cc -c conftest.$ac_ext >&5'
4363   { { case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372   test $ac_status = 0; }; }; then
4373       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4374       rm -f conftest2.*
4375       if { { case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381   (eval "$ac_try") 2>&5
4382   ac_status=$?
4383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384   test $ac_status = 0; } &&
4385          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391   (eval "$ac_try") 2>&5
4392   ac_status=$?
4393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394   test $ac_status = 0; };
4395       then
4396         # cc works too.
4397         :
4398       else
4399         # cc exists but doesn't like -o.
4400         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4401       fi
4402     fi
4403   fi
4404 else
4405   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4406 fi
4407 rm -f core conftest*
4408
4409 fi
4410 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4412 $as_echo "yes" >&6; }
4413 else
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416
4417 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4418
4419 fi
4420
4421 ac_ext=c
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4428 # On Suns, sometimes $CPP names a directory.
4429 if test -n "$CPP" && test -d "$CPP"; then
4430   CPP=
4431 fi
4432 if test -z "$CPP"; then
4433   if ${ac_cv_prog_CPP+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436       # Double quotes because CPP needs to be expanded
4437     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4438     do
4439       ac_preproc_ok=false
4440 for ac_c_preproc_warn_flag in '' yes
4441 do
4442   # Use a header file that comes with gcc, so configuring glibc
4443   # with a fresh cross-compiler works.
4444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445   # <limits.h> exists even on freestanding compilers.
4446   # On the NeXT, cc -E runs the code through the compiler's parser,
4447   # not just through cpp. "Syntax error" is here to catch this case.
4448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450 #ifdef __STDC__
4451 # include <limits.h>
4452 #else
4453 # include <assert.h>
4454 #endif
4455                      Syntax error
4456 _ACEOF
4457 if ac_fn_c_try_cpp "$LINENO"; then :
4458
4459 else
4460   # Broken: fails on valid input.
4461 continue
4462 fi
4463 rm -f conftest.err conftest.i conftest.$ac_ext
4464
4465   # OK, works on sane cases.  Now check whether nonexistent headers
4466   # can be detected and how.
4467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h.  */
4469 #include <ac_nonexistent.h>
4470 _ACEOF
4471 if ac_fn_c_try_cpp "$LINENO"; then :
4472   # Broken: success on invalid input.
4473 continue
4474 else
4475   # Passes both tests.
4476 ac_preproc_ok=:
4477 break
4478 fi
4479 rm -f conftest.err conftest.i conftest.$ac_ext
4480
4481 done
4482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4483 rm -f conftest.i conftest.err conftest.$ac_ext
4484 if $ac_preproc_ok; then :
4485   break
4486 fi
4487
4488     done
4489     ac_cv_prog_CPP=$CPP
4490
4491 fi
4492   CPP=$ac_cv_prog_CPP
4493 else
4494   ac_cv_prog_CPP=$CPP
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4497 $as_echo "$CPP" >&6; }
4498 ac_preproc_ok=false
4499 for ac_c_preproc_warn_flag in '' yes
4500 do
4501   # Use a header file that comes with gcc, so configuring glibc
4502   # with a fresh cross-compiler works.
4503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504   # <limits.h> exists even on freestanding compilers.
4505   # On the NeXT, cc -E runs the code through the compiler's parser,
4506   # not just through cpp. "Syntax error" is here to catch this case.
4507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h.  */
4509 #ifdef __STDC__
4510 # include <limits.h>
4511 #else
4512 # include <assert.h>
4513 #endif
4514                      Syntax error
4515 _ACEOF
4516 if ac_fn_c_try_cpp "$LINENO"; then :
4517
4518 else
4519   # Broken: fails on valid input.
4520 continue
4521 fi
4522 rm -f conftest.err conftest.i conftest.$ac_ext
4523
4524   # OK, works on sane cases.  Now check whether nonexistent headers
4525   # can be detected and how.
4526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h.  */
4528 #include <ac_nonexistent.h>
4529 _ACEOF
4530 if ac_fn_c_try_cpp "$LINENO"; then :
4531   # Broken: success on invalid input.
4532 continue
4533 else
4534   # Passes both tests.
4535 ac_preproc_ok=:
4536 break
4537 fi
4538 rm -f conftest.err conftest.i conftest.$ac_ext
4539
4540 done
4541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4542 rm -f conftest.i conftest.err conftest.$ac_ext
4543 if $ac_preproc_ok; then :
4544
4545 else
4546   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4549 See \`config.log' for more details" "$LINENO" 5; }
4550 fi
4551
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4560 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4561 if ${ac_cv_path_GREP+:} false; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   if test -z "$GREP"; then
4565   ac_path_GREP_found=false
4566   # Loop through the user's path and test for each of PROGNAME-LIST
4567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572     for ac_prog in grep ggrep; do
4573     for ac_exec_ext in '' $ac_executable_extensions; do
4574       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4575       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4576 # Check for GNU ac_path_GREP and select it if it is found.
4577   # Check for GNU $ac_path_GREP
4578 case `"$ac_path_GREP" --version 2>&1` in
4579 *GNU*)
4580   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4581 *)
4582   ac_count=0
4583   $as_echo_n 0123456789 >"conftest.in"
4584   while :
4585   do
4586     cat "conftest.in" "conftest.in" >"conftest.tmp"
4587     mv "conftest.tmp" "conftest.in"
4588     cp "conftest.in" "conftest.nl"
4589     $as_echo 'GREP' >> "conftest.nl"
4590     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592     as_fn_arith $ac_count + 1 && ac_count=$as_val
4593     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4594       # Best one so far, save it but keep looking for a better one
4595       ac_cv_path_GREP="$ac_path_GREP"
4596       ac_path_GREP_max=$ac_count
4597     fi
4598     # 10*(2^10) chars as input seems more than enough
4599     test $ac_count -gt 10 && break
4600   done
4601   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602 esac
4603
4604       $ac_path_GREP_found && break 3
4605     done
4606   done
4607   done
4608 IFS=$as_save_IFS
4609   if test -z "$ac_cv_path_GREP"; then
4610     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4611   fi
4612 else
4613   ac_cv_path_GREP=$GREP
4614 fi
4615
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4618 $as_echo "$ac_cv_path_GREP" >&6; }
4619  GREP="$ac_cv_path_GREP"
4620
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4623 $as_echo_n "checking for egrep... " >&6; }
4624 if ${ac_cv_path_EGREP+:} false; then :
4625   $as_echo_n "(cached) " >&6
4626 else
4627   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4628    then ac_cv_path_EGREP="$GREP -E"
4629    else
4630      if test -z "$EGREP"; then
4631   ac_path_EGREP_found=false
4632   # Loop through the user's path and test for each of PROGNAME-LIST
4633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638     for ac_prog in egrep; do
4639     for ac_exec_ext in '' $ac_executable_extensions; do
4640       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4641       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4642 # Check for GNU ac_path_EGREP and select it if it is found.
4643   # Check for GNU $ac_path_EGREP
4644 case `"$ac_path_EGREP" --version 2>&1` in
4645 *GNU*)
4646   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4647 *)
4648   ac_count=0
4649   $as_echo_n 0123456789 >"conftest.in"
4650   while :
4651   do
4652     cat "conftest.in" "conftest.in" >"conftest.tmp"
4653     mv "conftest.tmp" "conftest.in"
4654     cp "conftest.in" "conftest.nl"
4655     $as_echo 'EGREP' >> "conftest.nl"
4656     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658     as_fn_arith $ac_count + 1 && ac_count=$as_val
4659     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4660       # Best one so far, save it but keep looking for a better one
4661       ac_cv_path_EGREP="$ac_path_EGREP"
4662       ac_path_EGREP_max=$ac_count
4663     fi
4664     # 10*(2^10) chars as input seems more than enough
4665     test $ac_count -gt 10 && break
4666   done
4667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668 esac
4669
4670       $ac_path_EGREP_found && break 3
4671     done
4672   done
4673   done
4674 IFS=$as_save_IFS
4675   if test -z "$ac_cv_path_EGREP"; then
4676     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4677   fi
4678 else
4679   ac_cv_path_EGREP=$EGREP
4680 fi
4681
4682    fi
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4685 $as_echo "$ac_cv_path_EGREP" >&6; }
4686  EGREP="$ac_cv_path_EGREP"
4687
4688
4689 if test $ac_cv_c_compiler_gnu = yes; then
4690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4691 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4692 if ${ac_cv_prog_gcc_traditional+:} false; then :
4693   $as_echo_n "(cached) " >&6
4694 else
4695     ac_pattern="Autoconf.*'x'"
4696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h.  */
4698 #include <sgtty.h>
4699 Autoconf TIOCGETP
4700 _ACEOF
4701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4703   ac_cv_prog_gcc_traditional=yes
4704 else
4705   ac_cv_prog_gcc_traditional=no
4706 fi
4707 rm -f conftest*
4708
4709
4710   if test $ac_cv_prog_gcc_traditional = no; then
4711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h.  */
4713 #include <termio.h>
4714 Autoconf TCGETA
4715 _ACEOF
4716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4717   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4718   ac_cv_prog_gcc_traditional=yes
4719 fi
4720 rm -f conftest*
4721
4722   fi
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4725 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4726   if test $ac_cv_prog_gcc_traditional = yes; then
4727     CC="$CC -traditional"
4728   fi
4729 fi
4730
4731 BASECC=`basename $CC`
4732 have_gcc=no
4733 if test "x$BASECC" = xgcc; then
4734    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4735
4736    have_gcc=yes
4737 fi
4738 # Extract the first word of "$CXX", so it can be a program name with args.
4739 set dummy $CXX; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_path_CXX+:} false; then :
4743   $as_echo_n "(cached) " >&6
4744 else
4745   case $CXX in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755     for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762   done
4763 IFS=$as_save_IFS
4764
4765   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4766   ;;
4767 esac
4768 fi
4769 CXX=$ac_cv_path_CXX
4770 if test -n "$CXX"; then
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4772 $as_echo "$CXX" >&6; }
4773 else
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4776 fi
4777
4778
4779 if test ! -e $CXX; then
4780    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4781 fi
4782
4783 # Find a good install program.  We prefer a C program (faster),
4784 # so one script is as good as another.  But avoid the broken or
4785 # incompatible versions:
4786 # SysV /etc/install, /usr/sbin/install
4787 # SunOS /usr/etc/install
4788 # IRIX /sbin/install
4789 # AIX /bin/install
4790 # AmigaOS /C/install, which installs bootblocks on floppy discs
4791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4794 # OS/2's system install, which has a completely different semantic
4795 # ./install, which can be erroneously created by make from ./install.sh.
4796 # Reject install programs that cannot install multiple files.
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4798 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4799 if test -z "$INSTALL"; then
4800 if ${ac_cv_path_install+:} false; then :
4801   $as_echo_n "(cached) " >&6
4802 else
4803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806   IFS=$as_save_IFS
4807   test -z "$as_dir" && as_dir=.
4808     # Account for people who put trailing slashes in PATH elements.
4809 case $as_dir/ in #((
4810   ./ | .// | /[cC]/* | \
4811   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4812   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4813   /usr/ucb/* ) ;;
4814   *)
4815     # OSF1 and SCO ODT 3.0 have their own names for install.
4816     # Don't use installbsd from OSF since it installs stuff as root
4817     # by default.
4818     for ac_prog in ginstall scoinst install; do
4819       for ac_exec_ext in '' $ac_executable_extensions; do
4820         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4821           if test $ac_prog = install &&
4822             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4823             # AIX install.  It has an incompatible calling convention.
4824             :
4825           elif test $ac_prog = install &&
4826             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4827             # program-specific install script used by HP pwplus--don't use.
4828             :
4829           else
4830             rm -rf conftest.one conftest.two conftest.dir
4831             echo one > conftest.one
4832             echo two > conftest.two
4833             mkdir conftest.dir
4834             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4835               test -s conftest.one && test -s conftest.two &&
4836               test -s conftest.dir/conftest.one &&
4837               test -s conftest.dir/conftest.two
4838             then
4839               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4840               break 3
4841             fi
4842           fi
4843         fi
4844       done
4845     done
4846     ;;
4847 esac
4848
4849   done
4850 IFS=$as_save_IFS
4851
4852 rm -rf conftest.one conftest.two conftest.dir
4853
4854 fi
4855   if test "${ac_cv_path_install+set}" = set; then
4856     INSTALL=$ac_cv_path_install
4857   else
4858     # As a last resort, use the slow shell script.  Don't cache a
4859     # value for INSTALL within a source directory, because that will
4860     # break other packages using the cache if that directory is
4861     # removed, or if the value is a relative name.
4862     INSTALL=$ac_install_sh
4863   fi
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4866 $as_echo "$INSTALL" >&6; }
4867
4868 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4869 # It thinks the first close brace ends the variable substitution.
4870 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4871
4872 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4873
4874 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4875
4876 # Extract the first word of "mv", so it can be a program name with args.
4877 set dummy mv; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_path_MV+:} false; then :
4881   $as_echo_n "(cached) " >&6
4882 else
4883   case $MV in
4884   [\\/]* | ?:[\\/]*)
4885   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4886   ;;
4887   *)
4888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893     for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900   done
4901 IFS=$as_save_IFS
4902
4903   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4904   ;;
4905 esac
4906 fi
4907 MV=$ac_cv_path_MV
4908 if test -n "$MV"; then
4909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4910 $as_echo "$MV" >&6; }
4911 else
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4914 fi
4915
4916
4917 # Extract the first word of "rm", so it can be a program name with args.
4918 set dummy rm; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_path_REMOVE+:} false; then :
4922   $as_echo_n "(cached) " >&6
4923 else
4924   case $REMOVE in
4925   [\\/]* | ?:[\\/]*)
4926   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4927   ;;
4928   *)
4929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934     for ac_exec_ext in '' $ac_executable_extensions; do
4935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941   done
4942 IFS=$as_save_IFS
4943
4944   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4945   ;;
4946 esac
4947 fi
4948 REMOVE=$ac_cv_path_REMOVE
4949 if test -n "$REMOVE"; then
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4951 $as_echo "$REMOVE" >&6; }
4952 else
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955 fi
4956
4957
4958 # Extract the first word of "cp", so it can be a program name with args.
4959 set dummy cp; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if ${ac_cv_path_CP+:} false; then :
4963   $as_echo_n "(cached) " >&6
4964 else
4965   case $CP in
4966   [\\/]* | ?:[\\/]*)
4967   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4968   ;;
4969   *)
4970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973   IFS=$as_save_IFS
4974   test -z "$as_dir" && as_dir=.
4975     for ac_exec_ext in '' $ac_executable_extensions; do
4976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979     break 2
4980   fi
4981 done
4982   done
4983 IFS=$as_save_IFS
4984
4985   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4986   ;;
4987 esac
4988 fi
4989 CP=$ac_cv_path_CP
4990 if test -n "$CP"; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4992 $as_echo "$CP" >&6; }
4993 else
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 fi
4997
4998
4999 # Extract the first word of "sed", so it can be a program name with args.
5000 set dummy sed; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_path_SED+:} false; then :
5004   $as_echo_n "(cached) " >&6
5005 else
5006   case $SED in
5007   [\\/]* | ?:[\\/]*)
5008   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5009   ;;
5010   *)
5011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_exec_ext in '' $ac_executable_extensions; do
5017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023   done
5024 IFS=$as_save_IFS
5025
5026   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5027   ;;
5028 esac
5029 fi
5030 SED=$ac_cv_path_SED
5031 if test -n "$SED"; then
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5033 $as_echo "$SED" >&6; }
5034 else
5035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 fi
5038
5039
5040 # Extract the first word of "echo", so it can be a program name with args.
5041 set dummy echo; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_path_ECHO+:} false; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   case $ECHO in
5048   [\\/]* | ?:[\\/]*)
5049   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5050   ;;
5051   *)
5052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057     for ac_exec_ext in '' $ac_executable_extensions; do
5058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064   done
5065 IFS=$as_save_IFS
5066
5067   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5068   ;;
5069 esac
5070 fi
5071 ECHO=$ac_cv_path_ECHO
5072 if test -n "$ECHO"; then
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5074 $as_echo "$ECHO" >&6; }
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080
5081 # Extract the first word of "cmp", so it can be a program name with args.
5082 set dummy cmp; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_path_CMP+:} false; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   case $CMP in
5089   [\\/]* | ?:[\\/]*)
5090   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5091   ;;
5092   *)
5093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098     for ac_exec_ext in '' $ac_executable_extensions; do
5099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103   fi
5104 done
5105   done
5106 IFS=$as_save_IFS
5107
5108   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5109   ;;
5110 esac
5111 fi
5112 CMP=$ac_cv_path_CMP
5113 if test -n "$CMP"; then
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5115 $as_echo "$CMP" >&6; }
5116 else
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122 # Extract the first word of "tbl", so it can be a program name with args.
5123 set dummy tbl; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_path_TBL+:} false; then :
5127   $as_echo_n "(cached) " >&6
5128 else
5129   case $TBL in
5130   [\\/]* | ?:[\\/]*)
5131   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5132   ;;
5133   *)
5134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137   IFS=$as_save_IFS
5138   test -z "$as_dir" && as_dir=.
5139     for ac_exec_ext in '' $ac_executable_extensions; do
5140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143     break 2
5144   fi
5145 done
5146   done
5147 IFS=$as_save_IFS
5148
5149   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5150   ;;
5151 esac
5152 fi
5153 TBL=$ac_cv_path_TBL
5154 if test -n "$TBL"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5156 $as_echo "$TBL" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162
5163 # Extract the first word of "ar", so it can be a program name with args.
5164 set dummy ar; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_path_AR+:} false; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   case $AR in
5171   [\\/]* | ?:[\\/]*)
5172   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5173   ;;
5174   *)
5175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180     for ac_exec_ext in '' $ac_executable_extensions; do
5181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187   done
5188 IFS=$as_save_IFS
5189
5190   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5191   ;;
5192 esac
5193 fi
5194 AR=$ac_cv_path_AR
5195 if test -n "$AR"; then
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5197 $as_echo "$AR" >&6; }
5198 else
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202
5203
5204 # Extract the first word of "openssl", so it can be a program name with args.
5205 set dummy openssl; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_path_OPENSSL+:} false; then :
5209   $as_echo_n "(cached) " >&6
5210 else
5211   case $OPENSSL in
5212   [\\/]* | ?:[\\/]*)
5213   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5214   ;;
5215   *)
5216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221     for ac_exec_ext in '' $ac_executable_extensions; do
5222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225     break 2
5226   fi
5227 done
5228   done
5229 IFS=$as_save_IFS
5230
5231   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5232   ;;
5233 esac
5234 fi
5235 OPENSSL=$ac_cv_path_OPENSSL
5236 if test -n "$OPENSSL"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5238 $as_echo "$OPENSSL" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245 # Extract the first word of "mtx", so it can be a program name with args.
5246 set dummy mtx; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_MTX+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   case $MTX in
5253   [\\/]* | ?:[\\/]*)
5254   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5255   ;;
5256   *)
5257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260   IFS=$as_save_IFS
5261   test -z "$as_dir" && as_dir=.
5262     for ac_exec_ext in '' $ac_executable_extensions; do
5263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266     break 2
5267   fi
5268 done
5269   done
5270 IFS=$as_save_IFS
5271
5272   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5273   ;;
5274 esac
5275 fi
5276 MTX=$ac_cv_path_MTX
5277 if test -n "$MTX"; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5279 $as_echo "$MTX" >&6; }
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 # Extract the first word of "dd", so it can be a program name with args.
5287 set dummy dd; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_path_DD+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   case $DD in
5294   [\\/]* | ?:[\\/]*)
5295   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5296   ;;
5297   *)
5298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303     for ac_exec_ext in '' $ac_executable_extensions; do
5304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310   done
5311 IFS=$as_save_IFS
5312
5313   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5314   ;;
5315 esac
5316 fi
5317 DD=$ac_cv_path_DD
5318 if test -n "$DD"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5320 $as_echo "$DD" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326
5327 # Extract the first word of "mkisofs", so it can be a program name with args.
5328 set dummy mkisofs; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_path_MKISOFS+:} false; then :
5332   $as_echo_n "(cached) " >&6
5333 else
5334   case $MKISOFS in
5335   [\\/]* | ?:[\\/]*)
5336   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5337   ;;
5338   *)
5339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342   IFS=$as_save_IFS
5343   test -z "$as_dir" && as_dir=.
5344     for ac_exec_ext in '' $ac_executable_extensions; do
5345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348     break 2
5349   fi
5350 done
5351   done
5352 IFS=$as_save_IFS
5353
5354   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5355   ;;
5356 esac
5357 fi
5358 MKISOFS=$ac_cv_path_MKISOFS
5359 if test -n "$MKISOFS"; then
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5361 $as_echo "$MKISOFS" >&6; }
5362 else
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367
5368 # Extract the first word of "python", so it can be a program name with args.
5369 set dummy python; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_path_PYTHON+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   case $PYTHON in
5376   [\\/]* | ?:[\\/]*)
5377   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5378   ;;
5379   *)
5380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5382 do
5383   IFS=$as_save_IFS
5384   test -z "$as_dir" && as_dir=.
5385     for ac_exec_ext in '' $ac_executable_extensions; do
5386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389     break 2
5390   fi
5391 done
5392   done
5393 IFS=$as_save_IFS
5394
5395   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5396   ;;
5397 esac
5398 fi
5399 PYTHON=$ac_cv_path_PYTHON
5400 if test -n "$PYTHON"; then
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5402 $as_echo "$PYTHON" >&6; }
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407
5408
5409 # Extract the first word of "growisofs", so it can be a program name with args.
5410 set dummy growisofs; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_GROWISOFS+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   case $GROWISOFS in
5417   [\\/]* | ?:[\\/]*)
5418   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5419   ;;
5420   *)
5421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424   IFS=$as_save_IFS
5425   test -z "$as_dir" && as_dir=.
5426     for ac_exec_ext in '' $ac_executable_extensions; do
5427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430     break 2
5431   fi
5432 done
5433   done
5434 IFS=$as_save_IFS
5435
5436   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5437   ;;
5438 esac
5439 fi
5440 GROWISOFS=$ac_cv_path_GROWISOFS
5441 if test -n "$GROWISOFS"; then
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5443 $as_echo "$GROWISOFS" >&6; }
5444 else
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449
5450 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5451 set dummy dvd+rw-mediainfo; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   case $DVDRWMEDIAINFO in
5458   [\\/]* | ?:[\\/]*)
5459   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5460   ;;
5461   *)
5462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476
5477   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5478   ;;
5479 esac
5480 fi
5481 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5482 if test -n "$DVDRWMEDIAINFO"; then
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5484 $as_echo "$DVDRWMEDIAINFO" >&6; }
5485 else
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5492 set dummy dvd+rw-format; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498   case $DVDRWFORMAT in
5499   [\\/]* | ?:[\\/]*)
5500   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5501   ;;
5502   *)
5503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515   done
5516 IFS=$as_save_IFS
5517
5518   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5519   ;;
5520 esac
5521 fi
5522 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5523 if test -n "$DVDRWFORMAT"; then
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5525 $as_echo "$DVDRWFORMAT" >&6; }
5526 else
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 # Extract the first word of "pkg-config", so it can be a program name with args.
5533 set dummy pkg-config; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_path_PKGCONFIG+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   case $PKGCONFIG in
5540   [\\/]* | ?:[\\/]*)
5541   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5542   ;;
5543   *)
5544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549     for ac_exec_ext in '' $ac_executable_extensions; do
5550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556   done
5557 IFS=$as_save_IFS
5558
5559   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5560   ;;
5561 esac
5562 fi
5563 PKGCONFIG=$ac_cv_path_PKGCONFIG
5564 if test -n "$PKGCONFIG"; then
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5566 $as_echo "$PKGCONFIG" >&6; }
5567 else
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5570 fi
5571
5572
5573 # Extract the first word of "qmake", so it can be a program name with args.
5574 set dummy qmake; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_path_QMAKE+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   case $QMAKE in
5581   [\\/]* | ?:[\\/]*)
5582   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5583   ;;
5584   *)
5585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597   done
5598 IFS=$as_save_IFS
5599
5600   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5601   ;;
5602 esac
5603 fi
5604 QMAKE=$ac_cv_path_QMAKE
5605 if test -n "$QMAKE"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5607 $as_echo "$QMAKE" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613
5614 # Extract the first word of "gmake", so it can be a program name with args.
5615 set dummy gmake; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_path_GMAKE+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   case $GMAKE in
5622   [\\/]* | ?:[\\/]*)
5623   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5624   ;;
5625   *)
5626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638   done
5639 IFS=$as_save_IFS
5640
5641   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5642   ;;
5643 esac
5644 fi
5645 GMAKE=$ac_cv_path_GMAKE
5646 if test -n "$GMAKE"; then
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5648 $as_echo "$GMAKE" >&6; }
5649 else
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655 # Extract the first word of "cdrecord", so it can be a program name with args.
5656 set dummy cdrecord; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_path_CDRECORD+:} false; then :
5660   $as_echo_n "(cached) " >&6
5661 else
5662   case $CDRECORD in
5663   [\\/]* | ?:[\\/]*)
5664   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5665   ;;
5666   *)
5667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670   IFS=$as_save_IFS
5671   test -z "$as_dir" && as_dir=.
5672     for ac_exec_ext in '' $ac_executable_extensions; do
5673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676     break 2
5677   fi
5678 done
5679   done
5680 IFS=$as_save_IFS
5681
5682   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5683   ;;
5684 esac
5685 fi
5686 CDRECORD=$ac_cv_path_CDRECORD
5687 if test -n "$CDRECORD"; then
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5689 $as_echo "$CDRECORD" >&6; }
5690 else
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694
5695
5696 # Extract the first word of "pidof", so it can be a program name with args.
5697 set dummy pidof; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_path_PIDOF+:} false; then :
5701   $as_echo_n "(cached) " >&6
5702 else
5703   case $PIDOF in
5704   [\\/]* | ?:[\\/]*)
5705   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5706   ;;
5707   *)
5708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713     for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720   done
5721 IFS=$as_save_IFS
5722
5723   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5724   ;;
5725 esac
5726 fi
5727 PIDOF=$ac_cv_path_PIDOF
5728 if test -n "$PIDOF"; then
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5730 $as_echo "$PIDOF" >&6; }
5731 else
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737 for ac_prog in gawk mawk nawk awk
5738 do
5739   # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_AWK+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   if test -n "$AWK"; then
5747   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756     ac_cv_prog_AWK="$ac_prog"
5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761   done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 AWK=$ac_cv_prog_AWK
5767 if test -n "$AWK"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5769 $as_echo "$AWK" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775
5776   test -n "$AWK" && break
5777 done
5778
5779 # Some AWK programs fail, so test it and warn the user
5780 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5781       { if ((prog == $2) || (("(" prog ")") == $2) ||
5782       (("" prog "") == $2) ||
5783       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5784 else
5785   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5786    The regex engine of $AWK is too broken to be used you
5787    might want to install GNU AWK.
5788    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5789 fi
5790 THE_AWK=$AWK
5791 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5792 set dummy $THE_AWK; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_path_AWK+:} false; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   case $AWK in
5799   [\\/]* | ?:[\\/]*)
5800   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5801   ;;
5802   *)
5803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817
5818   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5819   ;;
5820 esac
5821 fi
5822 AWK=$ac_cv_path_AWK
5823 if test -n "$AWK"; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5825 $as_echo "$AWK" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831
5832
5833
5834 test -n "$ARFLAG" || ARFLAGS="cr"
5835
5836
5837 MAKE_SHELL=/bin/sh
5838
5839
5840
5841
5842
5843
5844
5845 use_libtool=yes
5846 # Check whether --enable-libtool was given.
5847 if test "${enable_libtool+set}" = set; then :
5848   enableval=$enable_libtool;
5849        if test x$enableval = xno; then
5850           use_libtool=no
5851        fi
5852
5853
5854 fi
5855
5856 case `pwd` in
5857   *\ * | *\     *)
5858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5859 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5860 esac
5861
5862
5863
5864 macro_version='2.4.2'
5865 macro_revision='1.3337'
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 ltmain="$ac_aux_dir/ltmain.sh"
5880
5881 # Make sure we can run config.sub.
5882 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5883   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5884
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5886 $as_echo_n "checking build system type... " >&6; }
5887 if ${ac_cv_build+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   ac_build_alias=$build_alias
5891 test "x$ac_build_alias" = x &&
5892   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5893 test "x$ac_build_alias" = x &&
5894   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5895 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5896   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5897
5898 fi
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5900 $as_echo "$ac_cv_build" >&6; }
5901 case $ac_cv_build in
5902 *-*-*) ;;
5903 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5904 esac
5905 build=$ac_cv_build
5906 ac_save_IFS=$IFS; IFS='-'
5907 set x $ac_cv_build
5908 shift
5909 build_cpu=$1
5910 build_vendor=$2
5911 shift; shift
5912 # Remember, the first character of IFS is used to create $*,
5913 # except with old shells:
5914 build_os=$*
5915 IFS=$ac_save_IFS
5916 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5917
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5920 $as_echo_n "checking host system type... " >&6; }
5921 if ${ac_cv_host+:} false; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   if test "x$host_alias" = x; then
5925   ac_cv_host=$ac_cv_build
5926 else
5927   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5928     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5929 fi
5930
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5933 $as_echo "$ac_cv_host" >&6; }
5934 case $ac_cv_host in
5935 *-*-*) ;;
5936 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5937 esac
5938 host=$ac_cv_host
5939 ac_save_IFS=$IFS; IFS='-'
5940 set x $ac_cv_host
5941 shift
5942 host_cpu=$1
5943 host_vendor=$2
5944 shift; shift
5945 # Remember, the first character of IFS is used to create $*,
5946 # except with old shells:
5947 host_os=$*
5948 IFS=$ac_save_IFS
5949 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5950
5951
5952 # Backslashify metacharacters that are still active within
5953 # double-quoted strings.
5954 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5955
5956 # Same as above, but do not quote variable references.
5957 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5958
5959 # Sed substitution to delay expansion of an escaped shell variable in a
5960 # double_quote_subst'ed string.
5961 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5962
5963 # Sed substitution to delay expansion of an escaped single quote.
5964 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5965
5966 # Sed substitution to avoid accidental globbing in evaled expressions
5967 no_glob_subst='s/\*/\\\*/g'
5968
5969 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5970 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5971 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5974 $as_echo_n "checking how to print strings... " >&6; }
5975 # Test print first, because it will be a builtin if present.
5976 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5977    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5978   ECHO='print -r --'
5979 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5980   ECHO='printf %s\n'
5981 else
5982   # Use this function as a fallback that always works.
5983   func_fallback_echo ()
5984   {
5985     eval 'cat <<_LTECHO_EOF
5986 $1
5987 _LTECHO_EOF'
5988   }
5989   ECHO='func_fallback_echo'
5990 fi
5991
5992 # func_echo_all arg...
5993 # Invoke $ECHO with all args, space-separated.
5994 func_echo_all ()
5995 {
5996     $ECHO ""
5997 }
5998
5999 case "$ECHO" in
6000   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6001 $as_echo "printf" >&6; } ;;
6002   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6003 $as_echo "print -r" >&6; } ;;
6004   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6005 $as_echo "cat" >&6; } ;;
6006 esac
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6022 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6023 if ${ac_cv_path_SED+:} false; then :
6024   $as_echo_n "(cached) " >&6
6025 else
6026             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6027      for ac_i in 1 2 3 4 5 6 7; do
6028        ac_script="$ac_script$as_nl$ac_script"
6029      done
6030      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6031      { ac_script=; unset ac_script;}
6032      if test -z "$SED"; then
6033   ac_path_SED_found=false
6034   # Loop through the user's path and test for each of PROGNAME-LIST
6035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040     for ac_prog in sed gsed; do
6041     for ac_exec_ext in '' $ac_executable_extensions; do
6042       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6043       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6044 # Check for GNU ac_path_SED and select it if it is found.
6045   # Check for GNU $ac_path_SED
6046 case `"$ac_path_SED" --version 2>&1` in
6047 *GNU*)
6048   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6049 *)
6050   ac_count=0
6051   $as_echo_n 0123456789 >"conftest.in"
6052   while :
6053   do
6054     cat "conftest.in" "conftest.in" >"conftest.tmp"
6055     mv "conftest.tmp" "conftest.in"
6056     cp "conftest.in" "conftest.nl"
6057     $as_echo '' >> "conftest.nl"
6058     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6059     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6060     as_fn_arith $ac_count + 1 && ac_count=$as_val
6061     if test $ac_count -gt ${ac_path_SED_max-0}; then
6062       # Best one so far, save it but keep looking for a better one
6063       ac_cv_path_SED="$ac_path_SED"
6064       ac_path_SED_max=$ac_count
6065     fi
6066     # 10*(2^10) chars as input seems more than enough
6067     test $ac_count -gt 10 && break
6068   done
6069   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6070 esac
6071
6072       $ac_path_SED_found && break 3
6073     done
6074   done
6075   done
6076 IFS=$as_save_IFS
6077   if test -z "$ac_cv_path_SED"; then
6078     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6079   fi
6080 else
6081   ac_cv_path_SED=$SED
6082 fi
6083
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6086 $as_echo "$ac_cv_path_SED" >&6; }
6087  SED="$ac_cv_path_SED"
6088   rm -f conftest.sed
6089
6090 test -z "$SED" && SED=sed
6091 Xsed="$SED -e 1s/^X//"
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6104 $as_echo_n "checking for fgrep... " >&6; }
6105 if ${ac_cv_path_FGREP+:} false; then :
6106   $as_echo_n "(cached) " >&6
6107 else
6108   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6109    then ac_cv_path_FGREP="$GREP -F"
6110    else
6111      if test -z "$FGREP"; then
6112   ac_path_FGREP_found=false
6113   # Loop through the user's path and test for each of PROGNAME-LIST
6114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119     for ac_prog in fgrep; do
6120     for ac_exec_ext in '' $ac_executable_extensions; do
6121       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6122       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6123 # Check for GNU ac_path_FGREP and select it if it is found.
6124   # Check for GNU $ac_path_FGREP
6125 case `"$ac_path_FGREP" --version 2>&1` in
6126 *GNU*)
6127   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6128 *)
6129   ac_count=0
6130   $as_echo_n 0123456789 >"conftest.in"
6131   while :
6132   do
6133     cat "conftest.in" "conftest.in" >"conftest.tmp"
6134     mv "conftest.tmp" "conftest.in"
6135     cp "conftest.in" "conftest.nl"
6136     $as_echo 'FGREP' >> "conftest.nl"
6137     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6138     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6139     as_fn_arith $ac_count + 1 && ac_count=$as_val
6140     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6141       # Best one so far, save it but keep looking for a better one
6142       ac_cv_path_FGREP="$ac_path_FGREP"
6143       ac_path_FGREP_max=$ac_count
6144     fi
6145     # 10*(2^10) chars as input seems more than enough
6146     test $ac_count -gt 10 && break
6147   done
6148   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6149 esac
6150
6151       $ac_path_FGREP_found && break 3
6152     done
6153   done
6154   done
6155 IFS=$as_save_IFS
6156   if test -z "$ac_cv_path_FGREP"; then
6157     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6158   fi
6159 else
6160   ac_cv_path_FGREP=$FGREP
6161 fi
6162
6163    fi
6164 fi
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6166 $as_echo "$ac_cv_path_FGREP" >&6; }
6167  FGREP="$ac_cv_path_FGREP"
6168
6169
6170 test -z "$GREP" && GREP=grep
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190 # Check whether --with-gnu-ld was given.
6191 if test "${with_gnu_ld+set}" = set; then :
6192   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6193 else
6194   with_gnu_ld=no
6195 fi
6196
6197 ac_prog=ld
6198 if test "$GCC" = yes; then
6199   # Check if gcc -print-prog-name=ld gives a path.
6200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6201 $as_echo_n "checking for ld used by $CC... " >&6; }
6202   case $host in
6203   *-*-mingw*)
6204     # gcc leaves a trailing carriage return which upsets mingw
6205     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6206   *)
6207     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6208   esac
6209   case $ac_prog in
6210     # Accept absolute paths.
6211     [\\/]* | ?:[\\/]*)
6212       re_direlt='/[^/][^/]*/\.\./'
6213       # Canonicalize the pathname of ld
6214       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6215       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6216         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6217       done
6218       test -z "$LD" && LD="$ac_prog"
6219       ;;
6220   "")
6221     # If it fails, then pretend we aren't using GCC.
6222     ac_prog=ld
6223     ;;
6224   *)
6225     # If it is relative, then search for the first ld in PATH.
6226     with_gnu_ld=unknown
6227     ;;
6228   esac
6229 elif test "$with_gnu_ld" = yes; then
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6231 $as_echo_n "checking for GNU ld... " >&6; }
6232 else
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6234 $as_echo_n "checking for non-GNU ld... " >&6; }
6235 fi
6236 if ${lt_cv_path_LD+:} false; then :
6237   $as_echo_n "(cached) " >&6
6238 else
6239   if test -z "$LD"; then
6240   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6241   for ac_dir in $PATH; do
6242     IFS="$lt_save_ifs"
6243     test -z "$ac_dir" && ac_dir=.
6244     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6245       lt_cv_path_LD="$ac_dir/$ac_prog"
6246       # Check to see if the program is GNU ld.  I'd rather use --version,
6247       # but apparently some variants of GNU ld only accept -v.
6248       # Break only if it was the GNU/non-GNU ld that we prefer.
6249       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6250       *GNU* | *'with BFD'*)
6251         test "$with_gnu_ld" != no && break
6252         ;;
6253       *)
6254         test "$with_gnu_ld" != yes && break
6255         ;;
6256       esac
6257     fi
6258   done
6259   IFS="$lt_save_ifs"
6260 else
6261   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6262 fi
6263 fi
6264
6265 LD="$lt_cv_path_LD"
6266 if test -n "$LD"; then
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6268 $as_echo "$LD" >&6; }
6269 else
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6275 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6276 if ${lt_cv_prog_gnu_ld+:} false; then :
6277   $as_echo_n "(cached) " >&6
6278 else
6279   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6280 case `$LD -v 2>&1 </dev/null` in
6281 *GNU* | *'with BFD'*)
6282   lt_cv_prog_gnu_ld=yes
6283   ;;
6284 *)
6285   lt_cv_prog_gnu_ld=no
6286   ;;
6287 esac
6288 fi
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6290 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6291 with_gnu_ld=$lt_cv_prog_gnu_ld
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6302 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6303 if ${lt_cv_path_NM+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   if test -n "$NM"; then
6307   # Let the user override the test.
6308   lt_cv_path_NM="$NM"
6309 else
6310   lt_nm_to_check="${ac_tool_prefix}nm"
6311   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6312     lt_nm_to_check="$lt_nm_to_check nm"
6313   fi
6314   for lt_tmp_nm in $lt_nm_to_check; do
6315     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6316     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6317       IFS="$lt_save_ifs"
6318       test -z "$ac_dir" && ac_dir=.
6319       tmp_nm="$ac_dir/$lt_tmp_nm"
6320       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6321         # Check to see if the nm accepts a BSD-compat flag.
6322         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6323         #   nm: unknown option "B" ignored
6324         # Tru64's nm complains that /dev/null is an invalid object file
6325         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6326         */dev/null* | *'Invalid file or object type'*)
6327           lt_cv_path_NM="$tmp_nm -B"
6328           break
6329           ;;
6330         *)
6331           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6332           */dev/null*)
6333             lt_cv_path_NM="$tmp_nm -p"
6334             break
6335             ;;
6336           *)
6337             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6338             continue # so that we can try to find one that supports BSD flags
6339             ;;
6340           esac
6341           ;;
6342         esac
6343       fi
6344     done
6345     IFS="$lt_save_ifs"
6346   done
6347   : ${lt_cv_path_NM=no}
6348 fi
6349 fi
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6351 $as_echo "$lt_cv_path_NM" >&6; }
6352 if test "$lt_cv_path_NM" != "no"; then
6353   NM="$lt_cv_path_NM"
6354 else
6355   # Didn't find any BSD compatible name lister, look for dumpbin.
6356   if test -n "$DUMPBIN"; then :
6357     # Let the user override the test.
6358   else
6359     if test -n "$ac_tool_prefix"; then
6360   for ac_prog in dumpbin "link -dump"
6361   do
6362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_DUMPBIN+:} false; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369   if test -n "$DUMPBIN"; then
6370   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377     for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384   done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 DUMPBIN=$ac_cv_prog_DUMPBIN
6390 if test -n "$DUMPBIN"; then
6391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6392 $as_echo "$DUMPBIN" >&6; }
6393 else
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398
6399     test -n "$DUMPBIN" && break
6400   done
6401 fi
6402 if test -z "$DUMPBIN"; then
6403   ac_ct_DUMPBIN=$DUMPBIN
6404   for ac_prog in dumpbin "link -dump"
6405 do
6406   # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$ac_ct_DUMPBIN"; then
6414   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6434 if test -n "$ac_ct_DUMPBIN"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6436 $as_echo "$ac_ct_DUMPBIN" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442
6443   test -n "$ac_ct_DUMPBIN" && break
6444 done
6445
6446   if test "x$ac_ct_DUMPBIN" = x; then
6447     DUMPBIN=":"
6448   else
6449     case $cross_compiling:$ac_tool_warned in
6450 yes:)
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6454 esac
6455     DUMPBIN=$ac_ct_DUMPBIN
6456   fi
6457 fi
6458
6459     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6460     *COFF*)
6461       DUMPBIN="$DUMPBIN -symbols"
6462       ;;
6463     *)
6464       DUMPBIN=:
6465       ;;
6466     esac
6467   fi
6468
6469   if test "$DUMPBIN" != ":"; then
6470     NM="$DUMPBIN"
6471   fi
6472 fi
6473 test -z "$NM" && NM=nm
6474
6475
6476
6477
6478
6479
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6481 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6482 if ${lt_cv_nm_interface+:} false; then :
6483   $as_echo_n "(cached) " >&6
6484 else
6485   lt_cv_nm_interface="BSD nm"
6486   echo "int some_variable = 0;" > conftest.$ac_ext
6487   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6488   (eval "$ac_compile" 2>conftest.err)
6489   cat conftest.err >&5
6490   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6491   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6492   cat conftest.err >&5
6493   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6494   cat conftest.out >&5
6495   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6496     lt_cv_nm_interface="MS dumpbin"
6497   fi
6498   rm -f conftest*
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6501 $as_echo "$lt_cv_nm_interface" >&6; }
6502
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6504 $as_echo_n "checking whether ln -s works... " >&6; }
6505 LN_S=$as_ln_s
6506 if test "$LN_S" = "ln -s"; then
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6508 $as_echo "yes" >&6; }
6509 else
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6511 $as_echo "no, using $LN_S" >&6; }
6512 fi
6513
6514 # find the maximum length of command line arguments
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6516 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6517 if ${lt_cv_sys_max_cmd_len+:} false; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520     i=0
6521   teststring="ABCD"
6522
6523   case $build_os in
6524   msdosdjgpp*)
6525     # On DJGPP, this test can blow up pretty badly due to problems in libc
6526     # (any single argument exceeding 2000 bytes causes a buffer overrun
6527     # during glob expansion).  Even if it were fixed, the result of this
6528     # check would be larger than it should be.
6529     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6530     ;;
6531
6532   gnu*)
6533     # Under GNU Hurd, this test is not required because there is
6534     # no limit to the length of command line arguments.
6535     # Libtool will interpret -1 as no limit whatsoever
6536     lt_cv_sys_max_cmd_len=-1;
6537     ;;
6538
6539   cygwin* | mingw* | cegcc*)
6540     # On Win9x/ME, this test blows up -- it succeeds, but takes
6541     # about 5 minutes as the teststring grows exponentially.
6542     # Worse, since 9x/ME are not pre-emptively multitasking,
6543     # you end up with a "frozen" computer, even though with patience
6544     # the test eventually succeeds (with a max line length of 256k).
6545     # Instead, let's just punt: use the minimum linelength reported by
6546     # all of the supported platforms: 8192 (on NT/2K/XP).
6547     lt_cv_sys_max_cmd_len=8192;
6548     ;;
6549
6550   mint*)
6551     # On MiNT this can take a long time and run out of memory.
6552     lt_cv_sys_max_cmd_len=8192;
6553     ;;
6554
6555   amigaos*)
6556     # On AmigaOS with pdksh, this test takes hours, literally.
6557     # So we just punt and use a minimum line length of 8192.
6558     lt_cv_sys_max_cmd_len=8192;
6559     ;;
6560
6561   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6562     # This has been around since 386BSD, at least.  Likely further.
6563     if test -x /sbin/sysctl; then
6564       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6565     elif test -x /usr/sbin/sysctl; then
6566       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6567     else
6568       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6569     fi
6570     # And add a safety zone
6571     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6572     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6573     ;;
6574
6575   interix*)
6576     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6577     lt_cv_sys_max_cmd_len=196608
6578     ;;
6579
6580   os2*)
6581     # The test takes a long time on OS/2.
6582     lt_cv_sys_max_cmd_len=8192
6583     ;;
6584
6585   osf*)
6586     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6587     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6588     # nice to cause kernel panics so lets avoid the loop below.
6589     # First set a reasonable default.
6590     lt_cv_sys_max_cmd_len=16384
6591     #
6592     if test -x /sbin/sysconfig; then
6593       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6594         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6595       esac
6596     fi
6597     ;;
6598   sco3.2v5*)
6599     lt_cv_sys_max_cmd_len=102400
6600     ;;
6601   sysv5* | sco5v6* | sysv4.2uw2*)
6602     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6603     if test -n "$kargmax"; then
6604       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6605     else
6606       lt_cv_sys_max_cmd_len=32768
6607     fi
6608     ;;
6609   *)
6610     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6611     if test -n "$lt_cv_sys_max_cmd_len" && \
6612         test undefined != "$lt_cv_sys_max_cmd_len"; then
6613       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6614       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6615     else
6616       # Make teststring a little bigger before we do anything with it.
6617       # a 1K string should be a reasonable start.
6618       for i in 1 2 3 4 5 6 7 8 ; do
6619         teststring=$teststring$teststring
6620       done
6621       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6622       # If test is not a shell built-in, we'll probably end up computing a
6623       # maximum length that is only half of the actual maximum length, but
6624       # we can't tell.
6625       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6626                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6627               test $i != 17 # 1/2 MB should be enough
6628       do
6629         i=`expr $i + 1`
6630         teststring=$teststring$teststring
6631       done
6632       # Only check the string length outside the loop.
6633       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6634       teststring=
6635       # Add a significant safety factor because C++ compilers can tack on
6636       # massive amounts of additional arguments before passing them to the
6637       # linker.  It appears as though 1/2 is a usable value.
6638       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6639     fi
6640     ;;
6641   esac
6642
6643 fi
6644
6645 if test -n $lt_cv_sys_max_cmd_len ; then
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6647 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6648 else
6649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6650 $as_echo "none" >&6; }
6651 fi
6652 max_cmd_len=$lt_cv_sys_max_cmd_len
6653
6654
6655
6656
6657
6658
6659 : ${CP="cp -f"}
6660 : ${MV="mv -f"}
6661 : ${RM="rm -f"}
6662
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6664 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6665 # Try some XSI features
6666 xsi_shell=no
6667 ( _lt_dummy="a/b/c"
6668   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6669       = c,a/b,b/c, \
6670     && eval 'test $(( 1 + 1 )) -eq 2 \
6671     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6672   && xsi_shell=yes
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6674 $as_echo "$xsi_shell" >&6; }
6675
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6678 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6679 lt_shell_append=no
6680 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6681     >/dev/null 2>&1 \
6682   && lt_shell_append=yes
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6684 $as_echo "$lt_shell_append" >&6; }
6685
6686
6687 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6688   lt_unset=unset
6689 else
6690   lt_unset=false
6691 fi
6692
6693
6694
6695
6696
6697 # test EBCDIC or ASCII
6698 case `echo X|tr X '\101'` in
6699  A) # ASCII based system
6700     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6701   lt_SP2NL='tr \040 \012'
6702   lt_NL2SP='tr \015\012 \040\040'
6703   ;;
6704  *) # EBCDIC based system
6705   lt_SP2NL='tr \100 \n'
6706   lt_NL2SP='tr \r\n \100\100'
6707   ;;
6708 esac
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6719 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6720 if ${lt_cv_to_host_file_cmd+:} false; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   case $host in
6724   *-*-mingw* )
6725     case $build in
6726       *-*-mingw* ) # actually msys
6727         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6728         ;;
6729       *-*-cygwin* )
6730         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6731         ;;
6732       * ) # otherwise, assume *nix
6733         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6734         ;;
6735     esac
6736     ;;
6737   *-*-cygwin* )
6738     case $build in
6739       *-*-mingw* ) # actually msys
6740         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6741         ;;
6742       *-*-cygwin* )
6743         lt_cv_to_host_file_cmd=func_convert_file_noop
6744         ;;
6745       * ) # otherwise, assume *nix
6746         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6747         ;;
6748     esac
6749     ;;
6750   * ) # unhandled hosts (and "normal" native builds)
6751     lt_cv_to_host_file_cmd=func_convert_file_noop
6752     ;;
6753 esac
6754
6755 fi
6756
6757 to_host_file_cmd=$lt_cv_to_host_file_cmd
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6759 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6760
6761
6762
6763
6764
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6766 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6767 if ${lt_cv_to_tool_file_cmd+:} false; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770   #assume ordinary cross tools, or native build.
6771 lt_cv_to_tool_file_cmd=func_convert_file_noop
6772 case $host in
6773   *-*-mingw* )
6774     case $build in
6775       *-*-mingw* ) # actually msys
6776         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6777         ;;
6778     esac
6779     ;;
6780 esac
6781
6782 fi
6783
6784 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6786 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6787
6788
6789
6790
6791
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6793 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6794 if ${lt_cv_ld_reload_flag+:} false; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797   lt_cv_ld_reload_flag='-r'
6798 fi
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6800 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6801 reload_flag=$lt_cv_ld_reload_flag
6802 case $reload_flag in
6803 "" | " "*) ;;
6804 *) reload_flag=" $reload_flag" ;;
6805 esac
6806 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6807 case $host_os in
6808   cygwin* | mingw* | pw32* | cegcc*)
6809     if test "$GCC" != yes; then
6810       reload_cmds=false
6811     fi
6812     ;;
6813   darwin*)
6814     if test "$GCC" = yes; then
6815       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6816     else
6817       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6818     fi
6819     ;;
6820 esac
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830 if test -n "$ac_tool_prefix"; then
6831   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6832 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_OBJDUMP+:} false; then :
6836   $as_echo_n "(cached) " >&6
6837 else
6838   if test -n "$OBJDUMP"; then
6839   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846     for ac_exec_ext in '' $ac_executable_extensions; do
6847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853   done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 OBJDUMP=$ac_cv_prog_OBJDUMP
6859 if test -n "$OBJDUMP"; then
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6861 $as_echo "$OBJDUMP" >&6; }
6862 else
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867
6868 fi
6869 if test -z "$ac_cv_prog_OBJDUMP"; then
6870   ac_ct_OBJDUMP=$OBJDUMP
6871   # Extract the first word of "objdump", so it can be a program name with args.
6872 set dummy objdump; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6876   $as_echo_n "(cached) " >&6
6877 else
6878   if test -n "$ac_ct_OBJDUMP"; then
6879   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886     for ac_exec_ext in '' $ac_executable_extensions; do
6887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893   done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6899 if test -n "$ac_ct_OBJDUMP"; then
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6901 $as_echo "$ac_ct_OBJDUMP" >&6; }
6902 else
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907   if test "x$ac_ct_OBJDUMP" = x; then
6908     OBJDUMP="false"
6909   else
6910     case $cross_compiling:$ac_tool_warned in
6911 yes:)
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914 ac_tool_warned=yes ;;
6915 esac
6916     OBJDUMP=$ac_ct_OBJDUMP
6917   fi
6918 else
6919   OBJDUMP="$ac_cv_prog_OBJDUMP"
6920 fi
6921
6922 test -z "$OBJDUMP" && OBJDUMP=objdump
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6933 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6934 if ${lt_cv_deplibs_check_method+:} false; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937   lt_cv_file_magic_cmd='$MAGIC_CMD'
6938 lt_cv_file_magic_test_file=
6939 lt_cv_deplibs_check_method='unknown'
6940 # Need to set the preceding variable on all platforms that support
6941 # interlibrary dependencies.
6942 # 'none' -- dependencies not supported.
6943 # `unknown' -- same as none, but documents that we really don't know.
6944 # 'pass_all' -- all dependencies passed with no checks.
6945 # 'test_compile' -- check by making test program.
6946 # 'file_magic [[regex]]' -- check by looking for files in library path
6947 # which responds to the $file_magic_cmd with a given extended regex.
6948 # If you have `file' or equivalent on your system and you're not sure
6949 # whether `pass_all' will *always* work, you probably want this one.
6950
6951 case $host_os in
6952 aix[4-9]*)
6953   lt_cv_deplibs_check_method=pass_all
6954   ;;
6955
6956 beos*)
6957   lt_cv_deplibs_check_method=pass_all
6958   ;;
6959
6960 bsdi[45]*)
6961   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6962   lt_cv_file_magic_cmd='/usr/bin/file -L'
6963   lt_cv_file_magic_test_file=/shlib/libc.so
6964   ;;
6965
6966 cygwin*)
6967   # func_win32_libid is a shell function defined in ltmain.sh
6968   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6969   lt_cv_file_magic_cmd='func_win32_libid'
6970   ;;
6971
6972 mingw* | pw32*)
6973   # Base MSYS/MinGW do not provide the 'file' command needed by
6974   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6975   # unless we find 'file', for example because we are cross-compiling.
6976   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6977   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6978     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6979     lt_cv_file_magic_cmd='func_win32_libid'
6980   else
6981     # Keep this pattern in sync with the one in func_win32_libid.
6982     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6983     lt_cv_file_magic_cmd='$OBJDUMP -f'
6984   fi
6985   ;;
6986
6987 cegcc*)
6988   # use the weaker test based on 'objdump'. See mingw*.
6989   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6990   lt_cv_file_magic_cmd='$OBJDUMP -f'
6991   ;;
6992
6993 darwin* | rhapsody*)
6994   lt_cv_deplibs_check_method=pass_all
6995   ;;
6996
6997 freebsd* | dragonfly*)
6998   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6999     case $host_cpu in
7000     i*86 )
7001       # Not sure whether the presence of OpenBSD here was a mistake.
7002       # Let's accept both of them until this is cleared up.
7003       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7004       lt_cv_file_magic_cmd=/usr/bin/file
7005       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7006       ;;
7007     esac
7008   else
7009     lt_cv_deplibs_check_method=pass_all
7010   fi
7011   ;;
7012
7013 haiku*)
7014   lt_cv_deplibs_check_method=pass_all
7015   ;;
7016
7017 hpux10.20* | hpux11*)
7018   lt_cv_file_magic_cmd=/usr/bin/file
7019   case $host_cpu in
7020   ia64*)
7021     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7022     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7023     ;;
7024   hppa*64*)
7025     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]'
7026     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7027     ;;
7028   *)
7029     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7030     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7031     ;;
7032   esac
7033   ;;
7034
7035 interix[3-9]*)
7036   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7037   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7038   ;;
7039
7040 irix5* | irix6* | nonstopux*)
7041   case $LD in
7042   *-32|*"-32 ") libmagic=32-bit;;
7043   *-n32|*"-n32 ") libmagic=N32;;
7044   *-64|*"-64 ") libmagic=64-bit;;
7045   *) libmagic=never-match;;
7046   esac
7047   lt_cv_deplibs_check_method=pass_all
7048   ;;
7049
7050 # This must be glibc/ELF.
7051 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7052   lt_cv_deplibs_check_method=pass_all
7053   ;;
7054
7055 netbsd* | netbsdelf*-gnu)
7056   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7057     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7058   else
7059     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7060   fi
7061   ;;
7062
7063 newos6*)
7064   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7065   lt_cv_file_magic_cmd=/usr/bin/file
7066   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7067   ;;
7068
7069 *nto* | *qnx*)
7070   lt_cv_deplibs_check_method=pass_all
7071   ;;
7072
7073 openbsd*)
7074   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7075     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7076   else
7077     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7078   fi
7079   ;;
7080
7081 osf3* | osf4* | osf5*)
7082   lt_cv_deplibs_check_method=pass_all
7083   ;;
7084
7085 rdos*)
7086   lt_cv_deplibs_check_method=pass_all
7087   ;;
7088
7089 solaris*)
7090   lt_cv_deplibs_check_method=pass_all
7091   ;;
7092
7093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7094   lt_cv_deplibs_check_method=pass_all
7095   ;;
7096
7097 sysv4 | sysv4.3*)
7098   case $host_vendor in
7099   motorola)
7100     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]'
7101     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7102     ;;
7103   ncr)
7104     lt_cv_deplibs_check_method=pass_all
7105     ;;
7106   sequent)
7107     lt_cv_file_magic_cmd='/bin/file'
7108     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7109     ;;
7110   sni)
7111     lt_cv_file_magic_cmd='/bin/file'
7112     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7113     lt_cv_file_magic_test_file=/lib/libc.so
7114     ;;
7115   siemens)
7116     lt_cv_deplibs_check_method=pass_all
7117     ;;
7118   pc)
7119     lt_cv_deplibs_check_method=pass_all
7120     ;;
7121   esac
7122   ;;
7123
7124 tpf*)
7125   lt_cv_deplibs_check_method=pass_all
7126   ;;
7127 esac
7128
7129 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7131 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7132
7133 file_magic_glob=
7134 want_nocaseglob=no
7135 if test "$build" = "$host"; then
7136   case $host_os in
7137   mingw* | pw32*)
7138     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7139       want_nocaseglob=yes
7140     else
7141       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7142     fi
7143     ;;
7144   esac
7145 fi
7146
7147 file_magic_cmd=$lt_cv_file_magic_cmd
7148 deplibs_check_method=$lt_cv_deplibs_check_method
7149 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172 if test -n "$ac_tool_prefix"; then
7173   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_DLLTOOL+:} false; then :
7178   $as_echo_n "(cached) " >&6
7179 else
7180   if test -n "$DLLTOOL"; then
7181   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188     for ac_exec_ext in '' $ac_executable_extensions; do
7189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195   done
7196 IFS=$as_save_IFS
7197
7198 fi
7199 fi
7200 DLLTOOL=$ac_cv_prog_DLLTOOL
7201 if test -n "$DLLTOOL"; then
7202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7203 $as_echo "$DLLTOOL" >&6; }
7204 else
7205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7207 fi
7208
7209
7210 fi
7211 if test -z "$ac_cv_prog_DLLTOOL"; then
7212   ac_ct_DLLTOOL=$DLLTOOL
7213   # Extract the first word of "dlltool", so it can be a program name with args.
7214 set dummy dlltool; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   if test -n "$ac_ct_DLLTOOL"; then
7221   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228     for ac_exec_ext in '' $ac_executable_extensions; do
7229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235   done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7241 if test -n "$ac_ct_DLLTOOL"; then
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7243 $as_echo "$ac_ct_DLLTOOL" >&6; }
7244 else
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249   if test "x$ac_ct_DLLTOOL" = x; then
7250     DLLTOOL="false"
7251   else
7252     case $cross_compiling:$ac_tool_warned in
7253 yes:)
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7257 esac
7258     DLLTOOL=$ac_ct_DLLTOOL
7259   fi
7260 else
7261   DLLTOOL="$ac_cv_prog_DLLTOOL"
7262 fi
7263
7264 test -z "$DLLTOOL" && DLLTOOL=dlltool
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7276 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7277 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   lt_cv_sharedlib_from_linklib_cmd='unknown'
7281
7282 case $host_os in
7283 cygwin* | mingw* | pw32* | cegcc*)
7284   # two different shell functions defined in ltmain.sh
7285   # decide which to use based on capabilities of $DLLTOOL
7286   case `$DLLTOOL --help 2>&1` in
7287   *--identify-strict*)
7288     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7289     ;;
7290   *)
7291     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7292     ;;
7293   esac
7294   ;;
7295 *)
7296   # fallback: assume linklib IS sharedlib
7297   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7298   ;;
7299 esac
7300
7301 fi
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7303 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7304 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7305 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7306
7307
7308
7309
7310
7311
7312
7313 if test -n "$ac_tool_prefix"; then
7314   for ac_prog in ar
7315   do
7316     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_AR+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   if test -n "$AR"; then
7324   ac_cv_prog_AR="$AR" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331     for ac_exec_ext in '' $ac_executable_extensions; do
7332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338   done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 AR=$ac_cv_prog_AR
7344 if test -n "$AR"; then
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7346 $as_echo "$AR" >&6; }
7347 else
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 fi
7351
7352
7353     test -n "$AR" && break
7354   done
7355 fi
7356 if test -z "$AR"; then
7357   ac_ct_AR=$AR
7358   for ac_prog in ar
7359 do
7360   # Extract the first word of "$ac_prog", so it can be a program name with args.
7361 set dummy $ac_prog; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7365   $as_echo_n "(cached) " >&6
7366 else
7367   if test -n "$ac_ct_AR"; then
7368   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373   IFS=$as_save_IFS
7374   test -z "$as_dir" && as_dir=.
7375     for ac_exec_ext in '' $ac_executable_extensions; do
7376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377     ac_cv_prog_ac_ct_AR="$ac_prog"
7378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379     break 2
7380   fi
7381 done
7382   done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7388 if test -n "$ac_ct_AR"; then
7389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7390 $as_echo "$ac_ct_AR" >&6; }
7391 else
7392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396
7397   test -n "$ac_ct_AR" && break
7398 done
7399
7400   if test "x$ac_ct_AR" = x; then
7401     AR="false"
7402   else
7403     case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409     AR=$ac_ct_AR
7410   fi
7411 fi
7412
7413 : ${AR=ar}
7414 : ${AR_FLAGS=cru}
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7427 $as_echo_n "checking for archiver @FILE support... " >&6; }
7428 if ${lt_cv_ar_at_file+:} false; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   lt_cv_ar_at_file=no
7432    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h.  */
7434
7435 int
7436 main ()
7437 {
7438
7439   ;
7440   return 0;
7441 }
7442 _ACEOF
7443 if ac_fn_c_try_compile "$LINENO"; then :
7444   echo conftest.$ac_objext > conftest.lst
7445       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7446       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7447   (eval $lt_ar_try) 2>&5
7448   ac_status=$?
7449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7450   test $ac_status = 0; }
7451       if test "$ac_status" -eq 0; then
7452         # Ensure the archiver fails upon bogus file names.
7453         rm -f conftest.$ac_objext libconftest.a
7454         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7455   (eval $lt_ar_try) 2>&5
7456   ac_status=$?
7457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458   test $ac_status = 0; }
7459         if test "$ac_status" -ne 0; then
7460           lt_cv_ar_at_file=@
7461         fi
7462       fi
7463       rm -f conftest.* libconftest.a
7464
7465 fi
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7470 $as_echo "$lt_cv_ar_at_file" >&6; }
7471
7472 if test "x$lt_cv_ar_at_file" = xno; then
7473   archiver_list_spec=
7474 else
7475   archiver_list_spec=$lt_cv_ar_at_file
7476 fi
7477
7478
7479
7480
7481
7482
7483
7484 if test -n "$ac_tool_prefix"; then
7485   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7486 set dummy ${ac_tool_prefix}strip; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_STRIP+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   if test -n "$STRIP"; then
7493   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500     for ac_exec_ext in '' $ac_executable_extensions; do
7501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507   done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 STRIP=$ac_cv_prog_STRIP
7513 if test -n "$STRIP"; then
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7515 $as_echo "$STRIP" >&6; }
7516 else
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521
7522 fi
7523 if test -z "$ac_cv_prog_STRIP"; then
7524   ac_ct_STRIP=$STRIP
7525   # Extract the first word of "strip", so it can be a program name with args.
7526 set dummy strip; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7530   $as_echo_n "(cached) " >&6
7531 else
7532   if test -n "$ac_ct_STRIP"; then
7533   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540     for ac_exec_ext in '' $ac_executable_extensions; do
7541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542     ac_cv_prog_ac_ct_STRIP="strip"
7543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547   done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7553 if test -n "$ac_ct_STRIP"; then
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7555 $as_echo "$ac_ct_STRIP" >&6; }
7556 else
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561   if test "x$ac_ct_STRIP" = x; then
7562     STRIP=":"
7563   else
7564     case $cross_compiling:$ac_tool_warned in
7565 yes:)
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7569 esac
7570     STRIP=$ac_ct_STRIP
7571   fi
7572 else
7573   STRIP="$ac_cv_prog_STRIP"
7574 fi
7575
7576 test -z "$STRIP" && STRIP=:
7577
7578
7579
7580
7581
7582
7583 if test -n "$ac_tool_prefix"; then
7584   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7585 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_RANLIB+:} false; then :
7589   $as_echo_n "(cached) " >&6
7590 else
7591   if test -n "$RANLIB"; then
7592   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599     for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606   done
7607 IFS=$as_save_IFS
7608
7609 fi
7610 fi
7611 RANLIB=$ac_cv_prog_RANLIB
7612 if test -n "$RANLIB"; then
7613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7614 $as_echo "$RANLIB" >&6; }
7615 else
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7618 fi
7619
7620
7621 fi
7622 if test -z "$ac_cv_prog_RANLIB"; then
7623   ac_ct_RANLIB=$RANLIB
7624   # Extract the first word of "ranlib", so it can be a program name with args.
7625 set dummy ranlib; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7629   $as_echo_n "(cached) " >&6
7630 else
7631   if test -n "$ac_ct_RANLIB"; then
7632   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639     for ac_exec_ext in '' $ac_executable_extensions; do
7640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641     ac_cv_prog_ac_ct_RANLIB="ranlib"
7642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646   done
7647 IFS=$as_save_IFS
7648
7649 fi
7650 fi
7651 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7652 if test -n "$ac_ct_RANLIB"; then
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7654 $as_echo "$ac_ct_RANLIB" >&6; }
7655 else
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658 fi
7659
7660   if test "x$ac_ct_RANLIB" = x; then
7661     RANLIB=":"
7662   else
7663     case $cross_compiling:$ac_tool_warned in
7664 yes:)
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned=yes ;;
7668 esac
7669     RANLIB=$ac_ct_RANLIB
7670   fi
7671 else
7672   RANLIB="$ac_cv_prog_RANLIB"
7673 fi
7674
7675 test -z "$RANLIB" && RANLIB=:
7676
7677
7678
7679
7680
7681
7682 # Determine commands to create old-style static archives.
7683 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7684 old_postinstall_cmds='chmod 644 $oldlib'
7685 old_postuninstall_cmds=
7686
7687 if test -n "$RANLIB"; then
7688   case $host_os in
7689   openbsd*)
7690     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7691     ;;
7692   *)
7693     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7694     ;;
7695   esac
7696   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7697 fi
7698
7699 case $host_os in
7700   darwin*)
7701     lock_old_archive_extraction=yes ;;
7702   *)
7703     lock_old_archive_extraction=no ;;
7704 esac
7705
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 # If no C compiler was specified, use CC.
7745 LTCC=${LTCC-"$CC"}
7746
7747 # If no C compiler flags were specified, use CFLAGS.
7748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7749
7750 # Allow CC to be a program name with arguments.
7751 compiler=$CC
7752
7753
7754 # Check for command to grab the raw symbol name followed by C symbol from nm.
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7756 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7757 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760
7761 # These are sane defaults that work on at least a few old systems.
7762 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7763
7764 # Character class describing NM global symbol codes.
7765 symcode='[BCDEGRST]'
7766
7767 # Regexp to match symbols that can be accessed directly from C.
7768 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7769
7770 # Define system-specific variables.
7771 case $host_os in
7772 aix*)
7773   symcode='[BCDT]'
7774   ;;
7775 cygwin* | mingw* | pw32* | cegcc*)
7776   symcode='[ABCDGISTW]'
7777   ;;
7778 hpux*)
7779   if test "$host_cpu" = ia64; then
7780     symcode='[ABCDEGRST]'
7781   fi
7782   ;;
7783 irix* | nonstopux*)
7784   symcode='[BCDEGRST]'
7785   ;;
7786 osf*)
7787   symcode='[BCDEGQRST]'
7788   ;;
7789 solaris*)
7790   symcode='[BDRT]'
7791   ;;
7792 sco3.2v5*)
7793   symcode='[DT]'
7794   ;;
7795 sysv4.2uw2*)
7796   symcode='[DT]'
7797   ;;
7798 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7799   symcode='[ABDT]'
7800   ;;
7801 sysv4)
7802   symcode='[DFNSTU]'
7803   ;;
7804 esac
7805
7806 # If we're using GNU nm, then use its standard symbol codes.
7807 case `$NM -V 2>&1` in
7808 *GNU* | *'with BFD'*)
7809   symcode='[ABCDGIRSTW]' ;;
7810 esac
7811
7812 # Transform an extracted symbol line into a proper C declaration.
7813 # Some systems (esp. on ia64) link data and code symbols differently,
7814 # so use this general approach.
7815 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7816
7817 # Transform an extracted symbol line into symbol name and symbol address
7818 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7819 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'"
7820
7821 # Handle CRLF in mingw tool chain
7822 opt_cr=
7823 case $build_os in
7824 mingw*)
7825   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7826   ;;
7827 esac
7828
7829 # Try without a prefix underscore, then with it.
7830 for ac_symprfx in "" "_"; do
7831
7832   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7833   symxfrm="\\1 $ac_symprfx\\2 \\2"
7834
7835   # Write the raw and C identifiers.
7836   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7837     # Fake it for dumpbin and say T for any non-static function
7838     # and D for any global variable.
7839     # Also find C++ and __fastcall symbols from MSVC++,
7840     # which start with @ or ?.
7841     lt_cv_sys_global_symbol_pipe="$AWK '"\
7842 "     {last_section=section; section=\$ 3};"\
7843 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
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*|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             case `/usr/bin/file conftest.o` in
8149               *x86-64*)
8150                 LD="${LD-ld} -m elf32_x86_64"
8151                 ;;
8152               *)
8153                 LD="${LD-ld} -m elf_i386"
8154                 ;;
8155             esac
8156             ;;
8157           powerpc64le-*)
8158             LD="${LD-ld} -m elf32lppclinux"
8159             ;;
8160           powerpc64-*)
8161             LD="${LD-ld} -m elf32ppclinux"
8162             ;;
8163           s390x-*linux*)
8164             LD="${LD-ld} -m elf_s390"
8165             ;;
8166           sparc64-*linux*)
8167             LD="${LD-ld} -m elf32_sparc"
8168             ;;
8169         esac
8170         ;;
8171       *64-bit*)
8172         case $host in
8173           x86_64-*kfreebsd*-gnu)
8174             LD="${LD-ld} -m elf_x86_64_fbsd"
8175             ;;
8176           x86_64-*linux*)
8177             LD="${LD-ld} -m elf_x86_64"
8178             ;;
8179           powerpcle-*)
8180             LD="${LD-ld} -m elf64lppc"
8181             ;;
8182           powerpc-*)
8183             LD="${LD-ld} -m elf64ppc"
8184             ;;
8185           s390*-*linux*|s390*-*tpf*)
8186             LD="${LD-ld} -m elf64_s390"
8187             ;;
8188           sparc*-*linux*)
8189             LD="${LD-ld} -m elf64_sparc"
8190             ;;
8191         esac
8192         ;;
8193     esac
8194   fi
8195   rm -rf conftest*
8196   ;;
8197
8198 *-*-sco3.2v5*)
8199   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8200   SAVE_CFLAGS="$CFLAGS"
8201   CFLAGS="$CFLAGS -belf"
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8203 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8204 if ${lt_cv_cc_needs_belf+:} false; then :
8205   $as_echo_n "(cached) " >&6
8206 else
8207   ac_ext=c
8208 ac_cpp='$CPP $CPPFLAGS'
8209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8212
8213      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h.  */
8215
8216 int
8217 main ()
8218 {
8219
8220   ;
8221   return 0;
8222 }
8223 _ACEOF
8224 if ac_fn_c_try_link "$LINENO"; then :
8225   lt_cv_cc_needs_belf=yes
8226 else
8227   lt_cv_cc_needs_belf=no
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext \
8230     conftest$ac_exeext conftest.$ac_ext
8231      ac_ext=c
8232 ac_cpp='$CPP $CPPFLAGS'
8233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8236
8237 fi
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8239 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8240   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8241     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8242     CFLAGS="$SAVE_CFLAGS"
8243   fi
8244   ;;
8245 *-*solaris*)
8246   # Find out which ABI we are using.
8247   echo 'int i;' > conftest.$ac_ext
8248   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8249   (eval $ac_compile) 2>&5
8250   ac_status=$?
8251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8252   test $ac_status = 0; }; then
8253     case `/usr/bin/file conftest.o` in
8254     *64-bit*)
8255       case $lt_cv_prog_gnu_ld in
8256       yes*)
8257         case $host in
8258         i?86-*-solaris*)
8259           LD="${LD-ld} -m elf_x86_64"
8260           ;;
8261         sparc*-*-solaris*)
8262           LD="${LD-ld} -m elf64_sparc"
8263           ;;
8264         esac
8265         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8266         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8267           LD="${LD-ld}_sol2"
8268         fi
8269         ;;
8270       *)
8271         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8272           LD="${LD-ld} -64"
8273         fi
8274         ;;
8275       esac
8276       ;;
8277     esac
8278   fi
8279   rm -rf conftest*
8280   ;;
8281 esac
8282
8283 need_locks="$enable_libtool_lock"
8284
8285 if test -n "$ac_tool_prefix"; then
8286   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8287 set dummy ${ac_tool_prefix}mt; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8291   $as_echo_n "(cached) " >&6
8292 else
8293   if test -n "$MANIFEST_TOOL"; then
8294   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299   IFS=$as_save_IFS
8300   test -z "$as_dir" && as_dir=.
8301     for ac_exec_ext in '' $ac_executable_extensions; do
8302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305     break 2
8306   fi
8307 done
8308   done
8309 IFS=$as_save_IFS
8310
8311 fi
8312 fi
8313 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8314 if test -n "$MANIFEST_TOOL"; then
8315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8316 $as_echo "$MANIFEST_TOOL" >&6; }
8317 else
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322
8323 fi
8324 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8325   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8326   # Extract the first word of "mt", so it can be a program name with args.
8327 set dummy mt; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8331   $as_echo_n "(cached) " >&6
8332 else
8333   if test -n "$ac_ct_MANIFEST_TOOL"; then
8334   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8335 else
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH
8338 do
8339   IFS=$as_save_IFS
8340   test -z "$as_dir" && as_dir=.
8341     for ac_exec_ext in '' $ac_executable_extensions; do
8342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8343     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345     break 2
8346   fi
8347 done
8348   done
8349 IFS=$as_save_IFS
8350
8351 fi
8352 fi
8353 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8354 if test -n "$ac_ct_MANIFEST_TOOL"; then
8355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8356 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8357 else
8358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8360 fi
8361
8362   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8363     MANIFEST_TOOL=":"
8364   else
8365     case $cross_compiling:$ac_tool_warned in
8366 yes:)
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8369 ac_tool_warned=yes ;;
8370 esac
8371     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8372   fi
8373 else
8374   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8375 fi
8376
8377 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8379 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8380 if ${lt_cv_path_mainfest_tool+:} false; then :
8381   $as_echo_n "(cached) " >&6
8382 else
8383   lt_cv_path_mainfest_tool=no
8384   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8385   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8386   cat conftest.err >&5
8387   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8388     lt_cv_path_mainfest_tool=yes
8389   fi
8390   rm -f conftest*
8391 fi
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8393 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8394 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8395   MANIFEST_TOOL=:
8396 fi
8397
8398
8399
8400
8401
8402
8403   case $host_os in
8404     rhapsody* | darwin*)
8405     if test -n "$ac_tool_prefix"; then
8406   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8407 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8411   $as_echo_n "(cached) " >&6
8412 else
8413   if test -n "$DSYMUTIL"; then
8414   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8418 do
8419   IFS=$as_save_IFS
8420   test -z "$as_dir" && as_dir=.
8421     for ac_exec_ext in '' $ac_executable_extensions; do
8422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8423     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425     break 2
8426   fi
8427 done
8428   done
8429 IFS=$as_save_IFS
8430
8431 fi
8432 fi
8433 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8434 if test -n "$DSYMUTIL"; then
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8436 $as_echo "$DSYMUTIL" >&6; }
8437 else
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8440 fi
8441
8442
8443 fi
8444 if test -z "$ac_cv_prog_DSYMUTIL"; then
8445   ac_ct_DSYMUTIL=$DSYMUTIL
8446   # Extract the first word of "dsymutil", so it can be a program name with args.
8447 set dummy dsymutil; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8451   $as_echo_n "(cached) " >&6
8452 else
8453   if test -n "$ac_ct_DSYMUTIL"; then
8454   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8455 else
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8458 do
8459   IFS=$as_save_IFS
8460   test -z "$as_dir" && as_dir=.
8461     for ac_exec_ext in '' $ac_executable_extensions; do
8462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8463     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465     break 2
8466   fi
8467 done
8468   done
8469 IFS=$as_save_IFS
8470
8471 fi
8472 fi
8473 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8474 if test -n "$ac_ct_DSYMUTIL"; then
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8476 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8477 else
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481
8482   if test "x$ac_ct_DSYMUTIL" = x; then
8483     DSYMUTIL=":"
8484   else
8485     case $cross_compiling:$ac_tool_warned in
8486 yes:)
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8489 ac_tool_warned=yes ;;
8490 esac
8491     DSYMUTIL=$ac_ct_DSYMUTIL
8492   fi
8493 else
8494   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8495 fi
8496
8497     if test -n "$ac_tool_prefix"; then
8498   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8499 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if ${ac_cv_prog_NMEDIT+:} false; then :
8503   $as_echo_n "(cached) " >&6
8504 else
8505   if test -n "$NMEDIT"; then
8506   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8507 else
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511   IFS=$as_save_IFS
8512   test -z "$as_dir" && as_dir=.
8513     for ac_exec_ext in '' $ac_executable_extensions; do
8514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517     break 2
8518   fi
8519 done
8520   done
8521 IFS=$as_save_IFS
8522
8523 fi
8524 fi
8525 NMEDIT=$ac_cv_prog_NMEDIT
8526 if test -n "$NMEDIT"; then
8527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8528 $as_echo "$NMEDIT" >&6; }
8529 else
8530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8532 fi
8533
8534
8535 fi
8536 if test -z "$ac_cv_prog_NMEDIT"; then
8537   ac_ct_NMEDIT=$NMEDIT
8538   # Extract the first word of "nmedit", so it can be a program name with args.
8539 set dummy nmedit; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8543   $as_echo_n "(cached) " >&6
8544 else
8545   if test -n "$ac_ct_NMEDIT"; then
8546   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8547 else
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8550 do
8551   IFS=$as_save_IFS
8552   test -z "$as_dir" && as_dir=.
8553     for ac_exec_ext in '' $ac_executable_extensions; do
8554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557     break 2
8558   fi
8559 done
8560   done
8561 IFS=$as_save_IFS
8562
8563 fi
8564 fi
8565 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8566 if test -n "$ac_ct_NMEDIT"; then
8567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8568 $as_echo "$ac_ct_NMEDIT" >&6; }
8569 else
8570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8572 fi
8573
8574   if test "x$ac_ct_NMEDIT" = x; then
8575     NMEDIT=":"
8576   else
8577     case $cross_compiling:$ac_tool_warned in
8578 yes:)
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8581 ac_tool_warned=yes ;;
8582 esac
8583     NMEDIT=$ac_ct_NMEDIT
8584   fi
8585 else
8586   NMEDIT="$ac_cv_prog_NMEDIT"
8587 fi
8588
8589     if test -n "$ac_tool_prefix"; then
8590   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8591 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if ${ac_cv_prog_LIPO+:} false; then :
8595   $as_echo_n "(cached) " >&6
8596 else
8597   if test -n "$LIPO"; then
8598   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8602 do
8603   IFS=$as_save_IFS
8604   test -z "$as_dir" && as_dir=.
8605     for ac_exec_ext in '' $ac_executable_extensions; do
8606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8607     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609     break 2
8610   fi
8611 done
8612   done
8613 IFS=$as_save_IFS
8614
8615 fi
8616 fi
8617 LIPO=$ac_cv_prog_LIPO
8618 if test -n "$LIPO"; then
8619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8620 $as_echo "$LIPO" >&6; }
8621 else
8622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8624 fi
8625
8626
8627 fi
8628 if test -z "$ac_cv_prog_LIPO"; then
8629   ac_ct_LIPO=$LIPO
8630   # Extract the first word of "lipo", so it can be a program name with args.
8631 set dummy lipo; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8635   $as_echo_n "(cached) " >&6
8636 else
8637   if test -n "$ac_ct_LIPO"; then
8638   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8639 else
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8642 do
8643   IFS=$as_save_IFS
8644   test -z "$as_dir" && as_dir=.
8645     for ac_exec_ext in '' $ac_executable_extensions; do
8646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647     ac_cv_prog_ac_ct_LIPO="lipo"
8648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649     break 2
8650   fi
8651 done
8652   done
8653 IFS=$as_save_IFS
8654
8655 fi
8656 fi
8657 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8658 if test -n "$ac_ct_LIPO"; then
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8660 $as_echo "$ac_ct_LIPO" >&6; }
8661 else
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8664 fi
8665
8666   if test "x$ac_ct_LIPO" = x; then
8667     LIPO=":"
8668   else
8669     case $cross_compiling:$ac_tool_warned in
8670 yes:)
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8674 esac
8675     LIPO=$ac_ct_LIPO
8676   fi
8677 else
8678   LIPO="$ac_cv_prog_LIPO"
8679 fi
8680
8681     if test -n "$ac_tool_prefix"; then
8682   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8683 set dummy ${ac_tool_prefix}otool; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if ${ac_cv_prog_OTOOL+:} false; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   if test -n "$OTOOL"; then
8690   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8691 else
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8694 do
8695   IFS=$as_save_IFS
8696   test -z "$as_dir" && as_dir=.
8697     for ac_exec_ext in '' $ac_executable_extensions; do
8698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8699     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701     break 2
8702   fi
8703 done
8704   done
8705 IFS=$as_save_IFS
8706
8707 fi
8708 fi
8709 OTOOL=$ac_cv_prog_OTOOL
8710 if test -n "$OTOOL"; then
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8712 $as_echo "$OTOOL" >&6; }
8713 else
8714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 fi
8717
8718
8719 fi
8720 if test -z "$ac_cv_prog_OTOOL"; then
8721   ac_ct_OTOOL=$OTOOL
8722   # Extract the first word of "otool", so it can be a program name with args.
8723 set dummy otool; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8727   $as_echo_n "(cached) " >&6
8728 else
8729   if test -n "$ac_ct_OTOOL"; then
8730   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8734 do
8735   IFS=$as_save_IFS
8736   test -z "$as_dir" && as_dir=.
8737     for ac_exec_ext in '' $ac_executable_extensions; do
8738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8739     ac_cv_prog_ac_ct_OTOOL="otool"
8740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741     break 2
8742   fi
8743 done
8744   done
8745 IFS=$as_save_IFS
8746
8747 fi
8748 fi
8749 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8750 if test -n "$ac_ct_OTOOL"; then
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8752 $as_echo "$ac_ct_OTOOL" >&6; }
8753 else
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8756 fi
8757
8758   if test "x$ac_ct_OTOOL" = x; then
8759     OTOOL=":"
8760   else
8761     case $cross_compiling:$ac_tool_warned in
8762 yes:)
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765 ac_tool_warned=yes ;;
8766 esac
8767     OTOOL=$ac_ct_OTOOL
8768   fi
8769 else
8770   OTOOL="$ac_cv_prog_OTOOL"
8771 fi
8772
8773     if test -n "$ac_tool_prefix"; then
8774   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8775 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if ${ac_cv_prog_OTOOL64+:} false; then :
8779   $as_echo_n "(cached) " >&6
8780 else
8781   if test -n "$OTOOL64"; then
8782   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8783 else
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8786 do
8787   IFS=$as_save_IFS
8788   test -z "$as_dir" && as_dir=.
8789     for ac_exec_ext in '' $ac_executable_extensions; do
8790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793     break 2
8794   fi
8795 done
8796   done
8797 IFS=$as_save_IFS
8798
8799 fi
8800 fi
8801 OTOOL64=$ac_cv_prog_OTOOL64
8802 if test -n "$OTOOL64"; then
8803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8804 $as_echo "$OTOOL64" >&6; }
8805 else
8806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8808 fi
8809
8810
8811 fi
8812 if test -z "$ac_cv_prog_OTOOL64"; then
8813   ac_ct_OTOOL64=$OTOOL64
8814   # Extract the first word of "otool64", so it can be a program name with args.
8815 set dummy otool64; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8819   $as_echo_n "(cached) " >&6
8820 else
8821   if test -n "$ac_ct_OTOOL64"; then
8822   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8826 do
8827   IFS=$as_save_IFS
8828   test -z "$as_dir" && as_dir=.
8829     for ac_exec_ext in '' $ac_executable_extensions; do
8830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831     ac_cv_prog_ac_ct_OTOOL64="otool64"
8832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833     break 2
8834   fi
8835 done
8836   done
8837 IFS=$as_save_IFS
8838
8839 fi
8840 fi
8841 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8842 if test -n "$ac_ct_OTOOL64"; then
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8844 $as_echo "$ac_ct_OTOOL64" >&6; }
8845 else
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8848 fi
8849
8850   if test "x$ac_ct_OTOOL64" = x; then
8851     OTOOL64=":"
8852   else
8853     case $cross_compiling:$ac_tool_warned in
8854 yes:)
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8857 ac_tool_warned=yes ;;
8858 esac
8859     OTOOL64=$ac_ct_OTOOL64
8860   fi
8861 else
8862   OTOOL64="$ac_cv_prog_OTOOL64"
8863 fi
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8892 $as_echo_n "checking for -single_module linker flag... " >&6; }
8893 if ${lt_cv_apple_cc_single_mod+:} false; then :
8894   $as_echo_n "(cached) " >&6
8895 else
8896   lt_cv_apple_cc_single_mod=no
8897       if test -z "${LT_MULTI_MODULE}"; then
8898         # By default we will add the -single_module flag. You can override
8899         # by either setting the environment variable LT_MULTI_MODULE
8900         # non-empty at configure time, or by adding -multi_module to the
8901         # link flags.
8902         rm -rf libconftest.dylib*
8903         echo "int foo(void){return 1;}" > conftest.c
8904         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8905 -dynamiclib -Wl,-single_module conftest.c" >&5
8906         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8907           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8908         _lt_result=$?
8909         # If there is a non-empty error log, and "single_module"
8910         # appears in it, assume the flag caused a linker warning
8911         if test -s conftest.err && $GREP single_module conftest.err; then
8912           cat conftest.err >&5
8913         # Otherwise, if the output was created with a 0 exit code from
8914         # the compiler, it worked.
8915         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8916           lt_cv_apple_cc_single_mod=yes
8917         else
8918           cat conftest.err >&5
8919         fi
8920         rm -rf libconftest.dylib*
8921         rm -f conftest.*
8922       fi
8923 fi
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8925 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8926
8927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8928 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8929 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8930   $as_echo_n "(cached) " >&6
8931 else
8932   lt_cv_ld_exported_symbols_list=no
8933       save_LDFLAGS=$LDFLAGS
8934       echo "_main" > conftest.sym
8935       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8936       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h.  */
8938
8939 int
8940 main ()
8941 {
8942
8943   ;
8944   return 0;
8945 }
8946 _ACEOF
8947 if ac_fn_c_try_link "$LINENO"; then :
8948   lt_cv_ld_exported_symbols_list=yes
8949 else
8950   lt_cv_ld_exported_symbols_list=no
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext \
8953     conftest$ac_exeext conftest.$ac_ext
8954         LDFLAGS="$save_LDFLAGS"
8955
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8958 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8959
8960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8961 $as_echo_n "checking for -force_load linker flag... " >&6; }
8962 if ${lt_cv_ld_force_load+:} false; then :
8963   $as_echo_n "(cached) " >&6
8964 else
8965   lt_cv_ld_force_load=no
8966       cat > conftest.c << _LT_EOF
8967 int forced_loaded() { return 2;}
8968 _LT_EOF
8969       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8970       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8971       echo "$AR cru libconftest.a conftest.o" >&5
8972       $AR cru libconftest.a conftest.o 2>&5
8973       echo "$RANLIB libconftest.a" >&5
8974       $RANLIB libconftest.a 2>&5
8975       cat > conftest.c << _LT_EOF
8976 int main() { return 0;}
8977 _LT_EOF
8978       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8979       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8980       _lt_result=$?
8981       if test -s conftest.err && $GREP force_load conftest.err; then
8982         cat conftest.err >&5
8983       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8984         lt_cv_ld_force_load=yes
8985       else
8986         cat conftest.err >&5
8987       fi
8988         rm -f conftest.err libconftest.a conftest conftest.c
8989         rm -rf conftest.dSYM
8990
8991 fi
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8993 $as_echo "$lt_cv_ld_force_load" >&6; }
8994     case $host_os in
8995     rhapsody* | darwin1.[012])
8996       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8997     darwin1.*)
8998       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8999     darwin*) # darwin 5.x on
9000       # if running on 10.5 or later, the deployment target defaults
9001       # to the OS version, if on x86, and 10.4, the deployment
9002       # target defaults to 10.4. Don't you love it?
9003       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9004         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9005           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9006         10.[012]*)
9007           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9008         10.*)
9009           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9010       esac
9011     ;;
9012   esac
9013     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9014       _lt_dar_single_mod='$single_module'
9015     fi
9016     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9017       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9018     else
9019       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9020     fi
9021     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9022       _lt_dsymutil='~$DSYMUTIL $lib || :'
9023     else
9024       _lt_dsymutil=
9025     fi
9026     ;;
9027   esac
9028
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9030 $as_echo_n "checking for ANSI C header files... " >&6; }
9031 if ${ac_cv_header_stdc+:} false; then :
9032   $as_echo_n "(cached) " >&6
9033 else
9034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h.  */
9036 #include <stdlib.h>
9037 #include <stdarg.h>
9038 #include <string.h>
9039 #include <float.h>
9040
9041 int
9042 main ()
9043 {
9044
9045   ;
9046   return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_compile "$LINENO"; then :
9050   ac_cv_header_stdc=yes
9051 else
9052   ac_cv_header_stdc=no
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055
9056 if test $ac_cv_header_stdc = yes; then
9057   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h.  */
9060 #include <string.h>
9061
9062 _ACEOF
9063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9064   $EGREP "memchr" >/dev/null 2>&1; then :
9065
9066 else
9067   ac_cv_header_stdc=no
9068 fi
9069 rm -f conftest*
9070
9071 fi
9072
9073 if test $ac_cv_header_stdc = yes; then
9074   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h.  */
9077 #include <stdlib.h>
9078
9079 _ACEOF
9080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9081   $EGREP "free" >/dev/null 2>&1; then :
9082
9083 else
9084   ac_cv_header_stdc=no
9085 fi
9086 rm -f conftest*
9087
9088 fi
9089
9090 if test $ac_cv_header_stdc = yes; then
9091   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9092   if test "$cross_compiling" = yes; then :
9093   :
9094 else
9095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h.  */
9097 #include <ctype.h>
9098 #include <stdlib.h>
9099 #if ((' ' & 0x0FF) == 0x020)
9100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9102 #else
9103 # define ISLOWER(c) \
9104                    (('a' <= (c) && (c) <= 'i') \
9105                      || ('j' <= (c) && (c) <= 'r') \
9106                      || ('s' <= (c) && (c) <= 'z'))
9107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9108 #endif
9109
9110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9111 int
9112 main ()
9113 {
9114   int i;
9115   for (i = 0; i < 256; i++)
9116     if (XOR (islower (i), ISLOWER (i))
9117         || toupper (i) != TOUPPER (i))
9118       return 2;
9119   return 0;
9120 }
9121 _ACEOF
9122 if ac_fn_c_try_run "$LINENO"; then :
9123
9124 else
9125   ac_cv_header_stdc=no
9126 fi
9127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9128   conftest.$ac_objext conftest.beam conftest.$ac_ext
9129 fi
9130
9131 fi
9132 fi
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9134 $as_echo "$ac_cv_header_stdc" >&6; }
9135 if test $ac_cv_header_stdc = yes; then
9136
9137 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9138
9139 fi
9140
9141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9143                   inttypes.h stdint.h unistd.h
9144 do :
9145   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9146 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9147 "
9148 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9149   cat >>confdefs.h <<_ACEOF
9150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9151 _ACEOF
9152
9153 fi
9154
9155 done
9156
9157
9158 for ac_header in dlfcn.h
9159 do :
9160   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9161 "
9162 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9163   cat >>confdefs.h <<_ACEOF
9164 #define HAVE_DLFCN_H 1
9165 _ACEOF
9166
9167 fi
9168
9169 done
9170
9171
9172
9173
9174 func_stripname_cnf ()
9175 {
9176   case ${2} in
9177   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9178   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9179   esac
9180 } # func_stripname_cnf
9181
9182
9183
9184
9185
9186 # Set options
9187 # Check whether --enable-shared was given.
9188 if test "${enable_shared+set}" = set; then :
9189   enableval=$enable_shared; p=${PACKAGE-default}
9190     case $enableval in
9191     yes) enable_shared=yes ;;
9192     no) enable_shared=no ;;
9193     *)
9194       enable_shared=no
9195       # Look at the argument we got.  We use all the common list separators.
9196       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9197       for pkg in $enableval; do
9198         IFS="$lt_save_ifs"
9199         if test "X$pkg" = "X$p"; then
9200           enable_shared=yes
9201         fi
9202       done
9203       IFS="$lt_save_ifs"
9204       ;;
9205     esac
9206 else
9207   enable_shared=yes
9208 fi
9209
9210
9211
9212
9213
9214
9215
9216 # Check whether --enable-static was given.
9217 if test "${enable_static+set}" = set; then :
9218   enableval=$enable_static; p=${PACKAGE-default}
9219     case $enableval in
9220     yes) enable_static=yes ;;
9221     no) enable_static=no ;;
9222     *)
9223      enable_static=no
9224       # Look at the argument we got.  We use all the common list separators.
9225       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9226       for pkg in $enableval; do
9227         IFS="$lt_save_ifs"
9228         if test "X$pkg" = "X$p"; then
9229           enable_static=yes
9230         fi
9231       done
9232       IFS="$lt_save_ifs"
9233       ;;
9234     esac
9235 else
9236   enable_static=no
9237 fi
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248         enable_dlopen=no
9249
9250
9251   enable_win32_dll=no
9252
9253
9254
9255
9256
9257 # Check whether --with-pic was given.
9258 if test "${with_pic+set}" = set; then :
9259   withval=$with_pic; lt_p=${PACKAGE-default}
9260     case $withval in
9261     yes|no) pic_mode=$withval ;;
9262     *)
9263       pic_mode=default
9264       # Look at the argument we got.  We use all the common list separators.
9265       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9266       for lt_pkg in $withval; do
9267         IFS="$lt_save_ifs"
9268         if test "X$lt_pkg" = "X$lt_p"; then
9269           pic_mode=yes
9270         fi
9271       done
9272       IFS="$lt_save_ifs"
9273       ;;
9274     esac
9275 else
9276   pic_mode=default
9277 fi
9278
9279
9280 test -z "$pic_mode" && pic_mode=default
9281
9282
9283
9284
9285
9286
9287
9288   # Check whether --enable-fast-install was given.
9289 if test "${enable_fast_install+set}" = set; then :
9290   enableval=$enable_fast_install; p=${PACKAGE-default}
9291     case $enableval in
9292     yes) enable_fast_install=yes ;;
9293     no) enable_fast_install=no ;;
9294     *)
9295       enable_fast_install=no
9296       # Look at the argument we got.  We use all the common list separators.
9297       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9298       for pkg in $enableval; do
9299         IFS="$lt_save_ifs"
9300         if test "X$pkg" = "X$p"; then
9301           enable_fast_install=yes
9302         fi
9303       done
9304       IFS="$lt_save_ifs"
9305       ;;
9306     esac
9307 else
9308   enable_fast_install=yes
9309 fi
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321 # This can be used to rebuild libtool when needed
9322 LIBTOOL_DEPS="$ltmain"
9323
9324 # Always use our own libtool.
9325 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356 test -z "$LN_S" && LN_S="ln -s"
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371 if test -n "${ZSH_VERSION+set}" ; then
9372    setopt NO_GLOB_SUBST
9373 fi
9374
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9376 $as_echo_n "checking for objdir... " >&6; }
9377 if ${lt_cv_objdir+:} false; then :
9378   $as_echo_n "(cached) " >&6
9379 else
9380   rm -f .libs 2>/dev/null
9381 mkdir .libs 2>/dev/null
9382 if test -d .libs; then
9383   lt_cv_objdir=.libs
9384 else
9385   # MS-DOS does not allow filenames that begin with a dot.
9386   lt_cv_objdir=_libs
9387 fi
9388 rmdir .libs 2>/dev/null
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9391 $as_echo "$lt_cv_objdir" >&6; }
9392 objdir=$lt_cv_objdir
9393
9394
9395
9396
9397
9398 cat >>confdefs.h <<_ACEOF
9399 #define LT_OBJDIR "$lt_cv_objdir/"
9400 _ACEOF
9401
9402
9403
9404
9405 case $host_os in
9406 aix3*)
9407   # AIX sometimes has problems with the GCC collect2 program.  For some
9408   # reason, if we set the COLLECT_NAMES environment variable, the problems
9409   # vanish in a puff of smoke.
9410   if test "X${COLLECT_NAMES+set}" != Xset; then
9411     COLLECT_NAMES=
9412     export COLLECT_NAMES
9413   fi
9414   ;;
9415 esac
9416
9417 # Global variables:
9418 ofile=libtool
9419 can_build_shared=yes
9420
9421 # All known linkers require a `.a' archive for static linking (except MSVC,
9422 # which needs '.lib').
9423 libext=a
9424
9425 with_gnu_ld="$lt_cv_prog_gnu_ld"
9426
9427 old_CC="$CC"
9428 old_CFLAGS="$CFLAGS"
9429
9430 # Set sane defaults for various variables
9431 test -z "$CC" && CC=cc
9432 test -z "$LTCC" && LTCC=$CC
9433 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9434 test -z "$LD" && LD=ld
9435 test -z "$ac_objext" && ac_objext=o
9436
9437 for cc_temp in $compiler""; do
9438   case $cc_temp in
9439     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9440     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9441     \-*) ;;
9442     *) break;;
9443   esac
9444 done
9445 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9446
9447
9448 # Only perform the check for file, if the check method requires it
9449 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9450 case $deplibs_check_method in
9451 file_magic*)
9452   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9454 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9455 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9456   $as_echo_n "(cached) " >&6
9457 else
9458   case $MAGIC_CMD in
9459 [\\/*] |  ?:[\\/]*)
9460   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9461   ;;
9462 *)
9463   lt_save_MAGIC_CMD="$MAGIC_CMD"
9464   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9465   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9466   for ac_dir in $ac_dummy; do
9467     IFS="$lt_save_ifs"
9468     test -z "$ac_dir" && ac_dir=.
9469     if test -f $ac_dir/${ac_tool_prefix}file; then
9470       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9471       if test -n "$file_magic_test_file"; then
9472         case $deplibs_check_method in
9473         "file_magic "*)
9474           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9475           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9476           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9477             $EGREP "$file_magic_regex" > /dev/null; then
9478             :
9479           else
9480             cat <<_LT_EOF 1>&2
9481
9482 *** Warning: the command libtool uses to detect shared libraries,
9483 *** $file_magic_cmd, produces output that libtool cannot recognize.
9484 *** The result is that libtool may fail to recognize shared libraries
9485 *** as such.  This will affect the creation of libtool libraries that
9486 *** depend on shared libraries, but programs linked with such libtool
9487 *** libraries will work regardless of this problem.  Nevertheless, you
9488 *** may want to report the problem to your system manager and/or to
9489 *** bug-libtool@gnu.org
9490
9491 _LT_EOF
9492           fi ;;
9493         esac
9494       fi
9495       break
9496     fi
9497   done
9498   IFS="$lt_save_ifs"
9499   MAGIC_CMD="$lt_save_MAGIC_CMD"
9500   ;;
9501 esac
9502 fi
9503
9504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9505 if test -n "$MAGIC_CMD"; then
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9507 $as_echo "$MAGIC_CMD" >&6; }
9508 else
9509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9511 fi
9512
9513
9514
9515
9516
9517 if test -z "$lt_cv_path_MAGIC_CMD"; then
9518   if test -n "$ac_tool_prefix"; then
9519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9520 $as_echo_n "checking for file... " >&6; }
9521 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9522   $as_echo_n "(cached) " >&6
9523 else
9524   case $MAGIC_CMD in
9525 [\\/*] |  ?:[\\/]*)
9526   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9527   ;;
9528 *)
9529   lt_save_MAGIC_CMD="$MAGIC_CMD"
9530   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9531   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9532   for ac_dir in $ac_dummy; do
9533     IFS="$lt_save_ifs"
9534     test -z "$ac_dir" && ac_dir=.
9535     if test -f $ac_dir/file; then
9536       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9537       if test -n "$file_magic_test_file"; then
9538         case $deplibs_check_method in
9539         "file_magic "*)
9540           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9541           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9542           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9543             $EGREP "$file_magic_regex" > /dev/null; then
9544             :
9545           else
9546             cat <<_LT_EOF 1>&2
9547
9548 *** Warning: the command libtool uses to detect shared libraries,
9549 *** $file_magic_cmd, produces output that libtool cannot recognize.
9550 *** The result is that libtool may fail to recognize shared libraries
9551 *** as such.  This will affect the creation of libtool libraries that
9552 *** depend on shared libraries, but programs linked with such libtool
9553 *** libraries will work regardless of this problem.  Nevertheless, you
9554 *** may want to report the problem to your system manager and/or to
9555 *** bug-libtool@gnu.org
9556
9557 _LT_EOF
9558           fi ;;
9559         esac
9560       fi
9561       break
9562     fi
9563   done
9564   IFS="$lt_save_ifs"
9565   MAGIC_CMD="$lt_save_MAGIC_CMD"
9566   ;;
9567 esac
9568 fi
9569
9570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9571 if test -n "$MAGIC_CMD"; then
9572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9573 $as_echo "$MAGIC_CMD" >&6; }
9574 else
9575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9577 fi
9578
9579
9580   else
9581     MAGIC_CMD=:
9582   fi
9583 fi
9584
9585   fi
9586   ;;
9587 esac
9588
9589 # Use C for the default configuration in the libtool script
9590
9591 lt_save_CC="$CC"
9592 ac_ext=c
9593 ac_cpp='$CPP $CPPFLAGS'
9594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9597
9598
9599 # Source file extension for C test sources.
9600 ac_ext=c
9601
9602 # Object file extension for compiled C test sources.
9603 objext=o
9604 objext=$objext
9605
9606 # Code to be used in simple compile tests
9607 lt_simple_compile_test_code="int some_variable = 0;"
9608
9609 # Code to be used in simple link tests
9610 lt_simple_link_test_code='int main(){return(0);}'
9611
9612
9613
9614
9615
9616
9617
9618 # If no C compiler was specified, use CC.
9619 LTCC=${LTCC-"$CC"}
9620
9621 # If no C compiler flags were specified, use CFLAGS.
9622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9623
9624 # Allow CC to be a program name with arguments.
9625 compiler=$CC
9626
9627 # Save the default compiler, since it gets overwritten when the other
9628 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9629 compiler_DEFAULT=$CC
9630
9631 # save warnings/boilerplate of simple test code
9632 ac_outfile=conftest.$ac_objext
9633 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9635 _lt_compiler_boilerplate=`cat conftest.err`
9636 $RM conftest*
9637
9638 ac_outfile=conftest.$ac_objext
9639 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9641 _lt_linker_boilerplate=`cat conftest.err`
9642 $RM -r conftest*
9643
9644
9645 ## CAVEAT EMPTOR:
9646 ## There is no encapsulation within the following macros, do not change
9647 ## the running order or otherwise move them around unless you know exactly
9648 ## what you are doing...
9649 if test -n "$compiler"; then
9650
9651 lt_prog_compiler_no_builtin_flag=
9652
9653 if test "$GCC" = yes; then
9654   case $cc_basename in
9655   nvcc*)
9656     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9657   *)
9658     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9659   esac
9660
9661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9662 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9663 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9664   $as_echo_n "(cached) " >&6
9665 else
9666   lt_cv_prog_compiler_rtti_exceptions=no
9667    ac_outfile=conftest.$ac_objext
9668    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9669    lt_compiler_flag="-fno-rtti -fno-exceptions"
9670    # Insert the option either (1) after the last *FLAGS variable, or
9671    # (2) before a word containing "conftest.", or (3) at the end.
9672    # Note that $ac_compile itself does not contain backslashes and begins
9673    # with a dollar sign (not a hyphen), so the echo should work correctly.
9674    # The option is referenced via a variable to avoid confusing sed.
9675    lt_compile=`echo "$ac_compile" | $SED \
9676    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9677    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9678    -e 's:$: $lt_compiler_flag:'`
9679    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9680    (eval "$lt_compile" 2>conftest.err)
9681    ac_status=$?
9682    cat conftest.err >&5
9683    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684    if (exit $ac_status) && test -s "$ac_outfile"; then
9685      # The compiler can only warn and ignore the option if not recognized
9686      # So say no if there are warnings other than the usual output.
9687      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9688      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9689      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9690        lt_cv_prog_compiler_rtti_exceptions=yes
9691      fi
9692    fi
9693    $RM conftest*
9694
9695 fi
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9697 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9698
9699 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9700     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9701 else
9702     :
9703 fi
9704
9705 fi
9706
9707
9708
9709
9710
9711
9712   lt_prog_compiler_wl=
9713 lt_prog_compiler_pic=
9714 lt_prog_compiler_static=
9715
9716
9717   if test "$GCC" = yes; then
9718     lt_prog_compiler_wl='-Wl,'
9719     lt_prog_compiler_static='-static'
9720
9721     case $host_os in
9722       aix*)
9723       # All AIX code is PIC.
9724       if test "$host_cpu" = ia64; then
9725         # AIX 5 now supports IA64 processor
9726         lt_prog_compiler_static='-Bstatic'
9727       fi
9728       ;;
9729
9730     amigaos*)
9731       case $host_cpu in
9732       powerpc)
9733             # see comment about AmigaOS4 .so support
9734             lt_prog_compiler_pic='-fPIC'
9735         ;;
9736       m68k)
9737             # FIXME: we need at least 68020 code to build shared libraries, but
9738             # adding the `-m68020' flag to GCC prevents building anything better,
9739             # like `-m68040'.
9740             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9741         ;;
9742       esac
9743       ;;
9744
9745     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9746       # PIC is the default for these OSes.
9747       ;;
9748
9749     mingw* | cygwin* | pw32* | os2* | cegcc*)
9750       # This hack is so that the source file can tell whether it is being
9751       # built for inclusion in a dll (and should export symbols for example).
9752       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9753       # (--disable-auto-import) libraries
9754       lt_prog_compiler_pic='-DDLL_EXPORT'
9755       ;;
9756
9757     darwin* | rhapsody*)
9758       # PIC is the default on this platform
9759       # Common symbols not allowed in MH_DYLIB files
9760       lt_prog_compiler_pic='-fno-common'
9761       ;;
9762
9763     haiku*)
9764       # PIC is the default for Haiku.
9765       # The "-static" flag exists, but is broken.
9766       lt_prog_compiler_static=
9767       ;;
9768
9769     hpux*)
9770       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9771       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9772       # sets the default TLS model and affects inlining.
9773       case $host_cpu in
9774       hppa*64*)
9775         # +Z the default
9776         ;;
9777       *)
9778         lt_prog_compiler_pic='-fPIC'
9779         ;;
9780       esac
9781       ;;
9782
9783     interix[3-9]*)
9784       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9785       # Instead, we relocate shared libraries at runtime.
9786       ;;
9787
9788     msdosdjgpp*)
9789       # Just because we use GCC doesn't mean we suddenly get shared libraries
9790       # on systems that don't support them.
9791       lt_prog_compiler_can_build_shared=no
9792       enable_shared=no
9793       ;;
9794
9795     *nto* | *qnx*)
9796       # QNX uses GNU C++, but need to define -shared option too, otherwise
9797       # it will coredump.
9798       lt_prog_compiler_pic='-fPIC -shared'
9799       ;;
9800
9801     sysv4*MP*)
9802       if test -d /usr/nec; then
9803         lt_prog_compiler_pic=-Kconform_pic
9804       fi
9805       ;;
9806
9807     *)
9808       lt_prog_compiler_pic='-fPIC'
9809       ;;
9810     esac
9811
9812     case $cc_basename in
9813     nvcc*) # Cuda Compiler Driver 2.2
9814       lt_prog_compiler_wl='-Xlinker '
9815       if test -n "$lt_prog_compiler_pic"; then
9816         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9817       fi
9818       ;;
9819     esac
9820   else
9821     # PORTME Check for flag to pass linker flags through the system compiler.
9822     case $host_os in
9823     aix*)
9824       lt_prog_compiler_wl='-Wl,'
9825       if test "$host_cpu" = ia64; then
9826         # AIX 5 now supports IA64 processor
9827         lt_prog_compiler_static='-Bstatic'
9828       else
9829         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9830       fi
9831       ;;
9832
9833     mingw* | cygwin* | pw32* | os2* | cegcc*)
9834       # This hack is so that the source file can tell whether it is being
9835       # built for inclusion in a dll (and should export symbols for example).
9836       lt_prog_compiler_pic='-DDLL_EXPORT'
9837       ;;
9838
9839     hpux9* | hpux10* | hpux11*)
9840       lt_prog_compiler_wl='-Wl,'
9841       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9842       # not for PA HP-UX.
9843       case $host_cpu in
9844       hppa*64*|ia64*)
9845         # +Z the default
9846         ;;
9847       *)
9848         lt_prog_compiler_pic='+Z'
9849         ;;
9850       esac
9851       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9852       lt_prog_compiler_static='${wl}-a ${wl}archive'
9853       ;;
9854
9855     irix5* | irix6* | nonstopux*)
9856       lt_prog_compiler_wl='-Wl,'
9857       # PIC (with -KPIC) is the default.
9858       lt_prog_compiler_static='-non_shared'
9859       ;;
9860
9861     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9862       case $cc_basename in
9863       # old Intel for x86_64 which still supported -KPIC.
9864       ecc*)
9865         lt_prog_compiler_wl='-Wl,'
9866         lt_prog_compiler_pic='-KPIC'
9867         lt_prog_compiler_static='-static'
9868         ;;
9869       # icc used to be incompatible with GCC.
9870       # ICC 10 doesn't accept -KPIC any more.
9871       icc* | ifort*)
9872         lt_prog_compiler_wl='-Wl,'
9873         lt_prog_compiler_pic='-fPIC'
9874         lt_prog_compiler_static='-static'
9875         ;;
9876       # Lahey Fortran 8.1.
9877       lf95*)
9878         lt_prog_compiler_wl='-Wl,'
9879         lt_prog_compiler_pic='--shared'
9880         lt_prog_compiler_static='--static'
9881         ;;
9882       nagfor*)
9883         # NAG Fortran compiler
9884         lt_prog_compiler_wl='-Wl,-Wl,,'
9885         lt_prog_compiler_pic='-PIC'
9886         lt_prog_compiler_static='-Bstatic'
9887         ;;
9888       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9889         # Portland Group compilers (*not* the Pentium gcc compiler,
9890         # which looks to be a dead project)
9891         lt_prog_compiler_wl='-Wl,'
9892         lt_prog_compiler_pic='-fpic'
9893         lt_prog_compiler_static='-Bstatic'
9894         ;;
9895       ccc*)
9896         lt_prog_compiler_wl='-Wl,'
9897         # All Alpha code is PIC.
9898         lt_prog_compiler_static='-non_shared'
9899         ;;
9900       xl* | bgxl* | bgf* | mpixl*)
9901         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9902         lt_prog_compiler_wl='-Wl,'
9903         lt_prog_compiler_pic='-qpic'
9904         lt_prog_compiler_static='-qstaticlink'
9905         ;;
9906       *)
9907         case `$CC -V 2>&1 | sed 5q` in
9908         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9909           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9910           lt_prog_compiler_pic='-KPIC'
9911           lt_prog_compiler_static='-Bstatic'
9912           lt_prog_compiler_wl=''
9913           ;;
9914         *Sun\ F* | *Sun*Fortran*)
9915           lt_prog_compiler_pic='-KPIC'
9916           lt_prog_compiler_static='-Bstatic'
9917           lt_prog_compiler_wl='-Qoption ld '
9918           ;;
9919         *Sun\ C*)
9920           # Sun C 5.9
9921           lt_prog_compiler_pic='-KPIC'
9922           lt_prog_compiler_static='-Bstatic'
9923           lt_prog_compiler_wl='-Wl,'
9924           ;;
9925         *Intel*\ [CF]*Compiler*)
9926           lt_prog_compiler_wl='-Wl,'
9927           lt_prog_compiler_pic='-fPIC'
9928           lt_prog_compiler_static='-static'
9929           ;;
9930         *Portland\ Group*)
9931           lt_prog_compiler_wl='-Wl,'
9932           lt_prog_compiler_pic='-fpic'
9933           lt_prog_compiler_static='-Bstatic'
9934           ;;
9935         esac
9936         ;;
9937       esac
9938       ;;
9939
9940     newsos6)
9941       lt_prog_compiler_pic='-KPIC'
9942       lt_prog_compiler_static='-Bstatic'
9943       ;;
9944
9945     *nto* | *qnx*)
9946       # QNX uses GNU C++, but need to define -shared option too, otherwise
9947       # it will coredump.
9948       lt_prog_compiler_pic='-fPIC -shared'
9949       ;;
9950
9951     osf3* | osf4* | osf5*)
9952       lt_prog_compiler_wl='-Wl,'
9953       # All OSF/1 code is PIC.
9954       lt_prog_compiler_static='-non_shared'
9955       ;;
9956
9957     rdos*)
9958       lt_prog_compiler_static='-non_shared'
9959       ;;
9960
9961     solaris*)
9962       lt_prog_compiler_pic='-KPIC'
9963       lt_prog_compiler_static='-Bstatic'
9964       case $cc_basename in
9965       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9966         lt_prog_compiler_wl='-Qoption ld ';;
9967       *)
9968         lt_prog_compiler_wl='-Wl,';;
9969       esac
9970       ;;
9971
9972     sunos4*)
9973       lt_prog_compiler_wl='-Qoption ld '
9974       lt_prog_compiler_pic='-PIC'
9975       lt_prog_compiler_static='-Bstatic'
9976       ;;
9977
9978     sysv4 | sysv4.2uw2* | sysv4.3*)
9979       lt_prog_compiler_wl='-Wl,'
9980       lt_prog_compiler_pic='-KPIC'
9981       lt_prog_compiler_static='-Bstatic'
9982       ;;
9983
9984     sysv4*MP*)
9985       if test -d /usr/nec ;then
9986         lt_prog_compiler_pic='-Kconform_pic'
9987         lt_prog_compiler_static='-Bstatic'
9988       fi
9989       ;;
9990
9991     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9992       lt_prog_compiler_wl='-Wl,'
9993       lt_prog_compiler_pic='-KPIC'
9994       lt_prog_compiler_static='-Bstatic'
9995       ;;
9996
9997     unicos*)
9998       lt_prog_compiler_wl='-Wl,'
9999       lt_prog_compiler_can_build_shared=no
10000       ;;
10001
10002     uts4*)
10003       lt_prog_compiler_pic='-pic'
10004       lt_prog_compiler_static='-Bstatic'
10005       ;;
10006
10007     *)
10008       lt_prog_compiler_can_build_shared=no
10009       ;;
10010     esac
10011   fi
10012
10013 case $host_os in
10014   # For platforms which do not support PIC, -DPIC is meaningless:
10015   *djgpp*)
10016     lt_prog_compiler_pic=
10017     ;;
10018   *)
10019     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10020     ;;
10021 esac
10022
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10024 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10025 if ${lt_cv_prog_compiler_pic+:} false; then :
10026   $as_echo_n "(cached) " >&6
10027 else
10028   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10029 fi
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10031 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10032 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10033
10034 #
10035 # Check to make sure the PIC flag actually works.
10036 #
10037 if test -n "$lt_prog_compiler_pic"; then
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10039 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10040 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10041   $as_echo_n "(cached) " >&6
10042 else
10043   lt_cv_prog_compiler_pic_works=no
10044    ac_outfile=conftest.$ac_objext
10045    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10046    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10047    # Insert the option either (1) after the last *FLAGS variable, or
10048    # (2) before a word containing "conftest.", or (3) at the end.
10049    # Note that $ac_compile itself does not contain backslashes and begins
10050    # with a dollar sign (not a hyphen), so the echo should work correctly.
10051    # The option is referenced via a variable to avoid confusing sed.
10052    lt_compile=`echo "$ac_compile" | $SED \
10053    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10055    -e 's:$: $lt_compiler_flag:'`
10056    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10057    (eval "$lt_compile" 2>conftest.err)
10058    ac_status=$?
10059    cat conftest.err >&5
10060    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061    if (exit $ac_status) && test -s "$ac_outfile"; then
10062      # The compiler can only warn and ignore the option if not recognized
10063      # So say no if there are warnings other than the usual output.
10064      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10065      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10066      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10067        lt_cv_prog_compiler_pic_works=yes
10068      fi
10069    fi
10070    $RM conftest*
10071
10072 fi
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10074 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10075
10076 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10077     case $lt_prog_compiler_pic in
10078      "" | " "*) ;;
10079      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10080      esac
10081 else
10082     lt_prog_compiler_pic=
10083      lt_prog_compiler_can_build_shared=no
10084 fi
10085
10086 fi
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098 #
10099 # Check to make sure the static flag actually works.
10100 #
10101 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10103 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10104 if ${lt_cv_prog_compiler_static_works+:} false; then :
10105   $as_echo_n "(cached) " >&6
10106 else
10107   lt_cv_prog_compiler_static_works=no
10108    save_LDFLAGS="$LDFLAGS"
10109    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10110    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10111    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10112      # The linker can only warn and ignore the option if not recognized
10113      # So say no if there are warnings
10114      if test -s conftest.err; then
10115        # Append any errors to the config.log.
10116        cat conftest.err 1>&5
10117        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10118        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10119        if diff conftest.exp conftest.er2 >/dev/null; then
10120          lt_cv_prog_compiler_static_works=yes
10121        fi
10122      else
10123        lt_cv_prog_compiler_static_works=yes
10124      fi
10125    fi
10126    $RM -r conftest*
10127    LDFLAGS="$save_LDFLAGS"
10128
10129 fi
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10131 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10132
10133 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10134     :
10135 else
10136     lt_prog_compiler_static=
10137 fi
10138
10139
10140
10141
10142
10143
10144
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10147 if ${lt_cv_prog_compiler_c_o+:} false; then :
10148   $as_echo_n "(cached) " >&6
10149 else
10150   lt_cv_prog_compiler_c_o=no
10151    $RM -r conftest 2>/dev/null
10152    mkdir conftest
10153    cd conftest
10154    mkdir out
10155    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10156
10157    lt_compiler_flag="-o out/conftest2.$ac_objext"
10158    # Insert the option either (1) after the last *FLAGS variable, or
10159    # (2) before a word containing "conftest.", or (3) at the end.
10160    # Note that $ac_compile itself does not contain backslashes and begins
10161    # with a dollar sign (not a hyphen), so the echo should work correctly.
10162    lt_compile=`echo "$ac_compile" | $SED \
10163    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10164    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10165    -e 's:$: $lt_compiler_flag:'`
10166    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10167    (eval "$lt_compile" 2>out/conftest.err)
10168    ac_status=$?
10169    cat out/conftest.err >&5
10170    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10172    then
10173      # The compiler can only warn and ignore the option if not recognized
10174      # So say no if there are warnings
10175      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10176      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10177      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10178        lt_cv_prog_compiler_c_o=yes
10179      fi
10180    fi
10181    chmod u+w . 2>&5
10182    $RM conftest*
10183    # SGI C++ compiler will create directory out/ii_files/ for
10184    # template instantiation
10185    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10186    $RM out/* && rmdir out
10187    cd ..
10188    $RM -r conftest
10189    $RM conftest*
10190
10191 fi
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10193 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10194
10195
10196
10197
10198
10199
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10201 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10202 if ${lt_cv_prog_compiler_c_o+:} false; then :
10203   $as_echo_n "(cached) " >&6
10204 else
10205   lt_cv_prog_compiler_c_o=no
10206    $RM -r conftest 2>/dev/null
10207    mkdir conftest
10208    cd conftest
10209    mkdir out
10210    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10211
10212    lt_compiler_flag="-o out/conftest2.$ac_objext"
10213    # Insert the option either (1) after the last *FLAGS variable, or
10214    # (2) before a word containing "conftest.", or (3) at the end.
10215    # Note that $ac_compile itself does not contain backslashes and begins
10216    # with a dollar sign (not a hyphen), so the echo should work correctly.
10217    lt_compile=`echo "$ac_compile" | $SED \
10218    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10220    -e 's:$: $lt_compiler_flag:'`
10221    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10222    (eval "$lt_compile" 2>out/conftest.err)
10223    ac_status=$?
10224    cat out/conftest.err >&5
10225    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10227    then
10228      # The compiler can only warn and ignore the option if not recognized
10229      # So say no if there are warnings
10230      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10231      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10232      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10233        lt_cv_prog_compiler_c_o=yes
10234      fi
10235    fi
10236    chmod u+w . 2>&5
10237    $RM conftest*
10238    # SGI C++ compiler will create directory out/ii_files/ for
10239    # template instantiation
10240    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10241    $RM out/* && rmdir out
10242    cd ..
10243    $RM -r conftest
10244    $RM conftest*
10245
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10248 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10249
10250
10251
10252
10253 hard_links="nottested"
10254 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10255   # do not overwrite the value of need_locks provided by the user
10256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10257 $as_echo_n "checking if we can lock with hard links... " >&6; }
10258   hard_links=yes
10259   $RM conftest*
10260   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10261   touch conftest.a
10262   ln conftest.a conftest.b 2>&5 || hard_links=no
10263   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10265 $as_echo "$hard_links" >&6; }
10266   if test "$hard_links" = no; then
10267     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10268 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10269     need_locks=warn
10270   fi
10271 else
10272   need_locks=no
10273 fi
10274
10275
10276
10277
10278
10279
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10281 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10282
10283   runpath_var=
10284   allow_undefined_flag=
10285   always_export_symbols=no
10286   archive_cmds=
10287   archive_expsym_cmds=
10288   compiler_needs_object=no
10289   enable_shared_with_static_runtimes=no
10290   export_dynamic_flag_spec=
10291   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10292   hardcode_automatic=no
10293   hardcode_direct=no
10294   hardcode_direct_absolute=no
10295   hardcode_libdir_flag_spec=
10296   hardcode_libdir_separator=
10297   hardcode_minus_L=no
10298   hardcode_shlibpath_var=unsupported
10299   inherit_rpath=no
10300   link_all_deplibs=unknown
10301   module_cmds=
10302   module_expsym_cmds=
10303   old_archive_from_new_cmds=
10304   old_archive_from_expsyms_cmds=
10305   thread_safe_flag_spec=
10306   whole_archive_flag_spec=
10307   # include_expsyms should be a list of space-separated symbols to be *always*
10308   # included in the symbol list
10309   include_expsyms=
10310   # exclude_expsyms can be an extended regexp of symbols to exclude
10311   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10312   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10313   # as well as any symbol that contains `d'.
10314   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10315   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10316   # platforms (ab)use it in PIC code, but their linkers get confused if
10317   # the symbol is explicitly referenced.  Since portable code cannot
10318   # rely on this symbol name, it's probably fine to never include it in
10319   # preloaded symbol tables.
10320   # Exclude shared library initialization/finalization symbols.
10321   extract_expsyms_cmds=
10322
10323   case $host_os in
10324   cygwin* | mingw* | pw32* | cegcc*)
10325     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10326     # When not using gcc, we currently assume that we are using
10327     # Microsoft Visual C++.
10328     if test "$GCC" != yes; then
10329       with_gnu_ld=no
10330     fi
10331     ;;
10332   interix*)
10333     # we just hope/assume this is gcc and not c89 (= MSVC++)
10334     with_gnu_ld=yes
10335     ;;
10336   openbsd*)
10337     with_gnu_ld=no
10338     ;;
10339   linux* | k*bsd*-gnu | gnu*)
10340     link_all_deplibs=no
10341     ;;
10342   esac
10343
10344   ld_shlibs=yes
10345
10346   # On some targets, GNU ld is compatible enough with the native linker
10347   # that we're better off using the native interface for both.
10348   lt_use_gnu_ld_interface=no
10349   if test "$with_gnu_ld" = yes; then
10350     case $host_os in
10351       aix*)
10352         # The AIX port of GNU ld has always aspired to compatibility
10353         # with the native linker.  However, as the warning in the GNU ld
10354         # block says, versions before 2.19.5* couldn't really create working
10355         # shared libraries, regardless of the interface used.
10356         case `$LD -v 2>&1` in
10357           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10358           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10359           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10360           *)
10361             lt_use_gnu_ld_interface=yes
10362             ;;
10363         esac
10364         ;;
10365       *)
10366         lt_use_gnu_ld_interface=yes
10367         ;;
10368     esac
10369   fi
10370
10371   if test "$lt_use_gnu_ld_interface" = yes; then
10372     # If archive_cmds runs LD, not CC, wlarc should be empty
10373     wlarc='${wl}'
10374
10375     # Set some defaults for GNU ld with shared library support. These
10376     # are reset later if shared libraries are not supported. Putting them
10377     # here allows them to be overridden if necessary.
10378     runpath_var=LD_RUN_PATH
10379     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10380     export_dynamic_flag_spec='${wl}--export-dynamic'
10381     # ancient GNU ld didn't support --whole-archive et. al.
10382     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10383       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10384     else
10385       whole_archive_flag_spec=
10386     fi
10387     supports_anon_versioning=no
10388     case `$LD -v 2>&1` in
10389       *GNU\ gold*) supports_anon_versioning=yes ;;
10390       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10391       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10392       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10393       *\ 2.11.*) ;; # other 2.11 versions
10394       *) supports_anon_versioning=yes ;;
10395     esac
10396
10397     # See if GNU ld supports shared libraries.
10398     case $host_os in
10399     aix[3-9]*)
10400       # On AIX/PPC, the GNU linker is very broken
10401       if test "$host_cpu" != ia64; then
10402         ld_shlibs=no
10403         cat <<_LT_EOF 1>&2
10404
10405 *** Warning: the GNU linker, at least up to release 2.19, is reported
10406 *** to be unable to reliably create shared libraries on AIX.
10407 *** Therefore, libtool is disabling shared libraries support.  If you
10408 *** really care for shared libraries, you may want to install binutils
10409 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10410 *** You will then need to restart the configuration process.
10411
10412 _LT_EOF
10413       fi
10414       ;;
10415
10416     amigaos*)
10417       case $host_cpu in
10418       powerpc)
10419             # see comment about AmigaOS4 .so support
10420             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421             archive_expsym_cmds=''
10422         ;;
10423       m68k)
10424             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)'
10425             hardcode_libdir_flag_spec='-L$libdir'
10426             hardcode_minus_L=yes
10427         ;;
10428       esac
10429       ;;
10430
10431     beos*)
10432       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10433         allow_undefined_flag=unsupported
10434         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10435         # support --undefined.  This deserves some investigation.  FIXME
10436         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10437       else
10438         ld_shlibs=no
10439       fi
10440       ;;
10441
10442     cygwin* | mingw* | pw32* | cegcc*)
10443       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10444       # as there is no search path for DLLs.
10445       hardcode_libdir_flag_spec='-L$libdir'
10446       export_dynamic_flag_spec='${wl}--export-all-symbols'
10447       allow_undefined_flag=unsupported
10448       always_export_symbols=no
10449       enable_shared_with_static_runtimes=yes
10450       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'
10451       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10452
10453       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10454         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10455         # If the export-symbols file already is a .def file (1st line
10456         # is EXPORTS), use it as is; otherwise, prepend...
10457         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10458           cp $export_symbols $output_objdir/$soname.def;
10459         else
10460           echo EXPORTS > $output_objdir/$soname.def;
10461           cat $export_symbols >> $output_objdir/$soname.def;
10462         fi~
10463         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10464       else
10465         ld_shlibs=no
10466       fi
10467       ;;
10468
10469     haiku*)
10470       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10471       link_all_deplibs=yes
10472       ;;
10473
10474     interix[3-9]*)
10475       hardcode_direct=no
10476       hardcode_shlibpath_var=no
10477       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10478       export_dynamic_flag_spec='${wl}-E'
10479       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10480       # Instead, shared libraries are loaded at an image base (0x10000000 by
10481       # default) and relocated if they conflict, which is a slow very memory
10482       # consuming and fragmenting process.  To avoid this, we pick a random,
10483       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10484       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10485       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10486       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'
10487       ;;
10488
10489     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10490       tmp_diet=no
10491       if test "$host_os" = linux-dietlibc; then
10492         case $cc_basename in
10493           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10494         esac
10495       fi
10496       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10497          && test "$tmp_diet" = no
10498       then
10499         tmp_addflag=' $pic_flag'
10500         tmp_sharedflag='-shared'
10501         case $cc_basename,$host_cpu in
10502         pgcc*)                          # Portland Group C compiler
10503           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'
10504           tmp_addflag=' $pic_flag'
10505           ;;
10506         pgf77* | pgf90* | pgf95* | pgfortran*)
10507                                         # Portland Group f77 and f90 compilers
10508           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'
10509           tmp_addflag=' $pic_flag -Mnomain' ;;
10510         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10511           tmp_addflag=' -i_dynamic' ;;
10512         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10513           tmp_addflag=' -i_dynamic -nofor_main' ;;
10514         ifc* | ifort*)                  # Intel Fortran compiler
10515           tmp_addflag=' -nofor_main' ;;
10516         lf95*)                          # Lahey Fortran 8.1
10517           whole_archive_flag_spec=
10518           tmp_sharedflag='--shared' ;;
10519         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10520           tmp_sharedflag='-qmkshrobj'
10521           tmp_addflag= ;;
10522         nvcc*)  # Cuda Compiler Driver 2.2
10523           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'
10524           compiler_needs_object=yes
10525           ;;
10526         esac
10527         case `$CC -V 2>&1 | sed 5q` in
10528         *Sun\ C*)                       # Sun C 5.9
10529           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'
10530           compiler_needs_object=yes
10531           tmp_sharedflag='-G' ;;
10532         *Sun\ F*)                       # Sun Fortran 8.3
10533           tmp_sharedflag='-G' ;;
10534         esac
10535         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10536
10537         if test "x$supports_anon_versioning" = xyes; then
10538           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10539             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10540             echo "local: *; };" >> $output_objdir/$libname.ver~
10541             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10542         fi
10543
10544         case $cc_basename in
10545         xlf* | bgf* | bgxlf* | mpixlf*)
10546           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10547           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10548           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10549           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10550           if test "x$supports_anon_versioning" = xyes; then
10551             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10552               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10553               echo "local: *; };" >> $output_objdir/$libname.ver~
10554               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10555           fi
10556           ;;
10557         esac
10558       else
10559         ld_shlibs=no
10560       fi
10561       ;;
10562
10563     netbsd* | netbsdelf*-gnu)
10564       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10565         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10566         wlarc=
10567       else
10568         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10569         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10570       fi
10571       ;;
10572
10573     solaris*)
10574       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10575         ld_shlibs=no
10576         cat <<_LT_EOF 1>&2
10577
10578 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10579 *** create shared libraries on Solaris systems.  Therefore, libtool
10580 *** is disabling shared libraries support.  We urge you to upgrade GNU
10581 *** binutils to release 2.9.1 or newer.  Another option is to modify
10582 *** your PATH or compiler configuration so that the native linker is
10583 *** used, and then restart.
10584
10585 _LT_EOF
10586       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10587         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10588         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10589       else
10590         ld_shlibs=no
10591       fi
10592       ;;
10593
10594     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10595       case `$LD -v 2>&1` in
10596         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10597         ld_shlibs=no
10598         cat <<_LT_EOF 1>&2
10599
10600 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10601 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10602 *** is disabling shared libraries support.  We urge you to upgrade GNU
10603 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10604 *** your PATH or compiler configuration so that the native linker is
10605 *** used, and then restart.
10606
10607 _LT_EOF
10608         ;;
10609         *)
10610           # For security reasons, it is highly recommended that you always
10611           # use absolute paths for naming shared libraries, and exclude the
10612           # DT_RUNPATH tag from executables and libraries.  But doing so
10613           # requires that you compile everything twice, which is a pain.
10614           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10615             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10616             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10617             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10618           else
10619             ld_shlibs=no
10620           fi
10621         ;;
10622       esac
10623       ;;
10624
10625     sunos4*)
10626       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10627       wlarc=
10628       hardcode_direct=yes
10629       hardcode_shlibpath_var=no
10630       ;;
10631
10632     *)
10633       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10634         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10635         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10636       else
10637         ld_shlibs=no
10638       fi
10639       ;;
10640     esac
10641
10642     if test "$ld_shlibs" = no; then
10643       runpath_var=
10644       hardcode_libdir_flag_spec=
10645       export_dynamic_flag_spec=
10646       whole_archive_flag_spec=
10647     fi
10648   else
10649     # PORTME fill in a description of your system's linker (not GNU ld)
10650     case $host_os in
10651     aix3*)
10652       allow_undefined_flag=unsupported
10653       always_export_symbols=yes
10654       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'
10655       # Note: this linker hardcodes the directories in LIBPATH if there
10656       # are no directories specified by -L.
10657       hardcode_minus_L=yes
10658       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10659         # Neither direct hardcoding nor static linking is supported with a
10660         # broken collect2.
10661         hardcode_direct=unsupported
10662       fi
10663       ;;
10664
10665     aix[4-9]*)
10666       if test "$host_cpu" = ia64; then
10667         # On IA64, the linker does run time linking by default, so we don't
10668         # have to do anything special.
10669         aix_use_runtimelinking=no
10670         exp_sym_flag='-Bexport'
10671         no_entry_flag=""
10672       else
10673         # If we're using GNU nm, then we don't want the "-C" option.
10674         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10675         # Also, AIX nm treats weak defined symbols like other global
10676         # defined symbols, whereas GNU nm marks them as "W".
10677         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10678           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'
10679         else
10680           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'
10681         fi
10682         aix_use_runtimelinking=no
10683
10684         # Test if we are trying to use run time linking or normal
10685         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10686         # need to do runtime linking.
10687         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10688           for ld_flag in $LDFLAGS; do
10689           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10690             aix_use_runtimelinking=yes
10691             break
10692           fi
10693           done
10694           ;;
10695         esac
10696
10697         exp_sym_flag='-bexport'
10698         no_entry_flag='-bnoentry'
10699       fi
10700
10701       # When large executables or shared objects are built, AIX ld can
10702       # have problems creating the table of contents.  If linking a library
10703       # or program results in "error TOC overflow" add -mminimal-toc to
10704       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10705       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10706
10707       archive_cmds=''
10708       hardcode_direct=yes
10709       hardcode_direct_absolute=yes
10710       hardcode_libdir_separator=':'
10711       link_all_deplibs=yes
10712       file_list_spec='${wl}-f,'
10713
10714       if test "$GCC" = yes; then
10715         case $host_os in aix4.[012]|aix4.[012].*)
10716         # We only want to do this on AIX 4.2 and lower, the check
10717         # below for broken collect2 doesn't work under 4.3+
10718           collect2name=`${CC} -print-prog-name=collect2`
10719           if test -f "$collect2name" &&
10720            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10721           then
10722           # We have reworked collect2
10723           :
10724           else
10725           # We have old collect2
10726           hardcode_direct=unsupported
10727           # It fails to find uninstalled libraries when the uninstalled
10728           # path is not listed in the libpath.  Setting hardcode_minus_L
10729           # to unsupported forces relinking
10730           hardcode_minus_L=yes
10731           hardcode_libdir_flag_spec='-L$libdir'
10732           hardcode_libdir_separator=
10733           fi
10734           ;;
10735         esac
10736         shared_flag='-shared'
10737         if test "$aix_use_runtimelinking" = yes; then
10738           shared_flag="$shared_flag "'${wl}-G'
10739         fi
10740         link_all_deplibs=no
10741       else
10742         # not using gcc
10743         if test "$host_cpu" = ia64; then
10744         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10745         # chokes on -Wl,-G. The following line is correct:
10746           shared_flag='-G'
10747         else
10748           if test "$aix_use_runtimelinking" = yes; then
10749             shared_flag='${wl}-G'
10750           else
10751             shared_flag='${wl}-bM:SRE'
10752           fi
10753         fi
10754       fi
10755
10756       export_dynamic_flag_spec='${wl}-bexpall'
10757       # It seems that -bexpall does not export symbols beginning with
10758       # underscore (_), so it is better to generate a list of symbols to export.
10759       always_export_symbols=yes
10760       if test "$aix_use_runtimelinking" = yes; then
10761         # Warning - without using the other runtime loading flags (-brtl),
10762         # -berok will link without error, but may produce a broken library.
10763         allow_undefined_flag='-berok'
10764         # Determine the default libpath from the value encoded in an
10765         # empty executable.
10766         if test "${lt_cv_aix_libpath+set}" = set; then
10767   aix_libpath=$lt_cv_aix_libpath
10768 else
10769   if ${lt_cv_aix_libpath_+:} false; then :
10770   $as_echo_n "(cached) " >&6
10771 else
10772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h.  */
10774
10775 int
10776 main ()
10777 {
10778
10779   ;
10780   return 0;
10781 }
10782 _ACEOF
10783 if ac_fn_c_try_link "$LINENO"; then :
10784
10785   lt_aix_libpath_sed='
10786       /Import File Strings/,/^$/ {
10787           /^0/ {
10788               s/^0  *\([^ ]*\) *$/\1/
10789               p
10790           }
10791       }'
10792   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10793   # Check for a 64-bit object if we didn't find anything.
10794   if test -z "$lt_cv_aix_libpath_"; then
10795     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10796   fi
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext \
10799     conftest$ac_exeext conftest.$ac_ext
10800   if test -z "$lt_cv_aix_libpath_"; then
10801     lt_cv_aix_libpath_="/usr/lib:/lib"
10802   fi
10803
10804 fi
10805
10806   aix_libpath=$lt_cv_aix_libpath_
10807 fi
10808
10809         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10810         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"
10811       else
10812         if test "$host_cpu" = ia64; then
10813           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10814           allow_undefined_flag="-z nodefs"
10815           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"
10816         else
10817          # Determine the default libpath from the value encoded in an
10818          # empty executable.
10819          if test "${lt_cv_aix_libpath+set}" = set; then
10820   aix_libpath=$lt_cv_aix_libpath
10821 else
10822   if ${lt_cv_aix_libpath_+:} false; then :
10823   $as_echo_n "(cached) " >&6
10824 else
10825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h.  */
10827
10828 int
10829 main ()
10830 {
10831
10832   ;
10833   return 0;
10834 }
10835 _ACEOF
10836 if ac_fn_c_try_link "$LINENO"; then :
10837
10838   lt_aix_libpath_sed='
10839       /Import File Strings/,/^$/ {
10840           /^0/ {
10841               s/^0  *\([^ ]*\) *$/\1/
10842               p
10843           }
10844       }'
10845   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10846   # Check for a 64-bit object if we didn't find anything.
10847   if test -z "$lt_cv_aix_libpath_"; then
10848     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10849   fi
10850 fi
10851 rm -f core conftest.err conftest.$ac_objext \
10852     conftest$ac_exeext conftest.$ac_ext
10853   if test -z "$lt_cv_aix_libpath_"; then
10854     lt_cv_aix_libpath_="/usr/lib:/lib"
10855   fi
10856
10857 fi
10858
10859   aix_libpath=$lt_cv_aix_libpath_
10860 fi
10861
10862          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10863           # Warning - without using the other run time loading flags,
10864           # -berok will link without error, but may produce a broken library.
10865           no_undefined_flag=' ${wl}-bernotok'
10866           allow_undefined_flag=' ${wl}-berok'
10867           if test "$with_gnu_ld" = yes; then
10868             # We only use this code for GNU lds that support --whole-archive.
10869             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10870           else
10871             # Exported symbols can be pulled into shared objects from archives
10872             whole_archive_flag_spec='$convenience'
10873           fi
10874           archive_cmds_need_lc=yes
10875           # This is similar to how AIX traditionally builds its shared libraries.
10876           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'
10877         fi
10878       fi
10879       ;;
10880
10881     amigaos*)
10882       case $host_cpu in
10883       powerpc)
10884             # see comment about AmigaOS4 .so support
10885             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10886             archive_expsym_cmds=''
10887         ;;
10888       m68k)
10889             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)'
10890             hardcode_libdir_flag_spec='-L$libdir'
10891             hardcode_minus_L=yes
10892         ;;
10893       esac
10894       ;;
10895
10896     bsdi[45]*)
10897       export_dynamic_flag_spec=-rdynamic
10898       ;;
10899
10900     cygwin* | mingw* | pw32* | cegcc*)
10901       # When not using gcc, we currently assume that we are using
10902       # Microsoft Visual C++.
10903       # hardcode_libdir_flag_spec is actually meaningless, as there is
10904       # no search path for DLLs.
10905       case $cc_basename in
10906       cl*)
10907         # Native MSVC
10908         hardcode_libdir_flag_spec=' '
10909         allow_undefined_flag=unsupported
10910         always_export_symbols=yes
10911         file_list_spec='@'
10912         # Tell ltmain to make .lib files, not .a files.
10913         libext=lib
10914         # Tell ltmain to make .dll files, not .so files.
10915         shrext_cmds=".dll"
10916         # FIXME: Setting linknames here is a bad hack.
10917         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10918         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10919             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10920           else
10921             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10922           fi~
10923           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10924           linknames='
10925         # The linker will not automatically build a static lib if we build a DLL.
10926         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10927         enable_shared_with_static_runtimes=yes
10928         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10929         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10930         # Don't use ranlib
10931         old_postinstall_cmds='chmod 644 $oldlib'
10932         postlink_cmds='lt_outputfile="@OUTPUT@"~
10933           lt_tool_outputfile="@TOOL_OUTPUT@"~
10934           case $lt_outputfile in
10935             *.exe|*.EXE) ;;
10936             *)
10937               lt_outputfile="$lt_outputfile.exe"
10938               lt_tool_outputfile="$lt_tool_outputfile.exe"
10939               ;;
10940           esac~
10941           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10942             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10943             $RM "$lt_outputfile.manifest";
10944           fi'
10945         ;;
10946       *)
10947         # Assume MSVC wrapper
10948         hardcode_libdir_flag_spec=' '
10949         allow_undefined_flag=unsupported
10950         # Tell ltmain to make .lib files, not .a files.
10951         libext=lib
10952         # Tell ltmain to make .dll files, not .so files.
10953         shrext_cmds=".dll"
10954         # FIXME: Setting linknames here is a bad hack.
10955         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10956         # The linker will automatically build a .lib file if we build a DLL.
10957         old_archive_from_new_cmds='true'
10958         # FIXME: Should let the user specify the lib program.
10959         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10960         enable_shared_with_static_runtimes=yes
10961         ;;
10962       esac
10963       ;;
10964
10965     darwin* | rhapsody*)
10966
10967
10968   archive_cmds_need_lc=no
10969   hardcode_direct=no
10970   hardcode_automatic=yes
10971   hardcode_shlibpath_var=unsupported
10972   if test "$lt_cv_ld_force_load" = "yes"; then
10973     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\"`'
10974
10975   else
10976     whole_archive_flag_spec=''
10977   fi
10978   link_all_deplibs=yes
10979   allow_undefined_flag="$_lt_dar_allow_undefined"
10980   case $cc_basename in
10981      ifort*) _lt_dar_can_shared=yes ;;
10982      *) _lt_dar_can_shared=$GCC ;;
10983   esac
10984   if test "$_lt_dar_can_shared" = "yes"; then
10985     output_verbose_link_cmd=func_echo_all
10986     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10987     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10988     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}"
10989     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}"
10990
10991   else
10992   ld_shlibs=no
10993   fi
10994
10995       ;;
10996
10997     dgux*)
10998       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999       hardcode_libdir_flag_spec='-L$libdir'
11000       hardcode_shlibpath_var=no
11001       ;;
11002
11003     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11004     # support.  Future versions do this automatically, but an explicit c++rt0.o
11005     # does not break anything, and helps significantly (at the cost of a little
11006     # extra space).
11007     freebsd2.2*)
11008       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11009       hardcode_libdir_flag_spec='-R$libdir'
11010       hardcode_direct=yes
11011       hardcode_shlibpath_var=no
11012       ;;
11013
11014     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11015     freebsd2.*)
11016       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11017       hardcode_direct=yes
11018       hardcode_minus_L=yes
11019       hardcode_shlibpath_var=no
11020       ;;
11021
11022     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11023     freebsd* | dragonfly*)
11024       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11025       hardcode_libdir_flag_spec='-R$libdir'
11026       hardcode_direct=yes
11027       hardcode_shlibpath_var=no
11028       ;;
11029
11030     hpux9*)
11031       if test "$GCC" = yes; then
11032         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'
11033       else
11034         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'
11035       fi
11036       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11037       hardcode_libdir_separator=:
11038       hardcode_direct=yes
11039
11040       # hardcode_minus_L: Not really in the search PATH,
11041       # but as the default location of the library.
11042       hardcode_minus_L=yes
11043       export_dynamic_flag_spec='${wl}-E'
11044       ;;
11045
11046     hpux10*)
11047       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11048         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11049       else
11050         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11051       fi
11052       if test "$with_gnu_ld" = no; then
11053         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11054         hardcode_libdir_separator=:
11055         hardcode_direct=yes
11056         hardcode_direct_absolute=yes
11057         export_dynamic_flag_spec='${wl}-E'
11058         # hardcode_minus_L: Not really in the search PATH,
11059         # but as the default location of the library.
11060         hardcode_minus_L=yes
11061       fi
11062       ;;
11063
11064     hpux11*)
11065       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11066         case $host_cpu in
11067         hppa*64*)
11068           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11069           ;;
11070         ia64*)
11071           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11072           ;;
11073         *)
11074           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11075           ;;
11076         esac
11077       else
11078         case $host_cpu in
11079         hppa*64*)
11080           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11081           ;;
11082         ia64*)
11083           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11084           ;;
11085         *)
11086
11087           # Older versions of the 11.00 compiler do not understand -b yet
11088           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11089           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11090 $as_echo_n "checking if $CC understands -b... " >&6; }
11091 if ${lt_cv_prog_compiler__b+:} false; then :
11092   $as_echo_n "(cached) " >&6
11093 else
11094   lt_cv_prog_compiler__b=no
11095    save_LDFLAGS="$LDFLAGS"
11096    LDFLAGS="$LDFLAGS -b"
11097    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11098    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11099      # The linker can only warn and ignore the option if not recognized
11100      # So say no if there are warnings
11101      if test -s conftest.err; then
11102        # Append any errors to the config.log.
11103        cat conftest.err 1>&5
11104        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11105        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11106        if diff conftest.exp conftest.er2 >/dev/null; then
11107          lt_cv_prog_compiler__b=yes
11108        fi
11109      else
11110        lt_cv_prog_compiler__b=yes
11111      fi
11112    fi
11113    $RM -r conftest*
11114    LDFLAGS="$save_LDFLAGS"
11115
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11118 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11119
11120 if test x"$lt_cv_prog_compiler__b" = xyes; then
11121     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11122 else
11123     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11124 fi
11125
11126           ;;
11127         esac
11128       fi
11129       if test "$with_gnu_ld" = no; then
11130         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11131         hardcode_libdir_separator=:
11132
11133         case $host_cpu in
11134         hppa*64*|ia64*)
11135           hardcode_direct=no
11136           hardcode_shlibpath_var=no
11137           ;;
11138         *)
11139           hardcode_direct=yes
11140           hardcode_direct_absolute=yes
11141           export_dynamic_flag_spec='${wl}-E'
11142
11143           # hardcode_minus_L: Not really in the search PATH,
11144           # but as the default location of the library.
11145           hardcode_minus_L=yes
11146           ;;
11147         esac
11148       fi
11149       ;;
11150
11151     irix5* | irix6* | nonstopux*)
11152       if test "$GCC" = yes; then
11153         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11154         # Try to use the -exported_symbol ld option, if it does not
11155         # work, assume that -exports_file does not work either and
11156         # implicitly export all symbols.
11157         # This should be the same for all languages, so no per-tag cache variable.
11158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11159 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11160 if ${lt_cv_irix_exported_symbol+:} false; then :
11161   $as_echo_n "(cached) " >&6
11162 else
11163   save_LDFLAGS="$LDFLAGS"
11164            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11165            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h.  */
11167 int foo (void) { return 0; }
11168 _ACEOF
11169 if ac_fn_c_try_link "$LINENO"; then :
11170   lt_cv_irix_exported_symbol=yes
11171 else
11172   lt_cv_irix_exported_symbol=no
11173 fi
11174 rm -f core conftest.err conftest.$ac_objext \
11175     conftest$ac_exeext conftest.$ac_ext
11176            LDFLAGS="$save_LDFLAGS"
11177 fi
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11179 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11180         if test "$lt_cv_irix_exported_symbol" = yes; then
11181           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11182         fi
11183       else
11184         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11185         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11186       fi
11187       archive_cmds_need_lc='no'
11188       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11189       hardcode_libdir_separator=:
11190       inherit_rpath=yes
11191       link_all_deplibs=yes
11192       ;;
11193
11194     netbsd* | netbsdelf*-gnu)
11195       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11196         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11197       else
11198         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11199       fi
11200       hardcode_libdir_flag_spec='-R$libdir'
11201       hardcode_direct=yes
11202       hardcode_shlibpath_var=no
11203       ;;
11204
11205     newsos6)
11206       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11207       hardcode_direct=yes
11208       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11209       hardcode_libdir_separator=:
11210       hardcode_shlibpath_var=no
11211       ;;
11212
11213     *nto* | *qnx*)
11214       ;;
11215
11216     openbsd*)
11217       if test -f /usr/libexec/ld.so; then
11218         hardcode_direct=yes
11219         hardcode_shlibpath_var=no
11220         hardcode_direct_absolute=yes
11221         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11222           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11223           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11224           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11225           export_dynamic_flag_spec='${wl}-E'
11226         else
11227           case $host_os in
11228            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11229              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11230              hardcode_libdir_flag_spec='-R$libdir'
11231              ;;
11232            *)
11233              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11234              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11235              ;;
11236           esac
11237         fi
11238       else
11239         ld_shlibs=no
11240       fi
11241       ;;
11242
11243     os2*)
11244       hardcode_libdir_flag_spec='-L$libdir'
11245       hardcode_minus_L=yes
11246       allow_undefined_flag=unsupported
11247       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11248       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11249       ;;
11250
11251     osf3*)
11252       if test "$GCC" = yes; then
11253         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11254         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11255       else
11256         allow_undefined_flag=' -expect_unresolved \*'
11257         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11258       fi
11259       archive_cmds_need_lc='no'
11260       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11261       hardcode_libdir_separator=:
11262       ;;
11263
11264     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11265       if test "$GCC" = yes; then
11266         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11267         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11268         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11269       else
11270         allow_undefined_flag=' -expect_unresolved \*'
11271         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11272         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11273         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11274
11275         # Both c and cxx compiler support -rpath directly
11276         hardcode_libdir_flag_spec='-rpath $libdir'
11277       fi
11278       archive_cmds_need_lc='no'
11279       hardcode_libdir_separator=:
11280       ;;
11281
11282     solaris*)
11283       no_undefined_flag=' -z defs'
11284       if test "$GCC" = yes; then
11285         wlarc='${wl}'
11286         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11287         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11288           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11289       else
11290         case `$CC -V 2>&1` in
11291         *"Compilers 5.0"*)
11292           wlarc=''
11293           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11294           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11295           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11296           ;;
11297         *)
11298           wlarc='${wl}'
11299           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11300           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11301           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11302           ;;
11303         esac
11304       fi
11305       hardcode_libdir_flag_spec='-R$libdir'
11306       hardcode_shlibpath_var=no
11307       case $host_os in
11308       solaris2.[0-5] | solaris2.[0-5].*) ;;
11309       *)
11310         # The compiler driver will combine and reorder linker options,
11311         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11312         # but is careful enough not to reorder.
11313         # Supported since Solaris 2.6 (maybe 2.5.1?)
11314         if test "$GCC" = yes; then
11315           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11316         else
11317           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11318         fi
11319         ;;
11320       esac
11321       link_all_deplibs=yes
11322       ;;
11323
11324     sunos4*)
11325       if test "x$host_vendor" = xsequent; then
11326         # Use $CC to link under sequent, because it throws in some extra .o
11327         # files that make .init and .fini sections work.
11328         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11329       else
11330         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11331       fi
11332       hardcode_libdir_flag_spec='-L$libdir'
11333       hardcode_direct=yes
11334       hardcode_minus_L=yes
11335       hardcode_shlibpath_var=no
11336       ;;
11337
11338     sysv4)
11339       case $host_vendor in
11340         sni)
11341           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11342           hardcode_direct=yes # is this really true???
11343         ;;
11344         siemens)
11345           ## LD is ld it makes a PLAMLIB
11346           ## CC just makes a GrossModule.
11347           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11348           reload_cmds='$CC -r -o $output$reload_objs'
11349           hardcode_direct=no
11350         ;;
11351         motorola)
11352           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11354         ;;
11355       esac
11356       runpath_var='LD_RUN_PATH'
11357       hardcode_shlibpath_var=no
11358       ;;
11359
11360     sysv4.3*)
11361       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11362       hardcode_shlibpath_var=no
11363       export_dynamic_flag_spec='-Bexport'
11364       ;;
11365
11366     sysv4*MP*)
11367       if test -d /usr/nec; then
11368         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11369         hardcode_shlibpath_var=no
11370         runpath_var=LD_RUN_PATH
11371         hardcode_runpath_var=yes
11372         ld_shlibs=yes
11373       fi
11374       ;;
11375
11376     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11377       no_undefined_flag='${wl}-z,text'
11378       archive_cmds_need_lc=no
11379       hardcode_shlibpath_var=no
11380       runpath_var='LD_RUN_PATH'
11381
11382       if test "$GCC" = yes; then
11383         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11385       else
11386         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11388       fi
11389       ;;
11390
11391     sysv5* | sco3.2v5* | sco5v6*)
11392       # Note: We can NOT use -z defs as we might desire, because we do not
11393       # link with -lc, and that would cause any symbols used from libc to
11394       # always be unresolved, which means just about no library would
11395       # ever link correctly.  If we're not using GNU ld we use -z text
11396       # though, which does catch some bad symbols but isn't as heavy-handed
11397       # as -z defs.
11398       no_undefined_flag='${wl}-z,text'
11399       allow_undefined_flag='${wl}-z,nodefs'
11400       archive_cmds_need_lc=no
11401       hardcode_shlibpath_var=no
11402       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11403       hardcode_libdir_separator=':'
11404       link_all_deplibs=yes
11405       export_dynamic_flag_spec='${wl}-Bexport'
11406       runpath_var='LD_RUN_PATH'
11407
11408       if test "$GCC" = yes; then
11409         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11410         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11411       else
11412         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11413         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11414       fi
11415       ;;
11416
11417     uts4*)
11418       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11419       hardcode_libdir_flag_spec='-L$libdir'
11420       hardcode_shlibpath_var=no
11421       ;;
11422
11423     *)
11424       ld_shlibs=no
11425       ;;
11426     esac
11427
11428     if test x$host_vendor = xsni; then
11429       case $host in
11430       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11431         export_dynamic_flag_spec='${wl}-Blargedynsym'
11432         ;;
11433       esac
11434     fi
11435   fi
11436
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11438 $as_echo "$ld_shlibs" >&6; }
11439 test "$ld_shlibs" = no && can_build_shared=no
11440
11441 with_gnu_ld=$with_gnu_ld
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457 #
11458 # Do we need to explicitly link libc?
11459 #
11460 case "x$archive_cmds_need_lc" in
11461 x|xyes)
11462   # Assume -lc should be added
11463   archive_cmds_need_lc=yes
11464
11465   if test "$enable_shared" = yes && test "$GCC" = yes; then
11466     case $archive_cmds in
11467     *'~'*)
11468       # FIXME: we may have to deal with multi-command sequences.
11469       ;;
11470     '$CC '*)
11471       # Test whether the compiler implicitly links with -lc since on some
11472       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11473       # to ld, don't add -lc before -lgcc.
11474       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11475 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11476 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11477   $as_echo_n "(cached) " >&6
11478 else
11479   $RM conftest*
11480         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11481
11482         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11483   (eval $ac_compile) 2>&5
11484   ac_status=$?
11485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486   test $ac_status = 0; } 2>conftest.err; then
11487           soname=conftest
11488           lib=conftest
11489           libobjs=conftest.$ac_objext
11490           deplibs=
11491           wl=$lt_prog_compiler_wl
11492           pic_flag=$lt_prog_compiler_pic
11493           compiler_flags=-v
11494           linker_flags=-v
11495           verstring=
11496           output_objdir=.
11497           libname=conftest
11498           lt_save_allow_undefined_flag=$allow_undefined_flag
11499           allow_undefined_flag=
11500           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11501   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11502   ac_status=$?
11503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11504   test $ac_status = 0; }
11505           then
11506             lt_cv_archive_cmds_need_lc=no
11507           else
11508             lt_cv_archive_cmds_need_lc=yes
11509           fi
11510           allow_undefined_flag=$lt_save_allow_undefined_flag
11511         else
11512           cat conftest.err 1>&5
11513         fi
11514         $RM conftest*
11515
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11518 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11519       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11520       ;;
11521     esac
11522   fi
11523   ;;
11524 esac
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11679
11680 if test "$GCC" = yes; then
11681   case $host_os in
11682     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11683     *) lt_awk_arg="/^libraries:/" ;;
11684   esac
11685   case $host_os in
11686     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11687     *) lt_sed_strip_eq="s,=/,/,g" ;;
11688   esac
11689   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11690   case $lt_search_path_spec in
11691   *\;*)
11692     # if the path contains ";" then we assume it to be the separator
11693     # otherwise default to the standard path separator (i.e. ":") - it is
11694     # assumed that no part of a normal pathname contains ";" but that should
11695     # okay in the real world where ";" in dirpaths is itself problematic.
11696     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11697     ;;
11698   *)
11699     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11700     ;;
11701   esac
11702   # Ok, now we have the path, separated by spaces, we can step through it
11703   # and add multilib dir if necessary.
11704   lt_tmp_lt_search_path_spec=
11705   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11706   for lt_sys_path in $lt_search_path_spec; do
11707     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11708       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11709     else
11710       test -d "$lt_sys_path" && \
11711         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11712     fi
11713   done
11714   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11715 BEGIN {RS=" "; FS="/|\n";} {
11716   lt_foo="";
11717   lt_count=0;
11718   for (lt_i = NF; lt_i > 0; lt_i--) {
11719     if ($lt_i != "" && $lt_i != ".") {
11720       if ($lt_i == "..") {
11721         lt_count++;
11722       } else {
11723         if (lt_count == 0) {
11724           lt_foo="/" $lt_i lt_foo;
11725         } else {
11726           lt_count--;
11727         }
11728       }
11729     }
11730   }
11731   if (lt_foo != "") { lt_freq[lt_foo]++; }
11732   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11733 }'`
11734   # AWK program above erroneously prepends '/' to C:/dos/paths
11735   # for these hosts.
11736   case $host_os in
11737     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11738       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11739   esac
11740   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11741 else
11742   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11743 fi
11744 library_names_spec=
11745 libname_spec='lib$name'
11746 soname_spec=
11747 shrext_cmds=".so"
11748 postinstall_cmds=
11749 postuninstall_cmds=
11750 finish_cmds=
11751 finish_eval=
11752 shlibpath_var=
11753 shlibpath_overrides_runpath=unknown
11754 version_type=none
11755 dynamic_linker="$host_os ld.so"
11756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11757 need_lib_prefix=unknown
11758 hardcode_into_libs=no
11759
11760 # when you set need_version to no, make sure it does not cause -set_version
11761 # flags to be left without arguments
11762 need_version=unknown
11763
11764 case $host_os in
11765 aix3*)
11766   version_type=linux # correct to gnu/linux during the next big refactor
11767   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11768   shlibpath_var=LIBPATH
11769
11770   # AIX 3 has no versioning support, so we append a major version to the name.
11771   soname_spec='${libname}${release}${shared_ext}$major'
11772   ;;
11773
11774 aix[4-9]*)
11775   version_type=linux # correct to gnu/linux during the next big refactor
11776   need_lib_prefix=no
11777   need_version=no
11778   hardcode_into_libs=yes
11779   if test "$host_cpu" = ia64; then
11780     # AIX 5 supports IA64
11781     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11782     shlibpath_var=LD_LIBRARY_PATH
11783   else
11784     # With GCC up to 2.95.x, collect2 would create an import file
11785     # for dependence libraries.  The import file would start with
11786     # the line `#! .'.  This would cause the generated library to
11787     # depend on `.', always an invalid library.  This was fixed in
11788     # development snapshots of GCC prior to 3.0.
11789     case $host_os in
11790       aix4 | aix4.[01] | aix4.[01].*)
11791       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11792            echo ' yes '
11793            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11794         :
11795       else
11796         can_build_shared=no
11797       fi
11798       ;;
11799     esac
11800     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11801     # soname into executable. Probably we can add versioning support to
11802     # collect2, so additional links can be useful in future.
11803     if test "$aix_use_runtimelinking" = yes; then
11804       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11805       # instead of lib<name>.a to let people know that these are not
11806       # typical AIX shared libraries.
11807       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808     else
11809       # We preserve .a as extension for shared libraries through AIX4.2
11810       # and later when we are not doing run time linking.
11811       library_names_spec='${libname}${release}.a $libname.a'
11812       soname_spec='${libname}${release}${shared_ext}$major'
11813     fi
11814     shlibpath_var=LIBPATH
11815   fi
11816   ;;
11817
11818 amigaos*)
11819   case $host_cpu in
11820   powerpc)
11821     # Since July 2007 AmigaOS4 officially supports .so libraries.
11822     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824     ;;
11825   m68k)
11826     library_names_spec='$libname.ixlibrary $libname.a'
11827     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11828     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'
11829     ;;
11830   esac
11831   ;;
11832
11833 beos*)
11834   library_names_spec='${libname}${shared_ext}'
11835   dynamic_linker="$host_os ld.so"
11836   shlibpath_var=LIBRARY_PATH
11837   ;;
11838
11839 bsdi[45]*)
11840   version_type=linux # correct to gnu/linux during the next big refactor
11841   need_version=no
11842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11843   soname_spec='${libname}${release}${shared_ext}$major'
11844   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11845   shlibpath_var=LD_LIBRARY_PATH
11846   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11847   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11848   # the default ld.so.conf also contains /usr/contrib/lib and
11849   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11850   # libtool to hard-code these into programs
11851   ;;
11852
11853 cygwin* | mingw* | pw32* | cegcc*)
11854   version_type=windows
11855   shrext_cmds=".dll"
11856   need_version=no
11857   need_lib_prefix=no
11858
11859   case $GCC,$cc_basename in
11860   yes,*)
11861     # gcc
11862     library_names_spec='$libname.dll.a'
11863     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11864     postinstall_cmds='base_file=`basename \${file}`~
11865       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11866       dldir=$destdir/`dirname \$dlpath`~
11867       test -d \$dldir || mkdir -p \$dldir~
11868       $install_prog $dir/$dlname \$dldir/$dlname~
11869       chmod a+x \$dldir/$dlname~
11870       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11871         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11872       fi'
11873     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11874       dlpath=$dir/\$dldll~
11875        $RM \$dlpath'
11876     shlibpath_overrides_runpath=yes
11877
11878     case $host_os in
11879     cygwin*)
11880       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11881       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11882
11883       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11884       ;;
11885     mingw* | cegcc*)
11886       # MinGW DLLs use traditional 'lib' prefix
11887       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888       ;;
11889     pw32*)
11890       # pw32 DLLs use 'pw' prefix rather than 'lib'
11891       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11892       ;;
11893     esac
11894     dynamic_linker='Win32 ld.exe'
11895     ;;
11896
11897   *,cl*)
11898     # Native MSVC
11899     libname_spec='$name'
11900     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11901     library_names_spec='${libname}.dll.lib'
11902
11903     case $build_os in
11904     mingw*)
11905       sys_lib_search_path_spec=
11906       lt_save_ifs=$IFS
11907       IFS=';'
11908       for lt_path in $LIB
11909       do
11910         IFS=$lt_save_ifs
11911         # Let DOS variable expansion print the short 8.3 style file name.
11912         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11913         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11914       done
11915       IFS=$lt_save_ifs
11916       # Convert to MSYS style.
11917       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11918       ;;
11919     cygwin*)
11920       # Convert to unix form, then to dos form, then back to unix form
11921       # but this time dos style (no spaces!) so that the unix form looks
11922       # like /cygdrive/c/PROGRA~1:/cygdr...
11923       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11924       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11925       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11926       ;;
11927     *)
11928       sys_lib_search_path_spec="$LIB"
11929       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11930         # It is most probably a Windows format PATH.
11931         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11932       else
11933         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11934       fi
11935       # FIXME: find the short name or the path components, as spaces are
11936       # common. (e.g. "Program Files" -> "PROGRA~1")
11937       ;;
11938     esac
11939
11940     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11941     postinstall_cmds='base_file=`basename \${file}`~
11942       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11943       dldir=$destdir/`dirname \$dlpath`~
11944       test -d \$dldir || mkdir -p \$dldir~
11945       $install_prog $dir/$dlname \$dldir/$dlname'
11946     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11947       dlpath=$dir/\$dldll~
11948        $RM \$dlpath'
11949     shlibpath_overrides_runpath=yes
11950     dynamic_linker='Win32 link.exe'
11951     ;;
11952
11953   *)
11954     # Assume MSVC wrapper
11955     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11956     dynamic_linker='Win32 ld.exe'
11957     ;;
11958   esac
11959   # FIXME: first we should search . and the directory the executable is in
11960   shlibpath_var=PATH
11961   ;;
11962
11963 darwin* | rhapsody*)
11964   dynamic_linker="$host_os dyld"
11965   version_type=darwin
11966   need_lib_prefix=no
11967   need_version=no
11968   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11969   soname_spec='${libname}${release}${major}$shared_ext'
11970   shlibpath_overrides_runpath=yes
11971   shlibpath_var=DYLD_LIBRARY_PATH
11972   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11973
11974   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11975   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11976   ;;
11977
11978 dgux*)
11979   version_type=linux # correct to gnu/linux during the next big refactor
11980   need_lib_prefix=no
11981   need_version=no
11982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11983   soname_spec='${libname}${release}${shared_ext}$major'
11984   shlibpath_var=LD_LIBRARY_PATH
11985   ;;
11986
11987 freebsd* | dragonfly*)
11988   # DragonFly does not have aout.  When/if they implement a new
11989   # versioning mechanism, adjust this.
11990   if test -x /usr/bin/objformat; then
11991     objformat=`/usr/bin/objformat`
11992   else
11993     case $host_os in
11994     freebsd[23].*) objformat=aout ;;
11995     *) objformat=elf ;;
11996     esac
11997   fi
11998   version_type=freebsd-$objformat
11999   case $version_type in
12000     freebsd-elf*)
12001       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12002       need_version=no
12003       need_lib_prefix=no
12004       ;;
12005     freebsd-*)
12006       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12007       need_version=yes
12008       ;;
12009   esac
12010   shlibpath_var=LD_LIBRARY_PATH
12011   case $host_os in
12012   freebsd2.*)
12013     shlibpath_overrides_runpath=yes
12014     ;;
12015   freebsd3.[01]* | freebsdelf3.[01]*)
12016     shlibpath_overrides_runpath=yes
12017     hardcode_into_libs=yes
12018     ;;
12019   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12020   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12021     shlibpath_overrides_runpath=no
12022     hardcode_into_libs=yes
12023     ;;
12024   *) # from 4.6 on, and DragonFly
12025     shlibpath_overrides_runpath=yes
12026     hardcode_into_libs=yes
12027     ;;
12028   esac
12029   ;;
12030
12031 haiku*)
12032   version_type=linux # correct to gnu/linux during the next big refactor
12033   need_lib_prefix=no
12034   need_version=no
12035   dynamic_linker="$host_os runtime_loader"
12036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12037   soname_spec='${libname}${release}${shared_ext}$major'
12038   shlibpath_var=LIBRARY_PATH
12039   shlibpath_overrides_runpath=yes
12040   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12041   hardcode_into_libs=yes
12042   ;;
12043
12044 hpux9* | hpux10* | hpux11*)
12045   # Give a soname corresponding to the major version so that dld.sl refuses to
12046   # link against other versions.
12047   version_type=sunos
12048   need_lib_prefix=no
12049   need_version=no
12050   case $host_cpu in
12051   ia64*)
12052     shrext_cmds='.so'
12053     hardcode_into_libs=yes
12054     dynamic_linker="$host_os dld.so"
12055     shlibpath_var=LD_LIBRARY_PATH
12056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12058     soname_spec='${libname}${release}${shared_ext}$major'
12059     if test "X$HPUX_IA64_MODE" = X32; then
12060       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12061     else
12062       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12063     fi
12064     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12065     ;;
12066   hppa*64*)
12067     shrext_cmds='.sl'
12068     hardcode_into_libs=yes
12069     dynamic_linker="$host_os dld.sl"
12070     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12071     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073     soname_spec='${libname}${release}${shared_ext}$major'
12074     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12075     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12076     ;;
12077   *)
12078     shrext_cmds='.sl'
12079     dynamic_linker="$host_os dld.sl"
12080     shlibpath_var=SHLIB_PATH
12081     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12083     soname_spec='${libname}${release}${shared_ext}$major'
12084     ;;
12085   esac
12086   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12087   postinstall_cmds='chmod 555 $lib'
12088   # or fails outright, so override atomically:
12089   install_override_mode=555
12090   ;;
12091
12092 interix[3-9]*)
12093   version_type=linux # correct to gnu/linux during the next big refactor
12094   need_lib_prefix=no
12095   need_version=no
12096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12097   soname_spec='${libname}${release}${shared_ext}$major'
12098   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12099   shlibpath_var=LD_LIBRARY_PATH
12100   shlibpath_overrides_runpath=no
12101   hardcode_into_libs=yes
12102   ;;
12103
12104 irix5* | irix6* | nonstopux*)
12105   case $host_os in
12106     nonstopux*) version_type=nonstopux ;;
12107     *)
12108         if test "$lt_cv_prog_gnu_ld" = yes; then
12109                 version_type=linux # correct to gnu/linux during the next big refactor
12110         else
12111                 version_type=irix
12112         fi ;;
12113   esac
12114   need_lib_prefix=no
12115   need_version=no
12116   soname_spec='${libname}${release}${shared_ext}$major'
12117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12118   case $host_os in
12119   irix5* | nonstopux*)
12120     libsuff= shlibsuff=
12121     ;;
12122   *)
12123     case $LD in # libtool.m4 will add one of these switches to LD
12124     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12125       libsuff= shlibsuff= libmagic=32-bit;;
12126     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12127       libsuff=32 shlibsuff=N32 libmagic=N32;;
12128     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12129       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12130     *) libsuff= shlibsuff= libmagic=never-match;;
12131     esac
12132     ;;
12133   esac
12134   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12135   shlibpath_overrides_runpath=no
12136   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12137   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12138   hardcode_into_libs=yes
12139   ;;
12140
12141 # No shared lib support for Linux oldld, aout, or coff.
12142 linux*oldld* | linux*aout* | linux*coff*)
12143   dynamic_linker=no
12144   ;;
12145
12146 # This must be glibc/ELF.
12147 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12148   version_type=linux # correct to gnu/linux during the next big refactor
12149   need_lib_prefix=no
12150   need_version=no
12151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12152   soname_spec='${libname}${release}${shared_ext}$major'
12153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12154   shlibpath_var=LD_LIBRARY_PATH
12155   shlibpath_overrides_runpath=no
12156
12157   # Some binutils ld are patched to set DT_RUNPATH
12158   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12159   $as_echo_n "(cached) " >&6
12160 else
12161   lt_cv_shlibpath_overrides_runpath=no
12162     save_LDFLAGS=$LDFLAGS
12163     save_libdir=$libdir
12164     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12165          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h.  */
12168
12169 int
12170 main ()
12171 {
12172
12173   ;
12174   return 0;
12175 }
12176 _ACEOF
12177 if ac_fn_c_try_link "$LINENO"; then :
12178   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12179   lt_cv_shlibpath_overrides_runpath=yes
12180 fi
12181 fi
12182 rm -f core conftest.err conftest.$ac_objext \
12183     conftest$ac_exeext conftest.$ac_ext
12184     LDFLAGS=$save_LDFLAGS
12185     libdir=$save_libdir
12186
12187 fi
12188
12189   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12190
12191   # This implies no fast_install, which is unacceptable.
12192   # Some rework will be needed to allow for fast_install
12193   # before this can be enabled.
12194   hardcode_into_libs=yes
12195
12196   # Append ld.so.conf contents to the search path
12197   if test -f /etc/ld.so.conf; then
12198     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' ' '`
12199     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12200   fi
12201
12202   # We used to test for /lib/ld.so.1 and disable shared libraries on
12203   # powerpc, because MkLinux only supported shared libraries with the
12204   # GNU dynamic linker.  Since this was broken with cross compilers,
12205   # most powerpc-linux boxes support dynamic linking these days and
12206   # people can always --disable-shared, the test was removed, and we
12207   # assume the GNU/Linux dynamic linker is in use.
12208   dynamic_linker='GNU/Linux ld.so'
12209   ;;
12210
12211 netbsdelf*-gnu)
12212   version_type=linux
12213   need_lib_prefix=no
12214   need_version=no
12215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12216   soname_spec='${libname}${release}${shared_ext}$major'
12217   shlibpath_var=LD_LIBRARY_PATH
12218   shlibpath_overrides_runpath=no
12219   hardcode_into_libs=yes
12220   dynamic_linker='NetBSD ld.elf_so'
12221   ;;
12222
12223 netbsd*)
12224   version_type=sunos
12225   need_lib_prefix=no
12226   need_version=no
12227   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12229     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12230     dynamic_linker='NetBSD (a.out) ld.so'
12231   else
12232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12233     soname_spec='${libname}${release}${shared_ext}$major'
12234     dynamic_linker='NetBSD ld.elf_so'
12235   fi
12236   shlibpath_var=LD_LIBRARY_PATH
12237   shlibpath_overrides_runpath=yes
12238   hardcode_into_libs=yes
12239   ;;
12240
12241 newsos6)
12242   version_type=linux # correct to gnu/linux during the next big refactor
12243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244   shlibpath_var=LD_LIBRARY_PATH
12245   shlibpath_overrides_runpath=yes
12246   ;;
12247
12248 *nto* | *qnx*)
12249   version_type=qnx
12250   need_lib_prefix=no
12251   need_version=no
12252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12253   soname_spec='${libname}${release}${shared_ext}$major'
12254   shlibpath_var=LD_LIBRARY_PATH
12255   shlibpath_overrides_runpath=no
12256   hardcode_into_libs=yes
12257   dynamic_linker='ldqnx.so'
12258   ;;
12259
12260 openbsd*)
12261   version_type=sunos
12262   sys_lib_dlsearch_path_spec="/usr/lib"
12263   need_lib_prefix=no
12264   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12265   case $host_os in
12266     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12267     *)                          need_version=no  ;;
12268   esac
12269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12270   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12271   shlibpath_var=LD_LIBRARY_PATH
12272   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12273     case $host_os in
12274       openbsd2.[89] | openbsd2.[89].*)
12275         shlibpath_overrides_runpath=no
12276         ;;
12277       *)
12278         shlibpath_overrides_runpath=yes
12279         ;;
12280       esac
12281   else
12282     shlibpath_overrides_runpath=yes
12283   fi
12284   ;;
12285
12286 os2*)
12287   libname_spec='$name'
12288   shrext_cmds=".dll"
12289   need_lib_prefix=no
12290   library_names_spec='$libname${shared_ext} $libname.a'
12291   dynamic_linker='OS/2 ld.exe'
12292   shlibpath_var=LIBPATH
12293   ;;
12294
12295 osf3* | osf4* | osf5*)
12296   version_type=osf
12297   need_lib_prefix=no
12298   need_version=no
12299   soname_spec='${libname}${release}${shared_ext}$major'
12300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301   shlibpath_var=LD_LIBRARY_PATH
12302   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12303   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12304   ;;
12305
12306 rdos*)
12307   dynamic_linker=no
12308   ;;
12309
12310 solaris*)
12311   version_type=linux # correct to gnu/linux during the next big refactor
12312   need_lib_prefix=no
12313   need_version=no
12314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315   soname_spec='${libname}${release}${shared_ext}$major'
12316   shlibpath_var=LD_LIBRARY_PATH
12317   shlibpath_overrides_runpath=yes
12318   hardcode_into_libs=yes
12319   # ldd complains unless libraries are executable
12320   postinstall_cmds='chmod +x $lib'
12321   ;;
12322
12323 sunos4*)
12324   version_type=sunos
12325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12326   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12327   shlibpath_var=LD_LIBRARY_PATH
12328   shlibpath_overrides_runpath=yes
12329   if test "$with_gnu_ld" = yes; then
12330     need_lib_prefix=no
12331   fi
12332   need_version=yes
12333   ;;
12334
12335 sysv4 | sysv4.3*)
12336   version_type=linux # correct to gnu/linux during the next big refactor
12337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12338   soname_spec='${libname}${release}${shared_ext}$major'
12339   shlibpath_var=LD_LIBRARY_PATH
12340   case $host_vendor in
12341     sni)
12342       shlibpath_overrides_runpath=no
12343       need_lib_prefix=no
12344       runpath_var=LD_RUN_PATH
12345       ;;
12346     siemens)
12347       need_lib_prefix=no
12348       ;;
12349     motorola)
12350       need_lib_prefix=no
12351       need_version=no
12352       shlibpath_overrides_runpath=no
12353       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12354       ;;
12355   esac
12356   ;;
12357
12358 sysv4*MP*)
12359   if test -d /usr/nec ;then
12360     version_type=linux # correct to gnu/linux during the next big refactor
12361     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12362     soname_spec='$libname${shared_ext}.$major'
12363     shlibpath_var=LD_LIBRARY_PATH
12364   fi
12365   ;;
12366
12367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12368   version_type=freebsd-elf
12369   need_lib_prefix=no
12370   need_version=no
12371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12372   soname_spec='${libname}${release}${shared_ext}$major'
12373   shlibpath_var=LD_LIBRARY_PATH
12374   shlibpath_overrides_runpath=yes
12375   hardcode_into_libs=yes
12376   if test "$with_gnu_ld" = yes; then
12377     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12378   else
12379     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12380     case $host_os in
12381       sco3.2v5*)
12382         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12383         ;;
12384     esac
12385   fi
12386   sys_lib_dlsearch_path_spec='/usr/lib'
12387   ;;
12388
12389 tpf*)
12390   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12391   version_type=linux # correct to gnu/linux during the next big refactor
12392   need_lib_prefix=no
12393   need_version=no
12394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12395   shlibpath_var=LD_LIBRARY_PATH
12396   shlibpath_overrides_runpath=no
12397   hardcode_into_libs=yes
12398   ;;
12399
12400 uts4*)
12401   version_type=linux # correct to gnu/linux during the next big refactor
12402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12403   soname_spec='${libname}${release}${shared_ext}$major'
12404   shlibpath_var=LD_LIBRARY_PATH
12405   ;;
12406
12407 *)
12408   dynamic_linker=no
12409   ;;
12410 esac
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12412 $as_echo "$dynamic_linker" >&6; }
12413 test "$dynamic_linker" = no && can_build_shared=no
12414
12415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12416 if test "$GCC" = yes; then
12417   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12418 fi
12419
12420 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12421   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12422 fi
12423 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12424   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12425 fi
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12519 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12520 hardcode_action=
12521 if test -n "$hardcode_libdir_flag_spec" ||
12522    test -n "$runpath_var" ||
12523    test "X$hardcode_automatic" = "Xyes" ; then
12524
12525   # We can hardcode non-existent directories.
12526   if test "$hardcode_direct" != no &&
12527      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12528      # have to relink, otherwise we might link with an installed library
12529      # when we should be linking with a yet-to-be-installed one
12530      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12531      test "$hardcode_minus_L" != no; then
12532     # Linking always hardcodes the temporary library directory.
12533     hardcode_action=relink
12534   else
12535     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12536     hardcode_action=immediate
12537   fi
12538 else
12539   # We cannot hardcode anything, or else we can only hardcode existing
12540   # directories.
12541   hardcode_action=unsupported
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12544 $as_echo "$hardcode_action" >&6; }
12545
12546 if test "$hardcode_action" = relink ||
12547    test "$inherit_rpath" = yes; then
12548   # Fast installation is not supported
12549   enable_fast_install=no
12550 elif test "$shlibpath_overrides_runpath" = yes ||
12551      test "$enable_shared" = no; then
12552   # Fast installation is not necessary
12553   enable_fast_install=needless
12554 fi
12555
12556
12557
12558
12559
12560
12561   if test "x$enable_dlopen" != xyes; then
12562   enable_dlopen=unknown
12563   enable_dlopen_self=unknown
12564   enable_dlopen_self_static=unknown
12565 else
12566   lt_cv_dlopen=no
12567   lt_cv_dlopen_libs=
12568
12569   case $host_os in
12570   beos*)
12571     lt_cv_dlopen="load_add_on"
12572     lt_cv_dlopen_libs=
12573     lt_cv_dlopen_self=yes
12574     ;;
12575
12576   mingw* | pw32* | cegcc*)
12577     lt_cv_dlopen="LoadLibrary"
12578     lt_cv_dlopen_libs=
12579     ;;
12580
12581   cygwin*)
12582     lt_cv_dlopen="dlopen"
12583     lt_cv_dlopen_libs=
12584     ;;
12585
12586   darwin*)
12587   # if libdl is installed we need to link against it
12588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12589 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12590 if ${ac_cv_lib_dl_dlopen+:} false; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   ac_check_lib_save_LIBS=$LIBS
12594 LIBS="-ldl  $LIBS"
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h.  */
12597
12598 /* Override any GCC internal prototype to avoid an error.
12599    Use char because int might match the return type of a GCC
12600    builtin and then its argument prototype would still apply.  */
12601 #ifdef __cplusplus
12602 extern "C"
12603 #endif
12604 char dlopen ();
12605 int
12606 main ()
12607 {
12608 return dlopen ();
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_c_try_link "$LINENO"; then :
12614   ac_cv_lib_dl_dlopen=yes
12615 else
12616   ac_cv_lib_dl_dlopen=no
12617 fi
12618 rm -f core conftest.err conftest.$ac_objext \
12619     conftest$ac_exeext conftest.$ac_ext
12620 LIBS=$ac_check_lib_save_LIBS
12621 fi
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12623 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12624 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12625   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12626 else
12627
12628     lt_cv_dlopen="dyld"
12629     lt_cv_dlopen_libs=
12630     lt_cv_dlopen_self=yes
12631
12632 fi
12633
12634     ;;
12635
12636   *)
12637     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12638 if test "x$ac_cv_func_shl_load" = xyes; then :
12639   lt_cv_dlopen="shl_load"
12640 else
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12642 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12643 if ${ac_cv_lib_dld_shl_load+:} false; then :
12644   $as_echo_n "(cached) " >&6
12645 else
12646   ac_check_lib_save_LIBS=$LIBS
12647 LIBS="-ldld  $LIBS"
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h.  */
12650
12651 /* Override any GCC internal prototype to avoid an error.
12652    Use char because int might match the return type of a GCC
12653    builtin and then its argument prototype would still apply.  */
12654 #ifdef __cplusplus
12655 extern "C"
12656 #endif
12657 char shl_load ();
12658 int
12659 main ()
12660 {
12661 return shl_load ();
12662   ;
12663   return 0;
12664 }
12665 _ACEOF
12666 if ac_fn_c_try_link "$LINENO"; then :
12667   ac_cv_lib_dld_shl_load=yes
12668 else
12669   ac_cv_lib_dld_shl_load=no
12670 fi
12671 rm -f core conftest.err conftest.$ac_objext \
12672     conftest$ac_exeext conftest.$ac_ext
12673 LIBS=$ac_check_lib_save_LIBS
12674 fi
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12676 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12677 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12678   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12679 else
12680   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12681 if test "x$ac_cv_func_dlopen" = xyes; then :
12682   lt_cv_dlopen="dlopen"
12683 else
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12685 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12686 if ${ac_cv_lib_dl_dlopen+:} false; then :
12687   $as_echo_n "(cached) " >&6
12688 else
12689   ac_check_lib_save_LIBS=$LIBS
12690 LIBS="-ldl  $LIBS"
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h.  */
12693
12694 /* Override any GCC internal prototype to avoid an error.
12695    Use char because int might match the return type of a GCC
12696    builtin and then its argument prototype would still apply.  */
12697 #ifdef __cplusplus
12698 extern "C"
12699 #endif
12700 char dlopen ();
12701 int
12702 main ()
12703 {
12704 return dlopen ();
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
12709 if ac_fn_c_try_link "$LINENO"; then :
12710   ac_cv_lib_dl_dlopen=yes
12711 else
12712   ac_cv_lib_dl_dlopen=no
12713 fi
12714 rm -f core conftest.err conftest.$ac_objext \
12715     conftest$ac_exeext conftest.$ac_ext
12716 LIBS=$ac_check_lib_save_LIBS
12717 fi
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12719 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12720 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12721   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12722 else
12723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12724 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12725 if ${ac_cv_lib_svld_dlopen+:} false; then :
12726   $as_echo_n "(cached) " >&6
12727 else
12728   ac_check_lib_save_LIBS=$LIBS
12729 LIBS="-lsvld  $LIBS"
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h.  */
12732
12733 /* Override any GCC internal prototype to avoid an error.
12734    Use char because int might match the return type of a GCC
12735    builtin and then its argument prototype would still apply.  */
12736 #ifdef __cplusplus
12737 extern "C"
12738 #endif
12739 char dlopen ();
12740 int
12741 main ()
12742 {
12743 return dlopen ();
12744   ;
12745   return 0;
12746 }
12747 _ACEOF
12748 if ac_fn_c_try_link "$LINENO"; then :
12749   ac_cv_lib_svld_dlopen=yes
12750 else
12751   ac_cv_lib_svld_dlopen=no
12752 fi
12753 rm -f core conftest.err conftest.$ac_objext \
12754     conftest$ac_exeext conftest.$ac_ext
12755 LIBS=$ac_check_lib_save_LIBS
12756 fi
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12758 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12759 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12760   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12761 else
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12763 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12764 if ${ac_cv_lib_dld_dld_link+:} false; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767   ac_check_lib_save_LIBS=$LIBS
12768 LIBS="-ldld  $LIBS"
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h.  */
12771
12772 /* Override any GCC internal prototype to avoid an error.
12773    Use char because int might match the return type of a GCC
12774    builtin and then its argument prototype would still apply.  */
12775 #ifdef __cplusplus
12776 extern "C"
12777 #endif
12778 char dld_link ();
12779 int
12780 main ()
12781 {
12782 return dld_link ();
12783   ;
12784   return 0;
12785 }
12786 _ACEOF
12787 if ac_fn_c_try_link "$LINENO"; then :
12788   ac_cv_lib_dld_dld_link=yes
12789 else
12790   ac_cv_lib_dld_dld_link=no
12791 fi
12792 rm -f core conftest.err conftest.$ac_objext \
12793     conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12795 fi
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12797 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12798 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12799   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12800 fi
12801
12802
12803 fi
12804
12805
12806 fi
12807
12808
12809 fi
12810
12811
12812 fi
12813
12814
12815 fi
12816
12817     ;;
12818   esac
12819
12820   if test "x$lt_cv_dlopen" != xno; then
12821     enable_dlopen=yes
12822   else
12823     enable_dlopen=no
12824   fi
12825
12826   case $lt_cv_dlopen in
12827   dlopen)
12828     save_CPPFLAGS="$CPPFLAGS"
12829     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12830
12831     save_LDFLAGS="$LDFLAGS"
12832     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12833
12834     save_LIBS="$LIBS"
12835     LIBS="$lt_cv_dlopen_libs $LIBS"
12836
12837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12838 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12839 if ${lt_cv_dlopen_self+:} false; then :
12840   $as_echo_n "(cached) " >&6
12841 else
12842           if test "$cross_compiling" = yes; then :
12843   lt_cv_dlopen_self=cross
12844 else
12845   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12846   lt_status=$lt_dlunknown
12847   cat > conftest.$ac_ext <<_LT_EOF
12848 #line $LINENO "configure"
12849 #include "confdefs.h"
12850
12851 #if HAVE_DLFCN_H
12852 #include <dlfcn.h>
12853 #endif
12854
12855 #include <stdio.h>
12856
12857 #ifdef RTLD_GLOBAL
12858 #  define LT_DLGLOBAL           RTLD_GLOBAL
12859 #else
12860 #  ifdef DL_GLOBAL
12861 #    define LT_DLGLOBAL         DL_GLOBAL
12862 #  else
12863 #    define LT_DLGLOBAL         0
12864 #  endif
12865 #endif
12866
12867 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12868    find out it does not work in some platform. */
12869 #ifndef LT_DLLAZY_OR_NOW
12870 #  ifdef RTLD_LAZY
12871 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12872 #  else
12873 #    ifdef DL_LAZY
12874 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12875 #    else
12876 #      ifdef RTLD_NOW
12877 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12878 #      else
12879 #        ifdef DL_NOW
12880 #          define LT_DLLAZY_OR_NOW      DL_NOW
12881 #        else
12882 #          define LT_DLLAZY_OR_NOW      0
12883 #        endif
12884 #      endif
12885 #    endif
12886 #  endif
12887 #endif
12888
12889 /* When -fvisbility=hidden is used, assume the code has been annotated
12890    correspondingly for the symbols needed.  */
12891 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12892 int fnord () __attribute__((visibility("default")));
12893 #endif
12894
12895 int fnord () { return 42; }
12896 int main ()
12897 {
12898   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12899   int status = $lt_dlunknown;
12900
12901   if (self)
12902     {
12903       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12904       else
12905         {
12906           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12907           else puts (dlerror ());
12908         }
12909       /* dlclose (self); */
12910     }
12911   else
12912     puts (dlerror ());
12913
12914   return status;
12915 }
12916 _LT_EOF
12917   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12918   (eval $ac_link) 2>&5
12919   ac_status=$?
12920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12921   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12922     (./conftest; exit; ) >&5 2>/dev/null
12923     lt_status=$?
12924     case x$lt_status in
12925       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12926       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12927       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12928     esac
12929   else :
12930     # compilation failed
12931     lt_cv_dlopen_self=no
12932   fi
12933 fi
12934 rm -fr conftest*
12935
12936
12937 fi
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12939 $as_echo "$lt_cv_dlopen_self" >&6; }
12940
12941     if test "x$lt_cv_dlopen_self" = xyes; then
12942       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12943       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12944 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12945 if ${lt_cv_dlopen_self_static+:} false; then :
12946   $as_echo_n "(cached) " >&6
12947 else
12948           if test "$cross_compiling" = yes; then :
12949   lt_cv_dlopen_self_static=cross
12950 else
12951   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12952   lt_status=$lt_dlunknown
12953   cat > conftest.$ac_ext <<_LT_EOF
12954 #line $LINENO "configure"
12955 #include "confdefs.h"
12956
12957 #if HAVE_DLFCN_H
12958 #include <dlfcn.h>
12959 #endif
12960
12961 #include <stdio.h>
12962
12963 #ifdef RTLD_GLOBAL
12964 #  define LT_DLGLOBAL           RTLD_GLOBAL
12965 #else
12966 #  ifdef DL_GLOBAL
12967 #    define LT_DLGLOBAL         DL_GLOBAL
12968 #  else
12969 #    define LT_DLGLOBAL         0
12970 #  endif
12971 #endif
12972
12973 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12974    find out it does not work in some platform. */
12975 #ifndef LT_DLLAZY_OR_NOW
12976 #  ifdef RTLD_LAZY
12977 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12978 #  else
12979 #    ifdef DL_LAZY
12980 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12981 #    else
12982 #      ifdef RTLD_NOW
12983 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12984 #      else
12985 #        ifdef DL_NOW
12986 #          define LT_DLLAZY_OR_NOW      DL_NOW
12987 #        else
12988 #          define LT_DLLAZY_OR_NOW      0
12989 #        endif
12990 #      endif
12991 #    endif
12992 #  endif
12993 #endif
12994
12995 /* When -fvisbility=hidden is used, assume the code has been annotated
12996    correspondingly for the symbols needed.  */
12997 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12998 int fnord () __attribute__((visibility("default")));
12999 #endif
13000
13001 int fnord () { return 42; }
13002 int main ()
13003 {
13004   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13005   int status = $lt_dlunknown;
13006
13007   if (self)
13008     {
13009       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13010       else
13011         {
13012           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13013           else puts (dlerror ());
13014         }
13015       /* dlclose (self); */
13016     }
13017   else
13018     puts (dlerror ());
13019
13020   return status;
13021 }
13022 _LT_EOF
13023   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13024   (eval $ac_link) 2>&5
13025   ac_status=$?
13026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13027   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13028     (./conftest; exit; ) >&5 2>/dev/null
13029     lt_status=$?
13030     case x$lt_status in
13031       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13032       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13033       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13034     esac
13035   else :
13036     # compilation failed
13037     lt_cv_dlopen_self_static=no
13038   fi
13039 fi
13040 rm -fr conftest*
13041
13042
13043 fi
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13045 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13046     fi
13047
13048     CPPFLAGS="$save_CPPFLAGS"
13049     LDFLAGS="$save_LDFLAGS"
13050     LIBS="$save_LIBS"
13051     ;;
13052   esac
13053
13054   case $lt_cv_dlopen_self in
13055   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13056   *) enable_dlopen_self=unknown ;;
13057   esac
13058
13059   case $lt_cv_dlopen_self_static in
13060   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13061   *) enable_dlopen_self_static=unknown ;;
13062   esac
13063 fi
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081 striplib=
13082 old_striplib=
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13084 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13085 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13086   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13087   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13089 $as_echo "yes" >&6; }
13090 else
13091 # FIXME - insert some real tests, host_os isn't really good enough
13092   case $host_os in
13093   darwin*)
13094     if test -n "$STRIP" ; then
13095       striplib="$STRIP -x"
13096       old_striplib="$STRIP -S"
13097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13098 $as_echo "yes" >&6; }
13099     else
13100       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13102     fi
13103     ;;
13104   *)
13105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107     ;;
13108   esac
13109 fi
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122   # Report which library types will actually be built
13123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13124 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13126 $as_echo "$can_build_shared" >&6; }
13127
13128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13129 $as_echo_n "checking whether to build shared libraries... " >&6; }
13130   test "$can_build_shared" = "no" && enable_shared=no
13131
13132   # On AIX, shared libraries and static libraries use the same namespace, and
13133   # are all built from PIC.
13134   case $host_os in
13135   aix3*)
13136     test "$enable_shared" = yes && enable_static=no
13137     if test -n "$RANLIB"; then
13138       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13139       postinstall_cmds='$RANLIB $lib'
13140     fi
13141     ;;
13142
13143   aix[4-9]*)
13144     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13145       test "$enable_shared" = yes && enable_static=no
13146     fi
13147     ;;
13148   esac
13149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13150 $as_echo "$enable_shared" >&6; }
13151
13152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13153 $as_echo_n "checking whether to build static libraries... " >&6; }
13154   # Make sure either enable_shared or enable_static is yes.
13155   test "$enable_shared" = yes || enable_static=yes
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13157 $as_echo "$enable_static" >&6; }
13158
13159
13160
13161
13162 fi
13163 ac_ext=c
13164 ac_cpp='$CPP $CPPFLAGS'
13165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13168
13169 CC="$lt_save_CC"
13170
13171       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13172     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13173     (test "X$CXX" != "Xg++"))) ; then
13174   ac_ext=cpp
13175 ac_cpp='$CXXCPP $CPPFLAGS'
13176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13180 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13181 if test -z "$CXXCPP"; then
13182   if ${ac_cv_prog_CXXCPP+:} false; then :
13183   $as_echo_n "(cached) " >&6
13184 else
13185       # Double quotes because CXXCPP needs to be expanded
13186     for CXXCPP in "$CXX -E" "/lib/cpp"
13187     do
13188       ac_preproc_ok=false
13189 for ac_cxx_preproc_warn_flag in '' yes
13190 do
13191   # Use a header file that comes with gcc, so configuring glibc
13192   # with a fresh cross-compiler works.
13193   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13194   # <limits.h> exists even on freestanding compilers.
13195   # On the NeXT, cc -E runs the code through the compiler's parser,
13196   # not just through cpp. "Syntax error" is here to catch this case.
13197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h.  */
13199 #ifdef __STDC__
13200 # include <limits.h>
13201 #else
13202 # include <assert.h>
13203 #endif
13204                      Syntax error
13205 _ACEOF
13206 if ac_fn_cxx_try_cpp "$LINENO"; then :
13207
13208 else
13209   # Broken: fails on valid input.
13210 continue
13211 fi
13212 rm -f conftest.err conftest.i conftest.$ac_ext
13213
13214   # OK, works on sane cases.  Now check whether nonexistent headers
13215   # can be detected and how.
13216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h.  */
13218 #include <ac_nonexistent.h>
13219 _ACEOF
13220 if ac_fn_cxx_try_cpp "$LINENO"; then :
13221   # Broken: success on invalid input.
13222 continue
13223 else
13224   # Passes both tests.
13225 ac_preproc_ok=:
13226 break
13227 fi
13228 rm -f conftest.err conftest.i conftest.$ac_ext
13229
13230 done
13231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13232 rm -f conftest.i conftest.err conftest.$ac_ext
13233 if $ac_preproc_ok; then :
13234   break
13235 fi
13236
13237     done
13238     ac_cv_prog_CXXCPP=$CXXCPP
13239
13240 fi
13241   CXXCPP=$ac_cv_prog_CXXCPP
13242 else
13243   ac_cv_prog_CXXCPP=$CXXCPP
13244 fi
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13246 $as_echo "$CXXCPP" >&6; }
13247 ac_preproc_ok=false
13248 for ac_cxx_preproc_warn_flag in '' yes
13249 do
13250   # Use a header file that comes with gcc, so configuring glibc
13251   # with a fresh cross-compiler works.
13252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13253   # <limits.h> exists even on freestanding compilers.
13254   # On the NeXT, cc -E runs the code through the compiler's parser,
13255   # not just through cpp. "Syntax error" is here to catch this case.
13256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h.  */
13258 #ifdef __STDC__
13259 # include <limits.h>
13260 #else
13261 # include <assert.h>
13262 #endif
13263                      Syntax error
13264 _ACEOF
13265 if ac_fn_cxx_try_cpp "$LINENO"; then :
13266
13267 else
13268   # Broken: fails on valid input.
13269 continue
13270 fi
13271 rm -f conftest.err conftest.i conftest.$ac_ext
13272
13273   # OK, works on sane cases.  Now check whether nonexistent headers
13274   # can be detected and how.
13275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h.  */
13277 #include <ac_nonexistent.h>
13278 _ACEOF
13279 if ac_fn_cxx_try_cpp "$LINENO"; then :
13280   # Broken: success on invalid input.
13281 continue
13282 else
13283   # Passes both tests.
13284 ac_preproc_ok=:
13285 break
13286 fi
13287 rm -f conftest.err conftest.i conftest.$ac_ext
13288
13289 done
13290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13291 rm -f conftest.i conftest.err conftest.$ac_ext
13292 if $ac_preproc_ok; then :
13293
13294 else
13295   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13297 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13298 See \`config.log' for more details" "$LINENO" 5; }
13299 fi
13300
13301 ac_ext=c
13302 ac_cpp='$CPP $CPPFLAGS'
13303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13306
13307 else
13308   _lt_caught_CXX_error=yes
13309 fi
13310
13311 ac_ext=cpp
13312 ac_cpp='$CXXCPP $CPPFLAGS'
13313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13316
13317 archive_cmds_need_lc_CXX=no
13318 allow_undefined_flag_CXX=
13319 always_export_symbols_CXX=no
13320 archive_expsym_cmds_CXX=
13321 compiler_needs_object_CXX=no
13322 export_dynamic_flag_spec_CXX=
13323 hardcode_direct_CXX=no
13324 hardcode_direct_absolute_CXX=no
13325 hardcode_libdir_flag_spec_CXX=
13326 hardcode_libdir_separator_CXX=
13327 hardcode_minus_L_CXX=no
13328 hardcode_shlibpath_var_CXX=unsupported
13329 hardcode_automatic_CXX=no
13330 inherit_rpath_CXX=no
13331 module_cmds_CXX=
13332 module_expsym_cmds_CXX=
13333 link_all_deplibs_CXX=unknown
13334 old_archive_cmds_CXX=$old_archive_cmds
13335 reload_flag_CXX=$reload_flag
13336 reload_cmds_CXX=$reload_cmds
13337 no_undefined_flag_CXX=
13338 whole_archive_flag_spec_CXX=
13339 enable_shared_with_static_runtimes_CXX=no
13340
13341 # Source file extension for C++ test sources.
13342 ac_ext=cpp
13343
13344 # Object file extension for compiled C++ test sources.
13345 objext=o
13346 objext_CXX=$objext
13347
13348 # No sense in running all these tests if we already determined that
13349 # the CXX compiler isn't working.  Some variables (like enable_shared)
13350 # are currently assumed to apply to all compilers on this platform,
13351 # and will be corrupted by setting them based on a non-working compiler.
13352 if test "$_lt_caught_CXX_error" != yes; then
13353   # Code to be used in simple compile tests
13354   lt_simple_compile_test_code="int some_variable = 0;"
13355
13356   # Code to be used in simple link tests
13357   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13358
13359   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13360
13361
13362
13363
13364
13365
13366 # If no C compiler was specified, use CC.
13367 LTCC=${LTCC-"$CC"}
13368
13369 # If no C compiler flags were specified, use CFLAGS.
13370 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13371
13372 # Allow CC to be a program name with arguments.
13373 compiler=$CC
13374
13375
13376   # save warnings/boilerplate of simple test code
13377   ac_outfile=conftest.$ac_objext
13378 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13379 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13380 _lt_compiler_boilerplate=`cat conftest.err`
13381 $RM conftest*
13382
13383   ac_outfile=conftest.$ac_objext
13384 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13385 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13386 _lt_linker_boilerplate=`cat conftest.err`
13387 $RM -r conftest*
13388
13389
13390   # Allow CC to be a program name with arguments.
13391   lt_save_CC=$CC
13392   lt_save_CFLAGS=$CFLAGS
13393   lt_save_LD=$LD
13394   lt_save_GCC=$GCC
13395   GCC=$GXX
13396   lt_save_with_gnu_ld=$with_gnu_ld
13397   lt_save_path_LD=$lt_cv_path_LD
13398   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13399     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13400   else
13401     $as_unset lt_cv_prog_gnu_ld
13402   fi
13403   if test -n "${lt_cv_path_LDCXX+set}"; then
13404     lt_cv_path_LD=$lt_cv_path_LDCXX
13405   else
13406     $as_unset lt_cv_path_LD
13407   fi
13408   test -z "${LDCXX+set}" || LD=$LDCXX
13409   CC=${CXX-"c++"}
13410   CFLAGS=$CXXFLAGS
13411   compiler=$CC
13412   compiler_CXX=$CC
13413   for cc_temp in $compiler""; do
13414   case $cc_temp in
13415     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13416     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13417     \-*) ;;
13418     *) break;;
13419   esac
13420 done
13421 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13422
13423
13424   if test -n "$compiler"; then
13425     # We don't want -fno-exception when compiling C++ code, so set the
13426     # no_builtin_flag separately
13427     if test "$GXX" = yes; then
13428       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13429     else
13430       lt_prog_compiler_no_builtin_flag_CXX=
13431     fi
13432
13433     if test "$GXX" = yes; then
13434       # Set up default GNU C++ configuration
13435
13436
13437
13438 # Check whether --with-gnu-ld was given.
13439 if test "${with_gnu_ld+set}" = set; then :
13440   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13441 else
13442   with_gnu_ld=no
13443 fi
13444
13445 ac_prog=ld
13446 if test "$GCC" = yes; then
13447   # Check if gcc -print-prog-name=ld gives a path.
13448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13449 $as_echo_n "checking for ld used by $CC... " >&6; }
13450   case $host in
13451   *-*-mingw*)
13452     # gcc leaves a trailing carriage return which upsets mingw
13453     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13454   *)
13455     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13456   esac
13457   case $ac_prog in
13458     # Accept absolute paths.
13459     [\\/]* | ?:[\\/]*)
13460       re_direlt='/[^/][^/]*/\.\./'
13461       # Canonicalize the pathname of ld
13462       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13463       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13464         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13465       done
13466       test -z "$LD" && LD="$ac_prog"
13467       ;;
13468   "")
13469     # If it fails, then pretend we aren't using GCC.
13470     ac_prog=ld
13471     ;;
13472   *)
13473     # If it is relative, then search for the first ld in PATH.
13474     with_gnu_ld=unknown
13475     ;;
13476   esac
13477 elif test "$with_gnu_ld" = yes; then
13478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13479 $as_echo_n "checking for GNU ld... " >&6; }
13480 else
13481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13482 $as_echo_n "checking for non-GNU ld... " >&6; }
13483 fi
13484 if ${lt_cv_path_LD+:} false; then :
13485   $as_echo_n "(cached) " >&6
13486 else
13487   if test -z "$LD"; then
13488   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13489   for ac_dir in $PATH; do
13490     IFS="$lt_save_ifs"
13491     test -z "$ac_dir" && ac_dir=.
13492     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13493       lt_cv_path_LD="$ac_dir/$ac_prog"
13494       # Check to see if the program is GNU ld.  I'd rather use --version,
13495       # but apparently some variants of GNU ld only accept -v.
13496       # Break only if it was the GNU/non-GNU ld that we prefer.
13497       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13498       *GNU* | *'with BFD'*)
13499         test "$with_gnu_ld" != no && break
13500         ;;
13501       *)
13502         test "$with_gnu_ld" != yes && break
13503         ;;
13504       esac
13505     fi
13506   done
13507   IFS="$lt_save_ifs"
13508 else
13509   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13510 fi
13511 fi
13512
13513 LD="$lt_cv_path_LD"
13514 if test -n "$LD"; then
13515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13516 $as_echo "$LD" >&6; }
13517 else
13518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519 $as_echo "no" >&6; }
13520 fi
13521 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13523 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13524 if ${lt_cv_prog_gnu_ld+:} false; then :
13525   $as_echo_n "(cached) " >&6
13526 else
13527   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13528 case `$LD -v 2>&1 </dev/null` in
13529 *GNU* | *'with BFD'*)
13530   lt_cv_prog_gnu_ld=yes
13531   ;;
13532 *)
13533   lt_cv_prog_gnu_ld=no
13534   ;;
13535 esac
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13538 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13539 with_gnu_ld=$lt_cv_prog_gnu_ld
13540
13541
13542
13543
13544
13545
13546
13547       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13548       # archiving commands below assume that GNU ld is being used.
13549       if test "$with_gnu_ld" = yes; then
13550         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13551         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'
13552
13553         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13554         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13555
13556         # If archive_cmds runs LD, not CC, wlarc should be empty
13557         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13558         #     investigate it a little bit more. (MM)
13559         wlarc='${wl}'
13560
13561         # ancient GNU ld didn't support --whole-archive et. al.
13562         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13563           $GREP 'no-whole-archive' > /dev/null; then
13564           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13565         else
13566           whole_archive_flag_spec_CXX=
13567         fi
13568       else
13569         with_gnu_ld=no
13570         wlarc=
13571
13572         # A generic and very simple default shared library creation
13573         # command for GNU C++ for the case where it uses the native
13574         # linker, instead of GNU ld.  If possible, this setting should
13575         # overridden to take advantage of the native linker features on
13576         # the platform it is being used on.
13577         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13578       fi
13579
13580       # Commands to make compiler produce verbose output that lists
13581       # what "hidden" libraries, object files and flags are used when
13582       # linking a shared library.
13583       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13584
13585     else
13586       GXX=no
13587       with_gnu_ld=no
13588       wlarc=
13589     fi
13590
13591     # PORTME: fill in a description of your system's C++ link characteristics
13592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13593 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13594     ld_shlibs_CXX=yes
13595     case $host_os in
13596       aix3*)
13597         # FIXME: insert proper C++ library support
13598         ld_shlibs_CXX=no
13599         ;;
13600       aix[4-9]*)
13601         if test "$host_cpu" = ia64; then
13602           # On IA64, the linker does run time linking by default, so we don't
13603           # have to do anything special.
13604           aix_use_runtimelinking=no
13605           exp_sym_flag='-Bexport'
13606           no_entry_flag=""
13607         else
13608           aix_use_runtimelinking=no
13609
13610           # Test if we are trying to use run time linking or normal
13611           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13612           # need to do runtime linking.
13613           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13614             for ld_flag in $LDFLAGS; do
13615               case $ld_flag in
13616               *-brtl*)
13617                 aix_use_runtimelinking=yes
13618                 break
13619                 ;;
13620               esac
13621             done
13622             ;;
13623           esac
13624
13625           exp_sym_flag='-bexport'
13626           no_entry_flag='-bnoentry'
13627         fi
13628
13629         # When large executables or shared objects are built, AIX ld can
13630         # have problems creating the table of contents.  If linking a library
13631         # or program results in "error TOC overflow" add -mminimal-toc to
13632         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13633         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13634
13635         archive_cmds_CXX=''
13636         hardcode_direct_CXX=yes
13637         hardcode_direct_absolute_CXX=yes
13638         hardcode_libdir_separator_CXX=':'
13639         link_all_deplibs_CXX=yes
13640         file_list_spec_CXX='${wl}-f,'
13641
13642         if test "$GXX" = yes; then
13643           case $host_os in aix4.[012]|aix4.[012].*)
13644           # We only want to do this on AIX 4.2 and lower, the check
13645           # below for broken collect2 doesn't work under 4.3+
13646           collect2name=`${CC} -print-prog-name=collect2`
13647           if test -f "$collect2name" &&
13648              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13649           then
13650             # We have reworked collect2
13651             :
13652           else
13653             # We have old collect2
13654             hardcode_direct_CXX=unsupported
13655             # It fails to find uninstalled libraries when the uninstalled
13656             # path is not listed in the libpath.  Setting hardcode_minus_L
13657             # to unsupported forces relinking
13658             hardcode_minus_L_CXX=yes
13659             hardcode_libdir_flag_spec_CXX='-L$libdir'
13660             hardcode_libdir_separator_CXX=
13661           fi
13662           esac
13663           shared_flag='-shared'
13664           if test "$aix_use_runtimelinking" = yes; then
13665             shared_flag="$shared_flag "'${wl}-G'
13666           fi
13667         else
13668           # not using gcc
13669           if test "$host_cpu" = ia64; then
13670           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13671           # chokes on -Wl,-G. The following line is correct:
13672           shared_flag='-G'
13673           else
13674             if test "$aix_use_runtimelinking" = yes; then
13675               shared_flag='${wl}-G'
13676             else
13677               shared_flag='${wl}-bM:SRE'
13678             fi
13679           fi
13680         fi
13681
13682         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13683         # It seems that -bexpall does not export symbols beginning with
13684         # underscore (_), so it is better to generate a list of symbols to
13685         # export.
13686         always_export_symbols_CXX=yes
13687         if test "$aix_use_runtimelinking" = yes; then
13688           # Warning - without using the other runtime loading flags (-brtl),
13689           # -berok will link without error, but may produce a broken library.
13690           allow_undefined_flag_CXX='-berok'
13691           # Determine the default libpath from the value encoded in an empty
13692           # executable.
13693           if test "${lt_cv_aix_libpath+set}" = set; then
13694   aix_libpath=$lt_cv_aix_libpath
13695 else
13696   if ${lt_cv_aix_libpath__CXX+:} false; then :
13697   $as_echo_n "(cached) " >&6
13698 else
13699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h.  */
13701
13702 int
13703 main ()
13704 {
13705
13706   ;
13707   return 0;
13708 }
13709 _ACEOF
13710 if ac_fn_cxx_try_link "$LINENO"; then :
13711
13712   lt_aix_libpath_sed='
13713       /Import File Strings/,/^$/ {
13714           /^0/ {
13715               s/^0  *\([^ ]*\) *$/\1/
13716               p
13717           }
13718       }'
13719   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13720   # Check for a 64-bit object if we didn't find anything.
13721   if test -z "$lt_cv_aix_libpath__CXX"; then
13722     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13723   fi
13724 fi
13725 rm -f core conftest.err conftest.$ac_objext \
13726     conftest$ac_exeext conftest.$ac_ext
13727   if test -z "$lt_cv_aix_libpath__CXX"; then
13728     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13729   fi
13730
13731 fi
13732
13733   aix_libpath=$lt_cv_aix_libpath__CXX
13734 fi
13735
13736           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13737
13738           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"
13739         else
13740           if test "$host_cpu" = ia64; then
13741             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13742             allow_undefined_flag_CXX="-z nodefs"
13743             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"
13744           else
13745             # Determine the default libpath from the value encoded in an
13746             # empty executable.
13747             if test "${lt_cv_aix_libpath+set}" = set; then
13748   aix_libpath=$lt_cv_aix_libpath
13749 else
13750   if ${lt_cv_aix_libpath__CXX+:} false; then :
13751   $as_echo_n "(cached) " >&6
13752 else
13753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h.  */
13755
13756 int
13757 main ()
13758 {
13759
13760   ;
13761   return 0;
13762 }
13763 _ACEOF
13764 if ac_fn_cxx_try_link "$LINENO"; then :
13765
13766   lt_aix_libpath_sed='
13767       /Import File Strings/,/^$/ {
13768           /^0/ {
13769               s/^0  *\([^ ]*\) *$/\1/
13770               p
13771           }
13772       }'
13773   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13774   # Check for a 64-bit object if we didn't find anything.
13775   if test -z "$lt_cv_aix_libpath__CXX"; then
13776     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13777   fi
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext \
13780     conftest$ac_exeext conftest.$ac_ext
13781   if test -z "$lt_cv_aix_libpath__CXX"; then
13782     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13783   fi
13784
13785 fi
13786
13787   aix_libpath=$lt_cv_aix_libpath__CXX
13788 fi
13789
13790             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13791             # Warning - without using the other run time loading flags,
13792             # -berok will link without error, but may produce a broken library.
13793             no_undefined_flag_CXX=' ${wl}-bernotok'
13794             allow_undefined_flag_CXX=' ${wl}-berok'
13795             if test "$with_gnu_ld" = yes; then
13796               # We only use this code for GNU lds that support --whole-archive.
13797               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13798             else
13799               # Exported symbols can be pulled into shared objects from archives
13800               whole_archive_flag_spec_CXX='$convenience'
13801             fi
13802             archive_cmds_need_lc_CXX=yes
13803             # This is similar to how AIX traditionally builds its shared
13804             # libraries.
13805             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'
13806           fi
13807         fi
13808         ;;
13809
13810       beos*)
13811         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13812           allow_undefined_flag_CXX=unsupported
13813           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13814           # support --undefined.  This deserves some investigation.  FIXME
13815           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816         else
13817           ld_shlibs_CXX=no
13818         fi
13819         ;;
13820
13821       chorus*)
13822         case $cc_basename in
13823           *)
13824           # FIXME: insert proper C++ library support
13825           ld_shlibs_CXX=no
13826           ;;
13827         esac
13828         ;;
13829
13830       cygwin* | mingw* | pw32* | cegcc*)
13831         case $GXX,$cc_basename in
13832         ,cl* | no,cl*)
13833           # Native MSVC
13834           # hardcode_libdir_flag_spec is actually meaningless, as there is
13835           # no search path for DLLs.
13836           hardcode_libdir_flag_spec_CXX=' '
13837           allow_undefined_flag_CXX=unsupported
13838           always_export_symbols_CXX=yes
13839           file_list_spec_CXX='@'
13840           # Tell ltmain to make .lib files, not .a files.
13841           libext=lib
13842           # Tell ltmain to make .dll files, not .so files.
13843           shrext_cmds=".dll"
13844           # FIXME: Setting linknames here is a bad hack.
13845           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13846           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13847               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13848             else
13849               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13850             fi~
13851             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13852             linknames='
13853           # The linker will not automatically build a static lib if we build a DLL.
13854           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13855           enable_shared_with_static_runtimes_CXX=yes
13856           # Don't use ranlib
13857           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13858           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13859             lt_tool_outputfile="@TOOL_OUTPUT@"~
13860             case $lt_outputfile in
13861               *.exe|*.EXE) ;;
13862               *)
13863                 lt_outputfile="$lt_outputfile.exe"
13864                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13865                 ;;
13866             esac~
13867             func_to_tool_file "$lt_outputfile"~
13868             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13869               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13870               $RM "$lt_outputfile.manifest";
13871             fi'
13872           ;;
13873         *)
13874           # g++
13875           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13876           # as there is no search path for DLLs.
13877           hardcode_libdir_flag_spec_CXX='-L$libdir'
13878           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13879           allow_undefined_flag_CXX=unsupported
13880           always_export_symbols_CXX=no
13881           enable_shared_with_static_runtimes_CXX=yes
13882
13883           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13884             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'
13885             # If the export-symbols file already is a .def file (1st line
13886             # is EXPORTS), use it as is; otherwise, prepend...
13887             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13888               cp $export_symbols $output_objdir/$soname.def;
13889             else
13890               echo EXPORTS > $output_objdir/$soname.def;
13891               cat $export_symbols >> $output_objdir/$soname.def;
13892             fi~
13893             $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'
13894           else
13895             ld_shlibs_CXX=no
13896           fi
13897           ;;
13898         esac
13899         ;;
13900       darwin* | rhapsody*)
13901
13902
13903   archive_cmds_need_lc_CXX=no
13904   hardcode_direct_CXX=no
13905   hardcode_automatic_CXX=yes
13906   hardcode_shlibpath_var_CXX=unsupported
13907   if test "$lt_cv_ld_force_load" = "yes"; then
13908     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\"`'
13909
13910   else
13911     whole_archive_flag_spec_CXX=''
13912   fi
13913   link_all_deplibs_CXX=yes
13914   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13915   case $cc_basename in
13916      ifort*) _lt_dar_can_shared=yes ;;
13917      *) _lt_dar_can_shared=$GCC ;;
13918   esac
13919   if test "$_lt_dar_can_shared" = "yes"; then
13920     output_verbose_link_cmd=func_echo_all
13921     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}"
13922     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13923     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}"
13924     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}"
13925        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13926       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}"
13927       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}"
13928     fi
13929
13930   else
13931   ld_shlibs_CXX=no
13932   fi
13933
13934         ;;
13935
13936       dgux*)
13937         case $cc_basename in
13938           ec++*)
13939             # FIXME: insert proper C++ library support
13940             ld_shlibs_CXX=no
13941             ;;
13942           ghcx*)
13943             # Green Hills C++ Compiler
13944             # FIXME: insert proper C++ library support
13945             ld_shlibs_CXX=no
13946             ;;
13947           *)
13948             # FIXME: insert proper C++ library support
13949             ld_shlibs_CXX=no
13950             ;;
13951         esac
13952         ;;
13953
13954       freebsd2.*)
13955         # C++ shared libraries reported to be fairly broken before
13956         # switch to ELF
13957         ld_shlibs_CXX=no
13958         ;;
13959
13960       freebsd-elf*)
13961         archive_cmds_need_lc_CXX=no
13962         ;;
13963
13964       freebsd* | dragonfly*)
13965         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13966         # conventions
13967         ld_shlibs_CXX=yes
13968         ;;
13969
13970       haiku*)
13971         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13972         link_all_deplibs_CXX=yes
13973         ;;
13974
13975       hpux9*)
13976         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13977         hardcode_libdir_separator_CXX=:
13978         export_dynamic_flag_spec_CXX='${wl}-E'
13979         hardcode_direct_CXX=yes
13980         hardcode_minus_L_CXX=yes # Not in the search PATH,
13981                                              # but as the default
13982                                              # location of the library.
13983
13984         case $cc_basename in
13985           CC*)
13986             # FIXME: insert proper C++ library support
13987             ld_shlibs_CXX=no
13988             ;;
13989           aCC*)
13990             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'
13991             # Commands to make compiler produce verbose output that lists
13992             # what "hidden" libraries, object files and flags are used when
13993             # linking a shared library.
13994             #
13995             # There doesn't appear to be a way to prevent this compiler from
13996             # explicitly linking system object files so we need to strip them
13997             # from the output so that they don't get included in the library
13998             # dependencies.
13999             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"'
14000             ;;
14001           *)
14002             if test "$GXX" = yes; then
14003               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'
14004             else
14005               # FIXME: insert proper C++ library support
14006               ld_shlibs_CXX=no
14007             fi
14008             ;;
14009         esac
14010         ;;
14011
14012       hpux10*|hpux11*)
14013         if test $with_gnu_ld = no; then
14014           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14015           hardcode_libdir_separator_CXX=:
14016
14017           case $host_cpu in
14018             hppa*64*|ia64*)
14019               ;;
14020             *)
14021               export_dynamic_flag_spec_CXX='${wl}-E'
14022               ;;
14023           esac
14024         fi
14025         case $host_cpu in
14026           hppa*64*|ia64*)
14027             hardcode_direct_CXX=no
14028             hardcode_shlibpath_var_CXX=no
14029             ;;
14030           *)
14031             hardcode_direct_CXX=yes
14032             hardcode_direct_absolute_CXX=yes
14033             hardcode_minus_L_CXX=yes # Not in the search PATH,
14034                                                  # but as the default
14035                                                  # location of the library.
14036             ;;
14037         esac
14038
14039         case $cc_basename in
14040           CC*)
14041             # FIXME: insert proper C++ library support
14042             ld_shlibs_CXX=no
14043             ;;
14044           aCC*)
14045             case $host_cpu in
14046               hppa*64*)
14047                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14048                 ;;
14049               ia64*)
14050                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14051                 ;;
14052               *)
14053                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14054                 ;;
14055             esac
14056             # Commands to make compiler produce verbose output that lists
14057             # what "hidden" libraries, object files and flags are used when
14058             # linking a shared library.
14059             #
14060             # There doesn't appear to be a way to prevent this compiler from
14061             # explicitly linking system object files so we need to strip them
14062             # from the output so that they don't get included in the library
14063             # dependencies.
14064             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"'
14065             ;;
14066           *)
14067             if test "$GXX" = yes; then
14068               if test $with_gnu_ld = no; then
14069                 case $host_cpu in
14070                   hppa*64*)
14071                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14072                     ;;
14073                   ia64*)
14074                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14075                     ;;
14076                   *)
14077                     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'
14078                     ;;
14079                 esac
14080               fi
14081             else
14082               # FIXME: insert proper C++ library support
14083               ld_shlibs_CXX=no
14084             fi
14085             ;;
14086         esac
14087         ;;
14088
14089       interix[3-9]*)
14090         hardcode_direct_CXX=no
14091         hardcode_shlibpath_var_CXX=no
14092         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14093         export_dynamic_flag_spec_CXX='${wl}-E'
14094         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14095         # Instead, shared libraries are loaded at an image base (0x10000000 by
14096         # default) and relocated if they conflict, which is a slow very memory
14097         # consuming and fragmenting process.  To avoid this, we pick a random,
14098         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14099         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14100         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'
14101         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'
14102         ;;
14103       irix5* | irix6*)
14104         case $cc_basename in
14105           CC*)
14106             # SGI C++
14107             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'
14108
14109             # Archives containing C++ object files must be created using
14110             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14111             # necessary to make sure instantiated templates are included
14112             # in the archive.
14113             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14114             ;;
14115           *)
14116             if test "$GXX" = yes; then
14117               if test "$with_gnu_ld" = no; then
14118                 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'
14119               else
14120                 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'
14121               fi
14122             fi
14123             link_all_deplibs_CXX=yes
14124             ;;
14125         esac
14126         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14127         hardcode_libdir_separator_CXX=:
14128         inherit_rpath_CXX=yes
14129         ;;
14130
14131       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14132         case $cc_basename in
14133           KCC*)
14134             # Kuck and Associates, Inc. (KAI) C++ Compiler
14135
14136             # KCC will only create a shared library if the output file
14137             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14138             # to its proper name (with version) after linking.
14139             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'
14140             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'
14141             # Commands to make compiler produce verbose output that lists
14142             # what "hidden" libraries, object files and flags are used when
14143             # linking a shared library.
14144             #
14145             # There doesn't appear to be a way to prevent this compiler from
14146             # explicitly linking system object files so we need to strip them
14147             # from the output so that they don't get included in the library
14148             # dependencies.
14149             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"'
14150
14151             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14152             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14153
14154             # Archives containing C++ object files must be created using
14155             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14156             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14157             ;;
14158           icpc* | ecpc* )
14159             # Intel C++
14160             with_gnu_ld=yes
14161             # version 8.0 and above of icpc choke on multiply defined symbols
14162             # if we add $predep_objects and $postdep_objects, however 7.1 and
14163             # earlier do not add the objects themselves.
14164             case `$CC -V 2>&1` in
14165               *"Version 7."*)
14166                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14167                 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'
14168                 ;;
14169               *)  # Version 8.0 or newer
14170                 tmp_idyn=
14171                 case $host_cpu in
14172                   ia64*) tmp_idyn=' -i_dynamic';;
14173                 esac
14174                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14175                 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'
14176                 ;;
14177             esac
14178             archive_cmds_need_lc_CXX=no
14179             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14180             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14181             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14182             ;;
14183           pgCC* | pgcpp*)
14184             # Portland Group C++ compiler
14185             case `$CC -V` in
14186             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14187               prelink_cmds_CXX='tpldir=Template.dir~
14188                 rm -rf $tpldir~
14189                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14190                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14191               old_archive_cmds_CXX='tpldir=Template.dir~
14192                 rm -rf $tpldir~
14193                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14194                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14195                 $RANLIB $oldlib'
14196               archive_cmds_CXX='tpldir=Template.dir~
14197                 rm -rf $tpldir~
14198                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14199                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14200               archive_expsym_cmds_CXX='tpldir=Template.dir~
14201                 rm -rf $tpldir~
14202                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14203                 $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'
14204               ;;
14205             *) # Version 6 and above use weak symbols
14206               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14207               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'
14208               ;;
14209             esac
14210
14211             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14212             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14213             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'
14214             ;;
14215           cxx*)
14216             # Compaq C++
14217             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14218             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'
14219
14220             runpath_var=LD_RUN_PATH
14221             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14222             hardcode_libdir_separator_CXX=:
14223
14224             # Commands to make compiler produce verbose output that lists
14225             # what "hidden" libraries, object files and flags are used when
14226             # linking a shared library.
14227             #
14228             # There doesn't appear to be a way to prevent this compiler from
14229             # explicitly linking system object files so we need to strip them
14230             # from the output so that they don't get included in the library
14231             # dependencies.
14232             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'
14233             ;;
14234           xl* | mpixl* | bgxl*)
14235             # IBM XL 8.0 on PPC, with GNU ld
14236             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14237             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14238             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14239             if test "x$supports_anon_versioning" = xyes; then
14240               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14241                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14242                 echo "local: *; };" >> $output_objdir/$libname.ver~
14243                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14244             fi
14245             ;;
14246           *)
14247             case `$CC -V 2>&1 | sed 5q` in
14248             *Sun\ C*)
14249               # Sun C++ 5.9
14250               no_undefined_flag_CXX=' -zdefs'
14251               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14252               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'
14253               hardcode_libdir_flag_spec_CXX='-R$libdir'
14254               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'
14255               compiler_needs_object_CXX=yes
14256
14257               # Not sure whether something based on
14258               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14259               # would be better.
14260               output_verbose_link_cmd='func_echo_all'
14261
14262               # Archives containing C++ object files must be created using
14263               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14264               # necessary to make sure instantiated templates are included
14265               # in the archive.
14266               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14267               ;;
14268             esac
14269             ;;
14270         esac
14271         ;;
14272
14273       lynxos*)
14274         # FIXME: insert proper C++ library support
14275         ld_shlibs_CXX=no
14276         ;;
14277
14278       m88k*)
14279         # FIXME: insert proper C++ library support
14280         ld_shlibs_CXX=no
14281         ;;
14282
14283       mvs*)
14284         case $cc_basename in
14285           cxx*)
14286             # FIXME: insert proper C++ library support
14287             ld_shlibs_CXX=no
14288             ;;
14289           *)
14290             # FIXME: insert proper C++ library support
14291             ld_shlibs_CXX=no
14292             ;;
14293         esac
14294         ;;
14295
14296       netbsd*)
14297         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14298           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14299           wlarc=
14300           hardcode_libdir_flag_spec_CXX='-R$libdir'
14301           hardcode_direct_CXX=yes
14302           hardcode_shlibpath_var_CXX=no
14303         fi
14304         # Workaround some broken pre-1.5 toolchains
14305         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14306         ;;
14307
14308       *nto* | *qnx*)
14309         ld_shlibs_CXX=yes
14310         ;;
14311
14312       openbsd2*)
14313         # C++ shared libraries are fairly broken
14314         ld_shlibs_CXX=no
14315         ;;
14316
14317       openbsd*)
14318         if test -f /usr/libexec/ld.so; then
14319           hardcode_direct_CXX=yes
14320           hardcode_shlibpath_var_CXX=no
14321           hardcode_direct_absolute_CXX=yes
14322           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14323           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14324           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14325             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14326             export_dynamic_flag_spec_CXX='${wl}-E'
14327             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14328           fi
14329           output_verbose_link_cmd=func_echo_all
14330         else
14331           ld_shlibs_CXX=no
14332         fi
14333         ;;
14334
14335       osf3* | osf4* | osf5*)
14336         case $cc_basename in
14337           KCC*)
14338             # Kuck and Associates, Inc. (KAI) C++ Compiler
14339
14340             # KCC will only create a shared library if the output file
14341             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14342             # to its proper name (with version) after linking.
14343             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'
14344
14345             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14346             hardcode_libdir_separator_CXX=:
14347
14348             # Archives containing C++ object files must be created using
14349             # the KAI C++ compiler.
14350             case $host in
14351               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14352               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14353             esac
14354             ;;
14355           RCC*)
14356             # Rational C++ 2.4.1
14357             # FIXME: insert proper C++ library support
14358             ld_shlibs_CXX=no
14359             ;;
14360           cxx*)
14361             case $host in
14362               osf3*)
14363                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14364                 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'
14365                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14366                 ;;
14367               *)
14368                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14369                 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'
14370                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14371                   echo "-hidden">> $lib.exp~
14372                   $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~
14373                   $RM $lib.exp'
14374                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14375                 ;;
14376             esac
14377
14378             hardcode_libdir_separator_CXX=:
14379
14380             # Commands to make compiler produce verbose output that lists
14381             # what "hidden" libraries, object files and flags are used when
14382             # linking a shared library.
14383             #
14384             # There doesn't appear to be a way to prevent this compiler from
14385             # explicitly linking system object files so we need to strip them
14386             # from the output so that they don't get included in the library
14387             # dependencies.
14388             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"'
14389             ;;
14390           *)
14391             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14392               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14393               case $host in
14394                 osf3*)
14395                   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'
14396                   ;;
14397                 *)
14398                   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'
14399                   ;;
14400               esac
14401
14402               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14403               hardcode_libdir_separator_CXX=:
14404
14405               # Commands to make compiler produce verbose output that lists
14406               # what "hidden" libraries, object files and flags are used when
14407               # linking a shared library.
14408               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14409
14410             else
14411               # FIXME: insert proper C++ library support
14412               ld_shlibs_CXX=no
14413             fi
14414             ;;
14415         esac
14416         ;;
14417
14418       psos*)
14419         # FIXME: insert proper C++ library support
14420         ld_shlibs_CXX=no
14421         ;;
14422
14423       sunos4*)
14424         case $cc_basename in
14425           CC*)
14426             # Sun C++ 4.x
14427             # FIXME: insert proper C++ library support
14428             ld_shlibs_CXX=no
14429             ;;
14430           lcc*)
14431             # Lucid
14432             # FIXME: insert proper C++ library support
14433             ld_shlibs_CXX=no
14434             ;;
14435           *)
14436             # FIXME: insert proper C++ library support
14437             ld_shlibs_CXX=no
14438             ;;
14439         esac
14440         ;;
14441
14442       solaris*)
14443         case $cc_basename in
14444           CC* | sunCC*)
14445             # Sun C++ 4.2, 5.x and Centerline C++
14446             archive_cmds_need_lc_CXX=yes
14447             no_undefined_flag_CXX=' -zdefs'
14448             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14449             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14450               $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'
14451
14452             hardcode_libdir_flag_spec_CXX='-R$libdir'
14453             hardcode_shlibpath_var_CXX=no
14454             case $host_os in
14455               solaris2.[0-5] | solaris2.[0-5].*) ;;
14456               *)
14457                 # The compiler driver will combine and reorder linker options,
14458                 # but understands `-z linker_flag'.
14459                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14460                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14461                 ;;
14462             esac
14463             link_all_deplibs_CXX=yes
14464
14465             output_verbose_link_cmd='func_echo_all'
14466
14467             # Archives containing C++ object files must be created using
14468             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14469             # necessary to make sure instantiated templates are included
14470             # in the archive.
14471             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14472             ;;
14473           gcx*)
14474             # Green Hills C++ Compiler
14475             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14476
14477             # The C++ compiler must be used to create the archive.
14478             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14479             ;;
14480           *)
14481             # GNU C++ compiler with Solaris linker
14482             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14483               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14484               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14485                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14486                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14487                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14488
14489                 # Commands to make compiler produce verbose output that lists
14490                 # what "hidden" libraries, object files and flags are used when
14491                 # linking a shared library.
14492                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14493               else
14494                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14495                 # platform.
14496                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14497                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14498                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14499
14500                 # Commands to make compiler produce verbose output that lists
14501                 # what "hidden" libraries, object files and flags are used when
14502                 # linking a shared library.
14503                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14504               fi
14505
14506               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14507               case $host_os in
14508                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14509                 *)
14510                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14511                   ;;
14512               esac
14513             fi
14514             ;;
14515         esac
14516         ;;
14517
14518     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14519       no_undefined_flag_CXX='${wl}-z,text'
14520       archive_cmds_need_lc_CXX=no
14521       hardcode_shlibpath_var_CXX=no
14522       runpath_var='LD_RUN_PATH'
14523
14524       case $cc_basename in
14525         CC*)
14526           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14528           ;;
14529         *)
14530           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14531           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14532           ;;
14533       esac
14534       ;;
14535
14536       sysv5* | sco3.2v5* | sco5v6*)
14537         # Note: We can NOT use -z defs as we might desire, because we do not
14538         # link with -lc, and that would cause any symbols used from libc to
14539         # always be unresolved, which means just about no library would
14540         # ever link correctly.  If we're not using GNU ld we use -z text
14541         # though, which does catch some bad symbols but isn't as heavy-handed
14542         # as -z defs.
14543         no_undefined_flag_CXX='${wl}-z,text'
14544         allow_undefined_flag_CXX='${wl}-z,nodefs'
14545         archive_cmds_need_lc_CXX=no
14546         hardcode_shlibpath_var_CXX=no
14547         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14548         hardcode_libdir_separator_CXX=':'
14549         link_all_deplibs_CXX=yes
14550         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14551         runpath_var='LD_RUN_PATH'
14552
14553         case $cc_basename in
14554           CC*)
14555             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14556             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14557             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14558               '"$old_archive_cmds_CXX"
14559             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14560               '"$reload_cmds_CXX"
14561             ;;
14562           *)
14563             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14564             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14565             ;;
14566         esac
14567       ;;
14568
14569       tandem*)
14570         case $cc_basename in
14571           NCC*)
14572             # NonStop-UX NCC 3.20
14573             # FIXME: insert proper C++ library support
14574             ld_shlibs_CXX=no
14575             ;;
14576           *)
14577             # FIXME: insert proper C++ library support
14578             ld_shlibs_CXX=no
14579             ;;
14580         esac
14581         ;;
14582
14583       vxworks*)
14584         # FIXME: insert proper C++ library support
14585         ld_shlibs_CXX=no
14586         ;;
14587
14588       *)
14589         # FIXME: insert proper C++ library support
14590         ld_shlibs_CXX=no
14591         ;;
14592     esac
14593
14594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14595 $as_echo "$ld_shlibs_CXX" >&6; }
14596     test "$ld_shlibs_CXX" = no && can_build_shared=no
14597
14598     GCC_CXX="$GXX"
14599     LD_CXX="$LD"
14600
14601     ## CAVEAT EMPTOR:
14602     ## There is no encapsulation within the following macros, do not change
14603     ## the running order or otherwise move them around unless you know exactly
14604     ## what you are doing...
14605     # Dependencies to place before and after the object being linked:
14606 predep_objects_CXX=
14607 postdep_objects_CXX=
14608 predeps_CXX=
14609 postdeps_CXX=
14610 compiler_lib_search_path_CXX=
14611
14612 cat > conftest.$ac_ext <<_LT_EOF
14613 class Foo
14614 {
14615 public:
14616   Foo (void) { a = 0; }
14617 private:
14618   int a;
14619 };
14620 _LT_EOF
14621
14622
14623 _lt_libdeps_save_CFLAGS=$CFLAGS
14624 case "$CC $CFLAGS " in #(
14625 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14626 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14627 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14628 esac
14629
14630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14631   (eval $ac_compile) 2>&5
14632   ac_status=$?
14633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14634   test $ac_status = 0; }; then
14635   # Parse the compiler output and extract the necessary
14636   # objects, libraries and library flags.
14637
14638   # Sentinel used to keep track of whether or not we are before
14639   # the conftest object file.
14640   pre_test_object_deps_done=no
14641
14642   for p in `eval "$output_verbose_link_cmd"`; do
14643     case ${prev}${p} in
14644
14645     -L* | -R* | -l*)
14646        # Some compilers place space between "-{L,R}" and the path.
14647        # Remove the space.
14648        if test $p = "-L" ||
14649           test $p = "-R"; then
14650          prev=$p
14651          continue
14652        fi
14653
14654        # Expand the sysroot to ease extracting the directories later.
14655        if test -z "$prev"; then
14656          case $p in
14657          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14658          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14659          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14660          esac
14661        fi
14662        case $p in
14663        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14664        esac
14665        if test "$pre_test_object_deps_done" = no; then
14666          case ${prev} in
14667          -L | -R)
14668            # Internal compiler library paths should come after those
14669            # provided the user.  The postdeps already come after the
14670            # user supplied libs so there is no need to process them.
14671            if test -z "$compiler_lib_search_path_CXX"; then
14672              compiler_lib_search_path_CXX="${prev}${p}"
14673            else
14674              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14675            fi
14676            ;;
14677          # The "-l" case would never come before the object being
14678          # linked, so don't bother handling this case.
14679          esac
14680        else
14681          if test -z "$postdeps_CXX"; then
14682            postdeps_CXX="${prev}${p}"
14683          else
14684            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14685          fi
14686        fi
14687        prev=
14688        ;;
14689
14690     *.lto.$objext) ;; # Ignore GCC LTO objects
14691     *.$objext)
14692        # This assumes that the test object file only shows up
14693        # once in the compiler output.
14694        if test "$p" = "conftest.$objext"; then
14695          pre_test_object_deps_done=yes
14696          continue
14697        fi
14698
14699        if test "$pre_test_object_deps_done" = no; then
14700          if test -z "$predep_objects_CXX"; then
14701            predep_objects_CXX="$p"
14702          else
14703            predep_objects_CXX="$predep_objects_CXX $p"
14704          fi
14705        else
14706          if test -z "$postdep_objects_CXX"; then
14707            postdep_objects_CXX="$p"
14708          else
14709            postdep_objects_CXX="$postdep_objects_CXX $p"
14710          fi
14711        fi
14712        ;;
14713
14714     *) ;; # Ignore the rest.
14715
14716     esac
14717   done
14718
14719   # Clean up.
14720   rm -f a.out a.exe
14721 else
14722   echo "libtool.m4: error: problem compiling CXX test program"
14723 fi
14724
14725 $RM -f confest.$objext
14726 CFLAGS=$_lt_libdeps_save_CFLAGS
14727
14728 # PORTME: override above test on systems where it is broken
14729 case $host_os in
14730 interix[3-9]*)
14731   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14732   # hack all around it, let's just trust "g++" to DTRT.
14733   predep_objects_CXX=
14734   postdep_objects_CXX=
14735   postdeps_CXX=
14736   ;;
14737
14738 linux*)
14739   case `$CC -V 2>&1 | sed 5q` in
14740   *Sun\ C*)
14741     # Sun C++ 5.9
14742
14743     # The more standards-conforming stlport4 library is
14744     # incompatible with the Cstd library. Avoid specifying
14745     # it if it's in CXXFLAGS. Ignore libCrun as
14746     # -library=stlport4 depends on it.
14747     case " $CXX $CXXFLAGS " in
14748     *" -library=stlport4 "*)
14749       solaris_use_stlport4=yes
14750       ;;
14751     esac
14752
14753     if test "$solaris_use_stlport4" != yes; then
14754       postdeps_CXX='-library=Cstd -library=Crun'
14755     fi
14756     ;;
14757   esac
14758   ;;
14759
14760 solaris*)
14761   case $cc_basename in
14762   CC* | sunCC*)
14763     # The more standards-conforming stlport4 library is
14764     # incompatible with the Cstd library. Avoid specifying
14765     # it if it's in CXXFLAGS. Ignore libCrun as
14766     # -library=stlport4 depends on it.
14767     case " $CXX $CXXFLAGS " in
14768     *" -library=stlport4 "*)
14769       solaris_use_stlport4=yes
14770       ;;
14771     esac
14772
14773     # Adding this requires a known-good setup of shared libraries for
14774     # Sun compiler versions before 5.6, else PIC objects from an old
14775     # archive will be linked into the output, leading to subtle bugs.
14776     if test "$solaris_use_stlport4" != yes; then
14777       postdeps_CXX='-library=Cstd -library=Crun'
14778     fi
14779     ;;
14780   esac
14781   ;;
14782 esac
14783
14784
14785 case " $postdeps_CXX " in
14786 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14787 esac
14788  compiler_lib_search_dirs_CXX=
14789 if test -n "${compiler_lib_search_path_CXX}"; then
14790  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14791 fi
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823     lt_prog_compiler_wl_CXX=
14824 lt_prog_compiler_pic_CXX=
14825 lt_prog_compiler_static_CXX=
14826
14827
14828   # C++ specific cases for pic, static, wl, etc.
14829   if test "$GXX" = yes; then
14830     lt_prog_compiler_wl_CXX='-Wl,'
14831     lt_prog_compiler_static_CXX='-static'
14832
14833     case $host_os in
14834     aix*)
14835       # All AIX code is PIC.
14836       if test "$host_cpu" = ia64; then
14837         # AIX 5 now supports IA64 processor
14838         lt_prog_compiler_static_CXX='-Bstatic'
14839       fi
14840       ;;
14841
14842     amigaos*)
14843       case $host_cpu in
14844       powerpc)
14845             # see comment about AmigaOS4 .so support
14846             lt_prog_compiler_pic_CXX='-fPIC'
14847         ;;
14848       m68k)
14849             # FIXME: we need at least 68020 code to build shared libraries, but
14850             # adding the `-m68020' flag to GCC prevents building anything better,
14851             # like `-m68040'.
14852             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14853         ;;
14854       esac
14855       ;;
14856
14857     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14858       # PIC is the default for these OSes.
14859       ;;
14860     mingw* | cygwin* | os2* | pw32* | cegcc*)
14861       # This hack is so that the source file can tell whether it is being
14862       # built for inclusion in a dll (and should export symbols for example).
14863       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14864       # (--disable-auto-import) libraries
14865       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14866       ;;
14867     darwin* | rhapsody*)
14868       # PIC is the default on this platform
14869       # Common symbols not allowed in MH_DYLIB files
14870       lt_prog_compiler_pic_CXX='-fno-common'
14871       ;;
14872     *djgpp*)
14873       # DJGPP does not support shared libraries at all
14874       lt_prog_compiler_pic_CXX=
14875       ;;
14876     haiku*)
14877       # PIC is the default for Haiku.
14878       # The "-static" flag exists, but is broken.
14879       lt_prog_compiler_static_CXX=
14880       ;;
14881     interix[3-9]*)
14882       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14883       # Instead, we relocate shared libraries at runtime.
14884       ;;
14885     sysv4*MP*)
14886       if test -d /usr/nec; then
14887         lt_prog_compiler_pic_CXX=-Kconform_pic
14888       fi
14889       ;;
14890     hpux*)
14891       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14892       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14893       # sets the default TLS model and affects inlining.
14894       case $host_cpu in
14895       hppa*64*)
14896         ;;
14897       *)
14898         lt_prog_compiler_pic_CXX='-fPIC'
14899         ;;
14900       esac
14901       ;;
14902     *qnx* | *nto*)
14903       # QNX uses GNU C++, but need to define -shared option too, otherwise
14904       # it will coredump.
14905       lt_prog_compiler_pic_CXX='-fPIC -shared'
14906       ;;
14907     *)
14908       lt_prog_compiler_pic_CXX='-fPIC'
14909       ;;
14910     esac
14911   else
14912     case $host_os in
14913       aix[4-9]*)
14914         # All AIX code is PIC.
14915         if test "$host_cpu" = ia64; then
14916           # AIX 5 now supports IA64 processor
14917           lt_prog_compiler_static_CXX='-Bstatic'
14918         else
14919           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14920         fi
14921         ;;
14922       chorus*)
14923         case $cc_basename in
14924         cxch68*)
14925           # Green Hills C++ Compiler
14926           # _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"
14927           ;;
14928         esac
14929         ;;
14930       mingw* | cygwin* | os2* | pw32* | cegcc*)
14931         # This hack is so that the source file can tell whether it is being
14932         # built for inclusion in a dll (and should export symbols for example).
14933         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14934         ;;
14935       dgux*)
14936         case $cc_basename in
14937           ec++*)
14938             lt_prog_compiler_pic_CXX='-KPIC'
14939             ;;
14940           ghcx*)
14941             # Green Hills C++ Compiler
14942             lt_prog_compiler_pic_CXX='-pic'
14943             ;;
14944           *)
14945             ;;
14946         esac
14947         ;;
14948       freebsd* | dragonfly*)
14949         # FreeBSD uses GNU C++
14950         ;;
14951       hpux9* | hpux10* | hpux11*)
14952         case $cc_basename in
14953           CC*)
14954             lt_prog_compiler_wl_CXX='-Wl,'
14955             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14956             if test "$host_cpu" != ia64; then
14957               lt_prog_compiler_pic_CXX='+Z'
14958             fi
14959             ;;
14960           aCC*)
14961             lt_prog_compiler_wl_CXX='-Wl,'
14962             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14963             case $host_cpu in
14964             hppa*64*|ia64*)
14965               # +Z the default
14966               ;;
14967             *)
14968               lt_prog_compiler_pic_CXX='+Z'
14969               ;;
14970             esac
14971             ;;
14972           *)
14973             ;;
14974         esac
14975         ;;
14976       interix*)
14977         # This is c89, which is MS Visual C++ (no shared libs)
14978         # Anyone wants to do a port?
14979         ;;
14980       irix5* | irix6* | nonstopux*)
14981         case $cc_basename in
14982           CC*)
14983             lt_prog_compiler_wl_CXX='-Wl,'
14984             lt_prog_compiler_static_CXX='-non_shared'
14985             # CC pic flag -KPIC is the default.
14986             ;;
14987           *)
14988             ;;
14989         esac
14990         ;;
14991       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14992         case $cc_basename in
14993           KCC*)
14994             # KAI C++ Compiler
14995             lt_prog_compiler_wl_CXX='--backend -Wl,'
14996             lt_prog_compiler_pic_CXX='-fPIC'
14997             ;;
14998           ecpc* )
14999             # old Intel C++ for x86_64 which still supported -KPIC.
15000             lt_prog_compiler_wl_CXX='-Wl,'
15001             lt_prog_compiler_pic_CXX='-KPIC'
15002             lt_prog_compiler_static_CXX='-static'
15003             ;;
15004           icpc* )
15005             # Intel C++, used to be incompatible with GCC.
15006             # ICC 10 doesn't accept -KPIC any more.
15007             lt_prog_compiler_wl_CXX='-Wl,'
15008             lt_prog_compiler_pic_CXX='-fPIC'
15009             lt_prog_compiler_static_CXX='-static'
15010             ;;
15011           pgCC* | pgcpp*)
15012             # Portland Group C++ compiler
15013             lt_prog_compiler_wl_CXX='-Wl,'
15014             lt_prog_compiler_pic_CXX='-fpic'
15015             lt_prog_compiler_static_CXX='-Bstatic'
15016             ;;
15017           cxx*)
15018             # Compaq C++
15019             # Make sure the PIC flag is empty.  It appears that all Alpha
15020             # Linux and Compaq Tru64 Unix objects are PIC.
15021             lt_prog_compiler_pic_CXX=
15022             lt_prog_compiler_static_CXX='-non_shared'
15023             ;;
15024           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15025             # IBM XL 8.0, 9.0 on PPC and BlueGene
15026             lt_prog_compiler_wl_CXX='-Wl,'
15027             lt_prog_compiler_pic_CXX='-qpic'
15028             lt_prog_compiler_static_CXX='-qstaticlink'
15029             ;;
15030           *)
15031             case `$CC -V 2>&1 | sed 5q` in
15032             *Sun\ C*)
15033               # Sun C++ 5.9
15034               lt_prog_compiler_pic_CXX='-KPIC'
15035               lt_prog_compiler_static_CXX='-Bstatic'
15036               lt_prog_compiler_wl_CXX='-Qoption ld '
15037               ;;
15038             esac
15039             ;;
15040         esac
15041         ;;
15042       lynxos*)
15043         ;;
15044       m88k*)
15045         ;;
15046       mvs*)
15047         case $cc_basename in
15048           cxx*)
15049             lt_prog_compiler_pic_CXX='-W c,exportall'
15050             ;;
15051           *)
15052             ;;
15053         esac
15054         ;;
15055       netbsd* | netbsdelf*-gnu)
15056         ;;
15057       *qnx* | *nto*)
15058         # QNX uses GNU C++, but need to define -shared option too, otherwise
15059         # it will coredump.
15060         lt_prog_compiler_pic_CXX='-fPIC -shared'
15061         ;;
15062       osf3* | osf4* | osf5*)
15063         case $cc_basename in
15064           KCC*)
15065             lt_prog_compiler_wl_CXX='--backend -Wl,'
15066             ;;
15067           RCC*)
15068             # Rational C++ 2.4.1
15069             lt_prog_compiler_pic_CXX='-pic'
15070             ;;
15071           cxx*)
15072             # Digital/Compaq C++
15073             lt_prog_compiler_wl_CXX='-Wl,'
15074             # Make sure the PIC flag is empty.  It appears that all Alpha
15075             # Linux and Compaq Tru64 Unix objects are PIC.
15076             lt_prog_compiler_pic_CXX=
15077             lt_prog_compiler_static_CXX='-non_shared'
15078             ;;
15079           *)
15080             ;;
15081         esac
15082         ;;
15083       psos*)
15084         ;;
15085       solaris*)
15086         case $cc_basename in
15087           CC* | sunCC*)
15088             # Sun C++ 4.2, 5.x and Centerline C++
15089             lt_prog_compiler_pic_CXX='-KPIC'
15090             lt_prog_compiler_static_CXX='-Bstatic'
15091             lt_prog_compiler_wl_CXX='-Qoption ld '
15092             ;;
15093           gcx*)
15094             # Green Hills C++ Compiler
15095             lt_prog_compiler_pic_CXX='-PIC'
15096             ;;
15097           *)
15098             ;;
15099         esac
15100         ;;
15101       sunos4*)
15102         case $cc_basename in
15103           CC*)
15104             # Sun C++ 4.x
15105             lt_prog_compiler_pic_CXX='-pic'
15106             lt_prog_compiler_static_CXX='-Bstatic'
15107             ;;
15108           lcc*)
15109             # Lucid
15110             lt_prog_compiler_pic_CXX='-pic'
15111             ;;
15112           *)
15113             ;;
15114         esac
15115         ;;
15116       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15117         case $cc_basename in
15118           CC*)
15119             lt_prog_compiler_wl_CXX='-Wl,'
15120             lt_prog_compiler_pic_CXX='-KPIC'
15121             lt_prog_compiler_static_CXX='-Bstatic'
15122             ;;
15123         esac
15124         ;;
15125       tandem*)
15126         case $cc_basename in
15127           NCC*)
15128             # NonStop-UX NCC 3.20
15129             lt_prog_compiler_pic_CXX='-KPIC'
15130             ;;
15131           *)
15132             ;;
15133         esac
15134         ;;
15135       vxworks*)
15136         ;;
15137       *)
15138         lt_prog_compiler_can_build_shared_CXX=no
15139         ;;
15140     esac
15141   fi
15142
15143 case $host_os in
15144   # For platforms which do not support PIC, -DPIC is meaningless:
15145   *djgpp*)
15146     lt_prog_compiler_pic_CXX=
15147     ;;
15148   *)
15149     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15150     ;;
15151 esac
15152
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15154 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15155 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15156   $as_echo_n "(cached) " >&6
15157 else
15158   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15159 fi
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15161 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15162 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15163
15164 #
15165 # Check to make sure the PIC flag actually works.
15166 #
15167 if test -n "$lt_prog_compiler_pic_CXX"; then
15168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15169 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15170 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15171   $as_echo_n "(cached) " >&6
15172 else
15173   lt_cv_prog_compiler_pic_works_CXX=no
15174    ac_outfile=conftest.$ac_objext
15175    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15176    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15177    # Insert the option either (1) after the last *FLAGS variable, or
15178    # (2) before a word containing "conftest.", or (3) at the end.
15179    # Note that $ac_compile itself does not contain backslashes and begins
15180    # with a dollar sign (not a hyphen), so the echo should work correctly.
15181    # The option is referenced via a variable to avoid confusing sed.
15182    lt_compile=`echo "$ac_compile" | $SED \
15183    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15184    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15185    -e 's:$: $lt_compiler_flag:'`
15186    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15187    (eval "$lt_compile" 2>conftest.err)
15188    ac_status=$?
15189    cat conftest.err >&5
15190    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191    if (exit $ac_status) && test -s "$ac_outfile"; then
15192      # The compiler can only warn and ignore the option if not recognized
15193      # So say no if there are warnings other than the usual output.
15194      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15195      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15196      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15197        lt_cv_prog_compiler_pic_works_CXX=yes
15198      fi
15199    fi
15200    $RM conftest*
15201
15202 fi
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15204 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15205
15206 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15207     case $lt_prog_compiler_pic_CXX in
15208      "" | " "*) ;;
15209      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15210      esac
15211 else
15212     lt_prog_compiler_pic_CXX=
15213      lt_prog_compiler_can_build_shared_CXX=no
15214 fi
15215
15216 fi
15217
15218
15219
15220
15221
15222 #
15223 # Check to make sure the static flag actually works.
15224 #
15225 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15227 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15228 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15229   $as_echo_n "(cached) " >&6
15230 else
15231   lt_cv_prog_compiler_static_works_CXX=no
15232    save_LDFLAGS="$LDFLAGS"
15233    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15234    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15235    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15236      # The linker can only warn and ignore the option if not recognized
15237      # So say no if there are warnings
15238      if test -s conftest.err; then
15239        # Append any errors to the config.log.
15240        cat conftest.err 1>&5
15241        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15242        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15243        if diff conftest.exp conftest.er2 >/dev/null; then
15244          lt_cv_prog_compiler_static_works_CXX=yes
15245        fi
15246      else
15247        lt_cv_prog_compiler_static_works_CXX=yes
15248      fi
15249    fi
15250    $RM -r conftest*
15251    LDFLAGS="$save_LDFLAGS"
15252
15253 fi
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15255 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15256
15257 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15258     :
15259 else
15260     lt_prog_compiler_static_CXX=
15261 fi
15262
15263
15264
15265
15266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15268 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15269   $as_echo_n "(cached) " >&6
15270 else
15271   lt_cv_prog_compiler_c_o_CXX=no
15272    $RM -r conftest 2>/dev/null
15273    mkdir conftest
15274    cd conftest
15275    mkdir out
15276    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15277
15278    lt_compiler_flag="-o out/conftest2.$ac_objext"
15279    # Insert the option either (1) after the last *FLAGS variable, or
15280    # (2) before a word containing "conftest.", or (3) at the end.
15281    # Note that $ac_compile itself does not contain backslashes and begins
15282    # with a dollar sign (not a hyphen), so the echo should work correctly.
15283    lt_compile=`echo "$ac_compile" | $SED \
15284    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15285    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15286    -e 's:$: $lt_compiler_flag:'`
15287    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15288    (eval "$lt_compile" 2>out/conftest.err)
15289    ac_status=$?
15290    cat out/conftest.err >&5
15291    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15293    then
15294      # The compiler can only warn and ignore the option if not recognized
15295      # So say no if there are warnings
15296      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15297      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15298      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15299        lt_cv_prog_compiler_c_o_CXX=yes
15300      fi
15301    fi
15302    chmod u+w . 2>&5
15303    $RM conftest*
15304    # SGI C++ compiler will create directory out/ii_files/ for
15305    # template instantiation
15306    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15307    $RM out/* && rmdir out
15308    cd ..
15309    $RM -r conftest
15310    $RM conftest*
15311
15312 fi
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15314 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15315
15316
15317
15318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15319 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15320 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15321   $as_echo_n "(cached) " >&6
15322 else
15323   lt_cv_prog_compiler_c_o_CXX=no
15324    $RM -r conftest 2>/dev/null
15325    mkdir conftest
15326    cd conftest
15327    mkdir out
15328    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15329
15330    lt_compiler_flag="-o out/conftest2.$ac_objext"
15331    # Insert the option either (1) after the last *FLAGS variable, or
15332    # (2) before a word containing "conftest.", or (3) at the end.
15333    # Note that $ac_compile itself does not contain backslashes and begins
15334    # with a dollar sign (not a hyphen), so the echo should work correctly.
15335    lt_compile=`echo "$ac_compile" | $SED \
15336    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15337    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15338    -e 's:$: $lt_compiler_flag:'`
15339    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15340    (eval "$lt_compile" 2>out/conftest.err)
15341    ac_status=$?
15342    cat out/conftest.err >&5
15343    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15345    then
15346      # The compiler can only warn and ignore the option if not recognized
15347      # So say no if there are warnings
15348      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15349      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15350      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15351        lt_cv_prog_compiler_c_o_CXX=yes
15352      fi
15353    fi
15354    chmod u+w . 2>&5
15355    $RM conftest*
15356    # SGI C++ compiler will create directory out/ii_files/ for
15357    # template instantiation
15358    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15359    $RM out/* && rmdir out
15360    cd ..
15361    $RM -r conftest
15362    $RM conftest*
15363
15364 fi
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15366 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15367
15368
15369
15370
15371 hard_links="nottested"
15372 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15373   # do not overwrite the value of need_locks provided by the user
15374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15375 $as_echo_n "checking if we can lock with hard links... " >&6; }
15376   hard_links=yes
15377   $RM conftest*
15378   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15379   touch conftest.a
15380   ln conftest.a conftest.b 2>&5 || hard_links=no
15381   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15383 $as_echo "$hard_links" >&6; }
15384   if test "$hard_links" = no; then
15385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15386 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15387     need_locks=warn
15388   fi
15389 else
15390   need_locks=no
15391 fi
15392
15393
15394
15395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15396 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15397
15398   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15399   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15400   case $host_os in
15401   aix[4-9]*)
15402     # If we're using GNU nm, then we don't want the "-C" option.
15403     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15404     # Also, AIX nm treats weak defined symbols like other global defined
15405     # symbols, whereas GNU nm marks them as "W".
15406     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15407       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'
15408     else
15409       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'
15410     fi
15411     ;;
15412   pw32*)
15413     export_symbols_cmds_CXX="$ltdll_cmds"
15414     ;;
15415   cygwin* | mingw* | cegcc*)
15416     case $cc_basename in
15417     cl*)
15418       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15419       ;;
15420     *)
15421       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'
15422       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15423       ;;
15424     esac
15425     ;;
15426   linux* | k*bsd*-gnu | gnu*)
15427     link_all_deplibs_CXX=no
15428     ;;
15429   *)
15430     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15431     ;;
15432   esac
15433
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15435 $as_echo "$ld_shlibs_CXX" >&6; }
15436 test "$ld_shlibs_CXX" = no && can_build_shared=no
15437
15438 with_gnu_ld_CXX=$with_gnu_ld
15439
15440
15441
15442
15443
15444
15445 #
15446 # Do we need to explicitly link libc?
15447 #
15448 case "x$archive_cmds_need_lc_CXX" in
15449 x|xyes)
15450   # Assume -lc should be added
15451   archive_cmds_need_lc_CXX=yes
15452
15453   if test "$enable_shared" = yes && test "$GCC" = yes; then
15454     case $archive_cmds_CXX in
15455     *'~'*)
15456       # FIXME: we may have to deal with multi-command sequences.
15457       ;;
15458     '$CC '*)
15459       # Test whether the compiler implicitly links with -lc since on some
15460       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15461       # to ld, don't add -lc before -lgcc.
15462       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15463 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15464 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15465   $as_echo_n "(cached) " >&6
15466 else
15467   $RM conftest*
15468         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15469
15470         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15471   (eval $ac_compile) 2>&5
15472   ac_status=$?
15473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15474   test $ac_status = 0; } 2>conftest.err; then
15475           soname=conftest
15476           lib=conftest
15477           libobjs=conftest.$ac_objext
15478           deplibs=
15479           wl=$lt_prog_compiler_wl_CXX
15480           pic_flag=$lt_prog_compiler_pic_CXX
15481           compiler_flags=-v
15482           linker_flags=-v
15483           verstring=
15484           output_objdir=.
15485           libname=conftest
15486           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15487           allow_undefined_flag_CXX=
15488           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15489   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15490   ac_status=$?
15491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15492   test $ac_status = 0; }
15493           then
15494             lt_cv_archive_cmds_need_lc_CXX=no
15495           else
15496             lt_cv_archive_cmds_need_lc_CXX=yes
15497           fi
15498           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15499         else
15500           cat conftest.err 1>&5
15501         fi
15502         $RM conftest*
15503
15504 fi
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15506 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15507       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15508       ;;
15509     esac
15510   fi
15511   ;;
15512 esac
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15576 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15577
15578 library_names_spec=
15579 libname_spec='lib$name'
15580 soname_spec=
15581 shrext_cmds=".so"
15582 postinstall_cmds=
15583 postuninstall_cmds=
15584 finish_cmds=
15585 finish_eval=
15586 shlibpath_var=
15587 shlibpath_overrides_runpath=unknown
15588 version_type=none
15589 dynamic_linker="$host_os ld.so"
15590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15591 need_lib_prefix=unknown
15592 hardcode_into_libs=no
15593
15594 # when you set need_version to no, make sure it does not cause -set_version
15595 # flags to be left without arguments
15596 need_version=unknown
15597
15598 case $host_os in
15599 aix3*)
15600   version_type=linux # correct to gnu/linux during the next big refactor
15601   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15602   shlibpath_var=LIBPATH
15603
15604   # AIX 3 has no versioning support, so we append a major version to the name.
15605   soname_spec='${libname}${release}${shared_ext}$major'
15606   ;;
15607
15608 aix[4-9]*)
15609   version_type=linux # correct to gnu/linux during the next big refactor
15610   need_lib_prefix=no
15611   need_version=no
15612   hardcode_into_libs=yes
15613   if test "$host_cpu" = ia64; then
15614     # AIX 5 supports IA64
15615     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15616     shlibpath_var=LD_LIBRARY_PATH
15617   else
15618     # With GCC up to 2.95.x, collect2 would create an import file
15619     # for dependence libraries.  The import file would start with
15620     # the line `#! .'.  This would cause the generated library to
15621     # depend on `.', always an invalid library.  This was fixed in
15622     # development snapshots of GCC prior to 3.0.
15623     case $host_os in
15624       aix4 | aix4.[01] | aix4.[01].*)
15625       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15626            echo ' yes '
15627            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15628         :
15629       else
15630         can_build_shared=no
15631       fi
15632       ;;
15633     esac
15634     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15635     # soname into executable. Probably we can add versioning support to
15636     # collect2, so additional links can be useful in future.
15637     if test "$aix_use_runtimelinking" = yes; then
15638       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15639       # instead of lib<name>.a to let people know that these are not
15640       # typical AIX shared libraries.
15641       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642     else
15643       # We preserve .a as extension for shared libraries through AIX4.2
15644       # and later when we are not doing run time linking.
15645       library_names_spec='${libname}${release}.a $libname.a'
15646       soname_spec='${libname}${release}${shared_ext}$major'
15647     fi
15648     shlibpath_var=LIBPATH
15649   fi
15650   ;;
15651
15652 amigaos*)
15653   case $host_cpu in
15654   powerpc)
15655     # Since July 2007 AmigaOS4 officially supports .so libraries.
15656     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658     ;;
15659   m68k)
15660     library_names_spec='$libname.ixlibrary $libname.a'
15661     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15662     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'
15663     ;;
15664   esac
15665   ;;
15666
15667 beos*)
15668   library_names_spec='${libname}${shared_ext}'
15669   dynamic_linker="$host_os ld.so"
15670   shlibpath_var=LIBRARY_PATH
15671   ;;
15672
15673 bsdi[45]*)
15674   version_type=linux # correct to gnu/linux during the next big refactor
15675   need_version=no
15676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15677   soname_spec='${libname}${release}${shared_ext}$major'
15678   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15679   shlibpath_var=LD_LIBRARY_PATH
15680   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15681   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15682   # the default ld.so.conf also contains /usr/contrib/lib and
15683   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15684   # libtool to hard-code these into programs
15685   ;;
15686
15687 cygwin* | mingw* | pw32* | cegcc*)
15688   version_type=windows
15689   shrext_cmds=".dll"
15690   need_version=no
15691   need_lib_prefix=no
15692
15693   case $GCC,$cc_basename in
15694   yes,*)
15695     # gcc
15696     library_names_spec='$libname.dll.a'
15697     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15698     postinstall_cmds='base_file=`basename \${file}`~
15699       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15700       dldir=$destdir/`dirname \$dlpath`~
15701       test -d \$dldir || mkdir -p \$dldir~
15702       $install_prog $dir/$dlname \$dldir/$dlname~
15703       chmod a+x \$dldir/$dlname~
15704       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15705         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15706       fi'
15707     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15708       dlpath=$dir/\$dldll~
15709        $RM \$dlpath'
15710     shlibpath_overrides_runpath=yes
15711
15712     case $host_os in
15713     cygwin*)
15714       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15715       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15716
15717       ;;
15718     mingw* | cegcc*)
15719       # MinGW DLLs use traditional 'lib' prefix
15720       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15721       ;;
15722     pw32*)
15723       # pw32 DLLs use 'pw' prefix rather than 'lib'
15724       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725       ;;
15726     esac
15727     dynamic_linker='Win32 ld.exe'
15728     ;;
15729
15730   *,cl*)
15731     # Native MSVC
15732     libname_spec='$name'
15733     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15734     library_names_spec='${libname}.dll.lib'
15735
15736     case $build_os in
15737     mingw*)
15738       sys_lib_search_path_spec=
15739       lt_save_ifs=$IFS
15740       IFS=';'
15741       for lt_path in $LIB
15742       do
15743         IFS=$lt_save_ifs
15744         # Let DOS variable expansion print the short 8.3 style file name.
15745         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15746         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15747       done
15748       IFS=$lt_save_ifs
15749       # Convert to MSYS style.
15750       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15751       ;;
15752     cygwin*)
15753       # Convert to unix form, then to dos form, then back to unix form
15754       # but this time dos style (no spaces!) so that the unix form looks
15755       # like /cygdrive/c/PROGRA~1:/cygdr...
15756       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15757       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15758       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15759       ;;
15760     *)
15761       sys_lib_search_path_spec="$LIB"
15762       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15763         # It is most probably a Windows format PATH.
15764         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15765       else
15766         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15767       fi
15768       # FIXME: find the short name or the path components, as spaces are
15769       # common. (e.g. "Program Files" -> "PROGRA~1")
15770       ;;
15771     esac
15772
15773     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15774     postinstall_cmds='base_file=`basename \${file}`~
15775       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15776       dldir=$destdir/`dirname \$dlpath`~
15777       test -d \$dldir || mkdir -p \$dldir~
15778       $install_prog $dir/$dlname \$dldir/$dlname'
15779     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15780       dlpath=$dir/\$dldll~
15781        $RM \$dlpath'
15782     shlibpath_overrides_runpath=yes
15783     dynamic_linker='Win32 link.exe'
15784     ;;
15785
15786   *)
15787     # Assume MSVC wrapper
15788     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15789     dynamic_linker='Win32 ld.exe'
15790     ;;
15791   esac
15792   # FIXME: first we should search . and the directory the executable is in
15793   shlibpath_var=PATH
15794   ;;
15795
15796 darwin* | rhapsody*)
15797   dynamic_linker="$host_os dyld"
15798   version_type=darwin
15799   need_lib_prefix=no
15800   need_version=no
15801   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15802   soname_spec='${libname}${release}${major}$shared_ext'
15803   shlibpath_overrides_runpath=yes
15804   shlibpath_var=DYLD_LIBRARY_PATH
15805   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15806
15807   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15808   ;;
15809
15810 dgux*)
15811   version_type=linux # correct to gnu/linux during the next big refactor
15812   need_lib_prefix=no
15813   need_version=no
15814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15815   soname_spec='${libname}${release}${shared_ext}$major'
15816   shlibpath_var=LD_LIBRARY_PATH
15817   ;;
15818
15819 freebsd* | dragonfly*)
15820   # DragonFly does not have aout.  When/if they implement a new
15821   # versioning mechanism, adjust this.
15822   if test -x /usr/bin/objformat; then
15823     objformat=`/usr/bin/objformat`
15824   else
15825     case $host_os in
15826     freebsd[23].*) objformat=aout ;;
15827     *) objformat=elf ;;
15828     esac
15829   fi
15830   version_type=freebsd-$objformat
15831   case $version_type in
15832     freebsd-elf*)
15833       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15834       need_version=no
15835       need_lib_prefix=no
15836       ;;
15837     freebsd-*)
15838       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15839       need_version=yes
15840       ;;
15841   esac
15842   shlibpath_var=LD_LIBRARY_PATH
15843   case $host_os in
15844   freebsd2.*)
15845     shlibpath_overrides_runpath=yes
15846     ;;
15847   freebsd3.[01]* | freebsdelf3.[01]*)
15848     shlibpath_overrides_runpath=yes
15849     hardcode_into_libs=yes
15850     ;;
15851   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15852   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15853     shlibpath_overrides_runpath=no
15854     hardcode_into_libs=yes
15855     ;;
15856   *) # from 4.6 on, and DragonFly
15857     shlibpath_overrides_runpath=yes
15858     hardcode_into_libs=yes
15859     ;;
15860   esac
15861   ;;
15862
15863 haiku*)
15864   version_type=linux # correct to gnu/linux during the next big refactor
15865   need_lib_prefix=no
15866   need_version=no
15867   dynamic_linker="$host_os runtime_loader"
15868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15869   soname_spec='${libname}${release}${shared_ext}$major'
15870   shlibpath_var=LIBRARY_PATH
15871   shlibpath_overrides_runpath=yes
15872   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15873   hardcode_into_libs=yes
15874   ;;
15875
15876 hpux9* | hpux10* | hpux11*)
15877   # Give a soname corresponding to the major version so that dld.sl refuses to
15878   # link against other versions.
15879   version_type=sunos
15880   need_lib_prefix=no
15881   need_version=no
15882   case $host_cpu in
15883   ia64*)
15884     shrext_cmds='.so'
15885     hardcode_into_libs=yes
15886     dynamic_linker="$host_os dld.so"
15887     shlibpath_var=LD_LIBRARY_PATH
15888     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890     soname_spec='${libname}${release}${shared_ext}$major'
15891     if test "X$HPUX_IA64_MODE" = X32; then
15892       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15893     else
15894       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15895     fi
15896     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15897     ;;
15898   hppa*64*)
15899     shrext_cmds='.sl'
15900     hardcode_into_libs=yes
15901     dynamic_linker="$host_os dld.sl"
15902     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905     soname_spec='${libname}${release}${shared_ext}$major'
15906     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15908     ;;
15909   *)
15910     shrext_cmds='.sl'
15911     dynamic_linker="$host_os dld.sl"
15912     shlibpath_var=SHLIB_PATH
15913     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915     soname_spec='${libname}${release}${shared_ext}$major'
15916     ;;
15917   esac
15918   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15919   postinstall_cmds='chmod 555 $lib'
15920   # or fails outright, so override atomically:
15921   install_override_mode=555
15922   ;;
15923
15924 interix[3-9]*)
15925   version_type=linux # correct to gnu/linux during the next big refactor
15926   need_lib_prefix=no
15927   need_version=no
15928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15929   soname_spec='${libname}${release}${shared_ext}$major'
15930   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15931   shlibpath_var=LD_LIBRARY_PATH
15932   shlibpath_overrides_runpath=no
15933   hardcode_into_libs=yes
15934   ;;
15935
15936 irix5* | irix6* | nonstopux*)
15937   case $host_os in
15938     nonstopux*) version_type=nonstopux ;;
15939     *)
15940         if test "$lt_cv_prog_gnu_ld" = yes; then
15941                 version_type=linux # correct to gnu/linux during the next big refactor
15942         else
15943                 version_type=irix
15944         fi ;;
15945   esac
15946   need_lib_prefix=no
15947   need_version=no
15948   soname_spec='${libname}${release}${shared_ext}$major'
15949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15950   case $host_os in
15951   irix5* | nonstopux*)
15952     libsuff= shlibsuff=
15953     ;;
15954   *)
15955     case $LD in # libtool.m4 will add one of these switches to LD
15956     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15957       libsuff= shlibsuff= libmagic=32-bit;;
15958     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15959       libsuff=32 shlibsuff=N32 libmagic=N32;;
15960     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15961       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15962     *) libsuff= shlibsuff= libmagic=never-match;;
15963     esac
15964     ;;
15965   esac
15966   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15967   shlibpath_overrides_runpath=no
15968   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15969   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15970   hardcode_into_libs=yes
15971   ;;
15972
15973 # No shared lib support for Linux oldld, aout, or coff.
15974 linux*oldld* | linux*aout* | linux*coff*)
15975   dynamic_linker=no
15976   ;;
15977
15978 # This must be glibc/ELF.
15979 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15980   version_type=linux # correct to gnu/linux during the next big refactor
15981   need_lib_prefix=no
15982   need_version=no
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984   soname_spec='${libname}${release}${shared_ext}$major'
15985   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15986   shlibpath_var=LD_LIBRARY_PATH
15987   shlibpath_overrides_runpath=no
15988
15989   # Some binutils ld are patched to set DT_RUNPATH
15990   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15991   $as_echo_n "(cached) " >&6
15992 else
15993   lt_cv_shlibpath_overrides_runpath=no
15994     save_LDFLAGS=$LDFLAGS
15995     save_libdir=$libdir
15996     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15997          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15998     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h.  */
16000
16001 int
16002 main ()
16003 {
16004
16005   ;
16006   return 0;
16007 }
16008 _ACEOF
16009 if ac_fn_cxx_try_link "$LINENO"; then :
16010   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16011   lt_cv_shlibpath_overrides_runpath=yes
16012 fi
16013 fi
16014 rm -f core conftest.err conftest.$ac_objext \
16015     conftest$ac_exeext conftest.$ac_ext
16016     LDFLAGS=$save_LDFLAGS
16017     libdir=$save_libdir
16018
16019 fi
16020
16021   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16022
16023   # This implies no fast_install, which is unacceptable.
16024   # Some rework will be needed to allow for fast_install
16025   # before this can be enabled.
16026   hardcode_into_libs=yes
16027
16028   # Append ld.so.conf contents to the search path
16029   if test -f /etc/ld.so.conf; then
16030     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' ' '`
16031     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16032   fi
16033
16034   # We used to test for /lib/ld.so.1 and disable shared libraries on
16035   # powerpc, because MkLinux only supported shared libraries with the
16036   # GNU dynamic linker.  Since this was broken with cross compilers,
16037   # most powerpc-linux boxes support dynamic linking these days and
16038   # people can always --disable-shared, the test was removed, and we
16039   # assume the GNU/Linux dynamic linker is in use.
16040   dynamic_linker='GNU/Linux ld.so'
16041   ;;
16042
16043 netbsdelf*-gnu)
16044   version_type=linux
16045   need_lib_prefix=no
16046   need_version=no
16047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16048   soname_spec='${libname}${release}${shared_ext}$major'
16049   shlibpath_var=LD_LIBRARY_PATH
16050   shlibpath_overrides_runpath=no
16051   hardcode_into_libs=yes
16052   dynamic_linker='NetBSD ld.elf_so'
16053   ;;
16054
16055 netbsd*)
16056   version_type=sunos
16057   need_lib_prefix=no
16058   need_version=no
16059   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16061     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16062     dynamic_linker='NetBSD (a.out) ld.so'
16063   else
16064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16065     soname_spec='${libname}${release}${shared_ext}$major'
16066     dynamic_linker='NetBSD ld.elf_so'
16067   fi
16068   shlibpath_var=LD_LIBRARY_PATH
16069   shlibpath_overrides_runpath=yes
16070   hardcode_into_libs=yes
16071   ;;
16072
16073 newsos6)
16074   version_type=linux # correct to gnu/linux during the next big refactor
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076   shlibpath_var=LD_LIBRARY_PATH
16077   shlibpath_overrides_runpath=yes
16078   ;;
16079
16080 *nto* | *qnx*)
16081   version_type=qnx
16082   need_lib_prefix=no
16083   need_version=no
16084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085   soname_spec='${libname}${release}${shared_ext}$major'
16086   shlibpath_var=LD_LIBRARY_PATH
16087   shlibpath_overrides_runpath=no
16088   hardcode_into_libs=yes
16089   dynamic_linker='ldqnx.so'
16090   ;;
16091
16092 openbsd*)
16093   version_type=sunos
16094   sys_lib_dlsearch_path_spec="/usr/lib"
16095   need_lib_prefix=no
16096   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16097   case $host_os in
16098     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16099     *)                          need_version=no  ;;
16100   esac
16101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16102   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16103   shlibpath_var=LD_LIBRARY_PATH
16104   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16105     case $host_os in
16106       openbsd2.[89] | openbsd2.[89].*)
16107         shlibpath_overrides_runpath=no
16108         ;;
16109       *)
16110         shlibpath_overrides_runpath=yes
16111         ;;
16112       esac
16113   else
16114     shlibpath_overrides_runpath=yes
16115   fi
16116   ;;
16117
16118 os2*)
16119   libname_spec='$name'
16120   shrext_cmds=".dll"
16121   need_lib_prefix=no
16122   library_names_spec='$libname${shared_ext} $libname.a'
16123   dynamic_linker='OS/2 ld.exe'
16124   shlibpath_var=LIBPATH
16125   ;;
16126
16127 osf3* | osf4* | osf5*)
16128   version_type=osf
16129   need_lib_prefix=no
16130   need_version=no
16131   soname_spec='${libname}${release}${shared_ext}$major'
16132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133   shlibpath_var=LD_LIBRARY_PATH
16134   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16135   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16136   ;;
16137
16138 rdos*)
16139   dynamic_linker=no
16140   ;;
16141
16142 solaris*)
16143   version_type=linux # correct to gnu/linux during the next big refactor
16144   need_lib_prefix=no
16145   need_version=no
16146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147   soname_spec='${libname}${release}${shared_ext}$major'
16148   shlibpath_var=LD_LIBRARY_PATH
16149   shlibpath_overrides_runpath=yes
16150   hardcode_into_libs=yes
16151   # ldd complains unless libraries are executable
16152   postinstall_cmds='chmod +x $lib'
16153   ;;
16154
16155 sunos4*)
16156   version_type=sunos
16157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16158   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16159   shlibpath_var=LD_LIBRARY_PATH
16160   shlibpath_overrides_runpath=yes
16161   if test "$with_gnu_ld" = yes; then
16162     need_lib_prefix=no
16163   fi
16164   need_version=yes
16165   ;;
16166
16167 sysv4 | sysv4.3*)
16168   version_type=linux # correct to gnu/linux during the next big refactor
16169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170   soname_spec='${libname}${release}${shared_ext}$major'
16171   shlibpath_var=LD_LIBRARY_PATH
16172   case $host_vendor in
16173     sni)
16174       shlibpath_overrides_runpath=no
16175       need_lib_prefix=no
16176       runpath_var=LD_RUN_PATH
16177       ;;
16178     siemens)
16179       need_lib_prefix=no
16180       ;;
16181     motorola)
16182       need_lib_prefix=no
16183       need_version=no
16184       shlibpath_overrides_runpath=no
16185       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16186       ;;
16187   esac
16188   ;;
16189
16190 sysv4*MP*)
16191   if test -d /usr/nec ;then
16192     version_type=linux # correct to gnu/linux during the next big refactor
16193     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16194     soname_spec='$libname${shared_ext}.$major'
16195     shlibpath_var=LD_LIBRARY_PATH
16196   fi
16197   ;;
16198
16199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16200   version_type=freebsd-elf
16201   need_lib_prefix=no
16202   need_version=no
16203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16204   soname_spec='${libname}${release}${shared_ext}$major'
16205   shlibpath_var=LD_LIBRARY_PATH
16206   shlibpath_overrides_runpath=yes
16207   hardcode_into_libs=yes
16208   if test "$with_gnu_ld" = yes; then
16209     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16210   else
16211     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16212     case $host_os in
16213       sco3.2v5*)
16214         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16215         ;;
16216     esac
16217   fi
16218   sys_lib_dlsearch_path_spec='/usr/lib'
16219   ;;
16220
16221 tpf*)
16222   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16223   version_type=linux # correct to gnu/linux during the next big refactor
16224   need_lib_prefix=no
16225   need_version=no
16226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16227   shlibpath_var=LD_LIBRARY_PATH
16228   shlibpath_overrides_runpath=no
16229   hardcode_into_libs=yes
16230   ;;
16231
16232 uts4*)
16233   version_type=linux # correct to gnu/linux during the next big refactor
16234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235   soname_spec='${libname}${release}${shared_ext}$major'
16236   shlibpath_var=LD_LIBRARY_PATH
16237   ;;
16238
16239 *)
16240   dynamic_linker=no
16241   ;;
16242 esac
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16244 $as_echo "$dynamic_linker" >&6; }
16245 test "$dynamic_linker" = no && can_build_shared=no
16246
16247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16248 if test "$GCC" = yes; then
16249   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16250 fi
16251
16252 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16253   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16254 fi
16255 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16256   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16257 fi
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16297 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16298 hardcode_action_CXX=
16299 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16300    test -n "$runpath_var_CXX" ||
16301    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16302
16303   # We can hardcode non-existent directories.
16304   if test "$hardcode_direct_CXX" != no &&
16305      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16306      # have to relink, otherwise we might link with an installed library
16307      # when we should be linking with a yet-to-be-installed one
16308      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16309      test "$hardcode_minus_L_CXX" != no; then
16310     # Linking always hardcodes the temporary library directory.
16311     hardcode_action_CXX=relink
16312   else
16313     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16314     hardcode_action_CXX=immediate
16315   fi
16316 else
16317   # We cannot hardcode anything, or else we can only hardcode existing
16318   # directories.
16319   hardcode_action_CXX=unsupported
16320 fi
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16322 $as_echo "$hardcode_action_CXX" >&6; }
16323
16324 if test "$hardcode_action_CXX" = relink ||
16325    test "$inherit_rpath_CXX" = yes; then
16326   # Fast installation is not supported
16327   enable_fast_install=no
16328 elif test "$shlibpath_overrides_runpath" = yes ||
16329      test "$enable_shared" = no; then
16330   # Fast installation is not necessary
16331   enable_fast_install=needless
16332 fi
16333
16334
16335
16336
16337
16338
16339
16340   fi # test -n "$compiler"
16341
16342   CC=$lt_save_CC
16343   CFLAGS=$lt_save_CFLAGS
16344   LDCXX=$LD
16345   LD=$lt_save_LD
16346   GCC=$lt_save_GCC
16347   with_gnu_ld=$lt_save_with_gnu_ld
16348   lt_cv_path_LDCXX=$lt_cv_path_LD
16349   lt_cv_path_LD=$lt_save_path_LD
16350   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16351   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16352 fi # test "$_lt_caught_CXX_error" != yes
16353
16354 ac_ext=c
16355 ac_cpp='$CPP $CPPFLAGS'
16356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374         ac_config_commands="$ac_config_commands libtool"
16375
16376
16377
16378
16379 # Only expand once:
16380
16381
16382
16383 LT_DLLOADERS=
16384
16385
16386 ac_ext=c
16387 ac_cpp='$CPP $CPPFLAGS'
16388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16391
16392
16393 LIBADD_DLOPEN=
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16395 $as_echo_n "checking for library containing dlopen... " >&6; }
16396 if ${ac_cv_search_dlopen+:} false; then :
16397   $as_echo_n "(cached) " >&6
16398 else
16399   ac_func_search_save_LIBS=$LIBS
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h.  */
16402
16403 /* Override any GCC internal prototype to avoid an error.
16404    Use char because int might match the return type of a GCC
16405    builtin and then its argument prototype would still apply.  */
16406 #ifdef __cplusplus
16407 extern "C"
16408 #endif
16409 char dlopen ();
16410 int
16411 main ()
16412 {
16413 return dlopen ();
16414   ;
16415   return 0;
16416 }
16417 _ACEOF
16418 for ac_lib in '' dl; do
16419   if test -z "$ac_lib"; then
16420     ac_res="none required"
16421   else
16422     ac_res=-l$ac_lib
16423     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16424   fi
16425   if ac_fn_c_try_link "$LINENO"; then :
16426   ac_cv_search_dlopen=$ac_res
16427 fi
16428 rm -f core conftest.err conftest.$ac_objext \
16429     conftest$ac_exeext
16430   if ${ac_cv_search_dlopen+:} false; then :
16431   break
16432 fi
16433 done
16434 if ${ac_cv_search_dlopen+:} false; then :
16435
16436 else
16437   ac_cv_search_dlopen=no
16438 fi
16439 rm conftest.$ac_ext
16440 LIBS=$ac_func_search_save_LIBS
16441 fi
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16443 $as_echo "$ac_cv_search_dlopen" >&6; }
16444 ac_res=$ac_cv_search_dlopen
16445 if test "$ac_res" != no; then :
16446   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16447
16448 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16449
16450         if test "$ac_cv_search_dlopen" != "none required" ; then
16451           LIBADD_DLOPEN="-ldl"
16452         fi
16453         libltdl_cv_lib_dl_dlopen="yes"
16454         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16455 else
16456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h.  */
16458 #if HAVE_DLFCN_H
16459 #  include <dlfcn.h>
16460 #endif
16461
16462 int
16463 main ()
16464 {
16465 dlopen(0, 0);
16466   ;
16467   return 0;
16468 }
16469 _ACEOF
16470 if ac_fn_c_try_link "$LINENO"; then :
16471
16472 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16473
16474             libltdl_cv_func_dlopen="yes"
16475             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16476 else
16477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16478 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16479 if ${ac_cv_lib_svld_dlopen+:} false; then :
16480   $as_echo_n "(cached) " >&6
16481 else
16482   ac_check_lib_save_LIBS=$LIBS
16483 LIBS="-lsvld  $LIBS"
16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485 /* end confdefs.h.  */
16486
16487 /* Override any GCC internal prototype to avoid an error.
16488    Use char because int might match the return type of a GCC
16489    builtin and then its argument prototype would still apply.  */
16490 #ifdef __cplusplus
16491 extern "C"
16492 #endif
16493 char dlopen ();
16494 int
16495 main ()
16496 {
16497 return dlopen ();
16498   ;
16499   return 0;
16500 }
16501 _ACEOF
16502 if ac_fn_c_try_link "$LINENO"; then :
16503   ac_cv_lib_svld_dlopen=yes
16504 else
16505   ac_cv_lib_svld_dlopen=no
16506 fi
16507 rm -f core conftest.err conftest.$ac_objext \
16508     conftest$ac_exeext conftest.$ac_ext
16509 LIBS=$ac_check_lib_save_LIBS
16510 fi
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16512 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16513 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16514
16515 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16516
16517                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16518                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16519 fi
16520
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext \
16523     conftest$ac_exeext conftest.$ac_ext
16524 fi
16525
16526 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16527 then
16528   lt_save_LIBS="$LIBS"
16529   LIBS="$LIBS $LIBADD_DLOPEN"
16530   for ac_func in dlerror
16531 do :
16532   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16533 if test "x$ac_cv_func_dlerror" = xyes; then :
16534   cat >>confdefs.h <<_ACEOF
16535 #define HAVE_DLERROR 1
16536 _ACEOF
16537
16538 fi
16539 done
16540
16541   LIBS="$lt_save_LIBS"
16542 fi
16543
16544
16545 LIBADD_SHL_LOAD=
16546 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16547 if test "x$ac_cv_func_shl_load" = xyes; then :
16548
16549 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16550
16551         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16552 else
16553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16554 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16555 if ${ac_cv_lib_dld_shl_load+:} false; then :
16556   $as_echo_n "(cached) " >&6
16557 else
16558   ac_check_lib_save_LIBS=$LIBS
16559 LIBS="-ldld  $LIBS"
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h.  */
16562
16563 /* Override any GCC internal prototype to avoid an error.
16564    Use char because int might match the return type of a GCC
16565    builtin and then its argument prototype would still apply.  */
16566 #ifdef __cplusplus
16567 extern "C"
16568 #endif
16569 char shl_load ();
16570 int
16571 main ()
16572 {
16573 return shl_load ();
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 if ac_fn_c_try_link "$LINENO"; then :
16579   ac_cv_lib_dld_shl_load=yes
16580 else
16581   ac_cv_lib_dld_shl_load=no
16582 fi
16583 rm -f core conftest.err conftest.$ac_objext \
16584     conftest$ac_exeext conftest.$ac_ext
16585 LIBS=$ac_check_lib_save_LIBS
16586 fi
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16588 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16589 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16590
16591 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16592
16593             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16594             LIBADD_SHL_LOAD="-ldld"
16595 fi
16596
16597 fi
16598
16599
16600
16601 case $host_os in
16602 darwin[1567].*)
16603 # We only want this for pre-Mac OS X 10.4.
16604   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16605 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16606
16607 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16608
16609         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16610 fi
16611
16612   ;;
16613 beos*)
16614   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16615   ;;
16616 cygwin* | mingw* | os2* | pw32*)
16617   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16618 "
16619 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16620   ac_have_decl=1
16621 else
16622   ac_have_decl=0
16623 fi
16624
16625 cat >>confdefs.h <<_ACEOF
16626 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16627 _ACEOF
16628
16629   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16630   ;;
16631 esac
16632
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16634 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16635 if ${ac_cv_lib_dld_dld_link+:} false; then :
16636   $as_echo_n "(cached) " >&6
16637 else
16638   ac_check_lib_save_LIBS=$LIBS
16639 LIBS="-ldld  $LIBS"
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h.  */
16642
16643 /* Override any GCC internal prototype to avoid an error.
16644    Use char because int might match the return type of a GCC
16645    builtin and then its argument prototype would still apply.  */
16646 #ifdef __cplusplus
16647 extern "C"
16648 #endif
16649 char dld_link ();
16650 int
16651 main ()
16652 {
16653 return dld_link ();
16654   ;
16655   return 0;
16656 }
16657 _ACEOF
16658 if ac_fn_c_try_link "$LINENO"; then :
16659   ac_cv_lib_dld_dld_link=yes
16660 else
16661   ac_cv_lib_dld_dld_link=no
16662 fi
16663 rm -f core conftest.err conftest.$ac_objext \
16664     conftest$ac_exeext conftest.$ac_ext
16665 LIBS=$ac_check_lib_save_LIBS
16666 fi
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16668 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16669 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16670
16671 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16672
16673                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16674 fi
16675
16676
16677
16678
16679 LT_DLPREOPEN=
16680 if test -n "$LT_DLLOADERS"
16681 then
16682   for lt_loader in $LT_DLLOADERS; do
16683     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16684   done
16685
16686 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16687
16688 fi
16689
16690
16691 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16692
16693
16694 ac_ext=c
16695 ac_cpp='$CPP $CPPFLAGS'
16696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16699
16700
16701
16702
16703 if test x$use_libtool != xno; then
16704    DEFAULT_OBJECT_TYPE=".lo"
16705    DEFAULT_ARCHIVE_TYPE=".la"
16706    DEFAULT_SHARED_OBJECT_TYPE=".la"
16707    LIBTOOL="\$(LIBTOOL)"
16708    LIBTOOL_INSTALL_TARGET="libtool-install"
16709    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16710    LIBTOOL_CLEAN_TARGET="libtool-clean"
16711    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16712    FD_PLUGIN_DIR="src/plugins/fd"
16713    have_plugins=yes
16714 else
16715    DEFAULT_OBJECT_TYPE=".o"
16716    DEFAULT_ARCHIVE_TYPE=".a"
16717    DEFAULT_SHARED_OBJECT_TYPE=".so"
16718    LIBTOOL="# \$(LIBTOOL)"
16719    LIBTOOL_INSTALL_TARGET=""
16720    LIBTOOL_UNINSTALL_TARGET=""
16721    LIBTOOL_CLEAN_TARGET=""
16722    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16723    FD_PLUGIN_DIR=""
16724    have_plugins=no
16725 fi
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737 # Check whether --enable-includes was given.
16738 if test "${enable_includes+set}" = set; then :
16739   enableval=$enable_includes;
16740        if test x$enableval = xyes; then
16741           install_includes=yes
16742        fi
16743
16744
16745 fi
16746
16747
16748
16749 if test x$use_libtool != xno -a x$install_includes = xyes; then
16750    INCLUDE_INSTALL_TARGET="install-includes"
16751    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16752 else
16753    INCLUDE_INSTALL_TARGET=""
16754    INCLUDE_UNINSTALL_TARGET=""
16755 fi
16756
16757
16758
16759
16760
16761 case $host_os in
16762   *cygwin* ) CYGWIN=yes;;
16763          * ) CYGWIN=no;;
16764 esac
16765
16766 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16767 then
16768
16769
16770 if $TRUEPRG; then
16771   HAVE_SUN_OS_TRUE=
16772   HAVE_SUN_OS_FALSE='#'
16773 else
16774   HAVE_SUN_OS_TRUE='#'
16775   HAVE_SUN_OS_FALSE=
16776 fi
16777         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16778
16779 else
16780
16781
16782 if $FALSEPRG; then
16783   HAVE_SUN_OS_TRUE=
16784   HAVE_SUN_OS_FALSE='#'
16785 else
16786   HAVE_SUN_OS_TRUE='#'
16787   HAVE_SUN_OS_FALSE=
16788 fi
16789 fi
16790
16791 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16792 then
16793
16794
16795 if $TRUEPRG; then
16796   HAVE_HURD_OS_TRUE=
16797   HAVE_HURD_OS_FALSE='#'
16798 else
16799   HAVE_HURD_OS_TRUE='#'
16800   HAVE_HURD_OS_FALSE=
16801 fi
16802         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16803
16804 else
16805
16806
16807 if $FALSEPRG; then
16808   HAVE_HURD_OS_TRUE=
16809   HAVE_HURD_OS_FALSE='#'
16810 else
16811   HAVE_HURD_OS_TRUE='#'
16812   HAVE_HURD_OS_FALSE=
16813 fi
16814 fi
16815
16816 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16817 then
16818
16819
16820 if $TRUEPRG; then
16821   HAVE_OSF1_OS_TRUE=
16822   HAVE_OSF1_OS_FALSE='#'
16823 else
16824   HAVE_OSF1_OS_TRUE='#'
16825   HAVE_OSF1_OS_FALSE=
16826 fi
16827         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16828
16829 else
16830
16831
16832 if $FALSEPRG; then
16833   HAVE_OSF1_OS_TRUE=
16834   HAVE_OSF1_OS_FALSE='#'
16835 else
16836   HAVE_OSF1_OS_TRUE='#'
16837   HAVE_OSF1_OS_FALSE=
16838 fi
16839 fi
16840
16841 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16842 then
16843
16844
16845 if $TRUEPRG; then
16846   HAVE_AIX_OS_TRUE=
16847   HAVE_AIX_OS_FALSE='#'
16848 else
16849   HAVE_AIX_OS_TRUE='#'
16850   HAVE_AIX_OS_FALSE=
16851 fi
16852         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16853
16854 else
16855
16856
16857 if $FALSEPRG; then
16858   HAVE_AIX_OS_TRUE=
16859   HAVE_AIX_OS_FALSE='#'
16860 else
16861   HAVE_AIX_OS_TRUE='#'
16862   HAVE_AIX_OS_FALSE=
16863 fi
16864 fi
16865
16866 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16867 then
16868
16869
16870 if $TRUEPRG; then
16871   HAVE_HPUX_OS_TRUE=
16872   HAVE_HPUX_OS_FALSE='#'
16873 else
16874   HAVE_HPUX_OS_TRUE='#'
16875   HAVE_HPUX_OS_FALSE=
16876 fi
16877         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16878
16879 else
16880
16881
16882 if $FALSEPRG; then
16883   HAVE_HPUX_OS_TRUE=
16884   HAVE_HPUX_OS_FALSE='#'
16885 else
16886   HAVE_HPUX_OS_TRUE='#'
16887   HAVE_HPUX_OS_FALSE=
16888 fi
16889 fi
16890
16891 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16892 then
16893
16894
16895 if $TRUEPRG; then
16896   HAVE_LINUX_OS_TRUE=
16897   HAVE_LINUX_OS_FALSE='#'
16898 else
16899   HAVE_LINUX_OS_TRUE='#'
16900   HAVE_LINUX_OS_FALSE=
16901 fi
16902         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16903
16904 else
16905
16906
16907 if $FALSEPRG; then
16908   HAVE_LINUX_OS_TRUE=
16909   HAVE_LINUX_OS_FALSE='#'
16910 else
16911   HAVE_LINUX_OS_TRUE='#'
16912   HAVE_LINUX_OS_FALSE=
16913 fi
16914 fi
16915
16916 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16917 then
16918
16919
16920 if $TRUEPRG; then
16921   HAVE_FREEBSD_OS_TRUE=
16922   HAVE_FREEBSD_OS_FALSE='#'
16923 else
16924   HAVE_FREEBSD_OS_TRUE='#'
16925   HAVE_FREEBSD_OS_FALSE=
16926 fi
16927         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16928
16929 else
16930
16931
16932 if $FALSEPRG; then
16933   HAVE_FREEBSD_OS_TRUE=
16934   HAVE_FREEBSD_OS_FALSE='#'
16935 else
16936   HAVE_FREEBSD_OS_TRUE='#'
16937   HAVE_FREEBSD_OS_FALSE=
16938 fi
16939 fi
16940
16941 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16942 then
16943
16944
16945 if $TRUEPRG; then
16946   HAVE_NETBSD_OS_TRUE=
16947   HAVE_NETBSD_OS_FALSE='#'
16948 else
16949   HAVE_NETBSD_OS_TRUE='#'
16950   HAVE_NETBSD_OS_FALSE=
16951 fi
16952         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16953
16954 else
16955
16956
16957 if $FALSEPRG; then
16958   HAVE_NETBSD_OS_TRUE=
16959   HAVE_NETBSD_OS_FALSE='#'
16960 else
16961   HAVE_NETBSD_OS_TRUE='#'
16962   HAVE_NETBSD_OS_FALSE=
16963 fi
16964 fi
16965
16966 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16967 then
16968
16969
16970 if $TRUEPRG; then
16971   HAVE_OPENBSD_OS_TRUE=
16972   HAVE_OPENBSD_OS_FALSE='#'
16973 else
16974   HAVE_OPENBSD_OS_TRUE='#'
16975   HAVE_OPENBSD_OS_FALSE=
16976 fi
16977         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16978
16979 else
16980
16981
16982 if $FALSEPRG; then
16983   HAVE_OPENBSD_OS_TRUE=
16984   HAVE_OPENBSD_OS_FALSE='#'
16985 else
16986   HAVE_OPENBSD_OS_TRUE='#'
16987   HAVE_OPENBSD_OS_FALSE=
16988 fi
16989 fi
16990
16991 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16992 then
16993
16994
16995 if $TRUEPRG; then
16996   HAVE_BSDI_OS_TRUE=
16997   HAVE_BSDI_OS_FALSE='#'
16998 else
16999   HAVE_BSDI_OS_TRUE='#'
17000   HAVE_BSDI_OS_FALSE=
17001 fi
17002         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17003
17004 else
17005
17006
17007 if $FALSEPRG; then
17008   HAVE_BSDI_OS_TRUE=
17009   HAVE_BSDI_OS_FALSE='#'
17010 else
17011   HAVE_BSDI_OS_TRUE='#'
17012   HAVE_BSDI_OS_FALSE=
17013 fi
17014 fi
17015
17016 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17017 then
17018
17019
17020 if $TRUEPRG; then
17021   HAVE_SGI_OS_TRUE=
17022   HAVE_SGI_OS_FALSE='#'
17023 else
17024   HAVE_SGI_OS_TRUE='#'
17025   HAVE_SGI_OS_FALSE=
17026 fi
17027         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17028
17029 else
17030
17031
17032 if $FALSEPRG; then
17033   HAVE_SGI_OS_TRUE=
17034   HAVE_SGI_OS_FALSE='#'
17035 else
17036   HAVE_SGI_OS_TRUE='#'
17037   HAVE_SGI_OS_FALSE=
17038 fi
17039 fi
17040
17041 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17042 then
17043
17044
17045 if $TRUEPRG; then
17046   HAVE_IRIX_OS_TRUE=
17047   HAVE_IRIX_OS_FALSE='#'
17048 else
17049   HAVE_IRIX_OS_TRUE='#'
17050   HAVE_IRIX_OS_FALSE=
17051 fi
17052         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17053
17054 else
17055
17056
17057 if $FALSEPRG; then
17058   HAVE_IRIX_OS_TRUE=
17059   HAVE_IRIX_OS_FALSE='#'
17060 else
17061   HAVE_IRIX_OS_TRUE='#'
17062   HAVE_IRIX_OS_FALSE=
17063 fi
17064 fi
17065
17066 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17067 then
17068
17069
17070 if $TRUEPRG; then
17071   HAVE_DARWIN_OS_TRUE=
17072   HAVE_DARWIN_OS_FALSE='#'
17073 else
17074   HAVE_DARWIN_OS_TRUE='#'
17075   HAVE_DARWIN_OS_FALSE=
17076 fi
17077     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17078
17079 else
17080
17081
17082 if $FALSEPRG; then
17083   HAVE_DARWIN_OS_TRUE=
17084   HAVE_DARWIN_OS_FALSE='#'
17085 else
17086   HAVE_DARWIN_OS_TRUE='#'
17087   HAVE_DARWIN_OS_FALSE=
17088 fi
17089 fi
17090
17091
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17093 $as_echo_n "checking for Operating System Distribution... " >&6; }
17094 if test "x$DISTNAME" != "x"
17095 then
17096         echo "distname set to $DISTNAME"
17097 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17098 then
17099         DISTNAME=alpha
17100 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17101 then
17102         DISTNAME=aix
17103 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17104 then
17105         DISTNAME=hpux
17106 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17107 then
17108         DISTNAME=solaris
17109 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17110 then
17111         DISTNAME=hurd
17112 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17113 then
17114         DISTNAME=freebsd
17115 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17116 then
17117         DISTNAME=netbsd
17118 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17119 then
17120         DISTNAME=openbsd
17121 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17122 then
17123         DISTNAME=irix
17124 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17125 then
17126         DISTNAME=bsdi
17127 elif test -f /etc/SuSE-release
17128 then
17129         DISTNAME=suse
17130 elif test -d /etc/SuSEconfig
17131 then
17132         DISTNAME=suse5
17133 elif test -f /etc/mandrake-release
17134 then
17135         DISTNAME=mandrake
17136 elif test -f /etc/whitebox-release
17137 then
17138        DISTNAME=redhat
17139 elif test -f /etc/redhat-release
17140 then
17141         DISTNAME=redhat
17142 elif test -f /etc/gentoo-release
17143 then
17144         DISTNAME=gentoo
17145 elif test -f /etc/debian_version
17146 then
17147         DISTNAME=debian
17148 elif test -f /etc/slackware-version
17149 then
17150         DISTNAME=slackware
17151 elif test x$host_vendor = xapple
17152 then
17153     DISTNAME=osx
17154 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17155 then
17156     DISTNAME=darwin
17157 elif test -f /etc/engarde-version
17158 then
17159         DISTNAME=engarde
17160 elif test -f /etc/arch-release
17161 then
17162         DISTNAME=archlinux
17163 elif test "$CYGWIN" = yes
17164 then
17165         DISTNAME=cygwin
17166         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17167
17168 else
17169         DISTNAME=unknown
17170 fi
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17172 $as_echo "done" >&6; }
17173
17174
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17176 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17177 set x ${MAKE-make}
17178 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17179 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17180   $as_echo_n "(cached) " >&6
17181 else
17182   cat >conftest.make <<\_ACEOF
17183 SHELL = /bin/sh
17184 all:
17185         @echo '@@@%%%=$(MAKE)=@@@%%%'
17186 _ACEOF
17187 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17188 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17189   *@@@%%%=?*=@@@%%%*)
17190     eval ac_cv_prog_make_${ac_make}_set=yes;;
17191   *)
17192     eval ac_cv_prog_make_${ac_make}_set=no;;
17193 esac
17194 rm -f conftest.make
17195 fi
17196 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17198 $as_echo "yes" >&6; }
17199   SET_MAKE=
17200 else
17201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17202 $as_echo "no" >&6; }
17203   SET_MAKE="MAKE=${MAKE-make}"
17204 fi
17205
17206
17207
17208         MKINSTALLDIRS=
17209   if test -n "$ac_aux_dir"; then
17210     case "$ac_aux_dir" in
17211       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17212       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17213     esac
17214   fi
17215   if test -z "$MKINSTALLDIRS"; then
17216     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17217   fi
17218
17219
17220
17221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17222 $as_echo_n "checking whether NLS is requested... " >&6; }
17223     # Check whether --enable-nls was given.
17224 if test "${enable_nls+set}" = set; then :
17225   enableval=$enable_nls; USE_NLS=$enableval
17226 else
17227   USE_NLS=yes
17228 fi
17229
17230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17231 $as_echo "$USE_NLS" >&6; }
17232
17233
17234
17235
17236
17237
17238 # Prepare PATH_SEPARATOR.
17239 # The user is always right.
17240 if test "${PATH_SEPARATOR+set}" != set; then
17241   echo "#! /bin/sh" >conf$$.sh
17242   echo  "exit 0"   >>conf$$.sh
17243   chmod +x conf$$.sh
17244   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17245     PATH_SEPARATOR=';'
17246   else
17247     PATH_SEPARATOR=:
17248   fi
17249   rm -f conf$$.sh
17250 fi
17251
17252 # Find out how to test for executable files. Don't use a zero-byte file,
17253 # as systems may use methods other than mode bits to determine executability.
17254 cat >conf$$.file <<_ASEOF
17255 #! /bin/sh
17256 exit 0
17257 _ASEOF
17258 chmod +x conf$$.file
17259 if test -x conf$$.file >/dev/null 2>&1; then
17260   ac_executable_p="test -x"
17261 else
17262   ac_executable_p="test -f"
17263 fi
17264 rm -f conf$$.file
17265
17266 # Extract the first word of "msgfmt", so it can be a program name with args.
17267 set dummy msgfmt; ac_word=$2
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17269 $as_echo_n "checking for $ac_word... " >&6; }
17270 if ${ac_cv_path_MSGFMT+:} false; then :
17271   $as_echo_n "(cached) " >&6
17272 else
17273   case "$MSGFMT" in
17274   [\\/]* | ?:[\\/]*)
17275     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17276     ;;
17277   *)
17278     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17279     for ac_dir in $PATH; do
17280       IFS="$ac_save_IFS"
17281       test -z "$ac_dir" && ac_dir=.
17282       for ac_exec_ext in '' $ac_executable_extensions; do
17283         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17284           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17285           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17286      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17287             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17288             break 2
17289           fi
17290         fi
17291       done
17292     done
17293     IFS="$ac_save_IFS"
17294   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17295     ;;
17296 esac
17297 fi
17298 MSGFMT="$ac_cv_path_MSGFMT"
17299 if test "$MSGFMT" != ":"; then
17300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17301 $as_echo "$MSGFMT" >&6; }
17302 else
17303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304 $as_echo "no" >&6; }
17305 fi
17306
17307   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17308 set dummy gmsgfmt; ac_word=$2
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17310 $as_echo_n "checking for $ac_word... " >&6; }
17311 if ${ac_cv_path_GMSGFMT+:} false; then :
17312   $as_echo_n "(cached) " >&6
17313 else
17314   case $GMSGFMT in
17315   [\\/]* | ?:[\\/]*)
17316   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17317   ;;
17318   *)
17319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17320 for as_dir in $PATH
17321 do
17322   IFS=$as_save_IFS
17323   test -z "$as_dir" && as_dir=.
17324     for ac_exec_ext in '' $ac_executable_extensions; do
17325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17326     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17328     break 2
17329   fi
17330 done
17331   done
17332 IFS=$as_save_IFS
17333
17334   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17335   ;;
17336 esac
17337 fi
17338 GMSGFMT=$ac_cv_path_GMSGFMT
17339 if test -n "$GMSGFMT"; then
17340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17341 $as_echo "$GMSGFMT" >&6; }
17342 else
17343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17344 $as_echo "no" >&6; }
17345 fi
17346
17347
17348
17349
17350 # Prepare PATH_SEPARATOR.
17351 # The user is always right.
17352 if test "${PATH_SEPARATOR+set}" != set; then
17353   echo "#! /bin/sh" >conf$$.sh
17354   echo  "exit 0"   >>conf$$.sh
17355   chmod +x conf$$.sh
17356   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17357     PATH_SEPARATOR=';'
17358   else
17359     PATH_SEPARATOR=:
17360   fi
17361   rm -f conf$$.sh
17362 fi
17363
17364 # Find out how to test for executable files. Don't use a zero-byte file,
17365 # as systems may use methods other than mode bits to determine executability.
17366 cat >conf$$.file <<_ASEOF
17367 #! /bin/sh
17368 exit 0
17369 _ASEOF
17370 chmod +x conf$$.file
17371 if test -x conf$$.file >/dev/null 2>&1; then
17372   ac_executable_p="test -x"
17373 else
17374   ac_executable_p="test -f"
17375 fi
17376 rm -f conf$$.file
17377
17378 # Extract the first word of "xgettext", so it can be a program name with args.
17379 set dummy xgettext; ac_word=$2
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17381 $as_echo_n "checking for $ac_word... " >&6; }
17382 if ${ac_cv_path_XGETTEXT+:} false; then :
17383   $as_echo_n "(cached) " >&6
17384 else
17385   case "$XGETTEXT" in
17386   [\\/]* | ?:[\\/]*)
17387     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17388     ;;
17389   *)
17390     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17391     for ac_dir in $PATH; do
17392       IFS="$ac_save_IFS"
17393       test -z "$ac_dir" && ac_dir=.
17394       for ac_exec_ext in '' $ac_executable_extensions; do
17395         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17396           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17397           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17398      (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
17399             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17400             break 2
17401           fi
17402         fi
17403       done
17404     done
17405     IFS="$ac_save_IFS"
17406   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17407     ;;
17408 esac
17409 fi
17410 XGETTEXT="$ac_cv_path_XGETTEXT"
17411 if test "$XGETTEXT" != ":"; then
17412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17413 $as_echo "$XGETTEXT" >&6; }
17414 else
17415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416 $as_echo "no" >&6; }
17417 fi
17418
17419     rm -f messages.po
17420
17421
17422 # Prepare PATH_SEPARATOR.
17423 # The user is always right.
17424 if test "${PATH_SEPARATOR+set}" != set; then
17425   echo "#! /bin/sh" >conf$$.sh
17426   echo  "exit 0"   >>conf$$.sh
17427   chmod +x conf$$.sh
17428   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17429     PATH_SEPARATOR=';'
17430   else
17431     PATH_SEPARATOR=:
17432   fi
17433   rm -f conf$$.sh
17434 fi
17435
17436 # Find out how to test for executable files. Don't use a zero-byte file,
17437 # as systems may use methods other than mode bits to determine executability.
17438 cat >conf$$.file <<_ASEOF
17439 #! /bin/sh
17440 exit 0
17441 _ASEOF
17442 chmod +x conf$$.file
17443 if test -x conf$$.file >/dev/null 2>&1; then
17444   ac_executable_p="test -x"
17445 else
17446   ac_executable_p="test -f"
17447 fi
17448 rm -f conf$$.file
17449
17450 # Extract the first word of "msgmerge", so it can be a program name with args.
17451 set dummy msgmerge; ac_word=$2
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17453 $as_echo_n "checking for $ac_word... " >&6; }
17454 if ${ac_cv_path_MSGMERGE+:} false; then :
17455   $as_echo_n "(cached) " >&6
17456 else
17457   case "$MSGMERGE" in
17458   [\\/]* | ?:[\\/]*)
17459     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17460     ;;
17461   *)
17462     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17463     for ac_dir in $PATH; do
17464       IFS="$ac_save_IFS"
17465       test -z "$ac_dir" && ac_dir=.
17466       for ac_exec_ext in '' $ac_executable_extensions; do
17467         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17468           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17469           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17470             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17471             break 2
17472           fi
17473         fi
17474       done
17475     done
17476     IFS="$ac_save_IFS"
17477   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17478     ;;
17479 esac
17480 fi
17481 MSGMERGE="$ac_cv_path_MSGMERGE"
17482 if test "$MSGMERGE" != ":"; then
17483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17484 $as_echo "$MSGMERGE" >&6; }
17485 else
17486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17487 $as_echo "no" >&6; }
17488 fi
17489
17490
17491       if test "$GMSGFMT" != ":"; then
17492             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17493        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17494       : ;
17495     else
17496       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17498 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17499       GMSGFMT=":"
17500     fi
17501   fi
17502
17503       if test "$XGETTEXT" != ":"; then
17504             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17505        (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
17506       : ;
17507     else
17508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17509 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17510       XGETTEXT=":"
17511     fi
17512         rm -f messages.po
17513   fi
17514
17515   ac_config_commands="$ac_config_commands default-1"
17516
17517
17518
17519       if test "X$prefix" = "XNONE"; then
17520     acl_final_prefix="$ac_default_prefix"
17521   else
17522     acl_final_prefix="$prefix"
17523   fi
17524   if test "X$exec_prefix" = "XNONE"; then
17525     acl_final_exec_prefix='${prefix}'
17526   else
17527     acl_final_exec_prefix="$exec_prefix"
17528   fi
17529   acl_save_prefix="$prefix"
17530   prefix="$acl_final_prefix"
17531   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17532   prefix="$acl_save_prefix"
17533
17534
17535 # Check whether --with-gnu-ld was given.
17536 if test "${with_gnu_ld+set}" = set; then :
17537   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17538 else
17539   with_gnu_ld=no
17540 fi
17541
17542 # Prepare PATH_SEPARATOR.
17543 # The user is always right.
17544 if test "${PATH_SEPARATOR+set}" != set; then
17545   echo "#! /bin/sh" >conf$$.sh
17546   echo  "exit 0"   >>conf$$.sh
17547   chmod +x conf$$.sh
17548   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17549     PATH_SEPARATOR=';'
17550   else
17551     PATH_SEPARATOR=:
17552   fi
17553   rm -f conf$$.sh
17554 fi
17555 ac_prog=ld
17556 if test "$GCC" = yes; then
17557   # Check if gcc -print-prog-name=ld gives a path.
17558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17559 $as_echo_n "checking for ld used by GCC... " >&6; }
17560   case $host in
17561   *-*-mingw*)
17562     # gcc leaves a trailing carriage return which upsets mingw
17563     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17564   *)
17565     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17566   esac
17567   case $ac_prog in
17568     # Accept absolute paths.
17569     [\\/]* | [A-Za-z]:[\\/]*)
17570       re_direlt='/[^/][^/]*/\.\./'
17571       # Canonicalize the path of ld
17572       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17573       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17574         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17575       done
17576       test -z "$LD" && LD="$ac_prog"
17577       ;;
17578   "")
17579     # If it fails, then pretend we aren't using GCC.
17580     ac_prog=ld
17581     ;;
17582   *)
17583     # If it is relative, then search for the first ld in PATH.
17584     with_gnu_ld=unknown
17585     ;;
17586   esac
17587 elif test "$with_gnu_ld" = yes; then
17588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17589 $as_echo_n "checking for GNU ld... " >&6; }
17590 else
17591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17592 $as_echo_n "checking for non-GNU ld... " >&6; }
17593 fi
17594 if ${acl_cv_path_LD+:} false; then :
17595   $as_echo_n "(cached) " >&6
17596 else
17597   if test -z "$LD"; then
17598   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17599   for ac_dir in $PATH; do
17600     test -z "$ac_dir" && ac_dir=.
17601     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17602       acl_cv_path_LD="$ac_dir/$ac_prog"
17603       # Check to see if the program is GNU ld.  I'd rather use --version,
17604       # but apparently some GNU ld's only accept -v.
17605       # Break only if it was the GNU/non-GNU ld that we prefer.
17606       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17607       *GNU* | *'with BFD'*)
17608         test "$with_gnu_ld" != no && break ;;
17609       *)
17610         test "$with_gnu_ld" != yes && break ;;
17611       esac
17612     fi
17613   done
17614   IFS="$ac_save_ifs"
17615 else
17616   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17617 fi
17618 fi
17619
17620 LD="$acl_cv_path_LD"
17621 if test -n "$LD"; then
17622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17623 $as_echo "$LD" >&6; }
17624 else
17625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626 $as_echo "no" >&6; }
17627 fi
17628 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17630 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17631 if ${acl_cv_prog_gnu_ld+:} false; then :
17632   $as_echo_n "(cached) " >&6
17633 else
17634   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17635 case `$LD -v 2>&1 </dev/null` in
17636 *GNU* | *'with BFD'*)
17637   acl_cv_prog_gnu_ld=yes ;;
17638 *)
17639   acl_cv_prog_gnu_ld=no ;;
17640 esac
17641 fi
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17643 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17644 with_gnu_ld=$acl_cv_prog_gnu_ld
17645
17646
17647
17648
17649                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17650 $as_echo_n "checking for shared library run path origin... " >&6; }
17651 if ${acl_cv_rpath+:} false; then :
17652   $as_echo_n "(cached) " >&6
17653 else
17654
17655     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17656     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17657     . ./conftest.sh
17658     rm -f ./conftest.sh
17659     acl_cv_rpath=done
17660
17661 fi
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17663 $as_echo "$acl_cv_rpath" >&6; }
17664   wl="$acl_cv_wl"
17665   libext="$acl_cv_libext"
17666   shlibext="$acl_cv_shlibext"
17667   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17668   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17669   hardcode_direct="$acl_cv_hardcode_direct"
17670   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17671     # Check whether --enable-rpath was given.
17672 if test "${enable_rpath+set}" = set; then :
17673   enableval=$enable_rpath; :
17674 else
17675   enable_rpath=yes
17676 fi
17677
17678
17679
17680
17681
17682
17683
17684
17685     use_additional=yes
17686
17687   acl_save_prefix="$prefix"
17688   prefix="$acl_final_prefix"
17689   acl_save_exec_prefix="$exec_prefix"
17690   exec_prefix="$acl_final_exec_prefix"
17691
17692     eval additional_includedir=\"$includedir\"
17693     eval additional_libdir=\"$libdir\"
17694
17695   exec_prefix="$acl_save_exec_prefix"
17696   prefix="$acl_save_prefix"
17697
17698
17699 # Check whether --with-libiconv-prefix was given.
17700 if test "${with_libiconv_prefix+set}" = set; then :
17701   withval=$with_libiconv_prefix;
17702     if test "X$withval" = "Xno"; then
17703       use_additional=no
17704     else
17705       if test "X$withval" = "X"; then
17706
17707   acl_save_prefix="$prefix"
17708   prefix="$acl_final_prefix"
17709   acl_save_exec_prefix="$exec_prefix"
17710   exec_prefix="$acl_final_exec_prefix"
17711
17712           eval additional_includedir=\"$includedir\"
17713           eval additional_libdir=\"$libdir\"
17714
17715   exec_prefix="$acl_save_exec_prefix"
17716   prefix="$acl_save_prefix"
17717
17718       else
17719         additional_includedir="$withval/include"
17720         additional_libdir="$withval/lib"
17721       fi
17722     fi
17723
17724 fi
17725
17726       LIBICONV=
17727   LTLIBICONV=
17728   INCICONV=
17729   rpathdirs=
17730   ltrpathdirs=
17731   names_already_handled=
17732   names_next_round='iconv '
17733   while test -n "$names_next_round"; do
17734     names_this_round="$names_next_round"
17735     names_next_round=
17736     for name in $names_this_round; do
17737       already_handled=
17738       for n in $names_already_handled; do
17739         if test "$n" = "$name"; then
17740           already_handled=yes
17741           break
17742         fi
17743       done
17744       if test -z "$already_handled"; then
17745         names_already_handled="$names_already_handled $name"
17746                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17747         eval value=\"\$HAVE_LIB$uppername\"
17748         if test -n "$value"; then
17749           if test "$value" = yes; then
17750             eval value=\"\$LIB$uppername\"
17751             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17752             eval value=\"\$LTLIB$uppername\"
17753             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17754           else
17755                                     :
17756           fi
17757         else
17758                               found_dir=
17759           found_la=
17760           found_so=
17761           found_a=
17762           if test $use_additional = yes; then
17763             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17764               found_dir="$additional_libdir"
17765               found_so="$additional_libdir/lib$name.$shlibext"
17766               if test -f "$additional_libdir/lib$name.la"; then
17767                 found_la="$additional_libdir/lib$name.la"
17768               fi
17769             else
17770               if test -f "$additional_libdir/lib$name.$libext"; then
17771                 found_dir="$additional_libdir"
17772                 found_a="$additional_libdir/lib$name.$libext"
17773                 if test -f "$additional_libdir/lib$name.la"; then
17774                   found_la="$additional_libdir/lib$name.la"
17775                 fi
17776               fi
17777             fi
17778           fi
17779           if test "X$found_dir" = "X"; then
17780             for x in $LDFLAGS $LTLIBICONV; do
17781
17782   acl_save_prefix="$prefix"
17783   prefix="$acl_final_prefix"
17784   acl_save_exec_prefix="$exec_prefix"
17785   exec_prefix="$acl_final_exec_prefix"
17786   eval x=\"$x\"
17787   exec_prefix="$acl_save_exec_prefix"
17788   prefix="$acl_save_prefix"
17789
17790               case "$x" in
17791                 -L*)
17792                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17793                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17794                     found_dir="$dir"
17795                     found_so="$dir/lib$name.$shlibext"
17796                     if test -f "$dir/lib$name.la"; then
17797                       found_la="$dir/lib$name.la"
17798                     fi
17799                   else
17800                     if test -f "$dir/lib$name.$libext"; then
17801                       found_dir="$dir"
17802                       found_a="$dir/lib$name.$libext"
17803                       if test -f "$dir/lib$name.la"; then
17804                         found_la="$dir/lib$name.la"
17805                       fi
17806                     fi
17807                   fi
17808                   ;;
17809               esac
17810               if test "X$found_dir" != "X"; then
17811                 break
17812               fi
17813             done
17814           fi
17815           if test "X$found_dir" != "X"; then
17816                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17817             if test "X$found_so" != "X"; then
17818                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17819                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17820               else
17821                                                                                 haveit=
17822                 for x in $ltrpathdirs; do
17823                   if test "X$x" = "X$found_dir"; then
17824                     haveit=yes
17825                     break
17826                   fi
17827                 done
17828                 if test -z "$haveit"; then
17829                   ltrpathdirs="$ltrpathdirs $found_dir"
17830                 fi
17831                                 if test "$hardcode_direct" = yes; then
17832                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17833                 else
17834                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17835                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17836                                                             haveit=
17837                     for x in $rpathdirs; do
17838                       if test "X$x" = "X$found_dir"; then
17839                         haveit=yes
17840                         break
17841                       fi
17842                     done
17843                     if test -z "$haveit"; then
17844                       rpathdirs="$rpathdirs $found_dir"
17845                     fi
17846                   else
17847                                                                                 haveit=
17848                     for x in $LDFLAGS $LIBICONV; do
17849
17850   acl_save_prefix="$prefix"
17851   prefix="$acl_final_prefix"
17852   acl_save_exec_prefix="$exec_prefix"
17853   exec_prefix="$acl_final_exec_prefix"
17854   eval x=\"$x\"
17855   exec_prefix="$acl_save_exec_prefix"
17856   prefix="$acl_save_prefix"
17857
17858                       if test "X$x" = "X-L$found_dir"; then
17859                         haveit=yes
17860                         break
17861                       fi
17862                     done
17863                     if test -z "$haveit"; then
17864                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17865                     fi
17866                     if test "$hardcode_minus_L" != no; then
17867                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17868                     else
17869                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17870                     fi
17871                   fi
17872                 fi
17873               fi
17874             else
17875               if test "X$found_a" != "X"; then
17876                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17877               else
17878                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17879               fi
17880             fi
17881                         additional_includedir=
17882             case "$found_dir" in
17883               */lib | */lib/)
17884                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17885                 additional_includedir="$basedir/include"
17886                 ;;
17887             esac
17888             if test "X$additional_includedir" != "X"; then
17889                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17890                 haveit=
17891                 if test "X$additional_includedir" = "X/usr/local/include"; then
17892                   if test -n "$GCC"; then
17893                     case $host_os in
17894                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17895                     esac
17896                   fi
17897                 fi
17898                 if test -z "$haveit"; then
17899                   for x in $CPPFLAGS $INCICONV; do
17900
17901   acl_save_prefix="$prefix"
17902   prefix="$acl_final_prefix"
17903   acl_save_exec_prefix="$exec_prefix"
17904   exec_prefix="$acl_final_exec_prefix"
17905   eval x=\"$x\"
17906   exec_prefix="$acl_save_exec_prefix"
17907   prefix="$acl_save_prefix"
17908
17909                     if test "X$x" = "X-I$additional_includedir"; then
17910                       haveit=yes
17911                       break
17912                     fi
17913                   done
17914                   if test -z "$haveit"; then
17915                     if test -d "$additional_includedir"; then
17916                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17917                     fi
17918                   fi
17919                 fi
17920               fi
17921             fi
17922                         if test -n "$found_la"; then
17923                                                         save_libdir="$libdir"
17924               case "$found_la" in
17925                 */* | *\\*) . "$found_la" ;;
17926                 *) . "./$found_la" ;;
17927               esac
17928               libdir="$save_libdir"
17929                             for dep in $dependency_libs; do
17930                 case "$dep" in
17931                   -L*)
17932                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17933                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17934                       haveit=
17935                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17936                         if test -n "$GCC"; then
17937                           case $host_os in
17938                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17939                           esac
17940                         fi
17941                       fi
17942                       if test -z "$haveit"; then
17943                         haveit=
17944                         for x in $LDFLAGS $LIBICONV; do
17945
17946   acl_save_prefix="$prefix"
17947   prefix="$acl_final_prefix"
17948   acl_save_exec_prefix="$exec_prefix"
17949   exec_prefix="$acl_final_exec_prefix"
17950   eval x=\"$x\"
17951   exec_prefix="$acl_save_exec_prefix"
17952   prefix="$acl_save_prefix"
17953
17954                           if test "X$x" = "X-L$additional_libdir"; then
17955                             haveit=yes
17956                             break
17957                           fi
17958                         done
17959                         if test -z "$haveit"; then
17960                           if test -d "$additional_libdir"; then
17961                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17962                           fi
17963                         fi
17964                         haveit=
17965                         for x in $LDFLAGS $LTLIBICONV; do
17966
17967   acl_save_prefix="$prefix"
17968   prefix="$acl_final_prefix"
17969   acl_save_exec_prefix="$exec_prefix"
17970   exec_prefix="$acl_final_exec_prefix"
17971   eval x=\"$x\"
17972   exec_prefix="$acl_save_exec_prefix"
17973   prefix="$acl_save_prefix"
17974
17975                           if test "X$x" = "X-L$additional_libdir"; then
17976                             haveit=yes
17977                             break
17978                           fi
17979                         done
17980                         if test -z "$haveit"; then
17981                           if test -d "$additional_libdir"; then
17982                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17983                           fi
17984                         fi
17985                       fi
17986                     fi
17987                     ;;
17988                   -R*)
17989                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17990                     if test "$enable_rpath" != no; then
17991                                                                   haveit=
17992                       for x in $rpathdirs; do
17993                         if test "X$x" = "X$dir"; then
17994                           haveit=yes
17995                           break
17996                         fi
17997                       done
17998                       if test -z "$haveit"; then
17999                         rpathdirs="$rpathdirs $dir"
18000                       fi
18001                                                                   haveit=
18002                       for x in $ltrpathdirs; do
18003                         if test "X$x" = "X$dir"; then
18004                           haveit=yes
18005                           break
18006                         fi
18007                       done
18008                       if test -z "$haveit"; then
18009                         ltrpathdirs="$ltrpathdirs $dir"
18010                       fi
18011                     fi
18012                     ;;
18013                   -l*)
18014                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18015                     ;;
18016                   *.la)
18017                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18018                     ;;
18019                   *)
18020                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18021                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18022                     ;;
18023                 esac
18024               done
18025             fi
18026           else
18027                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18028             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18029           fi
18030         fi
18031       fi
18032     done
18033   done
18034   if test "X$rpathdirs" != "X"; then
18035     if test -n "$hardcode_libdir_separator"; then
18036                         alldirs=
18037       for found_dir in $rpathdirs; do
18038         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18039       done
18040             acl_save_libdir="$libdir"
18041       libdir="$alldirs"
18042       eval flag=\"$hardcode_libdir_flag_spec\"
18043       libdir="$acl_save_libdir"
18044       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18045     else
18046             for found_dir in $rpathdirs; do
18047         acl_save_libdir="$libdir"
18048         libdir="$found_dir"
18049         eval flag=\"$hardcode_libdir_flag_spec\"
18050         libdir="$acl_save_libdir"
18051         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18052       done
18053     fi
18054   fi
18055   if test "X$ltrpathdirs" != "X"; then
18056             for found_dir in $ltrpathdirs; do
18057       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18058     done
18059   fi
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18079 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18080 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18081   $as_echo_n "(cached) " >&6
18082 else
18083   gt_save_CPPFLAGS="$CPPFLAGS"
18084      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18085      gt_save_LIBS="$LIBS"
18086      LIBS="$LIBS -framework CoreFoundation"
18087      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h.  */
18089 #include <CFPreferences.h>
18090 int
18091 main ()
18092 {
18093 CFPreferencesCopyAppValue(NULL, NULL)
18094   ;
18095   return 0;
18096 }
18097 _ACEOF
18098 if ac_fn_c_try_link "$LINENO"; then :
18099   gt_cv_func_CFPreferencesCopyAppValue=yes
18100 else
18101   gt_cv_func_CFPreferencesCopyAppValue=no
18102 fi
18103 rm -f core conftest.err conftest.$ac_objext \
18104     conftest$ac_exeext conftest.$ac_ext
18105      CPPFLAGS="$gt_save_CPPFLAGS"
18106      LIBS="$gt_save_LIBS"
18107 fi
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18109 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18110   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18111
18112 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18113
18114   fi
18115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18116 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18117 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18118   $as_echo_n "(cached) " >&6
18119 else
18120   gt_save_CPPFLAGS="$CPPFLAGS"
18121      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18122      gt_save_LIBS="$LIBS"
18123      LIBS="$LIBS -framework CoreFoundation"
18124      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h.  */
18126 #include <CFLocale.h>
18127 int
18128 main ()
18129 {
18130 CFLocaleCopyCurrent();
18131   ;
18132   return 0;
18133 }
18134 _ACEOF
18135 if ac_fn_c_try_link "$LINENO"; then :
18136   gt_cv_func_CFLocaleCopyCurrent=yes
18137 else
18138   gt_cv_func_CFLocaleCopyCurrent=no
18139 fi
18140 rm -f core conftest.err conftest.$ac_objext \
18141     conftest$ac_exeext conftest.$ac_ext
18142      CPPFLAGS="$gt_save_CPPFLAGS"
18143      LIBS="$gt_save_LIBS"
18144 fi
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18146 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18147   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18148
18149 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18150
18151   fi
18152   INTL_MACOSX_LIBS=
18153   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18154     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18155   fi
18156
18157
18158
18159
18160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18161 $as_echo_n "checking whether NLS is requested... " >&6; }
18162     # Check whether --enable-nls was given.
18163 if test "${enable_nls+set}" = set; then :
18164   enableval=$enable_nls; USE_NLS=$enableval
18165 else
18166   USE_NLS=yes
18167 fi
18168
18169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18170 $as_echo "$USE_NLS" >&6; }
18171
18172
18173
18174
18175   LIBINTL=
18176   LTLIBINTL=
18177   POSUB=
18178
18179     if test "$USE_NLS" = "yes"; then
18180     gt_use_preinstalled_gnugettext=no
18181
18182
18183
18184
18185
18186
18187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18188 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18189 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18190   $as_echo_n "(cached) " >&6
18191 else
18192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h.  */
18194 #include <libintl.h>
18195 extern int _nl_msg_cat_cntr;
18196 extern int *_nl_domain_bindings;
18197 int
18198 main ()
18199 {
18200 bindtextdomain ("", "");
18201 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18202   ;
18203   return 0;
18204 }
18205 _ACEOF
18206 if ac_fn_c_try_link "$LINENO"; then :
18207   gt_cv_func_gnugettext1_libc=yes
18208 else
18209   gt_cv_func_gnugettext1_libc=no
18210 fi
18211 rm -f core conftest.err conftest.$ac_objext \
18212     conftest$ac_exeext conftest.$ac_ext
18213 fi
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18215 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18216
18217         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18218
18219
18220
18221
18222
18223           am_save_CPPFLAGS="$CPPFLAGS"
18224
18225   for element in $INCICONV; do
18226     haveit=
18227     for x in $CPPFLAGS; do
18228
18229   acl_save_prefix="$prefix"
18230   prefix="$acl_final_prefix"
18231   acl_save_exec_prefix="$exec_prefix"
18232   exec_prefix="$acl_final_exec_prefix"
18233   eval x=\"$x\"
18234   exec_prefix="$acl_save_exec_prefix"
18235   prefix="$acl_save_prefix"
18236
18237       if test "X$x" = "X$element"; then
18238         haveit=yes
18239         break
18240       fi
18241     done
18242     if test -z "$haveit"; then
18243       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18244     fi
18245   done
18246
18247
18248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18249 $as_echo_n "checking for iconv... " >&6; }
18250 if ${am_cv_func_iconv+:} false; then :
18251   $as_echo_n "(cached) " >&6
18252 else
18253
18254     am_cv_func_iconv="no, consider installing GNU libiconv"
18255     am_cv_lib_iconv=no
18256     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257 /* end confdefs.h.  */
18258 #include <stdlib.h>
18259 #include <iconv.h>
18260 int
18261 main ()
18262 {
18263 iconv_t cd = iconv_open("","");
18264        iconv(cd,NULL,NULL,NULL,NULL);
18265        iconv_close(cd);
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 if ac_fn_c_try_link "$LINENO"; then :
18271   am_cv_func_iconv=yes
18272 fi
18273 rm -f core conftest.err conftest.$ac_objext \
18274     conftest$ac_exeext conftest.$ac_ext
18275     if test "$am_cv_func_iconv" != yes; then
18276       am_save_LIBS="$LIBS"
18277       LIBS="$LIBS $LIBICONV"
18278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h.  */
18280 #include <stdlib.h>
18281 #include <iconv.h>
18282 int
18283 main ()
18284 {
18285 iconv_t cd = iconv_open("","");
18286          iconv(cd,NULL,NULL,NULL,NULL);
18287          iconv_close(cd);
18288   ;
18289   return 0;
18290 }
18291 _ACEOF
18292 if ac_fn_c_try_link "$LINENO"; then :
18293   am_cv_lib_iconv=yes
18294         am_cv_func_iconv=yes
18295 fi
18296 rm -f core conftest.err conftest.$ac_objext \
18297     conftest$ac_exeext conftest.$ac_ext
18298       LIBS="$am_save_LIBS"
18299     fi
18300
18301 fi
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18303 $as_echo "$am_cv_func_iconv" >&6; }
18304   if test "$am_cv_func_iconv" = yes; then
18305
18306 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18307
18308   fi
18309   if test "$am_cv_lib_iconv" = yes; then
18310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18311 $as_echo_n "checking how to link with libiconv... " >&6; }
18312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18313 $as_echo "$LIBICONV" >&6; }
18314   else
18315             CPPFLAGS="$am_save_CPPFLAGS"
18316     LIBICONV=
18317     LTLIBICONV=
18318   fi
18319
18320
18321
18322
18323
18324
18325     use_additional=yes
18326
18327   acl_save_prefix="$prefix"
18328   prefix="$acl_final_prefix"
18329   acl_save_exec_prefix="$exec_prefix"
18330   exec_prefix="$acl_final_exec_prefix"
18331
18332     eval additional_includedir=\"$includedir\"
18333     eval additional_libdir=\"$libdir\"
18334
18335   exec_prefix="$acl_save_exec_prefix"
18336   prefix="$acl_save_prefix"
18337
18338
18339 # Check whether --with-libintl-prefix was given.
18340 if test "${with_libintl_prefix+set}" = set; then :
18341   withval=$with_libintl_prefix;
18342     if test "X$withval" = "Xno"; then
18343       use_additional=no
18344     else
18345       if test "X$withval" = "X"; then
18346
18347   acl_save_prefix="$prefix"
18348   prefix="$acl_final_prefix"
18349   acl_save_exec_prefix="$exec_prefix"
18350   exec_prefix="$acl_final_exec_prefix"
18351
18352           eval additional_includedir=\"$includedir\"
18353           eval additional_libdir=\"$libdir\"
18354
18355   exec_prefix="$acl_save_exec_prefix"
18356   prefix="$acl_save_prefix"
18357
18358       else
18359         additional_includedir="$withval/include"
18360         additional_libdir="$withval/lib"
18361       fi
18362     fi
18363
18364 fi
18365
18366       LIBINTL=
18367   LTLIBINTL=
18368   INCINTL=
18369   rpathdirs=
18370   ltrpathdirs=
18371   names_already_handled=
18372   names_next_round='intl '
18373   while test -n "$names_next_round"; do
18374     names_this_round="$names_next_round"
18375     names_next_round=
18376     for name in $names_this_round; do
18377       already_handled=
18378       for n in $names_already_handled; do
18379         if test "$n" = "$name"; then
18380           already_handled=yes
18381           break
18382         fi
18383       done
18384       if test -z "$already_handled"; then
18385         names_already_handled="$names_already_handled $name"
18386                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18387         eval value=\"\$HAVE_LIB$uppername\"
18388         if test -n "$value"; then
18389           if test "$value" = yes; then
18390             eval value=\"\$LIB$uppername\"
18391             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18392             eval value=\"\$LTLIB$uppername\"
18393             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18394           else
18395                                     :
18396           fi
18397         else
18398                               found_dir=
18399           found_la=
18400           found_so=
18401           found_a=
18402           if test $use_additional = yes; then
18403             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18404               found_dir="$additional_libdir"
18405               found_so="$additional_libdir/lib$name.$shlibext"
18406               if test -f "$additional_libdir/lib$name.la"; then
18407                 found_la="$additional_libdir/lib$name.la"
18408               fi
18409             else
18410               if test -f "$additional_libdir/lib$name.$libext"; then
18411                 found_dir="$additional_libdir"
18412                 found_a="$additional_libdir/lib$name.$libext"
18413                 if test -f "$additional_libdir/lib$name.la"; then
18414                   found_la="$additional_libdir/lib$name.la"
18415                 fi
18416               fi
18417             fi
18418           fi
18419           if test "X$found_dir" = "X"; then
18420             for x in $LDFLAGS $LTLIBINTL; do
18421
18422   acl_save_prefix="$prefix"
18423   prefix="$acl_final_prefix"
18424   acl_save_exec_prefix="$exec_prefix"
18425   exec_prefix="$acl_final_exec_prefix"
18426   eval x=\"$x\"
18427   exec_prefix="$acl_save_exec_prefix"
18428   prefix="$acl_save_prefix"
18429
18430               case "$x" in
18431                 -L*)
18432                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18433                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18434                     found_dir="$dir"
18435                     found_so="$dir/lib$name.$shlibext"
18436                     if test -f "$dir/lib$name.la"; then
18437                       found_la="$dir/lib$name.la"
18438                     fi
18439                   else
18440                     if test -f "$dir/lib$name.$libext"; then
18441                       found_dir="$dir"
18442                       found_a="$dir/lib$name.$libext"
18443                       if test -f "$dir/lib$name.la"; then
18444                         found_la="$dir/lib$name.la"
18445                       fi
18446                     fi
18447                   fi
18448                   ;;
18449               esac
18450               if test "X$found_dir" != "X"; then
18451                 break
18452               fi
18453             done
18454           fi
18455           if test "X$found_dir" != "X"; then
18456                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18457             if test "X$found_so" != "X"; then
18458                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18459                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18460               else
18461                                                                                 haveit=
18462                 for x in $ltrpathdirs; do
18463                   if test "X$x" = "X$found_dir"; then
18464                     haveit=yes
18465                     break
18466                   fi
18467                 done
18468                 if test -z "$haveit"; then
18469                   ltrpathdirs="$ltrpathdirs $found_dir"
18470                 fi
18471                                 if test "$hardcode_direct" = yes; then
18472                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18473                 else
18474                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18475                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18476                                                             haveit=
18477                     for x in $rpathdirs; do
18478                       if test "X$x" = "X$found_dir"; then
18479                         haveit=yes
18480                         break
18481                       fi
18482                     done
18483                     if test -z "$haveit"; then
18484                       rpathdirs="$rpathdirs $found_dir"
18485                     fi
18486                   else
18487                                                                                 haveit=
18488                     for x in $LDFLAGS $LIBINTL; do
18489
18490   acl_save_prefix="$prefix"
18491   prefix="$acl_final_prefix"
18492   acl_save_exec_prefix="$exec_prefix"
18493   exec_prefix="$acl_final_exec_prefix"
18494   eval x=\"$x\"
18495   exec_prefix="$acl_save_exec_prefix"
18496   prefix="$acl_save_prefix"
18497
18498                       if test "X$x" = "X-L$found_dir"; then
18499                         haveit=yes
18500                         break
18501                       fi
18502                     done
18503                     if test -z "$haveit"; then
18504                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18505                     fi
18506                     if test "$hardcode_minus_L" != no; then
18507                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18508                     else
18509                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18510                     fi
18511                   fi
18512                 fi
18513               fi
18514             else
18515               if test "X$found_a" != "X"; then
18516                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18517               else
18518                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18519               fi
18520             fi
18521                         additional_includedir=
18522             case "$found_dir" in
18523               */lib | */lib/)
18524                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18525                 additional_includedir="$basedir/include"
18526                 ;;
18527             esac
18528             if test "X$additional_includedir" != "X"; then
18529                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18530                 haveit=
18531                 if test "X$additional_includedir" = "X/usr/local/include"; then
18532                   if test -n "$GCC"; then
18533                     case $host_os in
18534                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18535                     esac
18536                   fi
18537                 fi
18538                 if test -z "$haveit"; then
18539                   for x in $CPPFLAGS $INCINTL; do
18540
18541   acl_save_prefix="$prefix"
18542   prefix="$acl_final_prefix"
18543   acl_save_exec_prefix="$exec_prefix"
18544   exec_prefix="$acl_final_exec_prefix"
18545   eval x=\"$x\"
18546   exec_prefix="$acl_save_exec_prefix"
18547   prefix="$acl_save_prefix"
18548
18549                     if test "X$x" = "X-I$additional_includedir"; then
18550                       haveit=yes
18551                       break
18552                     fi
18553                   done
18554                   if test -z "$haveit"; then
18555                     if test -d "$additional_includedir"; then
18556                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18557                     fi
18558                   fi
18559                 fi
18560               fi
18561             fi
18562                         if test -n "$found_la"; then
18563                                                         save_libdir="$libdir"
18564               case "$found_la" in
18565                 */* | *\\*) . "$found_la" ;;
18566                 *) . "./$found_la" ;;
18567               esac
18568               libdir="$save_libdir"
18569                             for dep in $dependency_libs; do
18570                 case "$dep" in
18571                   -L*)
18572                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18573                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18574                       haveit=
18575                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18576                         if test -n "$GCC"; then
18577                           case $host_os in
18578                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18579                           esac
18580                         fi
18581                       fi
18582                       if test -z "$haveit"; then
18583                         haveit=
18584                         for x in $LDFLAGS $LIBINTL; do
18585
18586   acl_save_prefix="$prefix"
18587   prefix="$acl_final_prefix"
18588   acl_save_exec_prefix="$exec_prefix"
18589   exec_prefix="$acl_final_exec_prefix"
18590   eval x=\"$x\"
18591   exec_prefix="$acl_save_exec_prefix"
18592   prefix="$acl_save_prefix"
18593
18594                           if test "X$x" = "X-L$additional_libdir"; then
18595                             haveit=yes
18596                             break
18597                           fi
18598                         done
18599                         if test -z "$haveit"; then
18600                           if test -d "$additional_libdir"; then
18601                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18602                           fi
18603                         fi
18604                         haveit=
18605                         for x in $LDFLAGS $LTLIBINTL; do
18606
18607   acl_save_prefix="$prefix"
18608   prefix="$acl_final_prefix"
18609   acl_save_exec_prefix="$exec_prefix"
18610   exec_prefix="$acl_final_exec_prefix"
18611   eval x=\"$x\"
18612   exec_prefix="$acl_save_exec_prefix"
18613   prefix="$acl_save_prefix"
18614
18615                           if test "X$x" = "X-L$additional_libdir"; then
18616                             haveit=yes
18617                             break
18618                           fi
18619                         done
18620                         if test -z "$haveit"; then
18621                           if test -d "$additional_libdir"; then
18622                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18623                           fi
18624                         fi
18625                       fi
18626                     fi
18627                     ;;
18628                   -R*)
18629                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18630                     if test "$enable_rpath" != no; then
18631                                                                   haveit=
18632                       for x in $rpathdirs; do
18633                         if test "X$x" = "X$dir"; then
18634                           haveit=yes
18635                           break
18636                         fi
18637                       done
18638                       if test -z "$haveit"; then
18639                         rpathdirs="$rpathdirs $dir"
18640                       fi
18641                                                                   haveit=
18642                       for x in $ltrpathdirs; do
18643                         if test "X$x" = "X$dir"; then
18644                           haveit=yes
18645                           break
18646                         fi
18647                       done
18648                       if test -z "$haveit"; then
18649                         ltrpathdirs="$ltrpathdirs $dir"
18650                       fi
18651                     fi
18652                     ;;
18653                   -l*)
18654                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18655                     ;;
18656                   *.la)
18657                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18658                     ;;
18659                   *)
18660                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18661                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18662                     ;;
18663                 esac
18664               done
18665             fi
18666           else
18667                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18668             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18669           fi
18670         fi
18671       fi
18672     done
18673   done
18674   if test "X$rpathdirs" != "X"; then
18675     if test -n "$hardcode_libdir_separator"; then
18676                         alldirs=
18677       for found_dir in $rpathdirs; do
18678         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18679       done
18680             acl_save_libdir="$libdir"
18681       libdir="$alldirs"
18682       eval flag=\"$hardcode_libdir_flag_spec\"
18683       libdir="$acl_save_libdir"
18684       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18685     else
18686             for found_dir in $rpathdirs; do
18687         acl_save_libdir="$libdir"
18688         libdir="$found_dir"
18689         eval flag=\"$hardcode_libdir_flag_spec\"
18690         libdir="$acl_save_libdir"
18691         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18692       done
18693     fi
18694   fi
18695   if test "X$ltrpathdirs" != "X"; then
18696             for found_dir in $ltrpathdirs; do
18697       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18698     done
18699   fi
18700
18701           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18702 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18703 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18704   $as_echo_n "(cached) " >&6
18705 else
18706   gt_save_CPPFLAGS="$CPPFLAGS"
18707             CPPFLAGS="$CPPFLAGS $INCINTL"
18708             gt_save_LIBS="$LIBS"
18709             LIBS="$LIBS $LIBINTL"
18710                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h.  */
18712 #include <libintl.h>
18713 extern int _nl_msg_cat_cntr;
18714 extern
18715 #ifdef __cplusplus
18716 "C"
18717 #endif
18718 const char *_nl_expand_alias (const char *);
18719 int
18720 main ()
18721 {
18722 bindtextdomain ("", "");
18723 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18724   ;
18725   return 0;
18726 }
18727 _ACEOF
18728 if ac_fn_c_try_link "$LINENO"; then :
18729   gt_cv_func_gnugettext1_libintl=yes
18730 else
18731   gt_cv_func_gnugettext1_libintl=no
18732 fi
18733 rm -f core conftest.err conftest.$ac_objext \
18734     conftest$ac_exeext conftest.$ac_ext
18735                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18736               LIBS="$LIBS $LIBICONV"
18737               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h.  */
18739 #include <libintl.h>
18740 extern int _nl_msg_cat_cntr;
18741 extern
18742 #ifdef __cplusplus
18743 "C"
18744 #endif
18745 const char *_nl_expand_alias (const char *);
18746 int
18747 main ()
18748 {
18749 bindtextdomain ("", "");
18750 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 if ac_fn_c_try_link "$LINENO"; then :
18756   LIBINTL="$LIBINTL $LIBICONV"
18757                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18758                 gt_cv_func_gnugettext1_libintl=yes
18759
18760 fi
18761 rm -f core conftest.err conftest.$ac_objext \
18762     conftest$ac_exeext conftest.$ac_ext
18763             fi
18764             CPPFLAGS="$gt_save_CPPFLAGS"
18765             LIBS="$gt_save_LIBS"
18766 fi
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18768 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18769         fi
18770
18771                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18772            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18773                 && test "$PACKAGE" != gettext-runtime \
18774                 && test "$PACKAGE" != gettext-tools; }; then
18775           gt_use_preinstalled_gnugettext=yes
18776         else
18777                     LIBINTL=
18778           LTLIBINTL=
18779           INCINTL=
18780         fi
18781
18782
18783
18784     if test -n "$INTL_MACOSX_LIBS"; then
18785       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18786          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18787                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18788         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18789       fi
18790     fi
18791
18792     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18793        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18794
18795 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18796
18797     else
18798       USE_NLS=no
18799     fi
18800   fi
18801
18802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18803 $as_echo_n "checking whether to use NLS... " >&6; }
18804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18805 $as_echo "$USE_NLS" >&6; }
18806   if test "$USE_NLS" = "yes"; then
18807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18808 $as_echo_n "checking where the gettext function comes from... " >&6; }
18809     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18810       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18811         gt_source="external libintl"
18812       else
18813         gt_source="libc"
18814       fi
18815     else
18816       gt_source="included intl directory"
18817     fi
18818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18819 $as_echo "$gt_source" >&6; }
18820   fi
18821
18822   if test "$USE_NLS" = "yes"; then
18823
18824     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18825       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18827 $as_echo_n "checking how to link with libintl... " >&6; }
18828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18829 $as_echo "$LIBINTL" >&6; }
18830
18831   for element in $INCINTL; do
18832     haveit=
18833     for x in $CPPFLAGS; do
18834
18835   acl_save_prefix="$prefix"
18836   prefix="$acl_final_prefix"
18837   acl_save_exec_prefix="$exec_prefix"
18838   exec_prefix="$acl_final_exec_prefix"
18839   eval x=\"$x\"
18840   exec_prefix="$acl_save_exec_prefix"
18841   prefix="$acl_save_prefix"
18842
18843       if test "X$x" = "X$element"; then
18844         haveit=yes
18845         break
18846       fi
18847     done
18848     if test -z "$haveit"; then
18849       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18850     fi
18851   done
18852
18853       fi
18854
18855
18856 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18857
18858
18859 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18860
18861     fi
18862
18863         POSUB=po
18864   fi
18865
18866
18867
18868     INTLLIBS="$LIBINTL"
18869
18870
18871
18872
18873
18874
18875
18876 os_name=`uname -s 2>/dev/null`
18877 if test x${prefix} = xNONE ; then
18878    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18879       sysconfdir=/etc/bacula
18880    fi
18881
18882    if test `eval echo ${libdir}` = NONE/lib ; then
18883       case ${os_name} in
18884       Linux)
18885          os_processor=`uname -p 2>/dev/null`
18886          case ${os_processor} in
18887          x86_64)
18888             libdir=/usr/lib64
18889             ;;
18890          *)
18891             libdir=/usr/lib
18892             ;;
18893          esac
18894          ;;
18895       *)
18896          libdir=/usr/lib
18897          ;;
18898       esac
18899    fi
18900
18901    if test `eval echo ${includedir}` = NONE/include ; then
18902       includedir=/usr/include
18903    fi
18904
18905    if test `eval echo ${datarootdir}` = NONE/share ; then
18906       datarootdir=/usr/share
18907    fi
18908    prefix=
18909 fi
18910
18911 if test x${exec_prefix} = xNONE ; then
18912    exec_prefix=${prefix}
18913 fi
18914
18915 sysconfdir=`eval echo ${sysconfdir}`
18916 datarootdir=`eval echo ${datarootdir}`
18917 docdir=`eval echo ${docdir}`
18918 htmldir=`eval echo ${htmldir}`
18919 libdir=`eval echo ${libdir}`
18920 includedir=`eval echo ${includedir}`
18921 localedir=`eval echo ${datarootdir}/locale`
18922 cat >>confdefs.h <<_ACEOF
18923 #define SYSCONFDIR "$sysconfdir"
18924 _ACEOF
18925
18926 cat >>confdefs.h <<_ACEOF
18927 #define LOCALEDIR "$localedir"
18928 _ACEOF
18929
18930
18931 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18932    sbindir=${exec_prefix}/sbin
18933 fi
18934 sbindir=`eval echo ${sbindir}`
18935
18936 if test x$mandir = x'${prefix}/man' ; then
18937    mandir=/usr/share/man
18938 fi
18939
18940 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18941    htmldir=`eval echo ${docdir}html`
18942 fi
18943
18944 if test x$docdir = x'/usr/share/doc/' ; then
18945    docdir=`eval echo ${docdir}bacula`
18946 fi
18947
18948
18949 for ac_prog in msgfmt
18950 do
18951   # Extract the first word of "$ac_prog", so it can be a program name with args.
18952 set dummy $ac_prog; ac_word=$2
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18954 $as_echo_n "checking for $ac_word... " >&6; }
18955 if ${ac_cv_path_MSGFMT+:} false; then :
18956   $as_echo_n "(cached) " >&6
18957 else
18958   case $MSGFMT in
18959   [\\/]* | ?:[\\/]*)
18960   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18961   ;;
18962   *)
18963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18964 for as_dir in $PATH
18965 do
18966   IFS=$as_save_IFS
18967   test -z "$as_dir" && as_dir=.
18968     for ac_exec_ext in '' $ac_executable_extensions; do
18969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18970     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18972     break 2
18973   fi
18974 done
18975   done
18976 IFS=$as_save_IFS
18977
18978   ;;
18979 esac
18980 fi
18981 MSGFMT=$ac_cv_path_MSGFMT
18982 if test -n "$MSGFMT"; then
18983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18984 $as_echo "$MSGFMT" >&6; }
18985 else
18986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18987 $as_echo "no" >&6; }
18988 fi
18989
18990
18991   test -n "$MSGFMT" && break
18992 done
18993 test -n "$MSGFMT" || MSGFMT="no"
18994
18995 if test "$MSGFMT" = "no"
18996 then
18997    echo 'msgfmt program not found, disabling NLS !'
18998    USE_NLS=no
18999    USE_INCLUDED_LIBINTL=no
19000 #else
19001
19002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19003 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19004 if ${ac_cv_gnu_library_2+:} false; then :
19005   $as_echo_n "(cached) " >&6
19006 else
19007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h.  */
19009
19010 #include <features.h>
19011 #ifdef __GNU_LIBRARY__
19012  #if (__GLIBC__ >= 2)
19013   Lucky GNU user
19014  #endif
19015 #endif
19016
19017 _ACEOF
19018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19019   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19020   ac_cv_gnu_library_2=yes
19021 else
19022   ac_cv_gnu_library_2=no
19023 fi
19024 rm -f conftest*
19025
19026
19027
19028 fi
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19030 $as_echo "$ac_cv_gnu_library_2" >&6; }
19031
19032     GLIBC2="$ac_cv_gnu_library_2"
19033
19034
19035 if test -n "$ac_tool_prefix"; then
19036   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19039 $as_echo_n "checking for $ac_word... " >&6; }
19040 if ${ac_cv_prog_RANLIB+:} false; then :
19041   $as_echo_n "(cached) " >&6
19042 else
19043   if test -n "$RANLIB"; then
19044   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19045 else
19046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19047 for as_dir in $PATH
19048 do
19049   IFS=$as_save_IFS
19050   test -z "$as_dir" && as_dir=.
19051     for ac_exec_ext in '' $ac_executable_extensions; do
19052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19053     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19055     break 2
19056   fi
19057 done
19058   done
19059 IFS=$as_save_IFS
19060
19061 fi
19062 fi
19063 RANLIB=$ac_cv_prog_RANLIB
19064 if test -n "$RANLIB"; then
19065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19066 $as_echo "$RANLIB" >&6; }
19067 else
19068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19069 $as_echo "no" >&6; }
19070 fi
19071
19072
19073 fi
19074 if test -z "$ac_cv_prog_RANLIB"; then
19075   ac_ct_RANLIB=$RANLIB
19076   # Extract the first word of "ranlib", so it can be a program name with args.
19077 set dummy ranlib; ac_word=$2
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19079 $as_echo_n "checking for $ac_word... " >&6; }
19080 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19081   $as_echo_n "(cached) " >&6
19082 else
19083   if test -n "$ac_ct_RANLIB"; then
19084   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19085 else
19086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19087 for as_dir in $PATH
19088 do
19089   IFS=$as_save_IFS
19090   test -z "$as_dir" && as_dir=.
19091     for ac_exec_ext in '' $ac_executable_extensions; do
19092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19093     ac_cv_prog_ac_ct_RANLIB="ranlib"
19094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19095     break 2
19096   fi
19097 done
19098   done
19099 IFS=$as_save_IFS
19100
19101 fi
19102 fi
19103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19104 if test -n "$ac_ct_RANLIB"; then
19105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19106 $as_echo "$ac_ct_RANLIB" >&6; }
19107 else
19108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19109 $as_echo "no" >&6; }
19110 fi
19111
19112   if test "x$ac_ct_RANLIB" = x; then
19113     RANLIB=":"
19114   else
19115     case $cross_compiling:$ac_tool_warned in
19116 yes:)
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19119 ac_tool_warned=yes ;;
19120 esac
19121     RANLIB=$ac_ct_RANLIB
19122   fi
19123 else
19124   RANLIB="$ac_cv_prog_RANLIB"
19125 fi
19126
19127
19128         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19129 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19130 if ${ac_cv_lib_cposix_strerror+:} false; then :
19131   $as_echo_n "(cached) " >&6
19132 else
19133   ac_check_lib_save_LIBS=$LIBS
19134 LIBS="-lcposix  $LIBS"
19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136 /* end confdefs.h.  */
19137
19138 /* Override any GCC internal prototype to avoid an error.
19139    Use char because int might match the return type of a GCC
19140    builtin and then its argument prototype would still apply.  */
19141 #ifdef __cplusplus
19142 extern "C"
19143 #endif
19144 char strerror ();
19145 int
19146 main ()
19147 {
19148 return strerror ();
19149   ;
19150   return 0;
19151 }
19152 _ACEOF
19153 if ac_fn_c_try_link "$LINENO"; then :
19154   ac_cv_lib_cposix_strerror=yes
19155 else
19156   ac_cv_lib_cposix_strerror=no
19157 fi
19158 rm -f core conftest.err conftest.$ac_objext \
19159     conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19161 fi
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19163 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19164 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19165   LIBS="$LIBS -lcposix"
19166 fi
19167
19168
19169
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19171 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19172 if ${ac_cv_c_const+:} false; then :
19173   $as_echo_n "(cached) " >&6
19174 else
19175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h.  */
19177
19178 int
19179 main ()
19180 {
19181 /* FIXME: Include the comments suggested by Paul. */
19182 #ifndef __cplusplus
19183   /* Ultrix mips cc rejects this.  */
19184   typedef int charset[2];
19185   const charset cs;
19186   /* SunOS 4.1.1 cc rejects this.  */
19187   char const *const *pcpcc;
19188   char **ppc;
19189   /* NEC SVR4.0.2 mips cc rejects this.  */
19190   struct point {int x, y;};
19191   static struct point const zero = {0,0};
19192   /* AIX XL C 1.02.0.0 rejects this.
19193      It does not let you subtract one const X* pointer from another in
19194      an arm of an if-expression whose if-part is not a constant
19195      expression */
19196   const char *g = "string";
19197   pcpcc = &g + (g ? g-g : 0);
19198   /* HPUX 7.0 cc rejects these. */
19199   ++pcpcc;
19200   ppc = (char**) pcpcc;
19201   pcpcc = (char const *const *) ppc;
19202   { /* SCO 3.2v4 cc rejects this.  */
19203     char *t;
19204     char const *s = 0 ? (char *) 0 : (char const *) 0;
19205
19206     *t++ = 0;
19207     if (s) return 0;
19208   }
19209   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19210     int x[] = {25, 17};
19211     const int *foo = &x[0];
19212     ++foo;
19213   }
19214   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19215     typedef const int *iptr;
19216     iptr p = 0;
19217     ++p;
19218   }
19219   { /* AIX XL C 1.02.0.0 rejects this saying
19220        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19221     struct s { int j; const int *ap[3]; };
19222     struct s *b; b->j = 5;
19223   }
19224   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19225     const int foo = 10;
19226     if (!foo) return 0;
19227   }
19228   return !cs[0] && !zero.x;
19229 #endif
19230
19231   ;
19232   return 0;
19233 }
19234 _ACEOF
19235 if ac_fn_c_try_compile "$LINENO"; then :
19236   ac_cv_c_const=yes
19237 else
19238   ac_cv_c_const=no
19239 fi
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19241 fi
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19243 $as_echo "$ac_cv_c_const" >&6; }
19244 if test $ac_cv_c_const = no; then
19245
19246 $as_echo "#define const /**/" >>confdefs.h
19247
19248 fi
19249
19250
19251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19252 $as_echo_n "checking for signed... " >&6; }
19253 if ${bh_cv_c_signed+:} false; then :
19254   $as_echo_n "(cached) " >&6
19255 else
19256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h.  */
19258
19259 int
19260 main ()
19261 {
19262 signed char x;
19263   ;
19264   return 0;
19265 }
19266 _ACEOF
19267 if ac_fn_c_try_compile "$LINENO"; then :
19268   bh_cv_c_signed=yes
19269 else
19270   bh_cv_c_signed=no
19271 fi
19272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19273 fi
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19275 $as_echo "$bh_cv_c_signed" >&6; }
19276   if test $bh_cv_c_signed = no; then
19277
19278 $as_echo "#define signed /**/" >>confdefs.h
19279
19280   fi
19281
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19283 $as_echo_n "checking for inline... " >&6; }
19284 if ${ac_cv_c_inline+:} false; then :
19285   $as_echo_n "(cached) " >&6
19286 else
19287   ac_cv_c_inline=no
19288 for ac_kw in inline __inline__ __inline; do
19289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h.  */
19291 #ifndef __cplusplus
19292 typedef int foo_t;
19293 static $ac_kw foo_t static_foo () {return 0; }
19294 $ac_kw foo_t foo () {return 0; }
19295 #endif
19296
19297 _ACEOF
19298 if ac_fn_c_try_compile "$LINENO"; then :
19299   ac_cv_c_inline=$ac_kw
19300 fi
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302   test "$ac_cv_c_inline" != no && break
19303 done
19304
19305 fi
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19307 $as_echo "$ac_cv_c_inline" >&6; }
19308
19309 case $ac_cv_c_inline in
19310   inline | yes) ;;
19311   *)
19312     case $ac_cv_c_inline in
19313       no) ac_val=;;
19314       *) ac_val=$ac_cv_c_inline;;
19315     esac
19316     cat >>confdefs.h <<_ACEOF
19317 #ifndef __cplusplus
19318 #define inline $ac_val
19319 #endif
19320 _ACEOF
19321     ;;
19322 esac
19323
19324 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19325 if test "x$ac_cv_type_off_t" = xyes; then :
19326
19327 else
19328
19329 cat >>confdefs.h <<_ACEOF
19330 #define off_t long int
19331 _ACEOF
19332
19333 fi
19334
19335 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19336 if test "x$ac_cv_type_size_t" = xyes; then :
19337
19338 else
19339
19340 cat >>confdefs.h <<_ACEOF
19341 #define size_t unsigned int
19342 _ACEOF
19343
19344 fi
19345
19346
19347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19348 $as_echo_n "checking for long long... " >&6; }
19349 if ${ac_cv_type_long_long+:} false; then :
19350   $as_echo_n "(cached) " >&6
19351 else
19352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h.  */
19354 long long ll = 1LL; int i = 63;
19355 int
19356 main ()
19357 {
19358 long long llmax = (long long) -1;
19359      return ll << i | ll >> i | llmax / ll | llmax % ll;
19360   ;
19361   return 0;
19362 }
19363 _ACEOF
19364 if ac_fn_c_try_link "$LINENO"; then :
19365   ac_cv_type_long_long=yes
19366 else
19367   ac_cv_type_long_long=no
19368 fi
19369 rm -f core conftest.err conftest.$ac_objext \
19370     conftest$ac_exeext conftest.$ac_ext
19371 fi
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19373 $as_echo "$ac_cv_type_long_long" >&6; }
19374   if test $ac_cv_type_long_long = yes; then
19375
19376 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19377
19378   fi
19379
19380
19381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19382 $as_echo_n "checking for long double... " >&6; }
19383 if ${gt_cv_c_long_double+:} false; then :
19384   $as_echo_n "(cached) " >&6
19385 else
19386   if test "$GCC" = yes; then
19387        gt_cv_c_long_double=yes
19388      else
19389        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h.  */
19391
19392          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19393          long double foo = 0.0;
19394          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19395          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19396
19397 int
19398 main ()
19399 {
19400
19401   ;
19402   return 0;
19403 }
19404 _ACEOF
19405 if ac_fn_c_try_compile "$LINENO"; then :
19406   gt_cv_c_long_double=yes
19407 else
19408   gt_cv_c_long_double=no
19409 fi
19410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19411      fi
19412 fi
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19414 $as_echo "$gt_cv_c_long_double" >&6; }
19415   if test $gt_cv_c_long_double = yes; then
19416
19417 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19418
19419   fi
19420
19421
19422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19423 $as_echo_n "checking for wchar_t... " >&6; }
19424 if ${gt_cv_c_wchar_t+:} false; then :
19425   $as_echo_n "(cached) " >&6
19426 else
19427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h.  */
19429 #include <stddef.h>
19430        wchar_t foo = (wchar_t)'\0';
19431 int
19432 main ()
19433 {
19434
19435   ;
19436   return 0;
19437 }
19438 _ACEOF
19439 if ac_fn_c_try_compile "$LINENO"; then :
19440   gt_cv_c_wchar_t=yes
19441 else
19442   gt_cv_c_wchar_t=no
19443 fi
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19445 fi
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19447 $as_echo "$gt_cv_c_wchar_t" >&6; }
19448   if test $gt_cv_c_wchar_t = yes; then
19449
19450 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19451
19452   fi
19453
19454
19455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19456 $as_echo_n "checking for wint_t... " >&6; }
19457 if ${gt_cv_c_wint_t+:} false; then :
19458   $as_echo_n "(cached) " >&6
19459 else
19460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h.  */
19462 #include <wchar.h>
19463        wint_t foo = (wchar_t)'\0';
19464 int
19465 main ()
19466 {
19467
19468   ;
19469   return 0;
19470 }
19471 _ACEOF
19472 if ac_fn_c_try_compile "$LINENO"; then :
19473   gt_cv_c_wint_t=yes
19474 else
19475   gt_cv_c_wint_t=no
19476 fi
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478 fi
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19480 $as_echo "$gt_cv_c_wint_t" >&6; }
19481   if test $gt_cv_c_wint_t = yes; then
19482
19483 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19484
19485   fi
19486
19487
19488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19489 $as_echo_n "checking for inttypes.h... " >&6; }
19490 if ${gl_cv_header_inttypes_h+:} false; then :
19491   $as_echo_n "(cached) " >&6
19492 else
19493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h.  */
19495 #include <sys/types.h>
19496 #include <inttypes.h>
19497 int
19498 main ()
19499 {
19500 uintmax_t i = (uintmax_t) -1;
19501   ;
19502   return 0;
19503 }
19504 _ACEOF
19505 if ac_fn_c_try_compile "$LINENO"; then :
19506   gl_cv_header_inttypes_h=yes
19507 else
19508   gl_cv_header_inttypes_h=no
19509 fi
19510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19511 fi
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19513 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19514   if test $gl_cv_header_inttypes_h = yes; then
19515
19516 cat >>confdefs.h <<_ACEOF
19517 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19518 _ACEOF
19519
19520   fi
19521
19522
19523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19524 $as_echo_n "checking for stdint.h... " >&6; }
19525 if ${gl_cv_header_stdint_h+:} false; then :
19526   $as_echo_n "(cached) " >&6
19527 else
19528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19529 /* end confdefs.h.  */
19530 #include <sys/types.h>
19531 #include <stdint.h>
19532 int
19533 main ()
19534 {
19535 uintmax_t i = (uintmax_t) -1;
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 if ac_fn_c_try_compile "$LINENO"; then :
19541   gl_cv_header_stdint_h=yes
19542 else
19543   gl_cv_header_stdint_h=no
19544 fi
19545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19546 fi
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19548 $as_echo "$gl_cv_header_stdint_h" >&6; }
19549   if test $gl_cv_header_stdint_h = yes; then
19550
19551 cat >>confdefs.h <<_ACEOF
19552 #define HAVE_STDINT_H_WITH_UINTMAX 1
19553 _ACEOF
19554
19555   fi
19556
19557
19558
19559
19560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19561 $as_echo_n "checking for intmax_t... " >&6; }
19562 if ${gt_cv_c_intmax_t+:} false; then :
19563   $as_echo_n "(cached) " >&6
19564 else
19565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566 /* end confdefs.h.  */
19567
19568 #include <stddef.h>
19569 #include <stdlib.h>
19570 #if HAVE_STDINT_H_WITH_UINTMAX
19571 #include <stdint.h>
19572 #endif
19573 #if HAVE_INTTYPES_H_WITH_UINTMAX
19574 #include <inttypes.h>
19575 #endif
19576
19577 int
19578 main ()
19579 {
19580 intmax_t x = -1;
19581   ;
19582   return 0;
19583 }
19584 _ACEOF
19585 if ac_fn_c_try_compile "$LINENO"; then :
19586   gt_cv_c_intmax_t=yes
19587 else
19588   gt_cv_c_intmax_t=no
19589 fi
19590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19591 fi
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19593 $as_echo "$gt_cv_c_intmax_t" >&6; }
19594   if test $gt_cv_c_intmax_t = yes; then
19595
19596 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19597
19598   fi
19599
19600
19601
19602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19603 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19604 if ${gt_cv_func_printf_posix+:} false; then :
19605   $as_echo_n "(cached) " >&6
19606 else
19607
19608       if test "$cross_compiling" = yes; then :
19609
19610         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19611 /* end confdefs.h.  */
19612
19613 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19614   notposix
19615 #endif
19616
19617 _ACEOF
19618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19619   $EGREP "notposix" >/dev/null 2>&1; then :
19620   gt_cv_func_printf_posix="guessing no"
19621 else
19622   gt_cv_func_printf_posix="guessing yes"
19623 fi
19624 rm -f conftest*
19625
19626
19627 else
19628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19629 /* end confdefs.h.  */
19630
19631 #include <stdio.h>
19632 #include <string.h>
19633 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19634    dollar expansion (possibly an autoconf bug).  */
19635 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19636 static char buf[100];
19637 int main ()
19638 {
19639   sprintf (buf, format, 33, 55);
19640   return (strcmp (buf, "55 33") != 0);
19641 }
19642 _ACEOF
19643 if ac_fn_c_try_run "$LINENO"; then :
19644   gt_cv_func_printf_posix=yes
19645 else
19646   gt_cv_func_printf_posix=no
19647 fi
19648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19649   conftest.$ac_objext conftest.beam conftest.$ac_ext
19650 fi
19651
19652
19653 fi
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19655 $as_echo "$gt_cv_func_printf_posix" >&6; }
19656   case $gt_cv_func_printf_posix in
19657     *yes)
19658
19659 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19660
19661       ;;
19662   esac
19663
19664 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19665 # for constant arguments.  Useless!
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19667 $as_echo_n "checking for working alloca.h... " >&6; }
19668 if ${ac_cv_working_alloca_h+:} false; then :
19669   $as_echo_n "(cached) " >&6
19670 else
19671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h.  */
19673 #include <alloca.h>
19674 int
19675 main ()
19676 {
19677 char *p = (char *) alloca (2 * sizeof (int));
19678                           if (p) return 0;
19679   ;
19680   return 0;
19681 }
19682 _ACEOF
19683 if ac_fn_c_try_link "$LINENO"; then :
19684   ac_cv_working_alloca_h=yes
19685 else
19686   ac_cv_working_alloca_h=no
19687 fi
19688 rm -f core conftest.err conftest.$ac_objext \
19689     conftest$ac_exeext conftest.$ac_ext
19690 fi
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19692 $as_echo "$ac_cv_working_alloca_h" >&6; }
19693 if test $ac_cv_working_alloca_h = yes; then
19694
19695 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19696
19697 fi
19698
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19700 $as_echo_n "checking for alloca... " >&6; }
19701 if ${ac_cv_func_alloca_works+:} false; then :
19702   $as_echo_n "(cached) " >&6
19703 else
19704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h.  */
19706 #ifdef __GNUC__
19707 # define alloca __builtin_alloca
19708 #else
19709 # ifdef _MSC_VER
19710 #  include <malloc.h>
19711 #  define alloca _alloca
19712 # else
19713 #  ifdef HAVE_ALLOCA_H
19714 #   include <alloca.h>
19715 #  else
19716 #   ifdef _AIX
19717  #pragma alloca
19718 #   else
19719 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19720 void *alloca (size_t);
19721 #    endif
19722 #   endif
19723 #  endif
19724 # endif
19725 #endif
19726
19727 int
19728 main ()
19729 {
19730 char *p = (char *) alloca (1);
19731                                     if (p) return 0;
19732   ;
19733   return 0;
19734 }
19735 _ACEOF
19736 if ac_fn_c_try_link "$LINENO"; then :
19737   ac_cv_func_alloca_works=yes
19738 else
19739   ac_cv_func_alloca_works=no
19740 fi
19741 rm -f core conftest.err conftest.$ac_objext \
19742     conftest$ac_exeext conftest.$ac_ext
19743 fi
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19745 $as_echo "$ac_cv_func_alloca_works" >&6; }
19746
19747 if test $ac_cv_func_alloca_works = yes; then
19748
19749 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19750
19751 else
19752   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19753 # that cause trouble.  Some versions do not even contain alloca or
19754 # contain a buggy version.  If you still want to use their alloca,
19755 # use ar to extract alloca.o from them instead of compiling alloca.c.
19756
19757 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19758
19759 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19760
19761
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19763 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19764 if ${ac_cv_os_cray+:} false; then :
19765   $as_echo_n "(cached) " >&6
19766 else
19767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19768 /* end confdefs.h.  */
19769 #if defined CRAY && ! defined CRAY2
19770 webecray
19771 #else
19772 wenotbecray
19773 #endif
19774
19775 _ACEOF
19776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19777   $EGREP "webecray" >/dev/null 2>&1; then :
19778   ac_cv_os_cray=yes
19779 else
19780   ac_cv_os_cray=no
19781 fi
19782 rm -f conftest*
19783
19784 fi
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19786 $as_echo "$ac_cv_os_cray" >&6; }
19787 if test $ac_cv_os_cray = yes; then
19788   for ac_func in _getb67 GETB67 getb67; do
19789     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19792
19793 cat >>confdefs.h <<_ACEOF
19794 #define CRAY_STACKSEG_END $ac_func
19795 _ACEOF
19796
19797     break
19798 fi
19799
19800   done
19801 fi
19802
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19804 $as_echo_n "checking stack direction for C alloca... " >&6; }
19805 if ${ac_cv_c_stack_direction+:} false; then :
19806   $as_echo_n "(cached) " >&6
19807 else
19808   if test "$cross_compiling" = yes; then :
19809   ac_cv_c_stack_direction=0
19810 else
19811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19812 /* end confdefs.h.  */
19813 $ac_includes_default
19814 int
19815 find_stack_direction ()
19816 {
19817   static char *addr = 0;
19818   auto char dummy;
19819   if (addr == 0)
19820     {
19821       addr = &dummy;
19822       return find_stack_direction ();
19823     }
19824   else
19825     return (&dummy > addr) ? 1 : -1;
19826 }
19827
19828 int
19829 main ()
19830 {
19831   return find_stack_direction () < 0;
19832 }
19833 _ACEOF
19834 if ac_fn_c_try_run "$LINENO"; then :
19835   ac_cv_c_stack_direction=1
19836 else
19837   ac_cv_c_stack_direction=-1
19838 fi
19839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19840   conftest.$ac_objext conftest.beam conftest.$ac_ext
19841 fi
19842
19843 fi
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19845 $as_echo "$ac_cv_c_stack_direction" >&6; }
19846 cat >>confdefs.h <<_ACEOF
19847 #define STACK_DIRECTION $ac_cv_c_stack_direction
19848 _ACEOF
19849
19850
19851 fi
19852
19853
19854
19855
19856   for ac_header in $ac_header_list
19857 do :
19858   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19859 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19860 "
19861 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19862   cat >>confdefs.h <<_ACEOF
19863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19864 _ACEOF
19865
19866 fi
19867
19868 done
19869
19870
19871
19872
19873
19874
19875
19876
19877 for ac_func in getpagesize
19878 do :
19879   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19880 if test "x$ac_cv_func_getpagesize" = xyes; then :
19881   cat >>confdefs.h <<_ACEOF
19882 #define HAVE_GETPAGESIZE 1
19883 _ACEOF
19884
19885 fi
19886 done
19887
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19889 $as_echo_n "checking for working mmap... " >&6; }
19890 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19891   $as_echo_n "(cached) " >&6
19892 else
19893   if test "$cross_compiling" = yes; then :
19894   ac_cv_func_mmap_fixed_mapped=no
19895 else
19896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19897 /* end confdefs.h.  */
19898 $ac_includes_default
19899 /* malloc might have been renamed as rpl_malloc. */
19900 #undef malloc
19901
19902 /* Thanks to Mike Haertel and Jim Avera for this test.
19903    Here is a matrix of mmap possibilities:
19904         mmap private not fixed
19905         mmap private fixed at somewhere currently unmapped
19906         mmap private fixed at somewhere already mapped
19907         mmap shared not fixed
19908         mmap shared fixed at somewhere currently unmapped
19909         mmap shared fixed at somewhere already mapped
19910    For private mappings, we should verify that changes cannot be read()
19911    back from the file, nor mmap's back from the file at a different
19912    address.  (There have been systems where private was not correctly
19913    implemented like the infamous i386 svr4.0, and systems where the
19914    VM page cache was not coherent with the file system buffer cache
19915    like early versions of FreeBSD and possibly contemporary NetBSD.)
19916    For shared mappings, we should conversely verify that changes get
19917    propagated back to all the places they're supposed to be.
19918
19919    Grep wants private fixed already mapped.
19920    The main things grep needs to know about mmap are:
19921    * does it exist and is it safe to write into the mmap'd area
19922    * how to use it (BSD variants)  */
19923
19924 #include <fcntl.h>
19925 #include <sys/mman.h>
19926
19927 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19928 char *malloc ();
19929 #endif
19930
19931 /* This mess was copied from the GNU getpagesize.h.  */
19932 #ifndef HAVE_GETPAGESIZE
19933 # ifdef _SC_PAGESIZE
19934 #  define getpagesize() sysconf(_SC_PAGESIZE)
19935 # else /* no _SC_PAGESIZE */
19936 #  ifdef HAVE_SYS_PARAM_H
19937 #   include <sys/param.h>
19938 #   ifdef EXEC_PAGESIZE
19939 #    define getpagesize() EXEC_PAGESIZE
19940 #   else /* no EXEC_PAGESIZE */
19941 #    ifdef NBPG
19942 #     define getpagesize() NBPG * CLSIZE
19943 #     ifndef CLSIZE
19944 #      define CLSIZE 1
19945 #     endif /* no CLSIZE */
19946 #    else /* no NBPG */
19947 #     ifdef NBPC
19948 #      define getpagesize() NBPC
19949 #     else /* no NBPC */
19950 #      ifdef PAGESIZE
19951 #       define getpagesize() PAGESIZE
19952 #      endif /* PAGESIZE */
19953 #     endif /* no NBPC */
19954 #    endif /* no NBPG */
19955 #   endif /* no EXEC_PAGESIZE */
19956 #  else /* no HAVE_SYS_PARAM_H */
19957 #   define getpagesize() 8192   /* punt totally */
19958 #  endif /* no HAVE_SYS_PARAM_H */
19959 # endif /* no _SC_PAGESIZE */
19960
19961 #endif /* no HAVE_GETPAGESIZE */
19962
19963 int
19964 main ()
19965 {
19966   char *data, *data2, *data3;
19967   const char *cdata2;
19968   int i, pagesize;
19969   int fd, fd2;
19970
19971   pagesize = getpagesize ();
19972
19973   /* First, make a file with some known garbage in it. */
19974   data = (char *) malloc (pagesize);
19975   if (!data)
19976     return 1;
19977   for (i = 0; i < pagesize; ++i)
19978     *(data + i) = rand ();
19979   umask (0);
19980   fd = creat ("conftest.mmap", 0600);
19981   if (fd < 0)
19982     return 2;
19983   if (write (fd, data, pagesize) != pagesize)
19984     return 3;
19985   close (fd);
19986
19987   /* Next, check that the tail of a page is zero-filled.  File must have
19988      non-zero length, otherwise we risk SIGBUS for entire page.  */
19989   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19990   if (fd2 < 0)
19991     return 4;
19992   cdata2 = "";
19993   if (write (fd2, cdata2, 1) != 1)
19994     return 5;
19995   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19996   if (data2 == MAP_FAILED)
19997     return 6;
19998   for (i = 0; i < pagesize; ++i)
19999     if (*(data2 + i))
20000       return 7;
20001   close (fd2);
20002   if (munmap (data2, pagesize))
20003     return 8;
20004
20005   /* Next, try to mmap the file at a fixed address which already has
20006      something else allocated at it.  If we can, also make sure that
20007      we see the same garbage.  */
20008   fd = open ("conftest.mmap", O_RDWR);
20009   if (fd < 0)
20010     return 9;
20011   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20012                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20013     return 10;
20014   for (i = 0; i < pagesize; ++i)
20015     if (*(data + i) != *(data2 + i))
20016       return 11;
20017
20018   /* Finally, make sure that changes to the mapped area do not
20019      percolate back to the file as seen by read().  (This is a bug on
20020      some variants of i386 svr4.0.)  */
20021   for (i = 0; i < pagesize; ++i)
20022     *(data2 + i) = *(data2 + i) + 1;
20023   data3 = (char *) malloc (pagesize);
20024   if (!data3)
20025     return 12;
20026   if (read (fd, data3, pagesize) != pagesize)
20027     return 13;
20028   for (i = 0; i < pagesize; ++i)
20029     if (*(data + i) != *(data3 + i))
20030       return 14;
20031   close (fd);
20032   return 0;
20033 }
20034 _ACEOF
20035 if ac_fn_c_try_run "$LINENO"; then :
20036   ac_cv_func_mmap_fixed_mapped=yes
20037 else
20038   ac_cv_func_mmap_fixed_mapped=no
20039 fi
20040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20041   conftest.$ac_objext conftest.beam conftest.$ac_ext
20042 fi
20043
20044 fi
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20046 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20047 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20048
20049 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20050
20051 fi
20052 rm -f conftest.mmap conftest.txt
20053
20054
20055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20056 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20057 if ${ac_cv_gnu_library_2_1+:} false; then :
20058   $as_echo_n "(cached) " >&6
20059 else
20060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h.  */
20062
20063 #include <features.h>
20064 #ifdef __GNU_LIBRARY__
20065  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20066   Lucky GNU user
20067  #endif
20068 #endif
20069
20070 _ACEOF
20071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20072   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20073   ac_cv_gnu_library_2_1=yes
20074 else
20075   ac_cv_gnu_library_2_1=no
20076 fi
20077 rm -f conftest*
20078
20079
20080
20081 fi
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20083 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20084
20085     GLIBC21="$ac_cv_gnu_library_2_1"
20086
20087
20088
20089
20090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20091 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20092 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20093   $as_echo_n "(cached) " >&6
20094 else
20095
20096       if test "$cross_compiling" = yes; then :
20097
20098           # Guess based on the CPU.
20099           case "$host_cpu" in
20100             alpha* | i3456786 | m68k | s390*)
20101               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20102             *)
20103               gt_cv_int_divbyzero_sigfpe="guessing no";;
20104           esac
20105
20106 else
20107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20108 /* end confdefs.h.  */
20109
20110 #include <stdlib.h>
20111 #include <signal.h>
20112
20113 static void
20114 #ifdef __cplusplus
20115 sigfpe_handler (int sig)
20116 #else
20117 sigfpe_handler (sig) int sig;
20118 #endif
20119 {
20120   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20121   exit (sig != SIGFPE);
20122 }
20123
20124 int x = 1;
20125 int y = 0;
20126 int z;
20127 int nan;
20128
20129 int main ()
20130 {
20131   signal (SIGFPE, sigfpe_handler);
20132 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20133 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20134   signal (SIGTRAP, sigfpe_handler);
20135 #endif
20136 /* Linux/SPARC yields signal SIGILL.  */
20137 #if defined (__sparc__) && defined (__linux__)
20138   signal (SIGILL, sigfpe_handler);
20139 #endif
20140
20141   z = x / y;
20142   nan = y / y;
20143   exit (1);
20144 }
20145
20146 _ACEOF
20147 if ac_fn_c_try_run "$LINENO"; then :
20148   gt_cv_int_divbyzero_sigfpe=yes
20149 else
20150   gt_cv_int_divbyzero_sigfpe=no
20151 fi
20152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20153   conftest.$ac_objext conftest.beam conftest.$ac_ext
20154 fi
20155
20156
20157 fi
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20159 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20160   case "$gt_cv_int_divbyzero_sigfpe" in
20161     *yes) value=1;;
20162     *) value=0;;
20163   esac
20164
20165 cat >>confdefs.h <<_ACEOF
20166 #define INTDIV0_RAISES_SIGFPE $value
20167 _ACEOF
20168
20169
20170
20171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20172 $as_echo_n "checking for unsigned long long... " >&6; }
20173 if ${ac_cv_type_unsigned_long_long+:} false; then :
20174   $as_echo_n "(cached) " >&6
20175 else
20176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20177 /* end confdefs.h.  */
20178 unsigned long long ull = 1ULL; int i = 63;
20179 int
20180 main ()
20181 {
20182 unsigned long long ullmax = (unsigned long long) -1;
20183      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20184   ;
20185   return 0;
20186 }
20187 _ACEOF
20188 if ac_fn_c_try_link "$LINENO"; then :
20189   ac_cv_type_unsigned_long_long=yes
20190 else
20191   ac_cv_type_unsigned_long_long=no
20192 fi
20193 rm -f core conftest.err conftest.$ac_objext \
20194     conftest$ac_exeext conftest.$ac_ext
20195 fi
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20197 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20198   if test $ac_cv_type_unsigned_long_long = yes; then
20199
20200 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20201
20202   fi
20203
20204
20205
20206
20207   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20208
20209     test $ac_cv_type_unsigned_long_long = yes \
20210       && ac_type='unsigned long long' \
20211       || ac_type='unsigned long'
20212
20213 cat >>confdefs.h <<_ACEOF
20214 #define uintmax_t $ac_type
20215 _ACEOF
20216
20217   else
20218
20219 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20220
20221   fi
20222
20223
20224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20225 $as_echo_n "checking for inttypes.h... " >&6; }
20226 if ${gt_cv_header_inttypes_h+:} false; then :
20227   $as_echo_n "(cached) " >&6
20228 else
20229
20230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h.  */
20232 #include <sys/types.h>
20233 #include <inttypes.h>
20234 int
20235 main ()
20236 {
20237
20238   ;
20239   return 0;
20240 }
20241 _ACEOF
20242 if ac_fn_c_try_compile "$LINENO"; then :
20243   gt_cv_header_inttypes_h=yes
20244 else
20245   gt_cv_header_inttypes_h=no
20246 fi
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248
20249 fi
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20251 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20252   if test $gt_cv_header_inttypes_h = yes; then
20253
20254 cat >>confdefs.h <<_ACEOF
20255 #define HAVE_INTTYPES_H 1
20256 _ACEOF
20257
20258   fi
20259
20260
20261
20262   if test $gt_cv_header_inttypes_h = yes; then
20263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20264 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20265 if ${gt_cv_inttypes_pri_broken+:} false; then :
20266   $as_echo_n "(cached) " >&6
20267 else
20268
20269         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270 /* end confdefs.h.  */
20271 #include <inttypes.h>
20272 #ifdef PRId32
20273 char *p = PRId32;
20274 #endif
20275
20276 int
20277 main ()
20278 {
20279
20280   ;
20281   return 0;
20282 }
20283 _ACEOF
20284 if ac_fn_c_try_compile "$LINENO"; then :
20285   gt_cv_inttypes_pri_broken=no
20286 else
20287   gt_cv_inttypes_pri_broken=yes
20288 fi
20289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20290
20291 fi
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20293 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20294   fi
20295   if test "$gt_cv_inttypes_pri_broken" = yes; then
20296
20297 cat >>confdefs.h <<_ACEOF
20298 #define PRI_MACROS_BROKEN 1
20299 _ACEOF
20300
20301   fi
20302
20303
20304   for ac_header in stdint.h
20305 do :
20306   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20307 if test "x$ac_cv_header_stdint_h" = xyes; then :
20308   cat >>confdefs.h <<_ACEOF
20309 #define HAVE_STDINT_H 1
20310 _ACEOF
20311
20312 fi
20313
20314 done
20315
20316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20317 $as_echo_n "checking for SIZE_MAX... " >&6; }
20318   result=
20319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h.  */
20321
20322 #include <limits.h>
20323 #if HAVE_STDINT_H
20324 #include <stdint.h>
20325 #endif
20326 #ifdef SIZE_MAX
20327 Found it
20328 #endif
20329
20330 _ACEOF
20331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20332   $EGREP "Found it" >/dev/null 2>&1; then :
20333   result=yes
20334 fi
20335 rm -f conftest*
20336
20337   if test -z "$result"; then
20338                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20339
20340 else
20341   result=?
20342 fi
20343
20344
20345     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20346
20347 else
20348   result=?
20349 fi
20350
20351
20352     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20353
20354 else
20355   result=?
20356 fi
20357
20358
20359     if test "$fits_in_uint" = 1; then
20360                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h.  */
20362 #include <stddef.h>
20363         extern size_t foo;
20364         extern unsigned long foo;
20365
20366 int
20367 main ()
20368 {
20369
20370   ;
20371   return 0;
20372 }
20373 _ACEOF
20374 if ac_fn_c_try_compile "$LINENO"; then :
20375   fits_in_uint=0
20376 fi
20377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20378     fi
20379     if test -z "$result"; then
20380       if test "$fits_in_uint" = 1; then
20381         result="$res_hi$res_lo"U
20382       else
20383         result="$res_hi$res_lo"UL
20384       fi
20385     else
20386             result='~(size_t)0'
20387     fi
20388   fi
20389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20390 $as_echo "$result" >&6; }
20391   if test "$result" != yes; then
20392
20393 cat >>confdefs.h <<_ACEOF
20394 #define SIZE_MAX $result
20395 _ACEOF
20396
20397   fi
20398
20399
20400
20401
20402   for ac_header in stdint.h
20403 do :
20404   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20405 if test "x$ac_cv_header_stdint_h" = xyes; then :
20406   cat >>confdefs.h <<_ACEOF
20407 #define HAVE_STDINT_H 1
20408 _ACEOF
20409
20410 fi
20411
20412 done
20413
20414
20415
20416
20417
20418
20419
20420
20421   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20422 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20423
20424 else
20425
20426 $as_echo "#define ptrdiff_t long" >>confdefs.h
20427
20428
20429 fi
20430
20431   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20432 stdlib.h string.h unistd.h sys/param.h
20433 do :
20434   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20435 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20436 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20437   cat >>confdefs.h <<_ACEOF
20438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20439 _ACEOF
20440
20441 fi
20442
20443 done
20444
20445   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20446 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20447 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20448 __fsetlocking
20449 do :
20450   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20451 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20452 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20453   cat >>confdefs.h <<_ACEOF
20454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20455 _ACEOF
20456
20457 fi
20458 done
20459
20460
20461
20462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20463 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20464 if ${ac_cv_have_decl__snprintf+:} false; then :
20465   $as_echo_n "(cached) " >&6
20466 else
20467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20468 /* end confdefs.h.  */
20469 #include <stdio.h>
20470 int
20471 main ()
20472 {
20473
20474 #ifndef _snprintf
20475   char *p = (char *) _snprintf;
20476 #endif
20477
20478   ;
20479   return 0;
20480 }
20481 _ACEOF
20482 if ac_fn_c_try_compile "$LINENO"; then :
20483   ac_cv_have_decl__snprintf=yes
20484 else
20485   ac_cv_have_decl__snprintf=no
20486 fi
20487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20488 fi
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20490 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20491   if test $ac_cv_have_decl__snprintf = yes; then
20492     gt_value=1
20493   else
20494     gt_value=0
20495   fi
20496
20497 cat >>confdefs.h <<_ACEOF
20498 #define HAVE_DECL__SNPRINTF $gt_value
20499 _ACEOF
20500
20501
20502
20503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20504 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20505 if ${ac_cv_have_decl__snwprintf+:} false; then :
20506   $as_echo_n "(cached) " >&6
20507 else
20508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h.  */
20510 #include <stdio.h>
20511 int
20512 main ()
20513 {
20514
20515 #ifndef _snwprintf
20516   char *p = (char *) _snwprintf;
20517 #endif
20518
20519   ;
20520   return 0;
20521 }
20522 _ACEOF
20523 if ac_fn_c_try_compile "$LINENO"; then :
20524   ac_cv_have_decl__snwprintf=yes
20525 else
20526   ac_cv_have_decl__snwprintf=no
20527 fi
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529 fi
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20531 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20532   if test $ac_cv_have_decl__snwprintf = yes; then
20533     gt_value=1
20534   else
20535     gt_value=0
20536   fi
20537
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_DECL__SNWPRINTF $gt_value
20540 _ACEOF
20541
20542
20543
20544
20545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20546 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20547 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20548   $as_echo_n "(cached) " >&6
20549 else
20550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20551 /* end confdefs.h.  */
20552 #include <stdio.h>
20553 int
20554 main ()
20555 {
20556
20557 #ifndef feof_unlocked
20558   char *p = (char *) feof_unlocked;
20559 #endif
20560
20561   ;
20562   return 0;
20563 }
20564 _ACEOF
20565 if ac_fn_c_try_compile "$LINENO"; then :
20566   ac_cv_have_decl_feof_unlocked=yes
20567 else
20568   ac_cv_have_decl_feof_unlocked=no
20569 fi
20570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20571 fi
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20573 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20574   if test $ac_cv_have_decl_feof_unlocked = yes; then
20575     gt_value=1
20576   else
20577     gt_value=0
20578   fi
20579
20580 cat >>confdefs.h <<_ACEOF
20581 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20582 _ACEOF
20583
20584
20585
20586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20587 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20588 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20589   $as_echo_n "(cached) " >&6
20590 else
20591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h.  */
20593 #include <stdio.h>
20594 int
20595 main ()
20596 {
20597
20598 #ifndef fgets_unlocked
20599   char *p = (char *) fgets_unlocked;
20600 #endif
20601
20602   ;
20603   return 0;
20604 }
20605 _ACEOF
20606 if ac_fn_c_try_compile "$LINENO"; then :
20607   ac_cv_have_decl_fgets_unlocked=yes
20608 else
20609   ac_cv_have_decl_fgets_unlocked=no
20610 fi
20611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612 fi
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20614 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20615   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20616     gt_value=1
20617   else
20618     gt_value=0
20619   fi
20620
20621 cat >>confdefs.h <<_ACEOF
20622 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20623 _ACEOF
20624
20625
20626
20627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20628 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20629 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20630   $as_echo_n "(cached) " >&6
20631 else
20632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633 /* end confdefs.h.  */
20634 #include <stdio.h>
20635 int
20636 main ()
20637 {
20638
20639 #ifndef getc_unlocked
20640   char *p = (char *) getc_unlocked;
20641 #endif
20642
20643   ;
20644   return 0;
20645 }
20646 _ACEOF
20647 if ac_fn_c_try_compile "$LINENO"; then :
20648   ac_cv_have_decl_getc_unlocked=yes
20649 else
20650   ac_cv_have_decl_getc_unlocked=no
20651 fi
20652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653 fi
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20655 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20656   if test $ac_cv_have_decl_getc_unlocked = yes; then
20657     gt_value=1
20658   else
20659     gt_value=0
20660   fi
20661
20662 cat >>confdefs.h <<_ACEOF
20663 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20664 _ACEOF
20665
20666
20667
20668   case $gt_cv_func_printf_posix in
20669     *yes) HAVE_POSIX_PRINTF=1 ;;
20670     *) HAVE_POSIX_PRINTF=0 ;;
20671   esac
20672
20673   if test "$ac_cv_func_asprintf" = yes; then
20674     HAVE_ASPRINTF=1
20675   else
20676     HAVE_ASPRINTF=0
20677   fi
20678
20679   if test "$ac_cv_func_snprintf" = yes; then
20680     HAVE_SNPRINTF=1
20681   else
20682     HAVE_SNPRINTF=0
20683   fi
20684
20685   if test "$ac_cv_func_wprintf" = yes; then
20686     HAVE_WPRINTF=1
20687   else
20688     HAVE_WPRINTF=0
20689   fi
20690
20691
20692
20693
20694
20695
20696
20697           am_save_CPPFLAGS="$CPPFLAGS"
20698
20699   for element in $INCICONV; do
20700     haveit=
20701     for x in $CPPFLAGS; do
20702
20703   acl_save_prefix="$prefix"
20704   prefix="$acl_final_prefix"
20705   acl_save_exec_prefix="$exec_prefix"
20706   exec_prefix="$acl_final_exec_prefix"
20707   eval x=\"$x\"
20708   exec_prefix="$acl_save_exec_prefix"
20709   prefix="$acl_save_prefix"
20710
20711       if test "X$x" = "X$element"; then
20712         haveit=yes
20713         break
20714       fi
20715     done
20716     if test -z "$haveit"; then
20717       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20718     fi
20719   done
20720
20721
20722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20723 $as_echo_n "checking for iconv... " >&6; }
20724 if ${am_cv_func_iconv+:} false; then :
20725   $as_echo_n "(cached) " >&6
20726 else
20727
20728     am_cv_func_iconv="no, consider installing GNU libiconv"
20729     am_cv_lib_iconv=no
20730     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20731 /* end confdefs.h.  */
20732 #include <stdlib.h>
20733 #include <iconv.h>
20734 int
20735 main ()
20736 {
20737 iconv_t cd = iconv_open("","");
20738        iconv(cd,NULL,NULL,NULL,NULL);
20739        iconv_close(cd);
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 if ac_fn_c_try_link "$LINENO"; then :
20745   am_cv_func_iconv=yes
20746 fi
20747 rm -f core conftest.err conftest.$ac_objext \
20748     conftest$ac_exeext conftest.$ac_ext
20749     if test "$am_cv_func_iconv" != yes; then
20750       am_save_LIBS="$LIBS"
20751       LIBS="$LIBS $LIBICONV"
20752       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753 /* end confdefs.h.  */
20754 #include <stdlib.h>
20755 #include <iconv.h>
20756 int
20757 main ()
20758 {
20759 iconv_t cd = iconv_open("","");
20760          iconv(cd,NULL,NULL,NULL,NULL);
20761          iconv_close(cd);
20762   ;
20763   return 0;
20764 }
20765 _ACEOF
20766 if ac_fn_c_try_link "$LINENO"; then :
20767   am_cv_lib_iconv=yes
20768         am_cv_func_iconv=yes
20769 fi
20770 rm -f core conftest.err conftest.$ac_objext \
20771     conftest$ac_exeext conftest.$ac_ext
20772       LIBS="$am_save_LIBS"
20773     fi
20774
20775 fi
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20777 $as_echo "$am_cv_func_iconv" >&6; }
20778   if test "$am_cv_func_iconv" = yes; then
20779
20780 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20781
20782   fi
20783   if test "$am_cv_lib_iconv" = yes; then
20784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20785 $as_echo_n "checking how to link with libiconv... " >&6; }
20786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20787 $as_echo "$LIBICONV" >&6; }
20788   else
20789             CPPFLAGS="$am_save_CPPFLAGS"
20790     LIBICONV=
20791     LTLIBICONV=
20792   fi
20793
20794
20795
20796   if test "$am_cv_func_iconv" = yes; then
20797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20798 $as_echo_n "checking for iconv declaration... " >&6; }
20799     if ${am_cv_proto_iconv+:} false; then :
20800   $as_echo_n "(cached) " >&6
20801 else
20802
20803       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h.  */
20805
20806 #include <stdlib.h>
20807 #include <iconv.h>
20808 extern
20809 #ifdef __cplusplus
20810 "C"
20811 #endif
20812 #if defined(__STDC__) || defined(__cplusplus)
20813 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20814 #else
20815 size_t iconv();
20816 #endif
20817
20818 int
20819 main ()
20820 {
20821
20822   ;
20823   return 0;
20824 }
20825 _ACEOF
20826 if ac_fn_c_try_compile "$LINENO"; then :
20827   am_cv_proto_iconv_arg1=""
20828 else
20829   am_cv_proto_iconv_arg1="const"
20830 fi
20831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20832       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);"
20833 fi
20834
20835     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20837          }$am_cv_proto_iconv" >&5
20838 $as_echo "${ac_t:-
20839          }$am_cv_proto_iconv" >&6; }
20840
20841 cat >>confdefs.h <<_ACEOF
20842 #define ICONV_CONST $am_cv_proto_iconv_arg1
20843 _ACEOF
20844
20845   fi
20846
20847
20848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20849 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20850 if ${am_cv_langinfo_codeset+:} false; then :
20851   $as_echo_n "(cached) " >&6
20852 else
20853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h.  */
20855 #include <langinfo.h>
20856 int
20857 main ()
20858 {
20859 char* cs = nl_langinfo(CODESET);
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 if ac_fn_c_try_link "$LINENO"; then :
20865   am_cv_langinfo_codeset=yes
20866 else
20867   am_cv_langinfo_codeset=no
20868 fi
20869 rm -f core conftest.err conftest.$ac_objext \
20870     conftest$ac_exeext conftest.$ac_ext
20871
20872 fi
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20874 $as_echo "$am_cv_langinfo_codeset" >&6; }
20875   if test $am_cv_langinfo_codeset = yes; then
20876
20877 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20878
20879   fi
20880
20881   if test $ac_cv_header_locale_h = yes; then
20882
20883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20884 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20885 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20886   $as_echo_n "(cached) " >&6
20887 else
20888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h.  */
20890 #include <locale.h>
20891 int
20892 main ()
20893 {
20894 return LC_MESSAGES
20895   ;
20896   return 0;
20897 }
20898 _ACEOF
20899 if ac_fn_c_try_link "$LINENO"; then :
20900   gt_cv_val_LC_MESSAGES=yes
20901 else
20902   gt_cv_val_LC_MESSAGES=no
20903 fi
20904 rm -f core conftest.err conftest.$ac_objext \
20905     conftest$ac_exeext conftest.$ac_ext
20906 fi
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20908 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20909   if test $gt_cv_val_LC_MESSAGES = yes; then
20910
20911 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20912
20913   fi
20914
20915   fi
20916
20917   if test -n "$INTL_MACOSX_LIBS"; then
20918     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20919   fi
20920
20921                       for ac_prog in bison
20922 do
20923   # Extract the first word of "$ac_prog", so it can be a program name with args.
20924 set dummy $ac_prog; ac_word=$2
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20926 $as_echo_n "checking for $ac_word... " >&6; }
20927 if ${ac_cv_prog_INTLBISON+:} false; then :
20928   $as_echo_n "(cached) " >&6
20929 else
20930   if test -n "$INTLBISON"; then
20931   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20932 else
20933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20934 for as_dir in $PATH
20935 do
20936   IFS=$as_save_IFS
20937   test -z "$as_dir" && as_dir=.
20938     for ac_exec_ext in '' $ac_executable_extensions; do
20939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20940     ac_cv_prog_INTLBISON="$ac_prog"
20941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20942     break 2
20943   fi
20944 done
20945   done
20946 IFS=$as_save_IFS
20947
20948 fi
20949 fi
20950 INTLBISON=$ac_cv_prog_INTLBISON
20951 if test -n "$INTLBISON"; then
20952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20953 $as_echo "$INTLBISON" >&6; }
20954 else
20955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20956 $as_echo "no" >&6; }
20957 fi
20958
20959
20960   test -n "$INTLBISON" && break
20961 done
20962
20963   if test -z "$INTLBISON"; then
20964     ac_verc_fail=yes
20965   else
20966         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20967 $as_echo_n "checking version of bison... " >&6; }
20968     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20969     case $ac_prog_version in
20970       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20971       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20972          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20973       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20974     esac
20975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20976 $as_echo "$ac_prog_version" >&6; }
20977   fi
20978   if test $ac_verc_fail = yes; then
20979     INTLBISON=:
20980   fi
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20998 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20999 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21000   $as_echo_n "(cached) " >&6
21001 else
21002   gt_save_CPPFLAGS="$CPPFLAGS"
21003      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21004      gt_save_LIBS="$LIBS"
21005      LIBS="$LIBS -framework CoreFoundation"
21006      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h.  */
21008 #include <CFPreferences.h>
21009 int
21010 main ()
21011 {
21012 CFPreferencesCopyAppValue(NULL, NULL)
21013   ;
21014   return 0;
21015 }
21016 _ACEOF
21017 if ac_fn_c_try_link "$LINENO"; then :
21018   gt_cv_func_CFPreferencesCopyAppValue=yes
21019 else
21020   gt_cv_func_CFPreferencesCopyAppValue=no
21021 fi
21022 rm -f core conftest.err conftest.$ac_objext \
21023     conftest$ac_exeext conftest.$ac_ext
21024      CPPFLAGS="$gt_save_CPPFLAGS"
21025      LIBS="$gt_save_LIBS"
21026 fi
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21028 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21029   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21030
21031 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21032
21033   fi
21034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21035 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21036 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21037   $as_echo_n "(cached) " >&6
21038 else
21039   gt_save_CPPFLAGS="$CPPFLAGS"
21040      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21041      gt_save_LIBS="$LIBS"
21042      LIBS="$LIBS -framework CoreFoundation"
21043      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21044 /* end confdefs.h.  */
21045 #include <CFLocale.h>
21046 int
21047 main ()
21048 {
21049 CFLocaleCopyCurrent();
21050   ;
21051   return 0;
21052 }
21053 _ACEOF
21054 if ac_fn_c_try_link "$LINENO"; then :
21055   gt_cv_func_CFLocaleCopyCurrent=yes
21056 else
21057   gt_cv_func_CFLocaleCopyCurrent=no
21058 fi
21059 rm -f core conftest.err conftest.$ac_objext \
21060     conftest$ac_exeext conftest.$ac_ext
21061      CPPFLAGS="$gt_save_CPPFLAGS"
21062      LIBS="$gt_save_LIBS"
21063 fi
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21065 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21066   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21067
21068 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21069
21070   fi
21071   INTL_MACOSX_LIBS=
21072   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21073     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21074   fi
21075
21076
21077
21078
21079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21080 $as_echo_n "checking whether NLS is requested... " >&6; }
21081     # Check whether --enable-nls was given.
21082 if test "${enable_nls+set}" = set; then :
21083   enableval=$enable_nls; USE_NLS=$enableval
21084 else
21085   USE_NLS=yes
21086 fi
21087
21088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21089 $as_echo "$USE_NLS" >&6; }
21090
21091
21092
21093
21094     BUILD_INCLUDED_LIBINTL=no
21095     USE_INCLUDED_LIBINTL=no
21096
21097   LIBINTL=
21098   LTLIBINTL=
21099   POSUB=
21100
21101     if test "$USE_NLS" = "yes"; then
21102     gt_use_preinstalled_gnugettext=no
21103
21104       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21105 $as_echo_n "checking whether included gettext is requested... " >&6; }
21106
21107 # Check whether --with-included-gettext was given.
21108 if test "${with_included_gettext+set}" = set; then :
21109   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21110 else
21111   nls_cv_force_use_gnu_gettext=no
21112 fi
21113
21114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21115 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21116
21117       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21118       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21119
21120
21121
21122
21123
21124
21125         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21126 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21127 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21128   $as_echo_n "(cached) " >&6
21129 else
21130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21131 /* end confdefs.h.  */
21132 #include <libintl.h>
21133 extern int _nl_msg_cat_cntr;
21134 extern int *_nl_domain_bindings;
21135 int
21136 main ()
21137 {
21138 bindtextdomain ("", "");
21139 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21140   ;
21141   return 0;
21142 }
21143 _ACEOF
21144 if ac_fn_c_try_link "$LINENO"; then :
21145   gt_cv_func_gnugettext1_libc=yes
21146 else
21147   gt_cv_func_gnugettext1_libc=no
21148 fi
21149 rm -f core conftest.err conftest.$ac_objext \
21150     conftest$ac_exeext conftest.$ac_ext
21151 fi
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21153 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21154
21155         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21156
21157
21158
21159     use_additional=yes
21160
21161   acl_save_prefix="$prefix"
21162   prefix="$acl_final_prefix"
21163   acl_save_exec_prefix="$exec_prefix"
21164   exec_prefix="$acl_final_exec_prefix"
21165
21166     eval additional_includedir=\"$includedir\"
21167     eval additional_libdir=\"$libdir\"
21168
21169   exec_prefix="$acl_save_exec_prefix"
21170   prefix="$acl_save_prefix"
21171
21172
21173 # Check whether --with-libintl-prefix was given.
21174 if test "${with_libintl_prefix+set}" = set; then :
21175   withval=$with_libintl_prefix;
21176     if test "X$withval" = "Xno"; then
21177       use_additional=no
21178     else
21179       if test "X$withval" = "X"; then
21180
21181   acl_save_prefix="$prefix"
21182   prefix="$acl_final_prefix"
21183   acl_save_exec_prefix="$exec_prefix"
21184   exec_prefix="$acl_final_exec_prefix"
21185
21186           eval additional_includedir=\"$includedir\"
21187           eval additional_libdir=\"$libdir\"
21188
21189   exec_prefix="$acl_save_exec_prefix"
21190   prefix="$acl_save_prefix"
21191
21192       else
21193         additional_includedir="$withval/include"
21194         additional_libdir="$withval/lib"
21195       fi
21196     fi
21197
21198 fi
21199
21200       LIBINTL=
21201   LTLIBINTL=
21202   INCINTL=
21203   rpathdirs=
21204   ltrpathdirs=
21205   names_already_handled=
21206   names_next_round='intl '
21207   while test -n "$names_next_round"; do
21208     names_this_round="$names_next_round"
21209     names_next_round=
21210     for name in $names_this_round; do
21211       already_handled=
21212       for n in $names_already_handled; do
21213         if test "$n" = "$name"; then
21214           already_handled=yes
21215           break
21216         fi
21217       done
21218       if test -z "$already_handled"; then
21219         names_already_handled="$names_already_handled $name"
21220                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21221         eval value=\"\$HAVE_LIB$uppername\"
21222         if test -n "$value"; then
21223           if test "$value" = yes; then
21224             eval value=\"\$LIB$uppername\"
21225             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21226             eval value=\"\$LTLIB$uppername\"
21227             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21228           else
21229                                     :
21230           fi
21231         else
21232                               found_dir=
21233           found_la=
21234           found_so=
21235           found_a=
21236           if test $use_additional = yes; then
21237             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21238               found_dir="$additional_libdir"
21239               found_so="$additional_libdir/lib$name.$shlibext"
21240               if test -f "$additional_libdir/lib$name.la"; then
21241                 found_la="$additional_libdir/lib$name.la"
21242               fi
21243             else
21244               if test -f "$additional_libdir/lib$name.$libext"; then
21245                 found_dir="$additional_libdir"
21246                 found_a="$additional_libdir/lib$name.$libext"
21247                 if test -f "$additional_libdir/lib$name.la"; then
21248                   found_la="$additional_libdir/lib$name.la"
21249                 fi
21250               fi
21251             fi
21252           fi
21253           if test "X$found_dir" = "X"; then
21254             for x in $LDFLAGS $LTLIBINTL; do
21255
21256   acl_save_prefix="$prefix"
21257   prefix="$acl_final_prefix"
21258   acl_save_exec_prefix="$exec_prefix"
21259   exec_prefix="$acl_final_exec_prefix"
21260   eval x=\"$x\"
21261   exec_prefix="$acl_save_exec_prefix"
21262   prefix="$acl_save_prefix"
21263
21264               case "$x" in
21265                 -L*)
21266                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21267                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21268                     found_dir="$dir"
21269                     found_so="$dir/lib$name.$shlibext"
21270                     if test -f "$dir/lib$name.la"; then
21271                       found_la="$dir/lib$name.la"
21272                     fi
21273                   else
21274                     if test -f "$dir/lib$name.$libext"; then
21275                       found_dir="$dir"
21276                       found_a="$dir/lib$name.$libext"
21277                       if test -f "$dir/lib$name.la"; then
21278                         found_la="$dir/lib$name.la"
21279                       fi
21280                     fi
21281                   fi
21282                   ;;
21283               esac
21284               if test "X$found_dir" != "X"; then
21285                 break
21286               fi
21287             done
21288           fi
21289           if test "X$found_dir" != "X"; then
21290                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21291             if test "X$found_so" != "X"; then
21292                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21293                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21294               else
21295                                                                                 haveit=
21296                 for x in $ltrpathdirs; do
21297                   if test "X$x" = "X$found_dir"; then
21298                     haveit=yes
21299                     break
21300                   fi
21301                 done
21302                 if test -z "$haveit"; then
21303                   ltrpathdirs="$ltrpathdirs $found_dir"
21304                 fi
21305                                 if test "$hardcode_direct" = yes; then
21306                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21307                 else
21308                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21309                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21310                                                             haveit=
21311                     for x in $rpathdirs; do
21312                       if test "X$x" = "X$found_dir"; then
21313                         haveit=yes
21314                         break
21315                       fi
21316                     done
21317                     if test -z "$haveit"; then
21318                       rpathdirs="$rpathdirs $found_dir"
21319                     fi
21320                   else
21321                                                                                 haveit=
21322                     for x in $LDFLAGS $LIBINTL; do
21323
21324   acl_save_prefix="$prefix"
21325   prefix="$acl_final_prefix"
21326   acl_save_exec_prefix="$exec_prefix"
21327   exec_prefix="$acl_final_exec_prefix"
21328   eval x=\"$x\"
21329   exec_prefix="$acl_save_exec_prefix"
21330   prefix="$acl_save_prefix"
21331
21332                       if test "X$x" = "X-L$found_dir"; then
21333                         haveit=yes
21334                         break
21335                       fi
21336                     done
21337                     if test -z "$haveit"; then
21338                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21339                     fi
21340                     if test "$hardcode_minus_L" != no; then
21341                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21342                     else
21343                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21344                     fi
21345                   fi
21346                 fi
21347               fi
21348             else
21349               if test "X$found_a" != "X"; then
21350                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21351               else
21352                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21353               fi
21354             fi
21355                         additional_includedir=
21356             case "$found_dir" in
21357               */lib | */lib/)
21358                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21359                 additional_includedir="$basedir/include"
21360                 ;;
21361             esac
21362             if test "X$additional_includedir" != "X"; then
21363                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21364                 haveit=
21365                 if test "X$additional_includedir" = "X/usr/local/include"; then
21366                   if test -n "$GCC"; then
21367                     case $host_os in
21368                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21369                     esac
21370                   fi
21371                 fi
21372                 if test -z "$haveit"; then
21373                   for x in $CPPFLAGS $INCINTL; do
21374
21375   acl_save_prefix="$prefix"
21376   prefix="$acl_final_prefix"
21377   acl_save_exec_prefix="$exec_prefix"
21378   exec_prefix="$acl_final_exec_prefix"
21379   eval x=\"$x\"
21380   exec_prefix="$acl_save_exec_prefix"
21381   prefix="$acl_save_prefix"
21382
21383                     if test "X$x" = "X-I$additional_includedir"; then
21384                       haveit=yes
21385                       break
21386                     fi
21387                   done
21388                   if test -z "$haveit"; then
21389                     if test -d "$additional_includedir"; then
21390                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21391                     fi
21392                   fi
21393                 fi
21394               fi
21395             fi
21396                         if test -n "$found_la"; then
21397                                                         save_libdir="$libdir"
21398               case "$found_la" in
21399                 */* | *\\*) . "$found_la" ;;
21400                 *) . "./$found_la" ;;
21401               esac
21402               libdir="$save_libdir"
21403                             for dep in $dependency_libs; do
21404                 case "$dep" in
21405                   -L*)
21406                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21407                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21408                       haveit=
21409                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21410                         if test -n "$GCC"; then
21411                           case $host_os in
21412                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21413                           esac
21414                         fi
21415                       fi
21416                       if test -z "$haveit"; then
21417                         haveit=
21418                         for x in $LDFLAGS $LIBINTL; do
21419
21420   acl_save_prefix="$prefix"
21421   prefix="$acl_final_prefix"
21422   acl_save_exec_prefix="$exec_prefix"
21423   exec_prefix="$acl_final_exec_prefix"
21424   eval x=\"$x\"
21425   exec_prefix="$acl_save_exec_prefix"
21426   prefix="$acl_save_prefix"
21427
21428                           if test "X$x" = "X-L$additional_libdir"; then
21429                             haveit=yes
21430                             break
21431                           fi
21432                         done
21433                         if test -z "$haveit"; then
21434                           if test -d "$additional_libdir"; then
21435                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21436                           fi
21437                         fi
21438                         haveit=
21439                         for x in $LDFLAGS $LTLIBINTL; do
21440
21441   acl_save_prefix="$prefix"
21442   prefix="$acl_final_prefix"
21443   acl_save_exec_prefix="$exec_prefix"
21444   exec_prefix="$acl_final_exec_prefix"
21445   eval x=\"$x\"
21446   exec_prefix="$acl_save_exec_prefix"
21447   prefix="$acl_save_prefix"
21448
21449                           if test "X$x" = "X-L$additional_libdir"; then
21450                             haveit=yes
21451                             break
21452                           fi
21453                         done
21454                         if test -z "$haveit"; then
21455                           if test -d "$additional_libdir"; then
21456                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21457                           fi
21458                         fi
21459                       fi
21460                     fi
21461                     ;;
21462                   -R*)
21463                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21464                     if test "$enable_rpath" != no; then
21465                                                                   haveit=
21466                       for x in $rpathdirs; do
21467                         if test "X$x" = "X$dir"; then
21468                           haveit=yes
21469                           break
21470                         fi
21471                       done
21472                       if test -z "$haveit"; then
21473                         rpathdirs="$rpathdirs $dir"
21474                       fi
21475                                                                   haveit=
21476                       for x in $ltrpathdirs; do
21477                         if test "X$x" = "X$dir"; then
21478                           haveit=yes
21479                           break
21480                         fi
21481                       done
21482                       if test -z "$haveit"; then
21483                         ltrpathdirs="$ltrpathdirs $dir"
21484                       fi
21485                     fi
21486                     ;;
21487                   -l*)
21488                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21489                     ;;
21490                   *.la)
21491                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21492                     ;;
21493                   *)
21494                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21495                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21496                     ;;
21497                 esac
21498               done
21499             fi
21500           else
21501                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21502             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21503           fi
21504         fi
21505       fi
21506     done
21507   done
21508   if test "X$rpathdirs" != "X"; then
21509     if test -n "$hardcode_libdir_separator"; then
21510                         alldirs=
21511       for found_dir in $rpathdirs; do
21512         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21513       done
21514             acl_save_libdir="$libdir"
21515       libdir="$alldirs"
21516       eval flag=\"$hardcode_libdir_flag_spec\"
21517       libdir="$acl_save_libdir"
21518       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21519     else
21520             for found_dir in $rpathdirs; do
21521         acl_save_libdir="$libdir"
21522         libdir="$found_dir"
21523         eval flag=\"$hardcode_libdir_flag_spec\"
21524         libdir="$acl_save_libdir"
21525         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21526       done
21527     fi
21528   fi
21529   if test "X$ltrpathdirs" != "X"; then
21530             for found_dir in $ltrpathdirs; do
21531       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21532     done
21533   fi
21534
21535           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21536 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21537 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21538   $as_echo_n "(cached) " >&6
21539 else
21540   gt_save_CPPFLAGS="$CPPFLAGS"
21541             CPPFLAGS="$CPPFLAGS $INCINTL"
21542             gt_save_LIBS="$LIBS"
21543             LIBS="$LIBS $LIBINTL"
21544                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h.  */
21546 #include <libintl.h>
21547 extern int _nl_msg_cat_cntr;
21548 extern
21549 #ifdef __cplusplus
21550 "C"
21551 #endif
21552 const char *_nl_expand_alias (const char *);
21553 int
21554 main ()
21555 {
21556 bindtextdomain ("", "");
21557 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21558   ;
21559   return 0;
21560 }
21561 _ACEOF
21562 if ac_fn_c_try_link "$LINENO"; then :
21563   gt_cv_func_gnugettext1_libintl=yes
21564 else
21565   gt_cv_func_gnugettext1_libintl=no
21566 fi
21567 rm -f core conftest.err conftest.$ac_objext \
21568     conftest$ac_exeext conftest.$ac_ext
21569                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21570               LIBS="$LIBS $LIBICONV"
21571               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21572 /* end confdefs.h.  */
21573 #include <libintl.h>
21574 extern int _nl_msg_cat_cntr;
21575 extern
21576 #ifdef __cplusplus
21577 "C"
21578 #endif
21579 const char *_nl_expand_alias (const char *);
21580 int
21581 main ()
21582 {
21583 bindtextdomain ("", "");
21584 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21585   ;
21586   return 0;
21587 }
21588 _ACEOF
21589 if ac_fn_c_try_link "$LINENO"; then :
21590   LIBINTL="$LIBINTL $LIBICONV"
21591                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21592                 gt_cv_func_gnugettext1_libintl=yes
21593
21594 fi
21595 rm -f core conftest.err conftest.$ac_objext \
21596     conftest$ac_exeext conftest.$ac_ext
21597             fi
21598             CPPFLAGS="$gt_save_CPPFLAGS"
21599             LIBS="$gt_save_LIBS"
21600 fi
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21602 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21603         fi
21604
21605                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21606            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21607                 && test "$PACKAGE" != gettext-runtime \
21608                 && test "$PACKAGE" != gettext-tools; }; then
21609           gt_use_preinstalled_gnugettext=yes
21610         else
21611                     LIBINTL=
21612           LTLIBINTL=
21613           INCINTL=
21614         fi
21615
21616
21617         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21618                               nls_cv_use_gnu_gettext=yes
21619         fi
21620       fi
21621
21622       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21623                 BUILD_INCLUDED_LIBINTL=yes
21624         USE_INCLUDED_LIBINTL=yes
21625         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21626         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21627         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21628       fi
21629
21630       CATOBJEXT=
21631       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21632          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21633                 CATOBJEXT=.gmo
21634       fi
21635
21636
21637     if test -n "$INTL_MACOSX_LIBS"; then
21638       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21639          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21640                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21641         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21642       fi
21643     fi
21644
21645     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21646        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21647
21648 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21649
21650     else
21651       USE_NLS=no
21652     fi
21653   fi
21654
21655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21656 $as_echo_n "checking whether to use NLS... " >&6; }
21657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21658 $as_echo "$USE_NLS" >&6; }
21659   if test "$USE_NLS" = "yes"; then
21660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21661 $as_echo_n "checking where the gettext function comes from... " >&6; }
21662     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21663       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21664         gt_source="external libintl"
21665       else
21666         gt_source="libc"
21667       fi
21668     else
21669       gt_source="included intl directory"
21670     fi
21671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21672 $as_echo "$gt_source" >&6; }
21673   fi
21674
21675   if test "$USE_NLS" = "yes"; then
21676
21677     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21678       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21680 $as_echo_n "checking how to link with libintl... " >&6; }
21681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21682 $as_echo "$LIBINTL" >&6; }
21683
21684   for element in $INCINTL; do
21685     haveit=
21686     for x in $CPPFLAGS; do
21687
21688   acl_save_prefix="$prefix"
21689   prefix="$acl_final_prefix"
21690   acl_save_exec_prefix="$exec_prefix"
21691   exec_prefix="$acl_final_exec_prefix"
21692   eval x=\"$x\"
21693   exec_prefix="$acl_save_exec_prefix"
21694   prefix="$acl_save_prefix"
21695
21696       if test "X$x" = "X$element"; then
21697         haveit=yes
21698         break
21699       fi
21700     done
21701     if test -z "$haveit"; then
21702       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21703     fi
21704   done
21705
21706       fi
21707
21708
21709 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21710
21711
21712 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21713
21714     fi
21715
21716         POSUB=po
21717   fi
21718
21719
21720             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21721       BUILD_INCLUDED_LIBINTL=yes
21722     fi
21723
21724
21725
21726
21727
21728         nls_cv_header_intl=
21729     nls_cv_header_libgt=
21730
21731         DATADIRNAME=share
21732
21733
21734         INSTOBJEXT=.mo
21735
21736
21737         GENCAT=gencat
21738
21739
21740         INTLOBJS=
21741     if test "$USE_INCLUDED_LIBINTL" = yes; then
21742       INTLOBJS="\$(GETTOBJS)"
21743     fi
21744
21745
21746         INTL_LIBTOOL_SUFFIX_PREFIX=
21747
21748
21749
21750     INTLLIBS="$LIBINTL"
21751
21752
21753
21754
21755
21756
21757 fi
21758
21759 support_smartalloc=yes
21760 support_readline=yes
21761 support_lzo=yes
21762 support_conio=yes
21763 support_bat=no
21764 support_tls=no
21765 support_crypto=no
21766 support_static_tools=no
21767 support_static_fd=no
21768 support_static_sd=no
21769 support_static_dir=no
21770 support_static_cons=no
21771 build_client_only=no
21772 build_dird=yes
21773 build_stored=yes
21774 db_backends=""
21775 batch_insert_db_backends=""
21776 support_lockmgr=no
21777
21778
21779 # Check whether --enable-bat was given.
21780 if test "${enable_bat+set}" = set; then :
21781   enableval=$enable_bat;
21782        if test x$enableval = xyes; then
21783
21784 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21785
21786           support_bat=yes
21787        fi
21788
21789
21790 fi
21791
21792
21793 BAT_DIR=
21794 if test x$support_bat = xyes; then
21795    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21796    pkg=$?
21797    if test $pkg = 0; then
21798       BAT_DIR=src/qt-console
21799    else
21800       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21801    fi
21802 fi
21803
21804 got_qwt=no
21805 QWT_INC=
21806 QWT_LDFLAGS=
21807 QWT_LIB=
21808 QWT=
21809 no_qwt=no
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819 # Check whether --enable-smartalloc was given.
21820 if test "${enable_smartalloc+set}" = set; then :
21821   enableval=$enable_smartalloc;
21822        if test x$enableval = xno; then
21823           support_smartalloc=no
21824        fi
21825
21826
21827 fi
21828
21829
21830 if test x$support_smartalloc = xyes; then
21831
21832 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21833
21834 fi
21835
21836 # Check whether --enable-lockmgr was given.
21837 if test "${enable_lockmgr+set}" = set; then :
21838   enableval=$enable_lockmgr;
21839        if test x$enableval = xyes; then
21840           support_lockmgr=yes
21841        fi
21842
21843
21844 fi
21845
21846
21847 if test x$support_lockmgr = xyes; then
21848
21849 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21850
21851 fi
21852
21853
21854 # Check whether --enable-static-tools was given.
21855 if test "${enable_static_tools+set}" = set; then :
21856   enableval=$enable_static_tools;
21857        if test x$enableval = xyes; then
21858           if test x$use_libtool = xyes; then
21859              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21860   please rerun configure with --disable-libtool" "$LINENO" 5
21861           fi
21862           support_static_tools=yes
21863        fi
21864
21865
21866 fi
21867
21868
21869 TTOOL_LDFLAGS=
21870 if test x$support_static_tools = xyes; then
21871    TTOOL_LDFLAGS="-static"
21872 fi
21873
21874
21875 # Check whether --enable-static-fd was given.
21876 if test "${enable_static_fd+set}" = set; then :
21877   enableval=$enable_static_fd;
21878        if test x$enableval = xyes; then
21879           if test x$use_libtool = xyes; then
21880              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21881   please rerun configure with --disable-libtool" "$LINENO" 5
21882           fi
21883           support_static_fd=yes
21884        fi
21885
21886
21887 fi
21888
21889
21890 STATIC_FD=
21891 if test x$support_static_fd = xyes; then
21892    STATIC_FD="static-bacula-fd"
21893 fi
21894
21895
21896 # Check whether --enable-static-sd was given.
21897 if test "${enable_static_sd+set}" = set; then :
21898   enableval=$enable_static_sd;
21899        if test x$enableval = xyes; then
21900           if test x$use_libtool = xyes; then
21901              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21902   please rerun configure with --disable-libtool" "$LINENO" 5
21903           fi
21904           support_static_sd=yes
21905        fi
21906
21907
21908 fi
21909
21910
21911 STATIC_SD=
21912 if test x$support_static_sd = xyes; then
21913    STATIC_SD="static-bacula-sd"
21914 fi
21915
21916
21917 # Check whether --enable-static-dir was given.
21918 if test "${enable_static_dir+set}" = set; then :
21919   enableval=$enable_static_dir;
21920        if test x$enableval = xyes; then
21921           if test x$use_libtool = xyes; then
21922              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21923   please rerun configure with --disable-libtool" "$LINENO" 5
21924           fi
21925           support_static_dir=yes
21926        fi
21927
21928
21929 fi
21930
21931
21932 STATIC_DIR=
21933 if test x$support_static_dir = xyes; then
21934    STATIC_DIR="static-bacula-dir"
21935 fi
21936
21937
21938 # Check whether --enable-static-cons was given.
21939 if test "${enable_static_cons+set}" = set; then :
21940   enableval=$enable_static_cons;
21941        if test x$enableval = xyes; then
21942           if test x$use_libtool = xyes; then
21943              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21944   please rerun configure with --disable-libtool" "$LINENO" 5
21945           fi
21946           support_static_cons=yes
21947        fi
21948
21949
21950 fi
21951
21952
21953 STATIC_CONS=
21954 if test x$support_static_cons = xyes; then
21955    STATIC_CONS="static-bconsole"
21956 fi
21957
21958
21959 # Check whether --enable-client-only was given.
21960 if test "${enable_client_only+set}" = set; then :
21961   enableval=$enable_client_only;
21962        if test x$enableval = xyes; then
21963           build_client_only=yes
21964           db_backends="None"
21965           DB_BACKENDS="none"
21966        fi
21967
21968
21969 fi
21970
21971 if test x$build_client_only = xno; then
21972    ALL_DIRS="subdirs"
21973 else
21974    ALL_DIRS=""
21975 fi
21976
21977
21978 # Check whether --enable-build-dird was given.
21979 if test "${enable_build_dird+set}" = set; then :
21980   enableval=$enable_build_dird;
21981        if test x$enableval = xno; then
21982           build_dird=no
21983        fi
21984
21985
21986 fi
21987
21988 if test x$build_dird = xyes; then
21989    DIRD_DIR="src/dird"
21990    DIR_TOOLS="DIRTOOLS"
21991 else
21992    DIRD_DIR=""
21993    DIR_TOOLS="NODIRTOOLS"
21994 fi
21995
21996
21997
21998 # Check whether --enable-build-stored was given.
21999 if test "${enable_build_stored+set}" = set; then :
22000   enableval=$enable_build_stored;
22001       if test x$enableval = xno; then
22002          build_stored=no
22003       fi
22004
22005
22006 fi
22007
22008 if test x$build_stored = xyes; then
22009    STORED_DIR="src/stored"
22010 else
22011    STORED_DIR=""
22012 fi
22013
22014
22015 # Check whether --enable-conio was given.
22016 if test "${enable_conio+set}" = set; then :
22017   enableval=$enable_conio;
22018        if test x$enableval = xno; then
22019           support_conio=no
22020        fi
22021
22022
22023 fi
22024
22025
22026
22027 support_ipv6=yes
22028 # Check whether --enable-ipv6 was given.
22029 if test "${enable_ipv6+set}" = set; then :
22030   enableval=$enable_ipv6;
22031        if test x$enableval = xno; then
22032           support_ipv6=no
22033        fi
22034
22035
22036 fi
22037
22038
22039 if test x$support_ipv6 = xyes; then
22040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041 /* end confdefs.h.  */
22042  #include <sys/types.h>
22043 #include <sys/socket.h>
22044 #include <netinet/in.h>
22045 int
22046 main ()
22047 {
22048 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22049   ;
22050   return 0;
22051 }
22052 _ACEOF
22053 if ac_fn_c_try_link "$LINENO"; then :
22054   support_ipv6=yes
22055 else
22056   support_ipv6=no
22057 fi
22058 rm -f core conftest.err conftest.$ac_objext \
22059     conftest$ac_exeext conftest.$ac_ext
22060 fi
22061
22062 if test x$support_ipv6 = xyes; then
22063
22064 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22065
22066 fi
22067
22068 TERM_LIB=""
22069 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22070 if test "x$ac_cv_header_curses_h" = xyes; then :
22071
22072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22073 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22074 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22075   $as_echo_n "(cached) " >&6
22076 else
22077   ac_check_lib_save_LIBS=$LIBS
22078 LIBS="-ltinfo  $LIBS"
22079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22080 /* end confdefs.h.  */
22081
22082 /* Override any GCC internal prototype to avoid an error.
22083    Use char because int might match the return type of a GCC
22084    builtin and then its argument prototype would still apply.  */
22085 #ifdef __cplusplus
22086 extern "C"
22087 #endif
22088 char tgetent ();
22089 int
22090 main ()
22091 {
22092 return tgetent ();
22093   ;
22094   return 0;
22095 }
22096 _ACEOF
22097 if ac_fn_c_try_link "$LINENO"; then :
22098   ac_cv_lib_tinfo_tgetent=yes
22099 else
22100   ac_cv_lib_tinfo_tgetent=no
22101 fi
22102 rm -f core conftest.err conftest.$ac_objext \
22103     conftest$ac_exeext conftest.$ac_ext
22104 LIBS=$ac_check_lib_save_LIBS
22105 fi
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22107 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22108 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22109    TERM_LIB="-ltinfo"
22110 else
22111
22112       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22113 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22114 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22115   $as_echo_n "(cached) " >&6
22116 else
22117   ac_check_lib_save_LIBS=$LIBS
22118 LIBS="-lncurses  $LIBS"
22119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22120 /* end confdefs.h.  */
22121
22122 /* Override any GCC internal prototype to avoid an error.
22123    Use char because int might match the return type of a GCC
22124    builtin and then its argument prototype would still apply.  */
22125 #ifdef __cplusplus
22126 extern "C"
22127 #endif
22128 char tgetent ();
22129 int
22130 main ()
22131 {
22132 return tgetent ();
22133   ;
22134   return 0;
22135 }
22136 _ACEOF
22137 if ac_fn_c_try_link "$LINENO"; then :
22138   ac_cv_lib_ncurses_tgetent=yes
22139 else
22140   ac_cv_lib_ncurses_tgetent=no
22141 fi
22142 rm -f core conftest.err conftest.$ac_objext \
22143     conftest$ac_exeext conftest.$ac_ext
22144 LIBS=$ac_check_lib_save_LIBS
22145 fi
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22147 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22148 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22149    TERM_LIB="-lncurses"
22150 else
22151
22152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22153 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22154 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22155   $as_echo_n "(cached) " >&6
22156 else
22157   ac_check_lib_save_LIBS=$LIBS
22158 LIBS="-ltermcap  $LIBS"
22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h.  */
22161
22162 /* Override any GCC internal prototype to avoid an error.
22163    Use char because int might match the return type of a GCC
22164    builtin and then its argument prototype would still apply.  */
22165 #ifdef __cplusplus
22166 extern "C"
22167 #endif
22168 char tgetent ();
22169 int
22170 main ()
22171 {
22172 return tgetent ();
22173   ;
22174   return 0;
22175 }
22176 _ACEOF
22177 if ac_fn_c_try_link "$LINENO"; then :
22178   ac_cv_lib_termcap_tgetent=yes
22179 else
22180   ac_cv_lib_termcap_tgetent=no
22181 fi
22182 rm -f core conftest.err conftest.$ac_objext \
22183     conftest$ac_exeext conftest.$ac_ext
22184 LIBS=$ac_check_lib_save_LIBS
22185 fi
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22187 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22188 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22189    TERM_LIB="-ltermcap"
22190 fi
22191
22192
22193 fi
22194
22195
22196 fi
22197
22198
22199 else
22200     for ac_header in curses.h
22201 do :
22202   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22203 if test "x$ac_cv_header_curses_h" = xyes; then :
22204   cat >>confdefs.h <<_ACEOF
22205 #define HAVE_CURSES_H 1
22206 _ACEOF
22207
22208 fi
22209
22210 done
22211
22212      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22213 if test "x$ac_cv_header_term_h" = xyes; then :
22214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22215 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22216 if ${ac_cv_lib_curses_tgetent+:} false; then :
22217   $as_echo_n "(cached) " >&6
22218 else
22219   ac_check_lib_save_LIBS=$LIBS
22220 LIBS="-lcurses  $LIBS"
22221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22222 /* end confdefs.h.  */
22223
22224 /* Override any GCC internal prototype to avoid an error.
22225    Use char because int might match the return type of a GCC
22226    builtin and then its argument prototype would still apply.  */
22227 #ifdef __cplusplus
22228 extern "C"
22229 #endif
22230 char tgetent ();
22231 int
22232 main ()
22233 {
22234 return tgetent ();
22235   ;
22236   return 0;
22237 }
22238 _ACEOF
22239 if ac_fn_c_try_link "$LINENO"; then :
22240   ac_cv_lib_curses_tgetent=yes
22241 else
22242   ac_cv_lib_curses_tgetent=no
22243 fi
22244 rm -f core conftest.err conftest.$ac_objext \
22245     conftest$ac_exeext conftest.$ac_ext
22246 LIBS=$ac_check_lib_save_LIBS
22247 fi
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22249 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22250 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22251    TERM_LIB="-lcurses"
22252 fi
22253
22254
22255 fi
22256
22257
22258
22259 fi
22260
22261
22262
22263
22264 got_conio="no"
22265 if test x$support_conio = xyes; then
22266    if test x$TERM_LIB != x; then
22267       CONS_LIBS=$TERM_LIB
22268       CONS_OBJ="conio.o"
22269       CONS_SRC="conio.c"
22270       got_conio="yes"
22271       support_readline=no
22272
22273 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22274
22275    else
22276       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22277    fi
22278 fi
22279
22280
22281 # Check whether --enable-readline was given.
22282 if test "${enable_readline+set}" = set; then :
22283   enableval=$enable_readline;
22284        if test x$enableval = xno; then
22285           support_readline=no
22286        fi
22287
22288
22289 fi
22290
22291
22292 got_readline="no"
22293 READLINE_SRC=
22294 if test x$support_readline = xyes; then
22295
22296 # Check whether --with-readline was given.
22297 if test "${with_readline+set}" = set; then :
22298   withval=$with_readline;
22299           case "$with_readline" in
22300           no)
22301              :
22302              ;;
22303           yes|*)
22304              if test -f ${with_readline}/readline.h; then
22305                 CONS_INC="-I${with_readline}"
22306                 CONS_LDFLAGS="-L$with_readline"
22307              elif test -f ${with_readline}/include/readline/readline.h; then
22308                 CONS_INC="-I${with_readline}/include/readline"
22309                 CONS_LDFLAGS="-L${with_readline}/lib"
22310                 with_readline="${with_readline}/include/readline"
22311              else
22312                 with_readline="/usr/include/readline"
22313              fi
22314
22315              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22316 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22317 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22318
22319
22320 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22321
22322                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22323                     got_readline="yes"
22324
22325 else
22326
22327                     echo " "
22328                     echo "readline.h not found. readline turned off ..."
22329                     echo " "
22330
22331
22332 fi
22333
22334
22335              ;;
22336           esac
22337
22338 else
22339
22340                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22341 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22342
22343
22344 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22345
22346                 got_readline="yes"
22347                 CONS_INC="-I/usr/include/readline"
22348                 CONS_LIBS="-lreadline ${TERM_LIB}"
22349
22350 else
22351
22352                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22353 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22354 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22355
22356
22357 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22358
22359                         got_readline="yes"
22360                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22361                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22362                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22363                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22364
22365 else
22366
22367                         echo " "
22368                         echo "readline.h not found. readline turned off ..."
22369                         echo " "
22370
22371
22372 fi
22373
22374
22375
22376
22377 fi
22378
22379
22380
22381
22382 fi
22383
22384 fi
22385
22386
22387
22388
22389
22390
22391
22392
22393 MAKE_SHELL=/bin/sh
22394
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22396 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22397 if ${ac_cv_header_stat_broken+:} false; then :
22398   $as_echo_n "(cached) " >&6
22399 else
22400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22401 /* end confdefs.h.  */
22402 #include <sys/types.h>
22403 #include <sys/stat.h>
22404
22405 #if defined S_ISBLK && defined S_IFDIR
22406 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22407 #endif
22408
22409 #if defined S_ISBLK && defined S_IFCHR
22410 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22411 #endif
22412
22413 #if defined S_ISLNK && defined S_IFREG
22414 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22415 #endif
22416
22417 #if defined S_ISSOCK && defined S_IFREG
22418 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22419 #endif
22420
22421 _ACEOF
22422 if ac_fn_c_try_compile "$LINENO"; then :
22423   ac_cv_header_stat_broken=no
22424 else
22425   ac_cv_header_stat_broken=yes
22426 fi
22427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22428 fi
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22430 $as_echo "$ac_cv_header_stat_broken" >&6; }
22431 if test $ac_cv_header_stat_broken = yes; then
22432
22433 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22434
22435 fi
22436
22437 ac_header_dirent=no
22438 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22439   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22441 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22442 if eval \${$as_ac_Header+:} false; then :
22443   $as_echo_n "(cached) " >&6
22444 else
22445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22446 /* end confdefs.h.  */
22447 #include <sys/types.h>
22448 #include <$ac_hdr>
22449
22450 int
22451 main ()
22452 {
22453 if ((DIR *) 0)
22454 return 0;
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 if ac_fn_c_try_compile "$LINENO"; then :
22460   eval "$as_ac_Header=yes"
22461 else
22462   eval "$as_ac_Header=no"
22463 fi
22464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22465 fi
22466 eval ac_res=\$$as_ac_Header
22467                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22468 $as_echo "$ac_res" >&6; }
22469 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22470   cat >>confdefs.h <<_ACEOF
22471 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22472 _ACEOF
22473
22474 ac_header_dirent=$ac_hdr; break
22475 fi
22476
22477 done
22478 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22479 if test $ac_header_dirent = dirent.h; then
22480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22481 $as_echo_n "checking for library containing opendir... " >&6; }
22482 if ${ac_cv_search_opendir+:} false; then :
22483   $as_echo_n "(cached) " >&6
22484 else
22485   ac_func_search_save_LIBS=$LIBS
22486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22487 /* end confdefs.h.  */
22488
22489 /* Override any GCC internal prototype to avoid an error.
22490    Use char because int might match the return type of a GCC
22491    builtin and then its argument prototype would still apply.  */
22492 #ifdef __cplusplus
22493 extern "C"
22494 #endif
22495 char opendir ();
22496 int
22497 main ()
22498 {
22499 return opendir ();
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 for ac_lib in '' dir; do
22505   if test -z "$ac_lib"; then
22506     ac_res="none required"
22507   else
22508     ac_res=-l$ac_lib
22509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22510   fi
22511   if ac_fn_c_try_link "$LINENO"; then :
22512   ac_cv_search_opendir=$ac_res
22513 fi
22514 rm -f core conftest.err conftest.$ac_objext \
22515     conftest$ac_exeext
22516   if ${ac_cv_search_opendir+:} false; then :
22517   break
22518 fi
22519 done
22520 if ${ac_cv_search_opendir+:} false; then :
22521
22522 else
22523   ac_cv_search_opendir=no
22524 fi
22525 rm conftest.$ac_ext
22526 LIBS=$ac_func_search_save_LIBS
22527 fi
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22529 $as_echo "$ac_cv_search_opendir" >&6; }
22530 ac_res=$ac_cv_search_opendir
22531 if test "$ac_res" != no; then :
22532   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22533
22534 fi
22535
22536 else
22537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22538 $as_echo_n "checking for library containing opendir... " >&6; }
22539 if ${ac_cv_search_opendir+:} false; then :
22540   $as_echo_n "(cached) " >&6
22541 else
22542   ac_func_search_save_LIBS=$LIBS
22543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22544 /* end confdefs.h.  */
22545
22546 /* Override any GCC internal prototype to avoid an error.
22547    Use char because int might match the return type of a GCC
22548    builtin and then its argument prototype would still apply.  */
22549 #ifdef __cplusplus
22550 extern "C"
22551 #endif
22552 char opendir ();
22553 int
22554 main ()
22555 {
22556 return opendir ();
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 for ac_lib in '' x; do
22562   if test -z "$ac_lib"; then
22563     ac_res="none required"
22564   else
22565     ac_res=-l$ac_lib
22566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22567   fi
22568   if ac_fn_c_try_link "$LINENO"; then :
22569   ac_cv_search_opendir=$ac_res
22570 fi
22571 rm -f core conftest.err conftest.$ac_objext \
22572     conftest$ac_exeext
22573   if ${ac_cv_search_opendir+:} false; then :
22574   break
22575 fi
22576 done
22577 if ${ac_cv_search_opendir+:} false; then :
22578
22579 else
22580   ac_cv_search_opendir=no
22581 fi
22582 rm conftest.$ac_ext
22583 LIBS=$ac_func_search_save_LIBS
22584 fi
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22586 $as_echo "$ac_cv_search_opendir" >&6; }
22587 ac_res=$ac_cv_search_opendir
22588 if test "$ac_res" != no; then :
22589   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22590
22591 fi
22592
22593 fi
22594
22595 for ac_func in strcasecmp select setenv putenv tcgetattr
22596 do :
22597   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22600   cat >>confdefs.h <<_ACEOF
22601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22602 _ACEOF
22603
22604 fi
22605 done
22606
22607 for ac_func in lstat lchown lchmod futimes fchmod fchown
22608 do :
22609   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22612   cat >>confdefs.h <<_ACEOF
22613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22614 _ACEOF
22615
22616 fi
22617 done
22618
22619 for ac_func in nanosleep nl_langinfo
22620 do :
22621   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22624   cat >>confdefs.h <<_ACEOF
22625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22626 _ACEOF
22627
22628 fi
22629 done
22630
22631 for ac_header in varargs.h
22632 do :
22633   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22634 if test "x$ac_cv_header_varargs_h" = xyes; then :
22635   cat >>confdefs.h <<_ACEOF
22636 #define HAVE_VARARGS_H 1
22637 _ACEOF
22638
22639 fi
22640
22641 done
22642
22643
22644
22645 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22646 if test "x$ac_cv_func_socket" = xyes; then :
22647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22648 $as_echo "using libc's socket" >&6; }
22649 else
22650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22651 $as_echo_n "checking for socket in -lxnet... " >&6; }
22652 if ${ac_cv_lib_xnet_socket+:} false; then :
22653   $as_echo_n "(cached) " >&6
22654 else
22655   ac_check_lib_save_LIBS=$LIBS
22656 LIBS="-lxnet  $LIBS"
22657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22658 /* end confdefs.h.  */
22659
22660 /* Override any GCC internal prototype to avoid an error.
22661    Use char because int might match the return type of a GCC
22662    builtin and then its argument prototype would still apply.  */
22663 #ifdef __cplusplus
22664 extern "C"
22665 #endif
22666 char socket ();
22667 int
22668 main ()
22669 {
22670 return socket ();
22671   ;
22672   return 0;
22673 }
22674 _ACEOF
22675 if ac_fn_c_try_link "$LINENO"; then :
22676   ac_cv_lib_xnet_socket=yes
22677 else
22678   ac_cv_lib_xnet_socket=no
22679 fi
22680 rm -f core conftest.err conftest.$ac_objext \
22681     conftest$ac_exeext conftest.$ac_ext
22682 LIBS=$ac_check_lib_save_LIBS
22683 fi
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22685 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22686 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22687   cat >>confdefs.h <<_ACEOF
22688 #define HAVE_LIBXNET 1
22689 _ACEOF
22690
22691   LIBS="-lxnet $LIBS"
22692
22693 fi
22694
22695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22696 $as_echo_n "checking for socket in -lsocket... " >&6; }
22697 if ${ac_cv_lib_socket_socket+:} false; then :
22698   $as_echo_n "(cached) " >&6
22699 else
22700   ac_check_lib_save_LIBS=$LIBS
22701 LIBS="-lsocket  $LIBS"
22702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703 /* end confdefs.h.  */
22704
22705 /* Override any GCC internal prototype to avoid an error.
22706    Use char because int might match the return type of a GCC
22707    builtin and then its argument prototype would still apply.  */
22708 #ifdef __cplusplus
22709 extern "C"
22710 #endif
22711 char socket ();
22712 int
22713 main ()
22714 {
22715 return socket ();
22716   ;
22717   return 0;
22718 }
22719 _ACEOF
22720 if ac_fn_c_try_link "$LINENO"; then :
22721   ac_cv_lib_socket_socket=yes
22722 else
22723   ac_cv_lib_socket_socket=no
22724 fi
22725 rm -f core conftest.err conftest.$ac_objext \
22726     conftest$ac_exeext conftest.$ac_ext
22727 LIBS=$ac_check_lib_save_LIBS
22728 fi
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22730 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22731 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22732   cat >>confdefs.h <<_ACEOF
22733 #define HAVE_LIBSOCKET 1
22734 _ACEOF
22735
22736   LIBS="-lsocket $LIBS"
22737
22738 fi
22739
22740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22741 $as_echo_n "checking for socket in -linet... " >&6; }
22742 if ${ac_cv_lib_inet_socket+:} false; then :
22743   $as_echo_n "(cached) " >&6
22744 else
22745   ac_check_lib_save_LIBS=$LIBS
22746 LIBS="-linet  $LIBS"
22747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22748 /* end confdefs.h.  */
22749
22750 /* Override any GCC internal prototype to avoid an error.
22751    Use char because int might match the return type of a GCC
22752    builtin and then its argument prototype would still apply.  */
22753 #ifdef __cplusplus
22754 extern "C"
22755 #endif
22756 char socket ();
22757 int
22758 main ()
22759 {
22760 return socket ();
22761   ;
22762   return 0;
22763 }
22764 _ACEOF
22765 if ac_fn_c_try_link "$LINENO"; then :
22766   ac_cv_lib_inet_socket=yes
22767 else
22768   ac_cv_lib_inet_socket=no
22769 fi
22770 rm -f core conftest.err conftest.$ac_objext \
22771     conftest$ac_exeext conftest.$ac_ext
22772 LIBS=$ac_check_lib_save_LIBS
22773 fi
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22775 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22776 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22777   cat >>confdefs.h <<_ACEOF
22778 #define HAVE_LIBINET 1
22779 _ACEOF
22780
22781   LIBS="-linet $LIBS"
22782
22783 fi
22784
22785 fi
22786
22787
22788 TCPW_MSG="no"
22789 WRAPLIBS=""
22790
22791 # Check whether --with-tcp-wrappers was given.
22792 if test "${with_tcp_wrappers+set}" = set; then :
22793   withval=$with_tcp_wrappers;
22794        if test "x$withval" != "xno" ; then
22795           saved_LIBS="$LIBS"
22796           LIBS="$saved_LIBS -lwrap"
22797           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22798 $as_echo_n "checking for library containing nanosleep... " >&6; }
22799 if ${ac_cv_search_nanosleep+:} false; then :
22800   $as_echo_n "(cached) " >&6
22801 else
22802   ac_func_search_save_LIBS=$LIBS
22803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22804 /* end confdefs.h.  */
22805
22806 /* Override any GCC internal prototype to avoid an error.
22807    Use char because int might match the return type of a GCC
22808    builtin and then its argument prototype would still apply.  */
22809 #ifdef __cplusplus
22810 extern "C"
22811 #endif
22812 char nanosleep ();
22813 int
22814 main ()
22815 {
22816 return nanosleep ();
22817   ;
22818   return 0;
22819 }
22820 _ACEOF
22821 for ac_lib in '' rt; do
22822   if test -z "$ac_lib"; then
22823     ac_res="none required"
22824   else
22825     ac_res=-l$ac_lib
22826     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22827   fi
22828   if ac_fn_c_try_link "$LINENO"; then :
22829   ac_cv_search_nanosleep=$ac_res
22830 fi
22831 rm -f core conftest.err conftest.$ac_objext \
22832     conftest$ac_exeext
22833   if ${ac_cv_search_nanosleep+:} false; then :
22834   break
22835 fi
22836 done
22837 if ${ac_cv_search_nanosleep+:} false; then :
22838
22839 else
22840   ac_cv_search_nanosleep=no
22841 fi
22842 rm conftest.$ac_ext
22843 LIBS=$ac_func_search_save_LIBS
22844 fi
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22846 $as_echo "$ac_cv_search_nanosleep" >&6; }
22847 ac_res=$ac_cv_search_nanosleep
22848 if test "$ac_res" != no; then :
22849   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22850
22851 fi
22852
22853           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22854 $as_echo_n "checking for libwrap... " >&6; }
22855           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22856 /* end confdefs.h.  */
22857
22858                #include <sys/types.h>
22859                #include <tcpd.h>
22860                int deny_severity = 0;
22861                int allow_severity = 0;
22862                struct request_info *req;
22863
22864 int
22865 main ()
22866 {
22867
22868                 hosts_access(req);
22869
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 if ac_fn_c_try_link "$LINENO"; then :
22875
22876                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22877 $as_echo "yes" >&6; }
22878
22879 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22880
22881                  TCPW_MSG="yes"
22882                  LIBS="$saved_LIBS"
22883                  WRAPLIBS="-lwrap"
22884
22885 else
22886
22887                  LIBS="$saved_LIBS -lwrap -lnsl"
22888                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22889                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22890 /* end confdefs.h.  */
22891
22892                        #include <sys/types.h>
22893                        #include <tcpd.h>
22894                        int deny_severity = 0;
22895                        int allow_severity = 0;
22896                        struct request_info *req;
22897
22898 int
22899 main ()
22900 {
22901
22902                        hosts_access(req);
22903
22904   ;
22905   return 0;
22906 }
22907 _ACEOF
22908 if ac_fn_c_try_link "$LINENO"; then :
22909
22910                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22911 $as_echo "yes" >&6; }
22912
22913 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22914
22915                       TCPW_MSG="yes"
22916                       LIBS="$saved_LIBS"
22917                       WRAPLIBS="-lwrap"
22918
22919 else
22920
22921                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22922
22923
22924 fi
22925 rm -f core conftest.err conftest.$ac_objext \
22926     conftest$ac_exeext conftest.$ac_ext
22927
22928
22929 fi
22930 rm -f core conftest.err conftest.$ac_objext \
22931     conftest$ac_exeext conftest.$ac_ext
22932        fi
22933
22934
22935 fi
22936
22937
22938
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22940 $as_echo_n "checking for OpenSSL... " >&6; }
22941
22942 # Check whether --with-openssl was given.
22943 if test "${with_openssl+set}" = set; then :
22944   withval=$with_openssl;
22945         with_openssl_directory=${withval}
22946
22947
22948 fi
22949
22950
22951 if test "x$with_openssl_directory" != "xno"; then
22952    OPENSSL_LIBS="-lssl -lcrypto"
22953    OPENSSL_INC=""
22954
22955    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22956       #
22957       # Make sure the $with_openssl_directory also makes sense
22958       #
22959       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22960          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22961          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22962       fi
22963    fi
22964
22965    saved_LIBS="${LIBS}"
22966    saved_CFLAGS="${CFLAGS}"
22967    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22968    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22969
22970    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22971 /* end confdefs.h.  */
22972
22973           #include <openssl/ssl.h>
22974
22975 int
22976 main ()
22977 {
22978
22979            CRYPTO_set_id_callback(NULL);
22980
22981   ;
22982   return 0;
22983 }
22984 _ACEOF
22985 if ac_fn_c_try_link "$LINENO"; then :
22986
22987           support_tls="yes"
22988           support_crypto="yes"
22989
22990 else
22991
22992           support_tls="no"
22993           support_crypto="no"
22994
22995
22996 fi
22997 rm -f core conftest.err conftest.$ac_objext \
22998     conftest$ac_exeext conftest.$ac_ext
22999
23000    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h.  */
23002
23003           #include <openssl/evp.h>
23004
23005 int
23006 main ()
23007 {
23008
23009           EVP_sha512();
23010
23011   ;
23012   return 0;
23013 }
23014 _ACEOF
23015 if ac_fn_c_try_link "$LINENO"; then :
23016
23017           ac_cv_openssl_sha2="yes"
23018
23019 else
23020
23021           ac_cv_openssl_sha2="no"
23022
23023
23024 fi
23025 rm -f core conftest.err conftest.$ac_objext \
23026     conftest$ac_exeext conftest.$ac_ext
23027
23028                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h.  */
23030
23031           #include <openssl/evp.h>
23032
23033 int
23034 main ()
23035 {
23036
23037           EVP_aes_192_cbc();
23038
23039   ;
23040   return 0;
23041 }
23042 _ACEOF
23043 if ac_fn_c_try_link "$LINENO"; then :
23044
23045           ac_cv_openssl_export="no"
23046
23047 else
23048
23049           ac_cv_openssl_export="yes"
23050
23051
23052 fi
23053 rm -f core conftest.err conftest.$ac_objext \
23054     conftest$ac_exeext conftest.$ac_ext
23055
23056    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23057 $as_echo "$support_tls" >&6; }
23058    if test "$support_tls" = "yes"; then
23059
23060 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23061
23062
23063 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23064
23065
23066 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23067
23068    fi
23069
23070    if test "$ac_cv_openssl_sha2" = "yes"; then
23071
23072 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23073
23074    fi
23075
23076    if test "$ac_cv_openssl_export" = "yes"; then
23077
23078 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23079
23080    fi
23081
23082    if test "$support_crypto" = "yes"; then
23083       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23084 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23085 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23086   $as_echo_n "(cached) " >&6
23087 else
23088   ac_check_lib_save_LIBS=$LIBS
23089 LIBS="-lcrypto  $LIBS"
23090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23091 /* end confdefs.h.  */
23092
23093 /* Override any GCC internal prototype to avoid an error.
23094    Use char because int might match the return type of a GCC
23095    builtin and then its argument prototype would still apply.  */
23096 #ifdef __cplusplus
23097 extern "C"
23098 #endif
23099 char EVP_PKEY_encrypt_old ();
23100 int
23101 main ()
23102 {
23103 return EVP_PKEY_encrypt_old ();
23104   ;
23105   return 0;
23106 }
23107 _ACEOF
23108 if ac_fn_c_try_link "$LINENO"; then :
23109   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23110 else
23111   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23112 fi
23113 rm -f core conftest.err conftest.$ac_objext \
23114     conftest$ac_exeext conftest.$ac_ext
23115 LIBS=$ac_check_lib_save_LIBS
23116 fi
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23118 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23119 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23120
23121 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23122
23123 fi
23124
23125    fi
23126
23127    LIBS="${saved_LIBS}"
23128    CFLAGS="${saved_CFLAGS}"
23129 else
23130    support_tls="no"
23131    support_crypto="no"
23132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23133 $as_echo "$support_tls" >&6; }
23134 fi
23135
23136 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23137    OPENSSL_LIBS=""
23138    OPENSSL_INC=""
23139 fi
23140
23141
23142
23143
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23145 $as_echo_n "checking for library containing dlopen... " >&6; }
23146 if ${ac_cv_search_dlopen+:} false; then :
23147   $as_echo_n "(cached) " >&6
23148 else
23149   ac_func_search_save_LIBS=$LIBS
23150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23151 /* end confdefs.h.  */
23152
23153 /* Override any GCC internal prototype to avoid an error.
23154    Use char because int might match the return type of a GCC
23155    builtin and then its argument prototype would still apply.  */
23156 #ifdef __cplusplus
23157 extern "C"
23158 #endif
23159 char dlopen ();
23160 int
23161 main ()
23162 {
23163 return dlopen ();
23164   ;
23165   return 0;
23166 }
23167 _ACEOF
23168 for ac_lib in '' dl; do
23169   if test -z "$ac_lib"; then
23170     ac_res="none required"
23171   else
23172     ac_res=-l$ac_lib
23173     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23174   fi
23175   if ac_fn_c_try_link "$LINENO"; then :
23176   ac_cv_search_dlopen=$ac_res
23177 fi
23178 rm -f core conftest.err conftest.$ac_objext \
23179     conftest$ac_exeext
23180   if ${ac_cv_search_dlopen+:} false; then :
23181   break
23182 fi
23183 done
23184 if ${ac_cv_search_dlopen+:} false; then :
23185
23186 else
23187   ac_cv_search_dlopen=no
23188 fi
23189 rm conftest.$ac_ext
23190 LIBS=$ac_func_search_save_LIBS
23191 fi
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23193 $as_echo "$ac_cv_search_dlopen" >&6; }
23194 ac_res=$ac_cv_search_dlopen
23195 if test "$ac_res" != no; then :
23196   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23197
23198 fi
23199
23200
23201 working_dir=`eval echo /opt/bacula/working`
23202
23203 # Check whether --with-working-dir was given.
23204 if test "${with_working_dir+set}" = set; then :
23205   withval=$with_working_dir;
23206        if test "x$withval" != "xno" ; then
23207          working_dir=$withval
23208        fi
23209
23210
23211 fi
23212
23213
23214
23215
23216 archivedir=/tmp
23217
23218 # Check whether --with-archivedir was given.
23219 if test "${with_archivedir+set}" = set; then :
23220   withval=$with_archivedir;
23221        if test "x$withval" != "xno" ; then
23222           archivedir=$withval
23223        fi
23224
23225
23226 fi
23227
23228
23229
23230
23231 basename=`hostname`
23232
23233 # Check whether --with-basename was given.
23234 if test "${with_basename+set}" = set; then :
23235   withval=$with_basename;
23236        if test "x$withval" != "xno" ; then
23237           basename=$withval
23238        fi
23239
23240
23241 fi
23242
23243
23244
23245
23246 hostname=`uname -n | cut -d '.' -f 1`
23247 if test x${hostname} = x ; then
23248   hostname="localhost"
23249 fi
23250 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23251 if test ! $? = 0; then
23252   hostname="localhost"
23253 fi
23254
23255 # Check whether --with-hostname was given.
23256 if test "${with_hostname+set}" = set; then :
23257   withval=$with_hostname;
23258        if test "x$withval" != "xno" ; then
23259          hostname=$withval
23260        fi
23261
23262
23263 fi
23264
23265
23266
23267
23268
23269 scriptdir=`eval echo ${sysconfdir}`
23270
23271 # Check whether --with-scriptdir was given.
23272 if test "${with_scriptdir+set}" = set; then :
23273   withval=$with_scriptdir;
23274        if test "x$withval" != "xno" ; then
23275           scriptdir=$withval
23276        fi
23277
23278
23279 fi
23280
23281
23282
23283
23284
23285 bsrdir=`eval echo /opt/bacula/bsr`
23286
23287 # Check whether --with-bsrdir was given.
23288 if test "${with_bsrdir+set}" = set; then :
23289   withval=$with_bsrdir;
23290        if test "x$withval" != "xno" ; then
23291           bsrdir=$withval
23292        fi
23293
23294
23295 fi
23296
23297
23298
23299
23300 logdir=`eval echo /opt/bacula/log`
23301
23302 # Check whether --with-logdir was given.
23303 if test "${with_logdir+set}" = set; then :
23304   withval=$with_logdir;
23305        if test "x$withval" != "xno" ; then
23306           logdir=$withval
23307        fi
23308
23309
23310 fi
23311
23312
23313
23314
23315
23316 # ------------------------------------------
23317 # Where to place plugindir (plugin files)
23318 # ------------------------------------------
23319 plugindir=`eval echo ${libdir}`
23320
23321 # Check whether --with-plugindir was given.
23322 if test "${with_plugindir+set}" = set; then :
23323   withval=$with_plugindir;
23324        if test "x$withval" != "xno" ; then
23325           plugindir=$withval
23326        fi
23327
23328
23329 fi
23330
23331
23332
23333
23334 dump_email=root@localhost
23335
23336 # Check whether --with-dump-email was given.
23337 if test "${with_dump_email+set}" = set; then :
23338   withval=$with_dump_email;
23339        if test "x$withval" != "xno" ; then
23340           dump_email=$withval
23341        fi
23342
23343
23344 fi
23345
23346
23347
23348
23349 job_email=root@localhost
23350
23351 # Check whether --with-job-email was given.
23352 if test "${with_job_email+set}" = set; then :
23353   withval=$with_job_email;
23354        if test "x$withval" != "xno" ; then
23355           job_email=$withval
23356        fi
23357
23358
23359 fi
23360
23361
23362
23363
23364 smtp_host=localhost
23365
23366 # Check whether --with-smtp_host was given.
23367 if test "${with_smtp_host+set}" = set; then :
23368   withval=$with_smtp_host;
23369        if test "x$withval" != "xno" ; then
23370           smtp_host=$withval
23371        fi
23372
23373
23374 fi
23375
23376
23377
23378
23379 piddir=/var/run
23380
23381 # Check whether --with-pid-dir was given.
23382 if test "${with_pid_dir+set}" = set; then :
23383   withval=$with_pid_dir;
23384        if test "x$withval" != "xno" ; then
23385           piddir=$withval
23386        fi
23387
23388
23389 fi
23390
23391
23392 cat >>confdefs.h <<_ACEOF
23393 #define _PATH_BACULA_PIDDIR "$piddir"
23394 _ACEOF
23395
23396
23397
23398 subsysdir=/var/run/subsys
23399 if test -d /var/run/subsys; then
23400    subsysdir=/var/run/subsys
23401 elif test -d /var/lock/subsys; then
23402    subsysdir=/var/lock/subsys
23403 else
23404    subsysdir=/var/run/subsys
23405 fi
23406
23407 # Check whether --with-subsys-dir was given.
23408 if test "${with_subsys_dir+set}" = set; then :
23409   withval=$with_subsys_dir;
23410        if test "x$withval" != "xno" ; then
23411           subsysdir=$withval
23412        fi
23413
23414
23415 fi
23416
23417
23418
23419
23420 baseport=9101
23421
23422 # Check whether --with-baseport was given.
23423 if test "${with_baseport+set}" = set; then :
23424   withval=$with_baseport;
23425        if test "x$withval" != "xno" ; then
23426           baseport=$withval
23427        fi
23428
23429
23430 fi
23431
23432
23433
23434 dir_port=`expr $baseport`
23435 fd_port=`expr $baseport + 1`
23436 sd_port=`expr $fd_port + 1`
23437
23438
23439
23440
23441
23442 dir_password=
23443
23444 # Check whether --with-dir-password was given.
23445 if test "${with_dir_password+set}" = set; then :
23446   withval=$with_dir_password;
23447        if test "x$withval" != "xno" ; then
23448           dir_password=$withval
23449        fi
23450
23451
23452 fi
23453
23454
23455 if test "x$dir_password" = "x" ; then
23456    if test "x$OPENSSL" = "xnone" ; then
23457       key=`autoconf/randpass 33`
23458    else
23459       key=`openssl rand -base64 33`
23460    fi
23461    dir_password=$key
23462 fi
23463
23464 fd_password=
23465
23466 # Check whether --with-fd-password was given.
23467 if test "${with_fd_password+set}" = set; then :
23468   withval=$with_fd_password;
23469        if test "x$withval" != "xno" ; then
23470           fd_password=$withval
23471        fi
23472
23473
23474 fi
23475
23476
23477 if test "x$fd_password" = "x" ; then
23478    if test "x$OPENSSL" = "xnone" ; then
23479       key=`autoconf/randpass 37`
23480    else
23481       key=`openssl rand -base64 33`
23482    fi
23483    fd_password=$key
23484 fi
23485
23486 sd_password=
23487
23488 # Check whether --with-sd-password was given.
23489 if test "${with_sd_password+set}" = set; then :
23490   withval=$with_sd_password;
23491        if test "x$withval" != "xno" ; then
23492           sd_password=$withval
23493        fi
23494
23495
23496 fi
23497
23498
23499 if test "x$sd_password" = "x" ; then
23500    if test "x$OPENSSL" = "xnone" ; then
23501       key=`autoconf/randpass 41`
23502    else
23503       key=`openssl rand -base64 33`
23504    fi
23505    sd_password=$key
23506 fi
23507
23508 mon_dir_password=
23509
23510 # Check whether --with-mon-dir-password was given.
23511 if test "${with_mon_dir_password+set}" = set; then :
23512   withval=$with_mon_dir_password;
23513        if test "x$withval" != "xno" ; then
23514           mon_dir_password=$withval
23515        fi
23516
23517
23518 fi
23519
23520
23521 if test "x$mon_dir_password" = "x" ; then
23522    if test "x$OPENSSL" = "xnone" ; then
23523       key=`autoconf/randpass 33`
23524    else
23525       key=`openssl rand -base64 33`
23526    fi
23527    mon_dir_password=$key
23528 fi
23529
23530 mon_fd_password=
23531
23532 # Check whether --with-mon-fd-password was given.
23533 if test "${with_mon_fd_password+set}" = set; then :
23534   withval=$with_mon_fd_password;
23535        if test "x$withval" != "xno" ; then
23536           mon_fd_password=$withval
23537        fi
23538
23539
23540 fi
23541
23542
23543 if test "x$mon_fd_password" = "x" ; then
23544    if test "x$OPENSSL" = "xnone" ; then
23545       key=`autoconf/randpass 37`
23546    else
23547       key=`openssl rand -base64 33`
23548    fi
23549    mon_fd_password=$key
23550 fi
23551
23552 mon_sd_password=
23553
23554 # Check whether --with-mon-sd-password was given.
23555 if test "${with_mon_sd_password+set}" = set; then :
23556   withval=$with_mon_sd_password;
23557        if test "x$withval" != "xno" ; then
23558           mon_sd_password=$withval
23559        fi
23560
23561
23562 fi
23563
23564
23565 if test "x$mon_sd_password" = "x" ; then
23566    if test "x$OPENSSL" = "xnone" ; then
23567       key=`autoconf/randpass 41`
23568    else
23569       key=`openssl rand -base64 33`
23570    fi
23571    mon_sd_password=$key
23572 fi
23573
23574
23575
23576
23577
23578
23579
23580
23581 db_name=bacula
23582
23583 # Check whether --with-db_name was given.
23584 if test "${with_db_name+set}" = set; then :
23585   withval=$with_db_name;
23586        if test "x$withval" != "x" ; then
23587           db_name=$withval
23588        fi
23589
23590
23591 fi
23592
23593
23594
23595 db_user=bacula
23596
23597 # Check whether --with-db_user was given.
23598 if test "${with_db_user+set}" = set; then :
23599   withval=$with_db_user;
23600        if test "x$withval" != "x" ; then
23601           db_user=$withval
23602        fi
23603
23604
23605 fi
23606
23607
23608
23609 db_password=
23610
23611 # Check whether --with-db_password was given.
23612 if test "${with_db_password+set}" = set; then :
23613   withval=$with_db_password;
23614        if test "x$withval" != "x" ; then
23615           db_password=$withval
23616        fi
23617
23618
23619 fi
23620
23621
23622
23623 db_port=" "
23624
23625 # Check whether --with-db_port was given.
23626 if test "${with_db_port+set}" = set; then :
23627   withval=$with_db_port;
23628        if test "x$withval" != "x" ; then
23629           db_port=$withval
23630        fi
23631
23632
23633 fi
23634
23635
23636
23637 #
23638 # Handle users and groups for each daemon
23639 #
23640 dir_user=
23641
23642 # Check whether --with-dir_user was given.
23643 if test "${with_dir_user+set}" = set; then :
23644   withval=$with_dir_user;
23645        if test "x$withval" != "x" ; then
23646            dir_user=$withval
23647        fi
23648
23649
23650 fi
23651
23652
23653 dir_group=
23654
23655 # Check whether --with-dir_group was given.
23656 if test "${with_dir_group+set}" = set; then :
23657   withval=$with_dir_group;
23658        if test "x$withval" != "x" ; then
23659           dir_group=$withval
23660        fi
23661
23662
23663 fi
23664
23665
23666 sd_user=
23667
23668 # Check whether --with-sd_user was given.
23669 if test "${with_sd_user+set}" = set; then :
23670   withval=$with_sd_user;
23671        if test "x$withval" != "x" ; then
23672           sd_user=$withval
23673        fi
23674
23675
23676 fi
23677
23678
23679 sd_group=
23680
23681 # Check whether --with-sd_group was given.
23682 if test "${with_sd_group+set}" = set; then :
23683   withval=$with_sd_group;
23684        if test "x$withval" != "x" ; then
23685           sd_group=$withval
23686        fi
23687
23688
23689 fi
23690
23691
23692 fd_user=
23693
23694 # Check whether --with-fd_user was given.
23695 if test "${with_fd_user+set}" = set; then :
23696   withval=$with_fd_user;
23697        if test "x$withval" != "x" ; then
23698           fd_user=$withval
23699        fi
23700
23701
23702 fi
23703
23704
23705 fd_group=
23706
23707 # Check whether --with-fd_group was given.
23708 if test "${with_fd_group+set}" = set; then :
23709   withval=$with_fd_group;
23710        if test "x$withval" != "x" ; then
23711           fd_group=$withval
23712        fi
23713
23714
23715 fi
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725 SBINPERM=0750
23726
23727 # Check whether --with-sbin-perm was given.
23728 if test "${with_sbin_perm+set}" = set; then :
23729   withval=$with_sbin_perm;
23730        if test "x$withval" != "x" ; then
23731           SBINPERM=$withval
23732        fi
23733
23734
23735 fi
23736
23737
23738
23739
23740 support_batch_insert=yes
23741 # Check whether --enable-batch-insert was given.
23742 if test "${enable_batch_insert+set}" = set; then :
23743   enableval=$enable_batch_insert;
23744        if test x$enableval = xno; then
23745           support_batch_insert=no
23746        fi
23747
23748
23749 fi
23750
23751
23752 if test x$support_batch_insert = xyes; then
23753
23754 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23755
23756 fi
23757
23758
23759 uncomment_dbi="#"
23760
23761
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23763 $as_echo_n "checking for PostgreSQL support... " >&6; }
23764
23765 # Check whether --with-postgresql was given.
23766 if test "${with_postgresql+set}" = set; then :
23767   withval=$with_postgresql;
23768   if test "$withval" != "no"; then
23769       if test "$withval" = "yes"; then
23770           PG_CONFIG=`which pg_config 2>/dev/null`
23771           if test -n "$PG_CONFIG"; then
23772               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23773               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23774               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23775           elif test -f /usr/local/include/libpq-fe.h; then
23776               POSTGRESQL_INCDIR=/usr/local/include
23777               if test -d /usr/local/lib64; then
23778                  POSTGRESQL_LIBDIR=/usr/local/lib64
23779               else
23780                  POSTGRESQL_LIBDIR=/usr/local/lib
23781               fi
23782               POSTGRESQL_BINDIR=/usr/local/bin
23783           elif test -f /usr/include/libpq-fe.h; then
23784               POSTGRESQL_INCDIR=/usr/include
23785               if test -d /usr/lib64; then
23786                  POSTGRESQL_LIBDIR=/usr/lib64
23787               else
23788                  POSTGRESQL_LIBDIR=/usr/lib
23789               fi
23790               POSTGRESQL_BINDIR=/usr/bin
23791           elif test -f /usr/include/pgsql/libpq-fe.h; then
23792               POSTGRESQL_INCDIR=/usr/include/pgsql
23793               if test -d /usr/lib64/pgsql; then
23794                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23795               else
23796                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23797               fi
23798               POSTGRESQL_BINDIR=/usr/bin
23799           elif test -f /usr/include/postgresql/libpq-fe.h; then
23800               POSTGRESQL_INCDIR=/usr/include/postgresql
23801               if test -d /usr/lib64/postgresql; then
23802                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23803               else
23804                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23805               fi
23806               POSTGRESQL_BINDIR=/usr/bin
23807           else
23808               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23809 $as_echo "no" >&6; }
23810               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23811           fi
23812       elif test -f $withval/include/libpq-fe.h; then
23813           POSTGRESQL_INCDIR=$withval/include
23814           POSTGRESQL_LIBDIR=$withval/lib
23815           POSTGRESQL_BINDIR=$withval/bin
23816       elif test -f $withval/include/postgresql/libpq-fe.h; then
23817           POSTGRESQL_INCDIR=$withval/include/postgresql
23818           if test -d $withval/lib64; then
23819               POSTGRESQL_LIBDIR=$withval/lib64
23820           else
23821               POSTGRESQL_LIBDIR=$withval/lib
23822           fi
23823           POSTGRESQL_BINDIR=$withval/bin
23824       else
23825           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23826 $as_echo "no" >&6; }
23827           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23828       fi
23829
23830 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23831
23832      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23833 $as_echo "yes" >&6; }
23834
23835      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23836      if test x$use_libtool != xno; then
23837         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23838      else
23839         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23840      fi
23841      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23842 if test "x$ac_cv_func_crypt" = xyes; then :
23843
23844 else
23845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23846 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23847 if ${ac_cv_lib_crypt_crypt+:} false; then :
23848   $as_echo_n "(cached) " >&6
23849 else
23850   ac_check_lib_save_LIBS=$LIBS
23851 LIBS="-lcrypt  $LIBS"
23852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23853 /* end confdefs.h.  */
23854
23855 /* Override any GCC internal prototype to avoid an error.
23856    Use char because int might match the return type of a GCC
23857    builtin and then its argument prototype would still apply.  */
23858 #ifdef __cplusplus
23859 extern "C"
23860 #endif
23861 char crypt ();
23862 int
23863 main ()
23864 {
23865 return crypt ();
23866   ;
23867   return 0;
23868 }
23869 _ACEOF
23870 if ac_fn_c_try_link "$LINENO"; then :
23871   ac_cv_lib_crypt_crypt=yes
23872 else
23873   ac_cv_lib_crypt_crypt=no
23874 fi
23875 rm -f core conftest.err conftest.$ac_objext \
23876     conftest$ac_exeext conftest.$ac_ext
23877 LIBS=$ac_check_lib_save_LIBS
23878 fi
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23880 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23881 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23882   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23883 fi
23884
23885 fi
23886
23887      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23888      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23889
23890      if test -z "${db_backends}"; then
23891          db_backends="PostgreSQL"
23892      else
23893          db_backends="${db_backends} PostgreSQL"
23894      fi
23895      if test -z "${DB_BACKENDS}"; then
23896          DB_BACKENDS="postgresql"
23897      else
23898          DB_BACKENDS="${DB_BACKENDS} postgresql"
23899      fi
23900
23901                     if test "x$support_batch_insert" = "xyes"; then
23902                   saved_LDFLAGS="${LDFLAGS}"
23903          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23904          saved_LIBS="${LIBS}"
23905          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23906             LIBS="${saved_LIBS} -lcrypt"
23907          fi
23908
23909          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23910 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23911 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23912   $as_echo_n "(cached) " >&6
23913 else
23914   ac_check_lib_save_LIBS=$LIBS
23915 LIBS="-lpq  $LIBS"
23916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917 /* end confdefs.h.  */
23918
23919 /* Override any GCC internal prototype to avoid an error.
23920    Use char because int might match the return type of a GCC
23921    builtin and then its argument prototype would still apply.  */
23922 #ifdef __cplusplus
23923 extern "C"
23924 #endif
23925 char PQisthreadsafe ();
23926 int
23927 main ()
23928 {
23929 return PQisthreadsafe ();
23930   ;
23931   return 0;
23932 }
23933 _ACEOF
23934 if ac_fn_c_try_link "$LINENO"; then :
23935   ac_cv_lib_pq_PQisthreadsafe=yes
23936 else
23937   ac_cv_lib_pq_PQisthreadsafe=no
23938 fi
23939 rm -f core conftest.err conftest.$ac_objext \
23940     conftest$ac_exeext conftest.$ac_ext
23941 LIBS=$ac_check_lib_save_LIBS
23942 fi
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23944 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23945 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23946
23947 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23948
23949 fi
23950
23951          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23952 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23953 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23954   $as_echo_n "(cached) " >&6
23955 else
23956   ac_check_lib_save_LIBS=$LIBS
23957 LIBS="-lpq  $LIBS"
23958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23959 /* end confdefs.h.  */
23960
23961 /* Override any GCC internal prototype to avoid an error.
23962    Use char because int might match the return type of a GCC
23963    builtin and then its argument prototype would still apply.  */
23964 #ifdef __cplusplus
23965 extern "C"
23966 #endif
23967 char PQputCopyData ();
23968 int
23969 main ()
23970 {
23971 return PQputCopyData ();
23972   ;
23973   return 0;
23974 }
23975 _ACEOF
23976 if ac_fn_c_try_link "$LINENO"; then :
23977   ac_cv_lib_pq_PQputCopyData=yes
23978 else
23979   ac_cv_lib_pq_PQputCopyData=no
23980 fi
23981 rm -f core conftest.err conftest.$ac_objext \
23982     conftest$ac_exeext conftest.$ac_ext
23983 LIBS=$ac_check_lib_save_LIBS
23984 fi
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23986 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23987 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23988
23989 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23990
23991 fi
23992
23993          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23994              if test $support_batch_insert = yes ; then
23995
23996 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23997
23998                  if test -z "${batch_insert_db_backends}"; then
23999                      batch_insert_db_backends="PostgreSQL"
24000                  else
24001                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24002                  fi
24003              fi
24004          fi
24005
24006          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24007          then
24008              echo "WARNING: Your PostgreSQL client library is too old to detect "
24009              echo "if it was compiled with --enable-thread-safety, consider to "
24010              echo "upgrade it in order to avoid problems with Batch insert mode"
24011          fi
24012
24013                   LDFLAGS="${saved_LDFLAGS}"
24014          LIBS="${saved_LIBS}"
24015      fi
24016   else
24017      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24018 $as_echo "no" >&6; }
24019   fi
24020
24021 else
24022
24023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24024 $as_echo "no" >&6; }
24025
24026 fi
24027
24028
24029
24030
24031
24032
24033
24034
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24036 $as_echo_n "checking for MySQL support... " >&6; }
24037
24038 # Check whether --with-mysql was given.
24039 if test "${with_mysql+set}" = set; then :
24040   withval=$with_mysql;
24041   if test "$withval" != "no"; then
24042         if test "$withval" = "yes"; then
24043 #
24044 # This code is very broken on older systems
24045 #
24046 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24047 #           if test "x${MYSQL_CONFIG}" != x; then
24048 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24049 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24050 #              if test $? = 0 ; then
24051 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24052 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24053 #              else
24054 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
24055 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24056 #              fi
24057 #           elif test -f /usr/local/mysql/include/mysql/mysql.h; then
24058            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24059               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24060               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24061                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24062                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24063               else
24064                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24065               fi
24066               MYSQL_BINDIR=/usr/local/mysql/bin
24067            elif test -f /usr/include/mysql/mysql.h; then
24068               MYSQL_INCDIR=/usr/include/mysql
24069               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24070                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24071                  MYSQL_LIBDIR=/usr/lib64/mysql
24072               elif test -f /usr/lib64/libmysqlclient_r.a \
24073                         -o -f /usr/lib64/libmysqlclient_r.so; then
24074                  MYSQL_LIBDIR=/usr/lib64
24075               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24076                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24077                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24078               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24079                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24080                  MYSQL_LIBDIR=/usr/lib/mysql
24081               else
24082                  MYSQL_LIBDIR=/usr/lib
24083               fi
24084               MYSQL_BINDIR=/usr/bin
24085            elif test -f /usr/include/mysql.h; then
24086               MYSQL_INCDIR=/usr/include
24087               if test -f /usr/lib64/libmysqlclient_r.a \
24088                       -o -f /usr/lib64/libmysqlclient_r.so; then
24089                  MYSQL_LIBDIR=/usr/lib64
24090               else
24091                  MYSQL_LIBDIR=/usr/lib
24092               fi
24093               MYSQL_BINDIR=/usr/bin
24094            elif test -f /usr/local/include/mysql/mysql.h; then
24095               MYSQL_INCDIR=/usr/local/include/mysql
24096               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24097                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24098                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24099               else
24100                  MYSQL_LIBDIR=/usr/local/lib/mysql
24101               fi
24102               MYSQL_BINDIR=/usr/local/bin
24103            elif test -f /usr/local/include/mysql.h; then
24104               MYSQL_INCDIR=/usr/local/include
24105               if test -f /usr/local/lib64/libmysqlclient_r.a \
24106                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24107                  MYSQL_LIBDIR=/usr/local/lib64
24108               else
24109                  MYSQL_LIBDIR=/usr/local/lib
24110               fi
24111               MYSQL_BINDIR=/usr/local/bin
24112            else
24113               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24114 $as_echo "no" >&6; }
24115               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24116            fi
24117         else
24118            if test -f $withval/include/mysql/mysql.h; then
24119               MYSQL_INCDIR=$withval/include/mysql
24120               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24121                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24122                  MYSQL_LIBDIR=$withval/lib64/mysql
24123               elif test -f $withval/lib64/libmysqlclient_r.a \
24124                    -o -f $withval/lib64/libmysqlclient_r.so; then
24125                  MYSQL_LIBDIR=$withval/lib64
24126               elif test -f $withval/lib/libmysqlclient_r.a \
24127                    -o -f $withval/lib/libmysqlclient_r.so; then
24128                  MYSQL_LIBDIR=$withval/lib
24129               else
24130                  MYSQL_LIBDIR=$withval/lib/mysql
24131               fi
24132               MYSQL_BINDIR=$withval/bin
24133            elif test -f $withval/include/mysql.h; then
24134               MYSQL_INCDIR=$withval/include
24135               if test -f $withval/lib64/libmysqlclient_r.a \
24136                    -o -f $withval/lib64/libmysqlclient_r.so; then
24137                  MYSQL_LIBDIR=$withval/lib64
24138               else
24139                  MYSQL_LIBDIR=$withval/lib
24140               fi
24141               MYSQL_BINDIR=$withval/bin
24142            else
24143               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24144 $as_echo "no" >&6; }
24145               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24146            fi
24147         fi
24148      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24149      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24150           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24151         if test x$use_libtool != xno; then
24152            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24153         else
24154            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24155         fi
24156         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24157      fi
24158      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24159
24160
24161 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24162
24163      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24164 $as_echo "yes" >&6; }
24165
24166      if test -z "${db_backends}" ; then
24167          db_backends="MySQL"
24168      else
24169          db_backends="${db_backends} MySQL"
24170      fi
24171      if test -z "${DB_BACKENDS}" ; then
24172          DB_BACKENDS="mysql"
24173      else
24174          DB_BACKENDS="${DB_BACKENDS} mysql"
24175      fi
24176
24177                     if test "x$support_batch_insert" = "xyes"; then
24178                   saved_LDFLAGS="${LDFLAGS}"
24179          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24180          saved_LIBS="${LIBS}"
24181          LIBS="${saved_LIBS} -lz"
24182
24183          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24184 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24185 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24186   $as_echo_n "(cached) " >&6
24187 else
24188   ac_check_lib_save_LIBS=$LIBS
24189 LIBS="-lmysqlclient_r  $LIBS"
24190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24191 /* end confdefs.h.  */
24192
24193 /* Override any GCC internal prototype to avoid an error.
24194    Use char because int might match the return type of a GCC
24195    builtin and then its argument prototype would still apply.  */
24196 #ifdef __cplusplus
24197 extern "C"
24198 #endif
24199 char mysql_thread_safe ();
24200 int
24201 main ()
24202 {
24203 return mysql_thread_safe ();
24204   ;
24205   return 0;
24206 }
24207 _ACEOF
24208 if ac_fn_c_try_link "$LINENO"; then :
24209   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24210 else
24211   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24212 fi
24213 rm -f core conftest.err conftest.$ac_objext \
24214     conftest$ac_exeext conftest.$ac_ext
24215 LIBS=$ac_check_lib_save_LIBS
24216 fi
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24218 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24219 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24220
24221 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24222
24223 fi
24224
24225          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24226              if test -z "${batch_insert_db_backends}"; then
24227                  batch_insert_db_backends="MySQL"
24228              else
24229                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24230              fi
24231          fi
24232
24233                   LDFLAGS="${saved_LDFLAGS}"
24234          LIBS="${saved_LIBS}"
24235      fi
24236   else
24237      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24238 $as_echo "no" >&6; }
24239   fi
24240
24241 else
24242
24243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24244 $as_echo "no" >&6; }
24245
24246 fi
24247
24248
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24250 $as_echo_n "checking for MySQL embedded support... " >&6; }
24251
24252 # Check whether --with-embedded-mysql was given.
24253 if test "${with_embedded_mysql+set}" = set; then :
24254   withval=$with_embedded_mysql;
24255   if test "$withval" != "no"; then
24256         if test "$withval" = "yes"; then
24257                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24258                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24259                         if test -d /usr/local/mysql/lib64/mysql; then
24260                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24261                         else
24262                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24263                         fi
24264                         MYSQL_BINDIR=/usr/local/mysql/bin
24265                 elif test -f /usr/include/mysql/mysql.h; then
24266                         MYSQL_INCDIR=/usr/include/mysql
24267                         if test -d /usr/lib64/mysql; then
24268                                 MYSQL_LIBDIR=/usr/lib64/mysql
24269                         else
24270                                 MYSQL_LIBDIR=/usr/lib/mysql
24271                         fi
24272                         MYSQL_BINDIR=/usr/bin
24273                 elif test -f /usr/include/mysql.h; then
24274                         MYSQL_INCDIR=/usr/include
24275                         if test -d /usr/lib64; then
24276                                 MYSQL_LIBDIR=/usr/lib64
24277                         else
24278                                 MYSQL_LIBDIR=/usr/lib
24279                         fi
24280                         MYSQL_BINDIR=/usr/bin
24281                 elif test -f /usr/local/include/mysql/mysql.h; then
24282                         MYSQL_INCDIR=/usr/local/include/mysql
24283                         if test -d /usr/local/lib64/mysql; then
24284                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24285                         else
24286                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24287                         fi
24288                         MYSQL_BINDIR=/usr/local/bin
24289                 elif test -f /usr/local/include/mysql.h; then
24290                         MYSQL_INCDIR=/usr/local/include
24291                         if test -d /usr/local/lib64; then
24292                                 MYSQL_LIBDIR=/usr/local/lib64
24293                         else
24294                                 MYSQL_LIBDIR=/usr/local/lib
24295                         fi
24296                         MYSQL_BINDIR=/usr/local/bin
24297                 else
24298                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24299 $as_echo "no" >&6; }
24300                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24301                 fi
24302         else
24303                 if test -f $withval/include/mysql/mysql.h; then
24304                         MYSQL_INCDIR=$withval/include/mysql
24305                         if test -d $withval/lib64/mysql; then
24306                                 MYSQL_LIBDIR=$withval/lib64/mysql
24307                         else
24308                                 MYSQL_LIBDIR=$withval/lib/mysql
24309                         fi
24310                         MYSQL_BINDIR=$withval/bin
24311                 elif test -f $withval/include/mysql.h; then
24312                         MYSQL_INCDIR=$withval/include
24313                         if test -d $withval/lib64; then
24314                                 MYSQL_LIBDIR=$withval/lib64
24315                         else
24316                                 MYSQL_LIBDIR=$withval/lib
24317                         fi
24318                         MYSQL_BINDIR=$withval/bin
24319                 else
24320                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24321 $as_echo "no" >&6; }
24322                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24323                 fi
24324         fi
24325      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24326      if test x$use_libtool != xno; then
24327         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24328      else
24329         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24330      fi
24331      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24332      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24333
24334
24335 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24336
24337
24338 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24339
24340      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24341 $as_echo "yes" >&6; }
24342
24343      if test -z "${db_backends}"; then
24344          db_backends="MySQL"
24345      else
24346          db_backends="${db_backends} MySQL"
24347      fi
24348      if test -z "${DB_BACKENDS}"; then
24349          DB_BACKENDS="mysql"
24350      else
24351          DB_BACKENDS="${DB_BACKENDS} mysql"
24352      fi
24353
24354                     if test "x$support_batch_insert" = "xyes"; then
24355                   saved_LDFLAGS="${LDFLAGS}"
24356          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24357          saved_LIBS="${LIBS}"
24358          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24359
24360          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24361 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24362 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24363   $as_echo_n "(cached) " >&6
24364 else
24365   ac_check_lib_save_LIBS=$LIBS
24366 LIBS="-lmysqlclient_r  $LIBS"
24367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24368 /* end confdefs.h.  */
24369
24370 /* Override any GCC internal prototype to avoid an error.
24371    Use char because int might match the return type of a GCC
24372    builtin and then its argument prototype would still apply.  */
24373 #ifdef __cplusplus
24374 extern "C"
24375 #endif
24376 char mysql_thread_safe ();
24377 int
24378 main ()
24379 {
24380 return mysql_thread_safe ();
24381   ;
24382   return 0;
24383 }
24384 _ACEOF
24385 if ac_fn_c_try_link "$LINENO"; then :
24386   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24387 else
24388   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24389 fi
24390 rm -f core conftest.err conftest.$ac_objext \
24391     conftest$ac_exeext conftest.$ac_ext
24392 LIBS=$ac_check_lib_save_LIBS
24393 fi
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24395 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24396 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24397
24398 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24399
24400 fi
24401
24402          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24403              if test -z "${batch_insert_db_backends}"; then
24404                  batch_insert_db_backends="MySQL"
24405              else
24406                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24407              fi
24408          fi
24409
24410                   LDFLAGS="${saved_LDFLAGS}"
24411          LIBS="${saved_LIBS}"
24412      fi
24413   else
24414      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24415 $as_echo "no" >&6; }
24416   fi
24417
24418 else
24419
24420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24421 $as_echo "no" >&6; }
24422
24423 fi
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24434 $as_echo_n "checking for SQLite3 support... " >&6; }
24435
24436 # Check whether --with-sqlite3 was given.
24437 if test "${with_sqlite3+set}" = set; then :
24438   withval=$with_sqlite3;
24439   if test "$withval" != "no"; then
24440      if test "$withval" = "yes"; then
24441         if test -f /usr/local/include/sqlite3.h; then
24442            SQLITE_INCDIR=/usr/local/include
24443            if test -d /usr/local/lib64; then
24444               SQLITE_LIBDIR=/usr/local/lib64
24445            else
24446               SQLITE_LIBDIR=/usr/local/lib
24447            fi
24448            SQLITE_BINDIR=/usr/local/bin
24449         elif test -f /usr/include/sqlite3.h; then
24450            SQLITE_INCDIR=/usr/include
24451            if test -d /usr/lib64; then
24452               SQLITE_LIBDIR=/usr/lib64
24453            else
24454               SQLITE_LIBDIR=/usr/lib
24455            fi
24456            SQLITE_BINDIR=/usr/bin
24457         elif test -f $prefix/include/sqlite3.h; then
24458            SQLITE_INCDIR=$prefix/include
24459            if test -d $prefix/lib64; then
24460               SQLITE_LIBDIR=$prefix/lib64
24461            else
24462               SQLITE_LIBDIR=$prefix/lib
24463            fi
24464            SQLITE_BINDIR=$prefix/bin
24465         else
24466            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24467 $as_echo "no" >&6; }
24468            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24469         fi
24470      else
24471         if test -f $withval/sqlite3.h; then
24472            SQLITE_INCDIR=$withval
24473            SQLITE_LIBDIR=$withval
24474            SQLITE_BINDIR=$withval
24475         elif test -f $withval/include/sqlite3.h; then
24476            SQLITE_INCDIR=$withval/include
24477            if test -d $withval/lib64; then
24478               SQLITE_LIBDIR=$withval/lib64
24479            else
24480               SQLITE_LIBDIR=$withval/lib
24481            fi
24482            SQLITE_BINDIR=$withval/bin
24483         else
24484            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24485 $as_echo "no" >&6; }
24486            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24487         fi
24488      fi
24489      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24490      if test x$use_libtool != xno; then
24491         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24492      else
24493         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24494      fi
24495      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24496      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24497
24498
24499 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24500
24501      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24502 $as_echo "yes" >&6; }
24503
24504      if test -z "${db_backends}"; then
24505          db_backends="SQLite3"
24506      else
24507          db_backends="${db_backends} SQLite3"
24508      fi
24509      if test -z "${DB_BACKENDS}"; then
24510          DB_BACKENDS="sqlite3"
24511      else
24512          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24513      fi
24514
24515                     if test "x$support_batch_insert" = "xyes"; then
24516                   saved_LDFLAGS="${LDFLAGS}"
24517          LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24518
24519          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24520 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24521 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24522   $as_echo_n "(cached) " >&6
24523 else
24524   ac_check_lib_save_LIBS=$LIBS
24525 LIBS="-lsqlite3  $LIBS"
24526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24527 /* end confdefs.h.  */
24528
24529 /* Override any GCC internal prototype to avoid an error.
24530    Use char because int might match the return type of a GCC
24531    builtin and then its argument prototype would still apply.  */
24532 #ifdef __cplusplus
24533 extern "C"
24534 #endif
24535 char sqlite3_threadsafe ();
24536 int
24537 main ()
24538 {
24539 return sqlite3_threadsafe ();
24540   ;
24541   return 0;
24542 }
24543 _ACEOF
24544 if ac_fn_c_try_link "$LINENO"; then :
24545   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24546 else
24547   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24548 fi
24549 rm -f core conftest.err conftest.$ac_objext \
24550     conftest$ac_exeext conftest.$ac_ext
24551 LIBS=$ac_check_lib_save_LIBS
24552 fi
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24554 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24555 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24556
24557 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24558
24559 fi
24560
24561          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24562              if test -z "${batch_insert_db_backends}"; then
24563                  batch_insert_db_backends="SQLite3"
24564              else
24565                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24566              fi
24567          fi
24568
24569                   LDFLAGS="${saved_LDFLAGS}"
24570      fi
24571   else
24572      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24573 $as_echo "no" >&6; }
24574   fi
24575
24576 else
24577
24578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24579 $as_echo "no" >&6; }
24580
24581 fi
24582
24583
24584
24585
24586
24587
24588
24589 if test -z "${batch_insert_db_backends}"; then
24590    batch_insert_db_backends="None"
24591 fi
24592
24593 if test "x${db_backends}" = "x" ; then
24594    echo " "
24595    echo " "
24596    echo "You have not specified either --enable-client-only or one of the"
24597    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24598    echo "This is not permitted. Please reconfigure."
24599    echo " "
24600    echo "Aborting the configuration ..."
24601    echo " "
24602    echo " "
24603    exit 1
24604 fi
24605
24606 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24607    1)
24608       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24609       if test x$use_libtool = xno; then
24610          SHARED_CATALOG_TARGETS=""
24611       else
24612          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24613       fi
24614       ;;
24615    *)
24616                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24617
24618                         if test x$use_libtool = xno; then
24619          echo " "
24620          echo " "
24621          echo "You have specified two or more of the"
24622          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24623          echo "This is not permitted when not using libtool Please reconfigure."
24624          echo " "
24625          echo "Aborting the configuration ..."
24626          echo " "
24627          echo " "
24628          exit 1
24629       fi
24630
24631       SHARED_CATALOG_TARGETS=""
24632       for db_type in ${DB_BACKENDS}
24633       do
24634          if test -z "${SHARED_CATALOG_TARGETS}"; then
24635             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24636          else
24637             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24638          fi
24639       done
24640       ;;
24641 esac
24642
24643 if test x$use_libtool = xyes; then
24644    DB_LIBS=""
24645 fi
24646
24647
24648
24649
24650
24651
24652
24653 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24654
24655
24656 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24657    if test -z "$CCOPTS"; then
24658       CCOPTS='-g -O2 -Wall'
24659    fi
24660    CFLAGS="$CCOPTS"
24661 fi
24662
24663
24664
24665 largefile_support="no"
24666
24667    # Check whether --enable-largefile was given.
24668 if test "${enable_largefile+set}" = set; then :
24669   enableval=$enable_largefile;
24670 fi
24671
24672    if test "$enable_largefile" != no; then
24673      if test -n "$ac_tool_prefix"; then
24674   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24675 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24677 $as_echo_n "checking for $ac_word... " >&6; }
24678 if ${ac_cv_prog_GETCONF+:} false; then :
24679   $as_echo_n "(cached) " >&6
24680 else
24681   if test -n "$GETCONF"; then
24682   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24683 else
24684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24685 for as_dir in $PATH
24686 do
24687   IFS=$as_save_IFS
24688   test -z "$as_dir" && as_dir=.
24689     for ac_exec_ext in '' $ac_executable_extensions; do
24690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24691     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24693     break 2
24694   fi
24695 done
24696   done
24697 IFS=$as_save_IFS
24698
24699 fi
24700 fi
24701 GETCONF=$ac_cv_prog_GETCONF
24702 if test -n "$GETCONF"; then
24703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24704 $as_echo "$GETCONF" >&6; }
24705 else
24706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24707 $as_echo "no" >&6; }
24708 fi
24709
24710
24711 fi
24712 if test -z "$ac_cv_prog_GETCONF"; then
24713   ac_ct_GETCONF=$GETCONF
24714   # Extract the first word of "getconf", so it can be a program name with args.
24715 set dummy getconf; ac_word=$2
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24717 $as_echo_n "checking for $ac_word... " >&6; }
24718 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24719   $as_echo_n "(cached) " >&6
24720 else
24721   if test -n "$ac_ct_GETCONF"; then
24722   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24723 else
24724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24725 for as_dir in $PATH
24726 do
24727   IFS=$as_save_IFS
24728   test -z "$as_dir" && as_dir=.
24729     for ac_exec_ext in '' $ac_executable_extensions; do
24730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24731     ac_cv_prog_ac_ct_GETCONF="getconf"
24732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24733     break 2
24734   fi
24735 done
24736   done
24737 IFS=$as_save_IFS
24738
24739 fi
24740 fi
24741 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24742 if test -n "$ac_ct_GETCONF"; then
24743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24744 $as_echo "$ac_ct_GETCONF" >&6; }
24745 else
24746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24747 $as_echo "no" >&6; }
24748 fi
24749
24750   if test "x$ac_ct_GETCONF" = x; then
24751     GETCONF=""
24752   else
24753     case $cross_compiling:$ac_tool_warned in
24754 yes:)
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24757 ac_tool_warned=yes ;;
24758 esac
24759     GETCONF=$ac_ct_GETCONF
24760   fi
24761 else
24762   GETCONF="$ac_cv_prog_GETCONF"
24763 fi
24764
24765      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24766 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24767 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24768   $as_echo_n "(cached) " >&6
24769 else
24770   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24771         ac_cv_sys_largefile_CFLAGS=no
24772         case "$host_os" in
24773            # IRIX 6.2 and later require cc -n32.
24774            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24775              if test "$GCC" != yes; then
24776                ac_cv_sys_largefile_CFLAGS=-n32
24777              fi
24778              ac_save_CC="$CC"
24779              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24780              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24781 /* end confdefs.h.  */
24782
24783 int
24784 main ()
24785 {
24786
24787   ;
24788   return 0;
24789 }
24790 _ACEOF
24791 if ac_fn_c_try_link "$LINENO"; then :
24792
24793 else
24794   ac_cv_sys_largefile_CFLAGS=no
24795 fi
24796 rm -f core conftest.err conftest.$ac_objext \
24797     conftest$ac_exeext conftest.$ac_ext
24798              CC="$ac_save_CC"
24799            esac
24800       }
24801 fi
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24803 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24804      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24805 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24806 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24807   $as_echo_n "(cached) " >&6
24808 else
24809   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24810         ac_cv_sys_largefile_LDFLAGS=no
24811
24812       }
24813 fi
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24815 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24816      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24817 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24818 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24819   $as_echo_n "(cached) " >&6
24820 else
24821   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24822         ac_cv_sys_largefile_LIBS=no
24823
24824       }
24825 fi
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24827 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24828
24829      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24830        case "$ac_flag" in
24831        no) ;;
24832        -D_FILE_OFFSET_BITS=*) ;;
24833        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24834        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24835        -D?* | -I?*)
24836          case "$ac_flag" in
24837    no) ;;
24838    ?*)
24839      case "$CPPFLAGS" in
24840      '') CPPFLAGS="$ac_flag" ;;
24841      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24842      esac ;;
24843    esac ;;
24844        *)
24845          case "$ac_flag" in
24846    no) ;;
24847    ?*)
24848      case "$CFLAGS" in
24849      '') CFLAGS="$ac_flag" ;;
24850      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24851      esac ;;
24852    esac ;;
24853        esac
24854      done
24855      case "$ac_cv_sys_largefile_LDFLAGS" in
24856    no) ;;
24857    ?*)
24858      case "$LDFLAGS" in
24859      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24860      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24861      esac ;;
24862    esac
24863      case "$ac_cv_sys_largefile_LIBS" in
24864    no) ;;
24865    ?*)
24866      case "$LIBS" in
24867      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24868      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24869      esac ;;
24870    esac
24871      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24872 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24873 if ${ac_cv_sys_file_offset_bits+:} false; then :
24874   $as_echo_n "(cached) " >&6
24875 else
24876   ac_cv_sys_file_offset_bits=no
24877       ac_cv_sys_file_offset_bits=64
24878       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24879         case "$ac_flag" in
24880         -D_FILE_OFFSET_BITS)
24881           ac_cv_sys_file_offset_bits=1 ;;
24882         -D_FILE_OFFSET_BITS=*)
24883           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24884         esac
24885       done
24886
24887 fi
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24889 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24890    if test "$ac_cv_sys_file_offset_bits" != no; then
24891
24892 cat >>confdefs.h <<_ACEOF
24893 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24894 _ACEOF
24895
24896    fi
24897      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24898 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24899 if ${ac_cv_sys_largefile_source+:} false; then :
24900   $as_echo_n "(cached) " >&6
24901 else
24902   ac_cv_sys_largefile_source=no
24903       ac_cv_sys_largefile_source=1
24904       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24905         case "$ac_flag" in
24906         -D_LARGEFILE_SOURCE)
24907           ac_cv_sys_largefile_source=1 ;;
24908         -D_LARGEFILE_SOURCE=*)
24909           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24910         esac
24911       done
24912
24913 fi
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24915 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24916    if test "$ac_cv_sys_largefile_source" != no; then
24917
24918 cat >>confdefs.h <<_ACEOF
24919 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24920 _ACEOF
24921
24922    fi
24923      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24924 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24925 if ${ac_cv_sys_large_files+:} false; then :
24926   $as_echo_n "(cached) " >&6
24927 else
24928   ac_cv_sys_large_files=no
24929       ac_cv_sys_large_files=1
24930       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24931         case "$ac_flag" in
24932         -D_LARGE_FILES)
24933           ac_cv_sys_large_files=1 ;;
24934         -D_LARGE_FILES=*)
24935           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24936         esac
24937       done
24938
24939 fi
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24941 $as_echo "$ac_cv_sys_large_files" >&6; }
24942    if test "$ac_cv_sys_large_files" != no; then
24943
24944 cat >>confdefs.h <<_ACEOF
24945 #define _LARGE_FILES $ac_cv_sys_large_files
24946 _ACEOF
24947
24948    fi
24949    fi
24950
24951
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24953 $as_echo_n "checking for X... " >&6; }
24954
24955
24956 # Check whether --with-x was given.
24957 if test "${with_x+set}" = set; then :
24958   withval=$with_x;
24959 fi
24960
24961 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24962 if test "x$with_x" = xno; then
24963   # The user explicitly disabled X.
24964   have_x=disabled
24965 else
24966   case $x_includes,$x_libraries in #(
24967     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24968     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24969   $as_echo_n "(cached) " >&6
24970 else
24971   # One or both of the vars are not set, and there is no cached value.
24972 ac_x_includes=no ac_x_libraries=no
24973 rm -f -r conftest.dir
24974 if mkdir conftest.dir; then
24975   cd conftest.dir
24976   cat >Imakefile <<'_ACEOF'
24977 incroot:
24978         @echo incroot='${INCROOT}'
24979 usrlibdir:
24980         @echo usrlibdir='${USRLIBDIR}'
24981 libdir:
24982         @echo libdir='${LIBDIR}'
24983 _ACEOF
24984   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24985     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24986     for ac_var in incroot usrlibdir libdir; do
24987       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24988     done
24989     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24990     for ac_extension in a so sl dylib la dll; do
24991       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24992          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24993         ac_im_usrlibdir=$ac_im_libdir; break
24994       fi
24995     done
24996     # Screen out bogus values from the imake configuration.  They are
24997     # bogus both because they are the default anyway, and because
24998     # using them would break gcc on systems where it needs fixed includes.
24999     case $ac_im_incroot in
25000         /usr/include) ac_x_includes= ;;
25001         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25002     esac
25003     case $ac_im_usrlibdir in
25004         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25005         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25006     esac
25007   fi
25008   cd ..
25009   rm -f -r conftest.dir
25010 fi
25011
25012 # Standard set of common directories for X headers.
25013 # Check X11 before X11Rn because it is often a symlink to the current release.
25014 ac_x_header_dirs='
25015 /usr/X11/include
25016 /usr/X11R7/include
25017 /usr/X11R6/include
25018 /usr/X11R5/include
25019 /usr/X11R4/include
25020
25021 /usr/include/X11
25022 /usr/include/X11R7
25023 /usr/include/X11R6
25024 /usr/include/X11R5
25025 /usr/include/X11R4
25026
25027 /usr/local/X11/include
25028 /usr/local/X11R7/include
25029 /usr/local/X11R6/include
25030 /usr/local/X11R5/include
25031 /usr/local/X11R4/include
25032
25033 /usr/local/include/X11
25034 /usr/local/include/X11R7
25035 /usr/local/include/X11R6
25036 /usr/local/include/X11R5
25037 /usr/local/include/X11R4
25038
25039 /usr/X386/include
25040 /usr/x386/include
25041 /usr/XFree86/include/X11
25042
25043 /usr/include
25044 /usr/local/include
25045 /usr/unsupported/include
25046 /usr/athena/include
25047 /usr/local/x11r5/include
25048 /usr/lpp/Xamples/include
25049
25050 /usr/openwin/include
25051 /usr/openwin/share/include'
25052
25053 if test "$ac_x_includes" = no; then
25054   # Guess where to find include files, by looking for Xlib.h.
25055   # First, try using that file with no special directory specified.
25056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25057 /* end confdefs.h.  */
25058 #include <X11/Xlib.h>
25059 _ACEOF
25060 if ac_fn_c_try_cpp "$LINENO"; then :
25061   # We can compile using X headers with no special include directory.
25062 ac_x_includes=
25063 else
25064   for ac_dir in $ac_x_header_dirs; do
25065   if test -r "$ac_dir/X11/Xlib.h"; then
25066     ac_x_includes=$ac_dir
25067     break
25068   fi
25069 done
25070 fi
25071 rm -f conftest.err conftest.i conftest.$ac_ext
25072 fi # $ac_x_includes = no
25073
25074 if test "$ac_x_libraries" = no; then
25075   # Check for the libraries.
25076   # See if we find them without any special options.
25077   # Don't add to $LIBS permanently.
25078   ac_save_LIBS=$LIBS
25079   LIBS="-lX11 $LIBS"
25080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25081 /* end confdefs.h.  */
25082 #include <X11/Xlib.h>
25083 int
25084 main ()
25085 {
25086 XrmInitialize ()
25087   ;
25088   return 0;
25089 }
25090 _ACEOF
25091 if ac_fn_c_try_link "$LINENO"; then :
25092   LIBS=$ac_save_LIBS
25093 # We can link X programs with no special library path.
25094 ac_x_libraries=
25095 else
25096   LIBS=$ac_save_LIBS
25097 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25098 do
25099   # Don't even attempt the hair of trying to link an X program!
25100   for ac_extension in a so sl dylib la dll; do
25101     if test -r "$ac_dir/libX11.$ac_extension"; then
25102       ac_x_libraries=$ac_dir
25103       break 2
25104     fi
25105   done
25106 done
25107 fi
25108 rm -f core conftest.err conftest.$ac_objext \
25109     conftest$ac_exeext conftest.$ac_ext
25110 fi # $ac_x_libraries = no
25111
25112 case $ac_x_includes,$ac_x_libraries in #(
25113   no,* | *,no | *\'*)
25114     # Didn't find X, or a directory has "'" in its name.
25115     ac_cv_have_x="have_x=no";; #(
25116   *)
25117     # Record where we found X for the cache.
25118     ac_cv_have_x="have_x=yes\
25119         ac_x_includes='$ac_x_includes'\
25120         ac_x_libraries='$ac_x_libraries'"
25121 esac
25122 fi
25123 ;; #(
25124     *) have_x=yes;;
25125   esac
25126   eval "$ac_cv_have_x"
25127 fi # $with_x != no
25128
25129 if test "$have_x" != yes; then
25130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25131 $as_echo "$have_x" >&6; }
25132   no_x=yes
25133 else
25134   # If each of the values was on the command line, it overrides each guess.
25135   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25136   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25137   # Update the cache value to reflect the command line values.
25138   ac_cv_have_x="have_x=yes\
25139         ac_x_includes='$x_includes'\
25140         ac_x_libraries='$x_libraries'"
25141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25142 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25143 fi
25144
25145 if test "$no_x" = yes; then
25146   # Not all programs may use this symbol, but it does not hurt to define it.
25147
25148 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25149
25150   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25151 else
25152   if test -n "$x_includes"; then
25153     X_CFLAGS="$X_CFLAGS -I$x_includes"
25154   fi
25155
25156   # It would also be nice to do this for all -L options, not just this one.
25157   if test -n "$x_libraries"; then
25158     X_LIBS="$X_LIBS -L$x_libraries"
25159     # For Solaris; some versions of Sun CC require a space after -R and
25160     # others require no space.  Words are not sufficient . . . .
25161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25162 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25163     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25164     ac_xsave_c_werror_flag=$ac_c_werror_flag
25165     ac_c_werror_flag=yes
25166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25167 /* end confdefs.h.  */
25168
25169 int
25170 main ()
25171 {
25172
25173   ;
25174   return 0;
25175 }
25176 _ACEOF
25177 if ac_fn_c_try_link "$LINENO"; then :
25178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25179 $as_echo "no" >&6; }
25180        X_LIBS="$X_LIBS -R$x_libraries"
25181 else
25182   LIBS="$ac_xsave_LIBS -R $x_libraries"
25183        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25184 /* end confdefs.h.  */
25185
25186 int
25187 main ()
25188 {
25189
25190   ;
25191   return 0;
25192 }
25193 _ACEOF
25194 if ac_fn_c_try_link "$LINENO"; then :
25195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25196 $as_echo "yes" >&6; }
25197           X_LIBS="$X_LIBS -R $x_libraries"
25198 else
25199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25200 $as_echo "neither works" >&6; }
25201 fi
25202 rm -f core conftest.err conftest.$ac_objext \
25203     conftest$ac_exeext conftest.$ac_ext
25204 fi
25205 rm -f core conftest.err conftest.$ac_objext \
25206     conftest$ac_exeext conftest.$ac_ext
25207     ac_c_werror_flag=$ac_xsave_c_werror_flag
25208     LIBS=$ac_xsave_LIBS
25209   fi
25210
25211   # Check for system-dependent libraries X programs must link with.
25212   # Do this before checking for the system-independent R6 libraries
25213   # (-lICE), since we may need -lsocket or whatever for X linking.
25214
25215   if test "$ISC" = yes; then
25216     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25217   else
25218     # Martyn Johnson says this is needed for Ultrix, if the X
25219     # libraries were built with DECnet support.  And Karl Berry says
25220     # the Alpha needs dnet_stub (dnet does not exist).
25221     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25222     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25223 /* end confdefs.h.  */
25224
25225 /* Override any GCC internal prototype to avoid an error.
25226    Use char because int might match the return type of a GCC
25227    builtin and then its argument prototype would still apply.  */
25228 #ifdef __cplusplus
25229 extern "C"
25230 #endif
25231 char XOpenDisplay ();
25232 int
25233 main ()
25234 {
25235 return XOpenDisplay ();
25236   ;
25237   return 0;
25238 }
25239 _ACEOF
25240 if ac_fn_c_try_link "$LINENO"; then :
25241
25242 else
25243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25244 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25245 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25246   $as_echo_n "(cached) " >&6
25247 else
25248   ac_check_lib_save_LIBS=$LIBS
25249 LIBS="-ldnet  $LIBS"
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h.  */
25252
25253 /* Override any GCC internal prototype to avoid an error.
25254    Use char because int might match the return type of a GCC
25255    builtin and then its argument prototype would still apply.  */
25256 #ifdef __cplusplus
25257 extern "C"
25258 #endif
25259 char dnet_ntoa ();
25260 int
25261 main ()
25262 {
25263 return dnet_ntoa ();
25264   ;
25265   return 0;
25266 }
25267 _ACEOF
25268 if ac_fn_c_try_link "$LINENO"; then :
25269   ac_cv_lib_dnet_dnet_ntoa=yes
25270 else
25271   ac_cv_lib_dnet_dnet_ntoa=no
25272 fi
25273 rm -f core conftest.err conftest.$ac_objext \
25274     conftest$ac_exeext conftest.$ac_ext
25275 LIBS=$ac_check_lib_save_LIBS
25276 fi
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25278 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25279 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25280   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25281 fi
25282
25283     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25284       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25285 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25286 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25287   $as_echo_n "(cached) " >&6
25288 else
25289   ac_check_lib_save_LIBS=$LIBS
25290 LIBS="-ldnet_stub  $LIBS"
25291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25292 /* end confdefs.h.  */
25293
25294 /* Override any GCC internal prototype to avoid an error.
25295    Use char because int might match the return type of a GCC
25296    builtin and then its argument prototype would still apply.  */
25297 #ifdef __cplusplus
25298 extern "C"
25299 #endif
25300 char dnet_ntoa ();
25301 int
25302 main ()
25303 {
25304 return dnet_ntoa ();
25305   ;
25306   return 0;
25307 }
25308 _ACEOF
25309 if ac_fn_c_try_link "$LINENO"; then :
25310   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25311 else
25312   ac_cv_lib_dnet_stub_dnet_ntoa=no
25313 fi
25314 rm -f core conftest.err conftest.$ac_objext \
25315     conftest$ac_exeext conftest.$ac_ext
25316 LIBS=$ac_check_lib_save_LIBS
25317 fi
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25319 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25320 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25321   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25322 fi
25323
25324     fi
25325 fi
25326 rm -f core conftest.err conftest.$ac_objext \
25327     conftest$ac_exeext conftest.$ac_ext
25328     LIBS="$ac_xsave_LIBS"
25329
25330     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25331     # to get the SysV transport functions.
25332     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25333     # needs -lnsl.
25334     # The nsl library prevents programs from opening the X display
25335     # on Irix 5.2, according to T.E. Dickey.
25336     # The functions gethostbyname, getservbyname, and inet_addr are
25337     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25338     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25339 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25340
25341 fi
25342
25343     if test $ac_cv_func_gethostbyname = no; then
25344       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25345 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25346 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25347   $as_echo_n "(cached) " >&6
25348 else
25349   ac_check_lib_save_LIBS=$LIBS
25350 LIBS="-lnsl  $LIBS"
25351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25352 /* end confdefs.h.  */
25353
25354 /* Override any GCC internal prototype to avoid an error.
25355    Use char because int might match the return type of a GCC
25356    builtin and then its argument prototype would still apply.  */
25357 #ifdef __cplusplus
25358 extern "C"
25359 #endif
25360 char gethostbyname ();
25361 int
25362 main ()
25363 {
25364 return gethostbyname ();
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 if ac_fn_c_try_link "$LINENO"; then :
25370   ac_cv_lib_nsl_gethostbyname=yes
25371 else
25372   ac_cv_lib_nsl_gethostbyname=no
25373 fi
25374 rm -f core conftest.err conftest.$ac_objext \
25375     conftest$ac_exeext conftest.$ac_ext
25376 LIBS=$ac_check_lib_save_LIBS
25377 fi
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25379 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25380 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25381   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25382 fi
25383
25384       if test $ac_cv_lib_nsl_gethostbyname = no; then
25385         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25386 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25387 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25388   $as_echo_n "(cached) " >&6
25389 else
25390   ac_check_lib_save_LIBS=$LIBS
25391 LIBS="-lbsd  $LIBS"
25392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25393 /* end confdefs.h.  */
25394
25395 /* Override any GCC internal prototype to avoid an error.
25396    Use char because int might match the return type of a GCC
25397    builtin and then its argument prototype would still apply.  */
25398 #ifdef __cplusplus
25399 extern "C"
25400 #endif
25401 char gethostbyname ();
25402 int
25403 main ()
25404 {
25405 return gethostbyname ();
25406   ;
25407   return 0;
25408 }
25409 _ACEOF
25410 if ac_fn_c_try_link "$LINENO"; then :
25411   ac_cv_lib_bsd_gethostbyname=yes
25412 else
25413   ac_cv_lib_bsd_gethostbyname=no
25414 fi
25415 rm -f core conftest.err conftest.$ac_objext \
25416     conftest$ac_exeext conftest.$ac_ext
25417 LIBS=$ac_check_lib_save_LIBS
25418 fi
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25420 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25421 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25422   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25423 fi
25424
25425       fi
25426     fi
25427
25428     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25429     # socket/setsockopt and other routines are undefined under SCO ODT
25430     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25431     # on later versions), says Simon Leinen: it contains gethostby*
25432     # variants that don't use the name server (or something).  -lsocket
25433     # must be given before -lnsl if both are needed.  We assume that
25434     # if connect needs -lnsl, so does gethostbyname.
25435     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25436 if test "x$ac_cv_func_connect" = xyes; then :
25437
25438 fi
25439
25440     if test $ac_cv_func_connect = no; then
25441       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25442 $as_echo_n "checking for connect in -lsocket... " >&6; }
25443 if ${ac_cv_lib_socket_connect+:} false; then :
25444   $as_echo_n "(cached) " >&6
25445 else
25446   ac_check_lib_save_LIBS=$LIBS
25447 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25449 /* end confdefs.h.  */
25450
25451 /* Override any GCC internal prototype to avoid an error.
25452    Use char because int might match the return type of a GCC
25453    builtin and then its argument prototype would still apply.  */
25454 #ifdef __cplusplus
25455 extern "C"
25456 #endif
25457 char connect ();
25458 int
25459 main ()
25460 {
25461 return connect ();
25462   ;
25463   return 0;
25464 }
25465 _ACEOF
25466 if ac_fn_c_try_link "$LINENO"; then :
25467   ac_cv_lib_socket_connect=yes
25468 else
25469   ac_cv_lib_socket_connect=no
25470 fi
25471 rm -f core conftest.err conftest.$ac_objext \
25472     conftest$ac_exeext conftest.$ac_ext
25473 LIBS=$ac_check_lib_save_LIBS
25474 fi
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25476 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25477 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25478   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25479 fi
25480
25481     fi
25482
25483     # Guillermo Gomez says -lposix is necessary on A/UX.
25484     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25485 if test "x$ac_cv_func_remove" = xyes; then :
25486
25487 fi
25488
25489     if test $ac_cv_func_remove = no; then
25490       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25491 $as_echo_n "checking for remove in -lposix... " >&6; }
25492 if ${ac_cv_lib_posix_remove+:} false; then :
25493   $as_echo_n "(cached) " >&6
25494 else
25495   ac_check_lib_save_LIBS=$LIBS
25496 LIBS="-lposix  $LIBS"
25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h.  */
25499
25500 /* Override any GCC internal prototype to avoid an error.
25501    Use char because int might match the return type of a GCC
25502    builtin and then its argument prototype would still apply.  */
25503 #ifdef __cplusplus
25504 extern "C"
25505 #endif
25506 char remove ();
25507 int
25508 main ()
25509 {
25510 return remove ();
25511   ;
25512   return 0;
25513 }
25514 _ACEOF
25515 if ac_fn_c_try_link "$LINENO"; then :
25516   ac_cv_lib_posix_remove=yes
25517 else
25518   ac_cv_lib_posix_remove=no
25519 fi
25520 rm -f core conftest.err conftest.$ac_objext \
25521     conftest$ac_exeext conftest.$ac_ext
25522 LIBS=$ac_check_lib_save_LIBS
25523 fi
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25525 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25526 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25527   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25528 fi
25529
25530     fi
25531
25532     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25533     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25534 if test "x$ac_cv_func_shmat" = xyes; then :
25535
25536 fi
25537
25538     if test $ac_cv_func_shmat = no; then
25539       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25540 $as_echo_n "checking for shmat in -lipc... " >&6; }
25541 if ${ac_cv_lib_ipc_shmat+:} false; then :
25542   $as_echo_n "(cached) " >&6
25543 else
25544   ac_check_lib_save_LIBS=$LIBS
25545 LIBS="-lipc  $LIBS"
25546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25547 /* end confdefs.h.  */
25548
25549 /* Override any GCC internal prototype to avoid an error.
25550    Use char because int might match the return type of a GCC
25551    builtin and then its argument prototype would still apply.  */
25552 #ifdef __cplusplus
25553 extern "C"
25554 #endif
25555 char shmat ();
25556 int
25557 main ()
25558 {
25559 return shmat ();
25560   ;
25561   return 0;
25562 }
25563 _ACEOF
25564 if ac_fn_c_try_link "$LINENO"; then :
25565   ac_cv_lib_ipc_shmat=yes
25566 else
25567   ac_cv_lib_ipc_shmat=no
25568 fi
25569 rm -f core conftest.err conftest.$ac_objext \
25570     conftest$ac_exeext conftest.$ac_ext
25571 LIBS=$ac_check_lib_save_LIBS
25572 fi
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25574 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25575 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25576   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25577 fi
25578
25579     fi
25580   fi
25581
25582   # Check for libraries that X11R6 Xt/Xaw programs need.
25583   ac_save_LDFLAGS=$LDFLAGS
25584   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25585   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25586   # check for ICE first), but we must link in the order -lSM -lICE or
25587   # we get undefined symbols.  So assume we have SM if we have ICE.
25588   # These have to be linked with before -lX11, unlike the other
25589   # libraries we check for below, so use a different variable.
25590   # John Interrante, Karl Berry
25591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25592 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25593 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25594   $as_echo_n "(cached) " >&6
25595 else
25596   ac_check_lib_save_LIBS=$LIBS
25597 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25599 /* end confdefs.h.  */
25600
25601 /* Override any GCC internal prototype to avoid an error.
25602    Use char because int might match the return type of a GCC
25603    builtin and then its argument prototype would still apply.  */
25604 #ifdef __cplusplus
25605 extern "C"
25606 #endif
25607 char IceConnectionNumber ();
25608 int
25609 main ()
25610 {
25611 return IceConnectionNumber ();
25612   ;
25613   return 0;
25614 }
25615 _ACEOF
25616 if ac_fn_c_try_link "$LINENO"; then :
25617   ac_cv_lib_ICE_IceConnectionNumber=yes
25618 else
25619   ac_cv_lib_ICE_IceConnectionNumber=no
25620 fi
25621 rm -f core conftest.err conftest.$ac_objext \
25622     conftest$ac_exeext conftest.$ac_ext
25623 LIBS=$ac_check_lib_save_LIBS
25624 fi
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25626 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25627 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25628   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25629 fi
25630
25631   LDFLAGS=$ac_save_LDFLAGS
25632
25633 fi
25634
25635
25636 for ac_header in \
25637    assert.h \
25638    fcntl.h \
25639    grp.h \
25640    pwd.h \
25641    libc.h \
25642    limits.h \
25643    stdarg.h \
25644    stdlib.h \
25645    stdint.h \
25646    inttypes.h \
25647    string.h \
25648    strings.h \
25649    termios.h \
25650    termcap.h \
25651    term.h \
25652    unistd.h \
25653    sys/bitypes.h \
25654    sys/byteorder.h \
25655    sys/ioctl.h \
25656    sys/select.h \
25657    sys/socket.h \
25658    sys/sockio.h \
25659    sys/stat.h \
25660    sys/time.h \
25661    sys/types.h \
25662    arpa/nameser.h \
25663    mtio.h \
25664    sys/mtio.h \
25665    sys/tape.h \
25666    regex.h \
25667
25668 do :
25669   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25670 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25671 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25672   cat >>confdefs.h <<_ACEOF
25673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25674 _ACEOF
25675
25676 fi
25677
25678 done
25679
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25681 $as_echo_n "checking for ANSI C header files... " >&6; }
25682 if ${ac_cv_header_stdc+:} false; then :
25683   $as_echo_n "(cached) " >&6
25684 else
25685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25686 /* end confdefs.h.  */
25687 #include <stdlib.h>
25688 #include <stdarg.h>
25689 #include <string.h>
25690 #include <float.h>
25691
25692 int
25693 main ()
25694 {
25695
25696   ;
25697   return 0;
25698 }
25699 _ACEOF
25700 if ac_fn_c_try_compile "$LINENO"; then :
25701   ac_cv_header_stdc=yes
25702 else
25703   ac_cv_header_stdc=no
25704 fi
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706
25707 if test $ac_cv_header_stdc = yes; then
25708   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25710 /* end confdefs.h.  */
25711 #include <string.h>
25712
25713 _ACEOF
25714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25715   $EGREP "memchr" >/dev/null 2>&1; then :
25716
25717 else
25718   ac_cv_header_stdc=no
25719 fi
25720 rm -f conftest*
25721
25722 fi
25723
25724 if test $ac_cv_header_stdc = yes; then
25725   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727 /* end confdefs.h.  */
25728 #include <stdlib.h>
25729
25730 _ACEOF
25731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25732   $EGREP "free" >/dev/null 2>&1; then :
25733
25734 else
25735   ac_cv_header_stdc=no
25736 fi
25737 rm -f conftest*
25738
25739 fi
25740
25741 if test $ac_cv_header_stdc = yes; then
25742   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25743   if test "$cross_compiling" = yes; then :
25744   :
25745 else
25746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25747 /* end confdefs.h.  */
25748 #include <ctype.h>
25749 #include <stdlib.h>
25750 #if ((' ' & 0x0FF) == 0x020)
25751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25753 #else
25754 # define ISLOWER(c) \
25755                    (('a' <= (c) && (c) <= 'i') \
25756                      || ('j' <= (c) && (c) <= 'r') \
25757                      || ('s' <= (c) && (c) <= 'z'))
25758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25759 #endif
25760
25761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25762 int
25763 main ()
25764 {
25765   int i;
25766   for (i = 0; i < 256; i++)
25767     if (XOR (islower (i), ISLOWER (i))
25768         || toupper (i) != TOUPPER (i))
25769       return 2;
25770   return 0;
25771 }
25772 _ACEOF
25773 if ac_fn_c_try_run "$LINENO"; then :
25774
25775 else
25776   ac_cv_header_stdc=no
25777 fi
25778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25779   conftest.$ac_objext conftest.beam conftest.$ac_ext
25780 fi
25781
25782 fi
25783 fi
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25785 $as_echo "$ac_cv_header_stdc" >&6; }
25786 if test $ac_cv_header_stdc = yes; then
25787
25788 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25789
25790 fi
25791
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25793 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25794 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25795   $as_echo_n "(cached) " >&6
25796 else
25797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25798 /* end confdefs.h.  */
25799 #include <sys/types.h>
25800 int
25801 main ()
25802 {
25803 return makedev(0, 0);
25804   ;
25805   return 0;
25806 }
25807 _ACEOF
25808 if ac_fn_c_try_link "$LINENO"; then :
25809   ac_cv_header_sys_types_h_makedev=yes
25810 else
25811   ac_cv_header_sys_types_h_makedev=no
25812 fi
25813 rm -f core conftest.err conftest.$ac_objext \
25814     conftest$ac_exeext conftest.$ac_ext
25815
25816 fi
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25818 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25819
25820 if test $ac_cv_header_sys_types_h_makedev = no; then
25821 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25822 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25823
25824 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25825
25826 fi
25827
25828
25829
25830   if test $ac_cv_header_sys_mkdev_h = no; then
25831     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25832 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25833
25834 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25835
25836 fi
25837
25838
25839   fi
25840 fi
25841
25842 ac_header_dirent=no
25843 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25844   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25846 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25847 if eval \${$as_ac_Header+:} false; then :
25848   $as_echo_n "(cached) " >&6
25849 else
25850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h.  */
25852 #include <sys/types.h>
25853 #include <$ac_hdr>
25854
25855 int
25856 main ()
25857 {
25858 if ((DIR *) 0)
25859 return 0;
25860   ;
25861   return 0;
25862 }
25863 _ACEOF
25864 if ac_fn_c_try_compile "$LINENO"; then :
25865   eval "$as_ac_Header=yes"
25866 else
25867   eval "$as_ac_Header=no"
25868 fi
25869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25870 fi
25871 eval ac_res=\$$as_ac_Header
25872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25873 $as_echo "$ac_res" >&6; }
25874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25875   cat >>confdefs.h <<_ACEOF
25876 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25877 _ACEOF
25878
25879 ac_header_dirent=$ac_hdr; break
25880 fi
25881
25882 done
25883 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25884 if test $ac_header_dirent = dirent.h; then
25885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25886 $as_echo_n "checking for library containing opendir... " >&6; }
25887 if ${ac_cv_search_opendir+:} false; then :
25888   $as_echo_n "(cached) " >&6
25889 else
25890   ac_func_search_save_LIBS=$LIBS
25891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25892 /* end confdefs.h.  */
25893
25894 /* Override any GCC internal prototype to avoid an error.
25895    Use char because int might match the return type of a GCC
25896    builtin and then its argument prototype would still apply.  */
25897 #ifdef __cplusplus
25898 extern "C"
25899 #endif
25900 char opendir ();
25901 int
25902 main ()
25903 {
25904 return opendir ();
25905   ;
25906   return 0;
25907 }
25908 _ACEOF
25909 for ac_lib in '' dir; do
25910   if test -z "$ac_lib"; then
25911     ac_res="none required"
25912   else
25913     ac_res=-l$ac_lib
25914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25915   fi
25916   if ac_fn_c_try_link "$LINENO"; then :
25917   ac_cv_search_opendir=$ac_res
25918 fi
25919 rm -f core conftest.err conftest.$ac_objext \
25920     conftest$ac_exeext
25921   if ${ac_cv_search_opendir+:} false; then :
25922   break
25923 fi
25924 done
25925 if ${ac_cv_search_opendir+:} false; then :
25926
25927 else
25928   ac_cv_search_opendir=no
25929 fi
25930 rm conftest.$ac_ext
25931 LIBS=$ac_func_search_save_LIBS
25932 fi
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25934 $as_echo "$ac_cv_search_opendir" >&6; }
25935 ac_res=$ac_cv_search_opendir
25936 if test "$ac_res" != no; then :
25937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25938
25939 fi
25940
25941 else
25942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25943 $as_echo_n "checking for library containing opendir... " >&6; }
25944 if ${ac_cv_search_opendir+:} false; then :
25945   $as_echo_n "(cached) " >&6
25946 else
25947   ac_func_search_save_LIBS=$LIBS
25948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25949 /* end confdefs.h.  */
25950
25951 /* Override any GCC internal prototype to avoid an error.
25952    Use char because int might match the return type of a GCC
25953    builtin and then its argument prototype would still apply.  */
25954 #ifdef __cplusplus
25955 extern "C"
25956 #endif
25957 char opendir ();
25958 int
25959 main ()
25960 {
25961 return opendir ();
25962   ;
25963   return 0;
25964 }
25965 _ACEOF
25966 for ac_lib in '' x; do
25967   if test -z "$ac_lib"; then
25968     ac_res="none required"
25969   else
25970     ac_res=-l$ac_lib
25971     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25972   fi
25973   if ac_fn_c_try_link "$LINENO"; then :
25974   ac_cv_search_opendir=$ac_res
25975 fi
25976 rm -f core conftest.err conftest.$ac_objext \
25977     conftest$ac_exeext
25978   if ${ac_cv_search_opendir+:} false; then :
25979   break
25980 fi
25981 done
25982 if ${ac_cv_search_opendir+:} false; then :
25983
25984 else
25985   ac_cv_search_opendir=no
25986 fi
25987 rm conftest.$ac_ext
25988 LIBS=$ac_func_search_save_LIBS
25989 fi
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25991 $as_echo "$ac_cv_search_opendir" >&6; }
25992 ac_res=$ac_cv_search_opendir
25993 if test "$ac_res" != no; then :
25994   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25995
25996 fi
25997
25998 fi
25999
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26001 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26002 if ${ac_cv_header_stat_broken+:} false; then :
26003   $as_echo_n "(cached) " >&6
26004 else
26005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26006 /* end confdefs.h.  */
26007 #include <sys/types.h>
26008 #include <sys/stat.h>
26009
26010 #if defined S_ISBLK && defined S_IFDIR
26011 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26012 #endif
26013
26014 #if defined S_ISBLK && defined S_IFCHR
26015 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26016 #endif
26017
26018 #if defined S_ISLNK && defined S_IFREG
26019 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26020 #endif
26021
26022 #if defined S_ISSOCK && defined S_IFREG
26023 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26024 #endif
26025
26026 _ACEOF
26027 if ac_fn_c_try_compile "$LINENO"; then :
26028   ac_cv_header_stat_broken=no
26029 else
26030   ac_cv_header_stat_broken=yes
26031 fi
26032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26033 fi
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26035 $as_echo "$ac_cv_header_stat_broken" >&6; }
26036 if test $ac_cv_header_stat_broken = yes; then
26037
26038 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26039
26040 fi
26041
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26043 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26044 if ${ac_cv_header_sys_wait_h+:} false; then :
26045   $as_echo_n "(cached) " >&6
26046 else
26047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26048 /* end confdefs.h.  */
26049 #include <sys/types.h>
26050 #include <sys/wait.h>
26051 #ifndef WEXITSTATUS
26052 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26053 #endif
26054 #ifndef WIFEXITED
26055 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26056 #endif
26057
26058 int
26059 main ()
26060 {
26061   int s;
26062   wait (&s);
26063   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26064   ;
26065   return 0;
26066 }
26067 _ACEOF
26068 if ac_fn_c_try_compile "$LINENO"; then :
26069   ac_cv_header_sys_wait_h=yes
26070 else
26071   ac_cv_header_sys_wait_h=no
26072 fi
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074 fi
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26076 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26077 if test $ac_cv_header_sys_wait_h = yes; then
26078
26079 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26080
26081 fi
26082
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26084 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26085 if ${ac_cv_header_time+:} false; then :
26086   $as_echo_n "(cached) " >&6
26087 else
26088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h.  */
26090 #include <sys/types.h>
26091 #include <sys/time.h>
26092 #include <time.h>
26093
26094 int
26095 main ()
26096 {
26097 if ((struct tm *) 0)
26098 return 0;
26099   ;
26100   return 0;
26101 }
26102 _ACEOF
26103 if ac_fn_c_try_compile "$LINENO"; then :
26104   ac_cv_header_time=yes
26105 else
26106   ac_cv_header_time=no
26107 fi
26108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26109 fi
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26111 $as_echo "$ac_cv_header_time" >&6; }
26112 if test $ac_cv_header_time = yes; then
26113
26114 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26115
26116 fi
26117
26118 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26119 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26120
26121 cat >>confdefs.h <<_ACEOF
26122 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26123 _ACEOF
26124
26125
26126 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26127
26128 fi
26129
26130
26131 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26132 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26133
26134 cat >>confdefs.h <<_ACEOF
26135 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26136 _ACEOF
26137
26138
26139 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26140
26141 else
26142   case " $LIBOBJS " in
26143   *" fileblocks.$ac_objext "* ) ;;
26144   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26145  ;;
26146 esac
26147
26148 fi
26149
26150
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26152 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26153 if ${ac_cv_struct_tm+:} false; then :
26154   $as_echo_n "(cached) " >&6
26155 else
26156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26157 /* end confdefs.h.  */
26158 #include <sys/types.h>
26159 #include <time.h>
26160
26161 int
26162 main ()
26163 {
26164 struct tm tm;
26165                                      int *p = &tm.tm_sec;
26166                                      return !p;
26167   ;
26168   return 0;
26169 }
26170 _ACEOF
26171 if ac_fn_c_try_compile "$LINENO"; then :
26172   ac_cv_struct_tm=time.h
26173 else
26174   ac_cv_struct_tm=sys/time.h
26175 fi
26176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26177 fi
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26179 $as_echo "$ac_cv_struct_tm" >&6; }
26180 if test $ac_cv_struct_tm = sys/time.h; then
26181
26182 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26183
26184 fi
26185
26186 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26187 #include <$ac_cv_struct_tm>
26188
26189 "
26190 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26191
26192 cat >>confdefs.h <<_ACEOF
26193 #define HAVE_STRUCT_TM_TM_ZONE 1
26194 _ACEOF
26195
26196
26197 fi
26198
26199 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26200
26201 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26202
26203 else
26204   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26205 "
26206 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26207   ac_have_decl=1
26208 else
26209   ac_have_decl=0
26210 fi
26211
26212 cat >>confdefs.h <<_ACEOF
26213 #define HAVE_DECL_TZNAME $ac_have_decl
26214 _ACEOF
26215
26216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26217 $as_echo_n "checking for tzname... " >&6; }
26218 if ${ac_cv_var_tzname+:} false; then :
26219   $as_echo_n "(cached) " >&6
26220 else
26221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26222 /* end confdefs.h.  */
26223 #include <time.h>
26224 #if !HAVE_DECL_TZNAME
26225 extern char *tzname[];
26226 #endif
26227
26228 int
26229 main ()
26230 {
26231 return tzname[0][0];
26232   ;
26233   return 0;
26234 }
26235 _ACEOF
26236 if ac_fn_c_try_link "$LINENO"; then :
26237   ac_cv_var_tzname=yes
26238 else
26239   ac_cv_var_tzname=no
26240 fi
26241 rm -f core conftest.err conftest.$ac_objext \
26242     conftest$ac_exeext conftest.$ac_ext
26243 fi
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26245 $as_echo "$ac_cv_var_tzname" >&6; }
26246   if test $ac_cv_var_tzname = yes; then
26247
26248 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26249
26250   fi
26251 fi
26252
26253
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26255 $as_echo_n "checking for utime.h... " >&6; }
26256 if ${ba_cv_header_utime_h+:} false; then :
26257   $as_echo_n "(cached) " >&6
26258 else
26259
26260        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26261 /* end confdefs.h.  */
26262
26263               #include <sys/types.h>
26264               #include <utime.h>
26265
26266 int
26267 main ()
26268 {
26269
26270               struct utimbuf foo
26271
26272   ;
26273   return 0;
26274 }
26275 _ACEOF
26276 if ac_fn_c_try_compile "$LINENO"; then :
26277
26278               ba_cv_header_utime_h=yes
26279
26280 else
26281
26282               ba_cv_header_utime_h=no
26283
26284
26285 fi
26286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26287
26288
26289 fi
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26291 $as_echo "$ba_cv_header_utime_h" >&6; }
26292 test $ba_cv_header_utime_h = yes &&
26293 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26294
26295
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26297 $as_echo_n "checking for socklen_t... " >&6; }
26298 if ${ba_cv_header_socklen_t+:} false; then :
26299   $as_echo_n "(cached) " >&6
26300 else
26301
26302        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26303 /* end confdefs.h.  */
26304
26305               #include <sys/types.h>
26306               #include <sys/socket.h>
26307
26308 int
26309 main ()
26310 {
26311
26312               socklen_t x
26313
26314   ;
26315   return 0;
26316 }
26317 _ACEOF
26318 if ac_fn_c_try_compile "$LINENO"; then :
26319
26320              ba_cv_header_socklen_t=yes
26321
26322 else
26323
26324              ba_cv_header_socklen_t=no
26325
26326
26327 fi
26328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26329
26330
26331 fi
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26333 $as_echo "$ba_cv_header_socklen_t" >&6; }
26334 test $ba_cv_header_socklen_t = yes &&
26335 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26336
26337
26338 ac_ext=cpp
26339 ac_cpp='$CXXCPP $CPPFLAGS'
26340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26343
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26345 $as_echo_n "checking for ioctl_req_t... " >&6; }
26346 if ${ba_cv_header_ioctl_req_t+:} false; then :
26347   $as_echo_n "(cached) " >&6
26348 else
26349
26350        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26351 /* end confdefs.h.  */
26352
26353               #include <unistd.h>
26354               #include <sys/types.h>
26355               #include <sys/ioctl.h>
26356
26357 int
26358 main ()
26359 {
26360
26361               int (*d_ioctl)(int fd, unsigned long int request, ...);
26362               d_ioctl = ::ioctl;
26363
26364   ;
26365   return 0;
26366 }
26367 _ACEOF
26368 if ac_fn_cxx_try_compile "$LINENO"; then :
26369
26370              ba_cv_header_ioctl_req_t=yes
26371
26372 else
26373
26374              ba_cv_header_ioctl_req_t=no
26375
26376
26377 fi
26378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26379
26380
26381 fi
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26383 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26384 test $ba_cv_header_ioctl_req_t = yes &&
26385 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26386
26387
26388 ac_ext=c
26389 ac_cpp='$CPP $CPPFLAGS'
26390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26393
26394
26395 ac_ext=cpp
26396 ac_cpp='$CXXCPP $CPPFLAGS'
26397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26400
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26402 $as_echo_n "checking for typeof... " >&6; }
26403 if ${ba_cv_have_typeof+:} false; then :
26404   $as_echo_n "(cached) " >&6
26405 else
26406
26407        if test "$cross_compiling" = yes; then :
26408
26409               ba_cv_have_typeof=no
26410
26411
26412 else
26413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26414 /* end confdefs.h.  */
26415
26416               main(){char *a = 0; a = (typeof a)a;}
26417
26418 _ACEOF
26419 if ac_fn_cxx_try_run "$LINENO"; then :
26420
26421               ba_cv_have_typeof=yes
26422
26423 else
26424
26425               ba_cv_have_typeof=no
26426
26427 fi
26428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26429   conftest.$ac_objext conftest.beam conftest.$ac_ext
26430 fi
26431
26432
26433
26434 fi
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26436 $as_echo "$ba_cv_have_typeof" >&6; }
26437 test $ba_cv_have_typeof = yes &&
26438 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26439
26440 ac_ext=c
26441 ac_cpp='$CPP $CPPFLAGS'
26442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26445
26446
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26448 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26449 if ${ac_cv_c_const+:} false; then :
26450   $as_echo_n "(cached) " >&6
26451 else
26452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26453 /* end confdefs.h.  */
26454
26455 int
26456 main ()
26457 {
26458 /* FIXME: Include the comments suggested by Paul. */
26459 #ifndef __cplusplus
26460   /* Ultrix mips cc rejects this.  */
26461   typedef int charset[2];
26462   const charset cs;
26463   /* SunOS 4.1.1 cc rejects this.  */
26464   char const *const *pcpcc;
26465   char **ppc;
26466   /* NEC SVR4.0.2 mips cc rejects this.  */
26467   struct point {int x, y;};
26468   static struct point const zero = {0,0};
26469   /* AIX XL C 1.02.0.0 rejects this.
26470      It does not let you subtract one const X* pointer from another in
26471      an arm of an if-expression whose if-part is not a constant
26472      expression */
26473   const char *g = "string";
26474   pcpcc = &g + (g ? g-g : 0);
26475   /* HPUX 7.0 cc rejects these. */
26476   ++pcpcc;
26477   ppc = (char**) pcpcc;
26478   pcpcc = (char const *const *) ppc;
26479   { /* SCO 3.2v4 cc rejects this.  */
26480     char *t;
26481     char const *s = 0 ? (char *) 0 : (char const *) 0;
26482
26483     *t++ = 0;
26484     if (s) return 0;
26485   }
26486   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26487     int x[] = {25, 17};
26488     const int *foo = &x[0];
26489     ++foo;
26490   }
26491   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26492     typedef const int *iptr;
26493     iptr p = 0;
26494     ++p;
26495   }
26496   { /* AIX XL C 1.02.0.0 rejects this saying
26497        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26498     struct s { int j; const int *ap[3]; };
26499     struct s *b; b->j = 5;
26500   }
26501   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26502     const int foo = 10;
26503     if (!foo) return 0;
26504   }
26505   return !cs[0] && !zero.x;
26506 #endif
26507
26508   ;
26509   return 0;
26510 }
26511 _ACEOF
26512 if ac_fn_c_try_compile "$LINENO"; then :
26513   ac_cv_c_const=yes
26514 else
26515   ac_cv_c_const=no
26516 fi
26517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26518 fi
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26520 $as_echo "$ac_cv_c_const" >&6; }
26521 if test $ac_cv_c_const = no; then
26522
26523 $as_echo "#define const /**/" >>confdefs.h
26524
26525 fi
26526
26527
26528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26529 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26530 if ${ac_cv_c_bigendian+:} false; then :
26531   $as_echo_n "(cached) " >&6
26532 else
26533   ac_cv_c_bigendian=unknown
26534     # See if we're dealing with a universal compiler.
26535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26536 /* end confdefs.h.  */
26537 #ifndef __APPLE_CC__
26538                not a universal capable compiler
26539              #endif
26540              typedef int dummy;
26541
26542 _ACEOF
26543 if ac_fn_c_try_compile "$LINENO"; then :
26544
26545         # Check for potential -arch flags.  It is not universal unless
26546         # there are at least two -arch flags with different values.
26547         ac_arch=
26548         ac_prev=
26549         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26550          if test -n "$ac_prev"; then
26551            case $ac_word in
26552              i?86 | x86_64 | ppc | ppc64)
26553                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26554                  ac_arch=$ac_word
26555                else
26556                  ac_cv_c_bigendian=universal
26557                  break
26558                fi
26559                ;;
26560            esac
26561            ac_prev=
26562          elif test "x$ac_word" = "x-arch"; then
26563            ac_prev=arch
26564          fi
26565        done
26566 fi
26567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568     if test $ac_cv_c_bigendian = unknown; then
26569       # See if sys/param.h defines the BYTE_ORDER macro.
26570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26571 /* end confdefs.h.  */
26572 #include <sys/types.h>
26573              #include <sys/param.h>
26574
26575 int
26576 main ()
26577 {
26578 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26579                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26580                      && LITTLE_ENDIAN)
26581               bogus endian macros
26582              #endif
26583
26584   ;
26585   return 0;
26586 }
26587 _ACEOF
26588 if ac_fn_c_try_compile "$LINENO"; then :
26589   # It does; now see whether it defined to BIG_ENDIAN or not.
26590          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26591 /* end confdefs.h.  */
26592 #include <sys/types.h>
26593                 #include <sys/param.h>
26594
26595 int
26596 main ()
26597 {
26598 #if BYTE_ORDER != BIG_ENDIAN
26599                  not big endian
26600                 #endif
26601
26602   ;
26603   return 0;
26604 }
26605 _ACEOF
26606 if ac_fn_c_try_compile "$LINENO"; then :
26607   ac_cv_c_bigendian=yes
26608 else
26609   ac_cv_c_bigendian=no
26610 fi
26611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26612 fi
26613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26614     fi
26615     if test $ac_cv_c_bigendian = unknown; then
26616       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26617       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26618 /* end confdefs.h.  */
26619 #include <limits.h>
26620
26621 int
26622 main ()
26623 {
26624 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26625               bogus endian macros
26626              #endif
26627
26628   ;
26629   return 0;
26630 }
26631 _ACEOF
26632 if ac_fn_c_try_compile "$LINENO"; then :
26633   # It does; now see whether it defined to _BIG_ENDIAN or not.
26634          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26635 /* end confdefs.h.  */
26636 #include <limits.h>
26637
26638 int
26639 main ()
26640 {
26641 #ifndef _BIG_ENDIAN
26642                  not big endian
26643                 #endif
26644
26645   ;
26646   return 0;
26647 }
26648 _ACEOF
26649 if ac_fn_c_try_compile "$LINENO"; then :
26650   ac_cv_c_bigendian=yes
26651 else
26652   ac_cv_c_bigendian=no
26653 fi
26654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26655 fi
26656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26657     fi
26658     if test $ac_cv_c_bigendian = unknown; then
26659       # Compile a test program.
26660       if test "$cross_compiling" = yes; then :
26661   # Try to guess by grepping values from an object file.
26662          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26663 /* end confdefs.h.  */
26664 short int ascii_mm[] =
26665                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26666                 short int ascii_ii[] =
26667                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26668                 int use_ascii (int i) {
26669                   return ascii_mm[i] + ascii_ii[i];
26670                 }
26671                 short int ebcdic_ii[] =
26672                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26673                 short int ebcdic_mm[] =
26674                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26675                 int use_ebcdic (int i) {
26676                   return ebcdic_mm[i] + ebcdic_ii[i];
26677                 }
26678                 extern int foo;
26679
26680 int
26681 main ()
26682 {
26683 return use_ascii (foo) == use_ebcdic (foo);
26684   ;
26685   return 0;
26686 }
26687 _ACEOF
26688 if ac_fn_c_try_compile "$LINENO"; then :
26689   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26690               ac_cv_c_bigendian=yes
26691             fi
26692             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26693               if test "$ac_cv_c_bigendian" = unknown; then
26694                 ac_cv_c_bigendian=no
26695               else
26696                 # finding both strings is unlikely to happen, but who knows?
26697                 ac_cv_c_bigendian=unknown
26698               fi
26699             fi
26700 fi
26701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26702 else
26703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26704 /* end confdefs.h.  */
26705 $ac_includes_default
26706 int
26707 main ()
26708 {
26709
26710              /* Are we little or big endian?  From Harbison&Steele.  */
26711              union
26712              {
26713                long int l;
26714                char c[sizeof (long int)];
26715              } u;
26716              u.l = 1;
26717              return u.c[sizeof (long int) - 1] == 1;
26718
26719   ;
26720   return 0;
26721 }
26722 _ACEOF
26723 if ac_fn_c_try_run "$LINENO"; then :
26724   ac_cv_c_bigendian=no
26725 else
26726   ac_cv_c_bigendian=yes
26727 fi
26728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26729   conftest.$ac_objext conftest.beam conftest.$ac_ext
26730 fi
26731
26732     fi
26733 fi
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26735 $as_echo "$ac_cv_c_bigendian" >&6; }
26736  case $ac_cv_c_bigendian in #(
26737    yes)
26738
26739 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26740 ;; #(
26741    no)
26742
26743 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26744  ;; #(
26745    universal)
26746
26747 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26748
26749      ;; #(
26750    *)
26751      as_fn_error $? "unknown endianness
26752  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26753  esac
26754
26755
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26757 $as_echo_n "checking how to get filesystem type... " >&6; }
26758 fstype=no
26759 # The order of these tests is important.
26760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26761 /* end confdefs.h.  */
26762
26763        #include <sys/statvfs.h>
26764        #include <sys/fstyp.h>
26765
26766 _ACEOF
26767 if ac_fn_c_try_cpp "$LINENO"; then :
26768   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26769  fstype=SVR4
26770
26771 fi
26772 rm -f conftest.err conftest.i conftest.$ac_ext
26773 if test $fstype = no; then
26774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26775 /* end confdefs.h.  */
26776
26777           #include <sys/statfs.h>
26778           #include <sys/fstyp.h>
26779
26780 _ACEOF
26781 if ac_fn_c_try_cpp "$LINENO"; then :
26782   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26783  fstype=SVR3
26784
26785 fi
26786 rm -f conftest.err conftest.i conftest.$ac_ext
26787 fi
26788 if test $fstype = no; then
26789    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26790 /* end confdefs.h.  */
26791
26792           #include <sys/statfs.h>
26793           #include <sys/vmount.h>
26794
26795 _ACEOF
26796 if ac_fn_c_try_cpp "$LINENO"; then :
26797   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26798  fstype=AIX
26799
26800 fi
26801 rm -f conftest.err conftest.i conftest.$ac_ext
26802 fi
26803 if test $fstype = no; then
26804    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26805 /* end confdefs.h.  */
26806
26807           #include <mntent.h>
26808
26809 _ACEOF
26810 if ac_fn_c_try_cpp "$LINENO"; then :
26811   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26812  fstype=4.3BSD
26813
26814 fi
26815 rm -f conftest.err conftest.i conftest.$ac_ext
26816 fi
26817 if test $fstype = no; then
26818    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26819 /* end confdefs.h.  */
26820 #include <sys/mount.h>
26821
26822 _ACEOF
26823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26824   $EGREP "f_type;" >/dev/null 2>&1; then :
26825   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26826  fstype=4.4BSD/OSF1
26827 fi
26828 rm -f conftest*
26829
26830 fi
26831 if test $fstype = no; then
26832    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26833 /* end confdefs.h.  */
26834
26835           #include <sys/mount.h>
26836           #include <sys/fs_types.h>
26837
26838 _ACEOF
26839 if ac_fn_c_try_cpp "$LINENO"; then :
26840   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26841  fstype=Ultrix
26842
26843 fi
26844 rm -f conftest.err conftest.i conftest.$ac_ext
26845 fi
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26847 $as_echo "$fstype" >&6; }
26848
26849 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26850 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26851
26852 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26853
26854 fi
26855
26856
26857
26858 ac_ext=cpp
26859 ac_cpp='$CXXCPP $CPPFLAGS'
26860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26863
26864 for ac_func in backtrace
26865 do :
26866   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26867 if test "x$ac_cv_func_backtrace" = xyes; then :
26868   cat >>confdefs.h <<_ACEOF
26869 #define HAVE_BACKTRACE 1
26870 _ACEOF
26871
26872 fi
26873 done
26874
26875 ac_ext=c
26876 ac_cpp='$CPP $CPPFLAGS'
26877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26880
26881
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26883 $as_echo_n "checking return type of signal handlers... " >&6; }
26884 if ${ac_cv_type_signal+:} false; then :
26885   $as_echo_n "(cached) " >&6
26886 else
26887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26888 /* end confdefs.h.  */
26889 #include <sys/types.h>
26890 #include <signal.h>
26891
26892 int
26893 main ()
26894 {
26895 return *(signal (0, 0)) (0) == 1;
26896   ;
26897   return 0;
26898 }
26899 _ACEOF
26900 if ac_fn_c_try_compile "$LINENO"; then :
26901   ac_cv_type_signal=int
26902 else
26903   ac_cv_type_signal=void
26904 fi
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26906 fi
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26908 $as_echo "$ac_cv_type_signal" >&6; }
26909
26910 cat >>confdefs.h <<_ACEOF
26911 #define RETSIGTYPE $ac_cv_type_signal
26912 _ACEOF
26913
26914
26915
26916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26917 $as_echo_n "checking for type of signal functions... " >&6; }
26918   if ${bash_cv_signal_vintage+:} false; then :
26919   $as_echo_n "(cached) " >&6
26920 else
26921
26922     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26923 /* end confdefs.h.  */
26924 #include <signal.h>
26925 int
26926 main ()
26927 {
26928
26929       sigset_t ss;
26930       struct sigaction sa;
26931       sigemptyset(&ss); sigsuspend(&ss);
26932       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26933       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26934
26935   ;
26936   return 0;
26937 }
26938 _ACEOF
26939 if ac_fn_c_try_link "$LINENO"; then :
26940   bash_cv_signal_vintage="posix"
26941 else
26942
26943       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26944 /* end confdefs.h.  */
26945 #include <signal.h>
26946 int
26947 main ()
26948 {
26949
26950           int mask = sigmask(SIGINT);
26951           sigsetmask(mask); sigblock(mask); sigpause(mask);
26952
26953   ;
26954   return 0;
26955 }
26956 _ACEOF
26957 if ac_fn_c_try_link "$LINENO"; then :
26958   bash_cv_signal_vintage="4.2bsd"
26959 else
26960
26961         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h.  */
26963
26964           #include <signal.h>
26965           RETSIGTYPE foo() { }
26966 int
26967 main ()
26968 {
26969
26970                   int mask = sigmask(SIGINT);
26971                   sigset(SIGINT, foo); sigrelse(SIGINT);
26972                   sighold(SIGINT); sigpause(SIGINT);
26973
26974   ;
26975   return 0;
26976 }
26977 _ACEOF
26978 if ac_fn_c_try_link "$LINENO"; then :
26979   bash_cv_signal_vintage="svr3"
26980 else
26981   bash_cv_signal_vintage="v7"
26982
26983 fi
26984 rm -f core conftest.err conftest.$ac_objext \
26985     conftest$ac_exeext conftest.$ac_ext
26986
26987 fi
26988 rm -f core conftest.err conftest.$ac_objext \
26989     conftest$ac_exeext conftest.$ac_ext
26990
26991 fi
26992 rm -f core conftest.err conftest.$ac_objext \
26993     conftest$ac_exeext conftest.$ac_ext
26994
26995 fi
26996
26997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26998 $as_echo "$bash_cv_signal_vintage" >&6; }
26999   if test "$bash_cv_signal_vintage" = "posix"; then
27000     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27001
27002   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27003     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27004
27005   elif test "$bash_cv_signal_vintage" = "svr3"; then
27006     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27007
27008   fi
27009
27010 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27011 if test "x$ac_cv_type_mode_t" = xyes; then :
27012
27013 else
27014
27015 cat >>confdefs.h <<_ACEOF
27016 #define mode_t int
27017 _ACEOF
27018
27019 fi
27020
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27022 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27023 if ${ac_cv_type_uid_t+:} false; then :
27024   $as_echo_n "(cached) " >&6
27025 else
27026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27027 /* end confdefs.h.  */
27028 #include <sys/types.h>
27029
27030 _ACEOF
27031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27032   $EGREP "uid_t" >/dev/null 2>&1; then :
27033   ac_cv_type_uid_t=yes
27034 else
27035   ac_cv_type_uid_t=no
27036 fi
27037 rm -f conftest*
27038
27039 fi
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27041 $as_echo "$ac_cv_type_uid_t" >&6; }
27042 if test $ac_cv_type_uid_t = no; then
27043
27044 $as_echo "#define uid_t int" >>confdefs.h
27045
27046
27047 $as_echo "#define gid_t int" >>confdefs.h
27048
27049 fi
27050
27051 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27052 if test "x$ac_cv_type_size_t" = xyes; then :
27053
27054 else
27055
27056 cat >>confdefs.h <<_ACEOF
27057 #define size_t unsigned int
27058 _ACEOF
27059
27060 fi
27061
27062 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27063 if test "x$ac_cv_type_pid_t" = xyes; then :
27064
27065 else
27066
27067 cat >>confdefs.h <<_ACEOF
27068 #define pid_t int
27069 _ACEOF
27070
27071 fi
27072
27073 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27074 if test "x$ac_cv_type_off_t" = xyes; then :
27075
27076 else
27077
27078 cat >>confdefs.h <<_ACEOF
27079 #define off_t long int
27080 _ACEOF
27081
27082 fi
27083
27084
27085   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27086 if test "x$ac_cv_type_intptr_t" = xyes; then :
27087
27088 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27089
27090 else
27091   for ac_type in 'int' 'long int' 'long long int'; do
27092        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27093 /* end confdefs.h.  */
27094 $ac_includes_default
27095 int
27096 main ()
27097 {
27098 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27099 test_array [0] = 0
27100
27101   ;
27102   return 0;
27103 }
27104 _ACEOF
27105 if ac_fn_c_try_compile "$LINENO"; then :
27106
27107 cat >>confdefs.h <<_ACEOF
27108 #define intptr_t $ac_type
27109 _ACEOF
27110
27111           ac_type=
27112 fi
27113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27114        test -z "$ac_type" && break
27115      done
27116 fi
27117
27118
27119
27120   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27121 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27122
27123 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27124
27125 else
27126   for ac_type in 'unsigned int' 'unsigned long int' \
27127         'unsigned long long int'; do
27128        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27129 /* end confdefs.h.  */
27130 $ac_includes_default
27131 int
27132 main ()
27133 {
27134 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27135 test_array [0] = 0
27136
27137   ;
27138   return 0;
27139 }
27140 _ACEOF
27141 if ac_fn_c_try_compile "$LINENO"; then :
27142
27143 cat >>confdefs.h <<_ACEOF
27144 #define uintptr_t $ac_type
27145 _ACEOF
27146
27147           ac_type=
27148 fi
27149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27150        test -z "$ac_type" && break
27151      done
27152 fi
27153
27154
27155 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27156 if test "x$ac_cv_type_ino_t" = xyes; then :
27157
27158 else
27159
27160 cat >>confdefs.h <<_ACEOF
27161 #define ino_t unsigned long
27162 _ACEOF
27163
27164 fi
27165
27166 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27167 if test "x$ac_cv_type_dev_t" = xyes; then :
27168
27169 else
27170
27171 cat >>confdefs.h <<_ACEOF
27172 #define dev_t unsigned long
27173 _ACEOF
27174
27175 fi
27176
27177 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27178 if test "x$ac_cv_type_daddr_t" = xyes; then :
27179
27180 else
27181
27182 cat >>confdefs.h <<_ACEOF
27183 #define daddr_t long
27184 _ACEOF
27185
27186 fi
27187
27188 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27189 if test "x$ac_cv_type_major_t" = xyes; then :
27190
27191 else
27192
27193 cat >>confdefs.h <<_ACEOF
27194 #define major_t int
27195 _ACEOF
27196
27197 fi
27198
27199 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27200 if test "x$ac_cv_type_minor_t" = xyes; then :
27201
27202 else
27203
27204 cat >>confdefs.h <<_ACEOF
27205 #define minor_t int
27206 _ACEOF
27207
27208 fi
27209
27210 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27211 if test "x$ac_cv_type_ssize_t" = xyes; then :
27212
27213 else
27214
27215 cat >>confdefs.h <<_ACEOF
27216 #define ssize_t int
27217 _ACEOF
27218
27219 fi
27220
27221 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27222 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27223
27224 cat >>confdefs.h <<_ACEOF
27225 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27226 _ACEOF
27227
27228
27229 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27230
27231 else
27232   case " $LIBOBJS " in
27233   *" fileblocks.$ac_objext "* ) ;;
27234   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27235  ;;
27236 esac
27237
27238 fi
27239
27240
27241 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27242 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27243
27244 cat >>confdefs.h <<_ACEOF
27245 #define HAVE_STRUCT_STAT_ST_RDEV 1
27246 _ACEOF
27247
27248
27249 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27250
27251 fi
27252
27253
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27255 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27256 if ${ac_cv_struct_tm+:} false; then :
27257   $as_echo_n "(cached) " >&6
27258 else
27259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27260 /* end confdefs.h.  */
27261 #include <sys/types.h>
27262 #include <time.h>
27263
27264 int
27265 main ()
27266 {
27267 struct tm tm;
27268                                      int *p = &tm.tm_sec;
27269                                      return !p;
27270   ;
27271   return 0;
27272 }
27273 _ACEOF
27274 if ac_fn_c_try_compile "$LINENO"; then :
27275   ac_cv_struct_tm=time.h
27276 else
27277   ac_cv_struct_tm=sys/time.h
27278 fi
27279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27280 fi
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27282 $as_echo "$ac_cv_struct_tm" >&6; }
27283 if test $ac_cv_struct_tm = sys/time.h; then
27284
27285 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27286
27287 fi
27288
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27290 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27291 if ${ac_cv_c_const+:} false; then :
27292   $as_echo_n "(cached) " >&6
27293 else
27294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27295 /* end confdefs.h.  */
27296
27297 int
27298 main ()
27299 {
27300 /* FIXME: Include the comments suggested by Paul. */
27301 #ifndef __cplusplus
27302   /* Ultrix mips cc rejects this.  */
27303   typedef int charset[2];
27304   const charset cs;
27305   /* SunOS 4.1.1 cc rejects this.  */
27306   char const *const *pcpcc;
27307   char **ppc;
27308   /* NEC SVR4.0.2 mips cc rejects this.  */
27309   struct point {int x, y;};
27310   static struct point const zero = {0,0};
27311   /* AIX XL C 1.02.0.0 rejects this.
27312      It does not let you subtract one const X* pointer from another in
27313      an arm of an if-expression whose if-part is not a constant
27314      expression */
27315   const char *g = "string";
27316   pcpcc = &g + (g ? g-g : 0);
27317   /* HPUX 7.0 cc rejects these. */
27318   ++pcpcc;
27319   ppc = (char**) pcpcc;
27320   pcpcc = (char const *const *) ppc;
27321   { /* SCO 3.2v4 cc rejects this.  */
27322     char *t;
27323     char const *s = 0 ? (char *) 0 : (char const *) 0;
27324
27325     *t++ = 0;
27326     if (s) return 0;
27327   }
27328   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27329     int x[] = {25, 17};
27330     const int *foo = &x[0];
27331     ++foo;
27332   }
27333   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27334     typedef const int *iptr;
27335     iptr p = 0;
27336     ++p;
27337   }
27338   { /* AIX XL C 1.02.0.0 rejects this saying
27339        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27340     struct s { int j; const int *ap[3]; };
27341     struct s *b; b->j = 5;
27342   }
27343   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27344     const int foo = 10;
27345     if (!foo) return 0;
27346   }
27347   return !cs[0] && !zero.x;
27348 #endif
27349
27350   ;
27351   return 0;
27352 }
27353 _ACEOF
27354 if ac_fn_c_try_compile "$LINENO"; then :
27355   ac_cv_c_const=yes
27356 else
27357   ac_cv_c_const=no
27358 fi
27359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 fi
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27362 $as_echo "$ac_cv_c_const" >&6; }
27363 if test $ac_cv_c_const = no; then
27364
27365 $as_echo "#define const /**/" >>confdefs.h
27366
27367 fi
27368
27369
27370 # The cast to long int works around a bug in the HP C Compiler
27371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27373 # This bug is HP SR number 8606223364.
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27375 $as_echo_n "checking size of char... " >&6; }
27376 if ${ac_cv_sizeof_char+:} false; then :
27377   $as_echo_n "(cached) " >&6
27378 else
27379   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27380
27381 else
27382   if test "$ac_cv_type_char" = yes; then
27383      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27385 as_fn_error 77 "cannot compute sizeof (char)
27386 See \`config.log' for more details" "$LINENO" 5; }
27387    else
27388      ac_cv_sizeof_char=0
27389    fi
27390 fi
27391
27392 fi
27393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27394 $as_echo "$ac_cv_sizeof_char" >&6; }
27395
27396
27397
27398 cat >>confdefs.h <<_ACEOF
27399 #define SIZEOF_CHAR $ac_cv_sizeof_char
27400 _ACEOF
27401
27402
27403 # The cast to long int works around a bug in the HP C Compiler
27404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27406 # This bug is HP SR number 8606223364.
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27408 $as_echo_n "checking size of short int... " >&6; }
27409 if ${ac_cv_sizeof_short_int+:} false; then :
27410   $as_echo_n "(cached) " >&6
27411 else
27412   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27413
27414 else
27415   if test "$ac_cv_type_short_int" = yes; then
27416      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27418 as_fn_error 77 "cannot compute sizeof (short int)
27419 See \`config.log' for more details" "$LINENO" 5; }
27420    else
27421      ac_cv_sizeof_short_int=0
27422    fi
27423 fi
27424
27425 fi
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27427 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27428
27429
27430
27431 cat >>confdefs.h <<_ACEOF
27432 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27433 _ACEOF
27434
27435
27436 # The cast to long int works around a bug in the HP C Compiler
27437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27439 # This bug is HP SR number 8606223364.
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27441 $as_echo_n "checking size of int... " >&6; }
27442 if ${ac_cv_sizeof_int+:} false; then :
27443   $as_echo_n "(cached) " >&6
27444 else
27445   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27446
27447 else
27448   if test "$ac_cv_type_int" = yes; then
27449      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27451 as_fn_error 77 "cannot compute sizeof (int)
27452 See \`config.log' for more details" "$LINENO" 5; }
27453    else
27454      ac_cv_sizeof_int=0
27455    fi
27456 fi
27457
27458 fi
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27460 $as_echo "$ac_cv_sizeof_int" >&6; }
27461
27462
27463
27464 cat >>confdefs.h <<_ACEOF
27465 #define SIZEOF_INT $ac_cv_sizeof_int
27466 _ACEOF
27467
27468
27469 # The cast to long int works around a bug in the HP C Compiler
27470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27472 # This bug is HP SR number 8606223364.
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27474 $as_echo_n "checking size of long int... " >&6; }
27475 if ${ac_cv_sizeof_long_int+:} false; then :
27476   $as_echo_n "(cached) " >&6
27477 else
27478   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27479
27480 else
27481   if test "$ac_cv_type_long_int" = yes; then
27482      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27484 as_fn_error 77 "cannot compute sizeof (long int)
27485 See \`config.log' for more details" "$LINENO" 5; }
27486    else
27487      ac_cv_sizeof_long_int=0
27488    fi
27489 fi
27490
27491 fi
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27493 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27494
27495
27496
27497 cat >>confdefs.h <<_ACEOF
27498 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27499 _ACEOF
27500
27501
27502 # The cast to long int works around a bug in the HP C Compiler
27503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27504 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27505 # This bug is HP SR number 8606223364.
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27507 $as_echo_n "checking size of long long int... " >&6; }
27508 if ${ac_cv_sizeof_long_long_int+:} false; then :
27509   $as_echo_n "(cached) " >&6
27510 else
27511   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27512
27513 else
27514   if test "$ac_cv_type_long_long_int" = yes; then
27515      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27517 as_fn_error 77 "cannot compute sizeof (long long int)
27518 See \`config.log' for more details" "$LINENO" 5; }
27519    else
27520      ac_cv_sizeof_long_long_int=0
27521    fi
27522 fi
27523
27524 fi
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27526 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27527
27528
27529
27530 cat >>confdefs.h <<_ACEOF
27531 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27532 _ACEOF
27533
27534
27535 # The cast to long int works around a bug in the HP C Compiler
27536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27538 # This bug is HP SR number 8606223364.
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27540 $as_echo_n "checking size of int *... " >&6; }
27541 if ${ac_cv_sizeof_int_p+:} false; then :
27542   $as_echo_n "(cached) " >&6
27543 else
27544   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27545
27546 else
27547   if test "$ac_cv_type_int_p" = yes; then
27548      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27550 as_fn_error 77 "cannot compute sizeof (int *)
27551 See \`config.log' for more details" "$LINENO" 5; }
27552    else
27553      ac_cv_sizeof_int_p=0
27554    fi
27555 fi
27556
27557 fi
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27559 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27560
27561
27562
27563 cat >>confdefs.h <<_ACEOF
27564 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27565 _ACEOF
27566
27567
27568
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27570 $as_echo_n "checking for u_int type... " >&6; }
27571 if ${ac_cv_have_u_int+:} false; then :
27572   $as_echo_n "(cached) " >&6
27573 else
27574
27575        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27576 /* end confdefs.h.  */
27577
27578               #include <sys/types.h>
27579
27580 int
27581 main ()
27582 {
27583
27584               u_int a; a = 1;
27585
27586   ;
27587   return 0;
27588 }
27589 _ACEOF
27590 if ac_fn_c_try_compile "$LINENO"; then :
27591
27592               ac_cv_have_u_int="yes"
27593
27594 else
27595
27596               ac_cv_have_u_int="no"
27597
27598
27599 fi
27600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27601
27602
27603 fi
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27605 $as_echo "$ac_cv_have_u_int" >&6; }
27606 if test "x$ac_cv_have_u_int" = "xyes" ; then
27607    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27608
27609    have_u_int=1
27610 fi
27611
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27613 $as_echo_n "checking for intmax_t type... " >&6; }
27614 if ${ac_cv_have_intmax_t+:} false; then :
27615   $as_echo_n "(cached) " >&6
27616 else
27617
27618        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27619 /* end confdefs.h.  */
27620
27621               #include <sys/types.h>
27622
27623 int
27624 main ()
27625 {
27626
27627               intmax_t a; a = 1;
27628
27629   ;
27630   return 0;
27631 }
27632 _ACEOF
27633 if ac_fn_c_try_compile "$LINENO"; then :
27634
27635               ac_cv_have_intmax_t="yes"
27636
27637 else
27638
27639               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27640 /* end confdefs.h.  */
27641
27642                      #include <stdint.h>
27643
27644 int
27645 main ()
27646 {
27647
27648                      intmax_t a; a = 1;
27649
27650   ;
27651   return 0;
27652 }
27653 _ACEOF
27654 if ac_fn_c_try_compile "$LINENO"; then :
27655
27656                      ac_cv_have_intmax_t="yes"
27657
27658 else
27659
27660                      ac_cv_have_intmax_t="no"
27661
27662
27663 fi
27664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27665
27666
27667 fi
27668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27669
27670
27671 fi
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27673 $as_echo "$ac_cv_have_intmax_t" >&6; }
27674 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27675    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27676
27677    have_intmax_t=1
27678 fi
27679
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27681 $as_echo_n "checking for u_intmax_t type... " >&6; }
27682 if ${ac_cv_have_u_intmax_t+:} false; then :
27683   $as_echo_n "(cached) " >&6
27684 else
27685
27686        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27687 /* end confdefs.h.  */
27688
27689               #include <sys/types.h>
27690
27691 int
27692 main ()
27693 {
27694
27695               u_intmax_t a; a = 1;
27696
27697   ;
27698   return 0;
27699 }
27700 _ACEOF
27701 if ac_fn_c_try_compile "$LINENO"; then :
27702
27703               ac_cv_have_u_intmax_t="yes"
27704
27705 else
27706
27707               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27708 /* end confdefs.h.  */
27709
27710                      #include <stdint.h>
27711
27712 int
27713 main ()
27714 {
27715
27716                     u_intmax_t a; a = 1;
27717
27718   ;
27719   return 0;
27720 }
27721 _ACEOF
27722 if ac_fn_c_try_compile "$LINENO"; then :
27723
27724                     ac_cv_have_u_intmax_t="yes"
27725
27726 else
27727
27728                     ac_cv_have_u_intmax_t="no"
27729
27730
27731 fi
27732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27733
27734
27735 fi
27736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27737
27738
27739 fi
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27741 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27742 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27743    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27744
27745    have_u_intmax_t=1
27746 fi
27747
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27749 $as_echo_n "checking for intXX_t types... " >&6; }
27750 if ${ac_cv_have_intxx_t+:} false; then :
27751   $as_echo_n "(cached) " >&6
27752 else
27753
27754        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27755 /* end confdefs.h.  */
27756
27757               #include <sys/types.h>
27758
27759 int
27760 main ()
27761 {
27762
27763               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27764
27765   ;
27766   return 0;
27767 }
27768 _ACEOF
27769 if ac_fn_c_try_compile "$LINENO"; then :
27770
27771               ac_cv_have_intxx_t="yes"
27772
27773 else
27774
27775               ac_cv_have_intxx_t="no"
27776
27777
27778 fi
27779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27780
27781
27782 fi
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27784 $as_echo "$ac_cv_have_intxx_t" >&6; }
27785 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27786    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27787
27788    have_intxx_t=1
27789 fi
27790
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27792 $as_echo_n "checking for int64_t type... " >&6; }
27793 if ${ac_cv_have_int64_t+:} false; then :
27794   $as_echo_n "(cached) " >&6
27795 else
27796
27797        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27798 /* end confdefs.h.  */
27799
27800               #include <sys/types.h>
27801
27802 int
27803 main ()
27804 {
27805
27806               int64_t a; a = 1;
27807
27808   ;
27809   return 0;
27810 }
27811 _ACEOF
27812 if ac_fn_c_try_compile "$LINENO"; then :
27813
27814               ac_cv_have_int64_t="yes"
27815
27816 else
27817
27818               ac_cv_have_int64_t="no"
27819
27820
27821 fi
27822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27823
27824
27825 fi
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27827 $as_echo "$ac_cv_have_int64_t" >&6; }
27828 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27829    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27830
27831    have_int64_t=1
27832 fi
27833
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27835 $as_echo_n "checking for u_intXX_t types... " >&6; }
27836 if ${ac_cv_have_u_intxx_t+:} false; then :
27837   $as_echo_n "(cached) " >&6
27838 else
27839
27840        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27841 /* end confdefs.h.  */
27842
27843               #include <sys/types.h>
27844
27845 int
27846 main ()
27847 {
27848
27849               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27850
27851   ;
27852   return 0;
27853 }
27854 _ACEOF
27855 if ac_fn_c_try_compile "$LINENO"; then :
27856
27857              ac_cv_have_u_intxx_t="yes"
27858
27859 else
27860
27861              ac_cv_have_u_intxx_t="no"
27862
27863
27864 fi
27865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27866
27867
27868 fi
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27870 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27871 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27872    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27873
27874    have_u_intxx_t=1
27875 fi
27876
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27878 $as_echo_n "checking for u_int64_t types... " >&6; }
27879 if ${ac_cv_have_u_int64_t+:} false; then :
27880   $as_echo_n "(cached) " >&6
27881 else
27882
27883        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27884 /* end confdefs.h.  */
27885
27886               #include <sys/types.h>
27887
27888 int
27889 main ()
27890 {
27891
27892               u_int64_t a; a = 1;
27893
27894   ;
27895   return 0;
27896 }
27897 _ACEOF
27898 if ac_fn_c_try_compile "$LINENO"; then :
27899
27900              ac_cv_have_u_int64_t="yes"
27901
27902 else
27903
27904              ac_cv_have_u_int64_t="no"
27905
27906
27907 fi
27908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27909
27910
27911 fi
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27913 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27914 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27915    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27916
27917    have_u_int64_t=1
27918 fi
27919
27920 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27921     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27922 then
27923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27924 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27925    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27926 /* end confdefs.h.  */
27927
27928           #include <sys/bitypes.h>
27929
27930 int
27931 main ()
27932 {
27933
27934           int8_t a; int16_t b; int32_t c;
27935           u_int8_t e; u_int16_t f; u_int32_t g;
27936           a = b = c = e = f = g = 1;
27937
27938   ;
27939   return 0;
27940 }
27941 _ACEOF
27942 if ac_fn_c_try_compile "$LINENO"; then :
27943
27944           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27945
27946           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27947
27948           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27949
27950           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27951 $as_echo "yes" >&6; }
27952
27953 else
27954
27955           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27956 $as_echo "no" >&6; }
27957
27958
27959 fi
27960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27961 fi
27962
27963 if test -z "$have_u_intxx_t" ; then
27964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27965 $as_echo_n "checking for uintXX_t types... " >&6; }
27966 if ${ac_cv_have_uintxx_t+:} false; then :
27967   $as_echo_n "(cached) " >&6
27968 else
27969
27970           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27971 /* end confdefs.h.  */
27972
27973                  #include <sys/types.h>
27974
27975 int
27976 main ()
27977 {
27978
27979                  uint8_t a; uint16_t b;
27980                  uint32_t c; a = b = c = 1;
27981
27982   ;
27983   return 0;
27984 }
27985 _ACEOF
27986 if ac_fn_c_try_compile "$LINENO"; then :
27987
27988                 ac_cv_have_uintxx_t="yes"
27989
27990 else
27991
27992                 ac_cv_have_uintxx_t="no"
27993
27994
27995 fi
27996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27997
27998
27999 fi
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28001 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28002    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28003       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28004
28005    fi
28006 fi
28007
28008 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28009     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28010 then
28011    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28012 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28014 /* end confdefs.h.  */
28015
28016           #include <sys/bitypes.h>
28017
28018 int
28019 main ()
28020 {
28021
28022           int64_t a; u_int64_t b;
28023           a = b = 1;
28024
28025   ;
28026   return 0;
28027 }
28028 _ACEOF
28029 if ac_fn_c_try_compile "$LINENO"; then :
28030
28031           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28032
28033           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28034
28035           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28036 $as_echo "yes" >&6; }
28037
28038 else
28039
28040           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28041 $as_echo "no" >&6; }
28042
28043
28044 fi
28045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28046 fi
28047
28048 if (test -z "$have_uintxx_t" && \
28049     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28050 then
28051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28052 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28054 /* end confdefs.h.  */
28055
28056           #include <sys/bitypes.h>
28057
28058 int
28059 main ()
28060 {
28061
28062           uint8_t a; uint16_t b;
28063           uint32_t c; a = b = c = 1;
28064
28065   ;
28066   return 0;
28067 }
28068 _ACEOF
28069 if ac_fn_c_try_compile "$LINENO"; then :
28070
28071           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28072
28073           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28074 $as_echo "yes" >&6; }
28075
28076 else
28077
28078           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28079 $as_echo "no" >&6; }
28080
28081
28082 fi
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28084 fi
28085
28086 for ac_func in \
28087    fork \
28088    getcwd \
28089    gethostname \
28090    getpid \
28091    gettimeofday \
28092    setpgid \
28093    setpgrp \
28094    setsid \
28095    signal \
28096    strerror \
28097    strncmp \
28098    strncpy \
28099    vfprintf \
28100
28101 do :
28102   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28105   cat >>confdefs.h <<_ACEOF
28106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28107 _ACEOF
28108
28109 else
28110   echo 'configure: cannot find needed function.'; exit 1
28111
28112 fi
28113 done
28114
28115
28116 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28117
28118 "
28119 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28120
28121 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28122
28123 fi
28124
28125
28126 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28127 if test "x$ac_cv_func_closefrom" = xyes; then :
28128
28129 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28130
28131 fi
28132
28133 for ac_func in getpagesize
28134 do :
28135   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28136 if test "x$ac_cv_func_getpagesize" = xyes; then :
28137   cat >>confdefs.h <<_ACEOF
28138 #define HAVE_GETPAGESIZE 1
28139 _ACEOF
28140
28141 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28142
28143 fi
28144 done
28145
28146 for ac_func in malloc_trim
28147 do :
28148   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28149 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28150   cat >>confdefs.h <<_ACEOF
28151 #define HAVE_MALLOC_TRIM 1
28152 _ACEOF
28153
28154 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28155
28156 fi
28157 done
28158
28159
28160 for ac_func in fchdir
28161 do :
28162   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28163 if test "x$ac_cv_func_fchdir" = xyes; then :
28164   cat >>confdefs.h <<_ACEOF
28165 #define HAVE_FCHDIR 1
28166 _ACEOF
28167  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28168
28169 fi
28170 done
28171
28172 for ac_func in strtoll
28173 do :
28174   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28175 if test "x$ac_cv_func_strtoll" = xyes; then :
28176   cat >>confdefs.h <<_ACEOF
28177 #define HAVE_STRTOLL 1
28178 _ACEOF
28179  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28180
28181 fi
28182 done
28183
28184 for ac_func in posix_fadvise
28185 do :
28186   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28187 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28188   cat >>confdefs.h <<_ACEOF
28189 #define HAVE_POSIX_FADVISE 1
28190 _ACEOF
28191
28192 fi
28193 done
28194
28195 for ac_func in fdatasync
28196 do :
28197   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28198 if test "x$ac_cv_func_fdatasync" = xyes; then :
28199   cat >>confdefs.h <<_ACEOF
28200 #define HAVE_FDATASYNC 1
28201 _ACEOF
28202
28203 fi
28204 done
28205
28206
28207 for ac_func in chflags
28208 do :
28209   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28210 if test "x$ac_cv_func_chflags" = xyes; then :
28211   cat >>confdefs.h <<_ACEOF
28212 #define HAVE_CHFLAGS 1
28213 _ACEOF
28214
28215 fi
28216 done
28217
28218
28219 for ac_func in snprintf vsnprintf gethostid fseeko
28220 do :
28221   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28223 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28224   cat >>confdefs.h <<_ACEOF
28225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28226 _ACEOF
28227
28228 fi
28229 done
28230
28231
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28233 $as_echo_n "checking for va_copy... " >&6; }
28234 if ${ba_cv_va_copy+:} false; then :
28235   $as_echo_n "(cached) " >&6
28236 else
28237
28238        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28239 /* end confdefs.h.  */
28240
28241               #include <stdarg.h>
28242               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28243               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28244
28245 int
28246 main ()
28247 {
28248
28249               call_use_va_copy(1,2,3)
28250
28251   ;
28252   return 0;
28253 }
28254 _ACEOF
28255 if ac_fn_c_try_link "$LINENO"; then :
28256
28257               ba_cv_va_copy=yes
28258
28259 else
28260
28261               ba_cv_va_copy=no
28262
28263
28264 fi
28265 rm -f core conftest.err conftest.$ac_objext \
28266     conftest$ac_exeext conftest.$ac_ext
28267
28268
28269 fi
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28271 $as_echo "$ba_cv_va_copy" >&6; }
28272 test $ba_cv_va_copy = yes &&
28273 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28274
28275
28276 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28277 do :
28278   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28280 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28281   cat >>confdefs.h <<_ACEOF
28282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28283 _ACEOF
28284
28285 fi
28286 done
28287
28288
28289 # If resolver functions are not in libc check for -lnsl or -lresolv.
28290 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28291 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28293 $as_echo "using libc's resolver" >&6; }
28294 else
28295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28296 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28297 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28298   $as_echo_n "(cached) " >&6
28299 else
28300   ac_check_lib_save_LIBS=$LIBS
28301 LIBS="-lnsl  $LIBS"
28302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28303 /* end confdefs.h.  */
28304
28305 /* Override any GCC internal prototype to avoid an error.
28306    Use char because int might match the return type of a GCC
28307    builtin and then its argument prototype would still apply.  */
28308 #ifdef __cplusplus
28309 extern "C"
28310 #endif
28311 char gethostbyname_r ();
28312 int
28313 main ()
28314 {
28315 return gethostbyname_r ();
28316   ;
28317   return 0;
28318 }
28319 _ACEOF
28320 if ac_fn_c_try_link "$LINENO"; then :
28321   ac_cv_lib_nsl_gethostbyname_r=yes
28322 else
28323   ac_cv_lib_nsl_gethostbyname_r=no
28324 fi
28325 rm -f core conftest.err conftest.$ac_objext \
28326     conftest$ac_exeext conftest.$ac_ext
28327 LIBS=$ac_check_lib_save_LIBS
28328 fi
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28330 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28331 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28332   cat >>confdefs.h <<_ACEOF
28333 #define HAVE_LIBNSL 1
28334 _ACEOF
28335
28336   LIBS="-lnsl $LIBS"
28337
28338 fi
28339
28340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28341 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28342 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28343   $as_echo_n "(cached) " >&6
28344 else
28345   ac_check_lib_save_LIBS=$LIBS
28346 LIBS="-lresolv  $LIBS"
28347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28348 /* end confdefs.h.  */
28349
28350 /* Override any GCC internal prototype to avoid an error.
28351    Use char because int might match the return type of a GCC
28352    builtin and then its argument prototype would still apply.  */
28353 #ifdef __cplusplus
28354 extern "C"
28355 #endif
28356 char gethostbyname_r ();
28357 int
28358 main ()
28359 {
28360 return gethostbyname_r ();
28361   ;
28362   return 0;
28363 }
28364 _ACEOF
28365 if ac_fn_c_try_link "$LINENO"; then :
28366   ac_cv_lib_resolv_gethostbyname_r=yes
28367 else
28368   ac_cv_lib_resolv_gethostbyname_r=no
28369 fi
28370 rm -f core conftest.err conftest.$ac_objext \
28371     conftest$ac_exeext conftest.$ac_ext
28372 LIBS=$ac_check_lib_save_LIBS
28373 fi
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28375 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28376 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28377   cat >>confdefs.h <<_ACEOF
28378 #define HAVE_LIBRESOLV 1
28379 _ACEOF
28380
28381   LIBS="-lresolv $LIBS"
28382
28383 fi
28384
28385 fi
28386
28387
28388 for ac_func in inet_pton
28389 do :
28390   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28391 if test "x$ac_cv_func_inet_pton" = xyes; then :
28392   cat >>confdefs.h <<_ACEOF
28393 #define HAVE_INET_PTON 1
28394 _ACEOF
28395  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28396
28397 fi
28398 done
28399
28400 for ac_func in inet_ntop
28401 do :
28402   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28403 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28404   cat >>confdefs.h <<_ACEOF
28405 #define HAVE_INET_NTOP 1
28406 _ACEOF
28407  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28408
28409 fi
28410 done
28411
28412 for ac_func in gethostbyname2
28413 do :
28414   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28415 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28416   cat >>confdefs.h <<_ACEOF
28417 #define HAVE_GETHOSTBYNAME2 1
28418 _ACEOF
28419  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28420
28421 fi
28422 done
28423
28424 for ac_func in getnameinfo
28425 do :
28426   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28427 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28428   cat >>confdefs.h <<_ACEOF
28429 #define HAVE_GETNAMEINFO 1
28430 _ACEOF
28431  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28432
28433 fi
28434 done
28435
28436
28437
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28439 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28440 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28441   $as_echo_n "(cached) " >&6
28442 else
28443
28444        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28445 /* end confdefs.h.  */
28446
28447               #include <sys/socket.h>
28448
28449 int
28450 main ()
28451 {
28452
28453               struct sockaddr s; s.sa_len;
28454
28455   ;
28456   return 0;
28457 }
28458 _ACEOF
28459 if ac_fn_c_try_compile "$LINENO"; then :
28460
28461              ac_cv_struct_sockaddr_sa_len=yes
28462
28463 else
28464   ac_cv_struct_sockaddr_sa_len=no
28465
28466
28467 fi
28468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28469
28470
28471 fi
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28473 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28474
28475 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28476
28477 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28478
28479 fi
28480
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28482 $as_echo_n "checking for working getaddrinfo... " >&6; }
28483 if ${ac_cv_working_getaddrinfo+:} false; then :
28484   $as_echo_n "(cached) " >&6
28485 else
28486
28487        if test "$cross_compiling" = yes; then :
28488
28489               ac_cv_working_getaddrinfo="yes"
28490
28491
28492 else
28493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28494 /* end confdefs.h.  */
28495
28496               #include <netdb.h>
28497               #include <string.h>
28498               #include <sys/types.h>
28499               #include <sys/socket.h>
28500
28501               void main(void) {
28502                   struct addrinfo hints, *ai;
28503                   int error;
28504
28505                   memset(&hints, 0, sizeof(hints));
28506                   hints.ai_family = AF_UNSPEC;
28507                   hints.ai_socktype = SOCK_STREAM;
28508                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28509                   if (error) {
28510                       exit(1);
28511                   }
28512                   if (ai->ai_addr->sa_family != AF_INET) {
28513                       exit(1);
28514                   }
28515                   exit(0);
28516               }
28517
28518 _ACEOF
28519 if ac_fn_c_try_run "$LINENO"; then :
28520
28521               ac_cv_working_getaddrinfo="yes"
28522
28523 else
28524
28525               ac_cv_working_getaddrinfo="no"
28526
28527 fi
28528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28529   conftest.$ac_objext conftest.beam conftest.$ac_ext
28530 fi
28531
28532
28533
28534 fi
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28536 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28537 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28538 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28539
28540 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28541
28542 fi
28543
28544
28545 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28546   if test "$ac_cv_func_gai_strerror" != "yes"; then
28547     ac_cv_working_getaddrinfo="no"
28548   else
28549
28550 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28551
28552   fi
28553 fi
28554
28555 for ac_func in strftime
28556 do :
28557   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28558 if test "x$ac_cv_func_strftime" = xyes; then :
28559   cat >>confdefs.h <<_ACEOF
28560 #define HAVE_STRFTIME 1
28561 _ACEOF
28562
28563 else
28564   # strftime is in -lintl on SCO UNIX.
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28566 $as_echo_n "checking for strftime in -lintl... " >&6; }
28567 if ${ac_cv_lib_intl_strftime+:} false; then :
28568   $as_echo_n "(cached) " >&6
28569 else
28570   ac_check_lib_save_LIBS=$LIBS
28571 LIBS="-lintl  $LIBS"
28572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28573 /* end confdefs.h.  */
28574
28575 /* Override any GCC internal prototype to avoid an error.
28576    Use char because int might match the return type of a GCC
28577    builtin and then its argument prototype would still apply.  */
28578 #ifdef __cplusplus
28579 extern "C"
28580 #endif
28581 char strftime ();
28582 int
28583 main ()
28584 {
28585 return strftime ();
28586   ;
28587   return 0;
28588 }
28589 _ACEOF
28590 if ac_fn_c_try_link "$LINENO"; then :
28591   ac_cv_lib_intl_strftime=yes
28592 else
28593   ac_cv_lib_intl_strftime=no
28594 fi
28595 rm -f core conftest.err conftest.$ac_objext \
28596     conftest$ac_exeext conftest.$ac_ext
28597 LIBS=$ac_check_lib_save_LIBS
28598 fi
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28600 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28601 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28602   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28603
28604 LIBS="-lintl $LIBS"
28605 fi
28606
28607 fi
28608 done
28609
28610 for ac_func in vprintf
28611 do :
28612   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28613 if test "x$ac_cv_func_vprintf" = xyes; then :
28614   cat >>confdefs.h <<_ACEOF
28615 #define HAVE_VPRINTF 1
28616 _ACEOF
28617
28618 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28619 if test "x$ac_cv_func__doprnt" = xyes; then :
28620
28621 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28622
28623 fi
28624
28625 fi
28626 done
28627
28628
28629 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28630 # for constant arguments.  Useless!
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28632 $as_echo_n "checking for working alloca.h... " >&6; }
28633 if ${ac_cv_working_alloca_h+:} false; then :
28634   $as_echo_n "(cached) " >&6
28635 else
28636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28637 /* end confdefs.h.  */
28638 #include <alloca.h>
28639 int
28640 main ()
28641 {
28642 char *p = (char *) alloca (2 * sizeof (int));
28643                           if (p) return 0;
28644   ;
28645   return 0;
28646 }
28647 _ACEOF
28648 if ac_fn_c_try_link "$LINENO"; then :
28649   ac_cv_working_alloca_h=yes
28650 else
28651   ac_cv_working_alloca_h=no
28652 fi
28653 rm -f core conftest.err conftest.$ac_objext \
28654     conftest$ac_exeext conftest.$ac_ext
28655 fi
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28657 $as_echo "$ac_cv_working_alloca_h" >&6; }
28658 if test $ac_cv_working_alloca_h = yes; then
28659
28660 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28661
28662 fi
28663
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28665 $as_echo_n "checking for alloca... " >&6; }
28666 if ${ac_cv_func_alloca_works+:} false; then :
28667   $as_echo_n "(cached) " >&6
28668 else
28669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28670 /* end confdefs.h.  */
28671 #ifdef __GNUC__
28672 # define alloca __builtin_alloca
28673 #else
28674 # ifdef _MSC_VER
28675 #  include <malloc.h>
28676 #  define alloca _alloca
28677 # else
28678 #  ifdef HAVE_ALLOCA_H
28679 #   include <alloca.h>
28680 #  else
28681 #   ifdef _AIX
28682  #pragma alloca
28683 #   else
28684 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28685 void *alloca (size_t);
28686 #    endif
28687 #   endif
28688 #  endif
28689 # endif
28690 #endif
28691
28692 int
28693 main ()
28694 {
28695 char *p = (char *) alloca (1);
28696                                     if (p) return 0;
28697   ;
28698   return 0;
28699 }
28700 _ACEOF
28701 if ac_fn_c_try_link "$LINENO"; then :
28702   ac_cv_func_alloca_works=yes
28703 else
28704   ac_cv_func_alloca_works=no
28705 fi
28706 rm -f core conftest.err conftest.$ac_objext \
28707     conftest$ac_exeext conftest.$ac_ext
28708 fi
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28710 $as_echo "$ac_cv_func_alloca_works" >&6; }
28711
28712 if test $ac_cv_func_alloca_works = yes; then
28713
28714 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28715
28716 else
28717   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28718 # that cause trouble.  Some versions do not even contain alloca or
28719 # contain a buggy version.  If you still want to use their alloca,
28720 # use ar to extract alloca.o from them instead of compiling alloca.c.
28721
28722 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28723
28724 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28725
28726
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28728 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28729 if ${ac_cv_os_cray+:} false; then :
28730   $as_echo_n "(cached) " >&6
28731 else
28732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28733 /* end confdefs.h.  */
28734 #if defined CRAY && ! defined CRAY2
28735 webecray
28736 #else
28737 wenotbecray
28738 #endif
28739
28740 _ACEOF
28741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28742   $EGREP "webecray" >/dev/null 2>&1; then :
28743   ac_cv_os_cray=yes
28744 else
28745   ac_cv_os_cray=no
28746 fi
28747 rm -f conftest*
28748
28749 fi
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28751 $as_echo "$ac_cv_os_cray" >&6; }
28752 if test $ac_cv_os_cray = yes; then
28753   for ac_func in _getb67 GETB67 getb67; do
28754     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28756 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28757
28758 cat >>confdefs.h <<_ACEOF
28759 #define CRAY_STACKSEG_END $ac_func
28760 _ACEOF
28761
28762     break
28763 fi
28764
28765   done
28766 fi
28767
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28769 $as_echo_n "checking stack direction for C alloca... " >&6; }
28770 if ${ac_cv_c_stack_direction+:} false; then :
28771   $as_echo_n "(cached) " >&6
28772 else
28773   if test "$cross_compiling" = yes; then :
28774   ac_cv_c_stack_direction=0
28775 else
28776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28777 /* end confdefs.h.  */
28778 $ac_includes_default
28779 int
28780 find_stack_direction ()
28781 {
28782   static char *addr = 0;
28783   auto char dummy;
28784   if (addr == 0)
28785     {
28786       addr = &dummy;
28787       return find_stack_direction ();
28788     }
28789   else
28790     return (&dummy > addr) ? 1 : -1;
28791 }
28792
28793 int
28794 main ()
28795 {
28796   return find_stack_direction () < 0;
28797 }
28798 _ACEOF
28799 if ac_fn_c_try_run "$LINENO"; then :
28800   ac_cv_c_stack_direction=1
28801 else
28802   ac_cv_c_stack_direction=-1
28803 fi
28804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28805   conftest.$ac_objext conftest.beam conftest.$ac_ext
28806 fi
28807
28808 fi
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28810 $as_echo "$ac_cv_c_stack_direction" >&6; }
28811 cat >>confdefs.h <<_ACEOF
28812 #define STACK_DIRECTION $ac_cv_c_stack_direction
28813 _ACEOF
28814
28815
28816 fi
28817
28818 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28819 # -lseq on Dynix/PTX, -lgen on Unixware.
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28821 $as_echo_n "checking for library containing getmntent... " >&6; }
28822 if ${ac_cv_search_getmntent+:} false; then :
28823   $as_echo_n "(cached) " >&6
28824 else
28825   ac_func_search_save_LIBS=$LIBS
28826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28827 /* end confdefs.h.  */
28828
28829 /* Override any GCC internal prototype to avoid an error.
28830    Use char because int might match the return type of a GCC
28831    builtin and then its argument prototype would still apply.  */
28832 #ifdef __cplusplus
28833 extern "C"
28834 #endif
28835 char getmntent ();
28836 int
28837 main ()
28838 {
28839 return getmntent ();
28840   ;
28841   return 0;
28842 }
28843 _ACEOF
28844 for ac_lib in '' sun seq gen; do
28845   if test -z "$ac_lib"; then
28846     ac_res="none required"
28847   else
28848     ac_res=-l$ac_lib
28849     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28850   fi
28851   if ac_fn_c_try_link "$LINENO"; then :
28852   ac_cv_search_getmntent=$ac_res
28853 fi
28854 rm -f core conftest.err conftest.$ac_objext \
28855     conftest$ac_exeext
28856   if ${ac_cv_search_getmntent+:} false; then :
28857   break
28858 fi
28859 done
28860 if ${ac_cv_search_getmntent+:} false; then :
28861
28862 else
28863   ac_cv_search_getmntent=no
28864 fi
28865 rm conftest.$ac_ext
28866 LIBS=$ac_func_search_save_LIBS
28867 fi
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28869 $as_echo "$ac_cv_search_getmntent" >&6; }
28870 ac_res=$ac_cv_search_getmntent
28871 if test "$ac_res" != no; then :
28872   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28873   ac_cv_func_getmntent=yes
28874
28875 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28876
28877 else
28878   ac_cv_func_getmntent=no
28879 fi
28880
28881
28882 for ac_func in getmntinfo
28883 do :
28884   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28885 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28886   cat >>confdefs.h <<_ACEOF
28887 #define HAVE_GETMNTINFO 1
28888 _ACEOF
28889  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28890
28891 fi
28892 done
28893
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28895 $as_echo_n "checking whether closedir returns void... " >&6; }
28896 if ${ac_cv_func_closedir_void+:} false; then :
28897   $as_echo_n "(cached) " >&6
28898 else
28899   if test "$cross_compiling" = yes; then :
28900   ac_cv_func_closedir_void=yes
28901 else
28902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28903 /* end confdefs.h.  */
28904 $ac_includes_default
28905 #include <$ac_header_dirent>
28906 #ifndef __cplusplus
28907 int closedir ();
28908 #endif
28909
28910 int
28911 main ()
28912 {
28913 return closedir (opendir (".")) != 0;
28914   ;
28915   return 0;
28916 }
28917 _ACEOF
28918 if ac_fn_c_try_run "$LINENO"; then :
28919   ac_cv_func_closedir_void=no
28920 else
28921   ac_cv_func_closedir_void=yes
28922 fi
28923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28924   conftest.$ac_objext conftest.beam conftest.$ac_ext
28925 fi
28926
28927 fi
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28929 $as_echo "$ac_cv_func_closedir_void" >&6; }
28930 if test $ac_cv_func_closedir_void = yes; then
28931
28932 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28933
28934 fi
28935
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28937 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28938 if ${ac_cv_func_setpgrp_void+:} false; then :
28939   $as_echo_n "(cached) " >&6
28940 else
28941   if test "$cross_compiling" = yes; then :
28942   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28943 else
28944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28945 /* end confdefs.h.  */
28946 $ac_includes_default
28947 int
28948 main ()
28949 {
28950 /* If this system has a BSD-style setpgrp which takes arguments,
28951   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28952   exit successfully. */
28953   return setpgrp (1,1) != -1;
28954   ;
28955   return 0;
28956 }
28957 _ACEOF
28958 if ac_fn_c_try_run "$LINENO"; then :
28959   ac_cv_func_setpgrp_void=no
28960 else
28961   ac_cv_func_setpgrp_void=yes
28962 fi
28963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28964   conftest.$ac_objext conftest.beam conftest.$ac_ext
28965 fi
28966
28967 fi
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28969 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28970 if test $ac_cv_func_setpgrp_void = yes; then
28971
28972 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28973
28974 fi
28975             # AC_FUNC_FNMATCH    dnl use local version
28976
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28978 $as_echo_n "checking for gettext in -lintl... " >&6; }
28979 if ${ac_cv_lib_intl_gettext+:} false; then :
28980   $as_echo_n "(cached) " >&6
28981 else
28982   ac_check_lib_save_LIBS=$LIBS
28983 LIBS="-lintl  $LIBS"
28984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28985 /* end confdefs.h.  */
28986
28987 /* Override any GCC internal prototype to avoid an error.
28988    Use char because int might match the return type of a GCC
28989    builtin and then its argument prototype would still apply.  */
28990 #ifdef __cplusplus
28991 extern "C"
28992 #endif
28993 char gettext ();
28994 int
28995 main ()
28996 {
28997 return gettext ();
28998   ;
28999   return 0;
29000 }
29001 _ACEOF
29002 if ac_fn_c_try_link "$LINENO"; then :
29003   ac_cv_lib_intl_gettext=yes
29004 else
29005   ac_cv_lib_intl_gettext=no
29006 fi
29007 rm -f core conftest.err conftest.$ac_objext \
29008     conftest$ac_exeext conftest.$ac_ext
29009 LIBS=$ac_check_lib_save_LIBS
29010 fi
29011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29012 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29013 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29014   LIBS="$LIBS -lintl"
29015 fi
29016
29017
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29019 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29020 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29021   $as_echo_n "(cached) " >&6
29022 else
29023   ac_check_lib_save_LIBS=$LIBS
29024 LIBS="-lsun  $LIBS"
29025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29026 /* end confdefs.h.  */
29027
29028 /* Override any GCC internal prototype to avoid an error.
29029    Use char because int might match the return type of a GCC
29030    builtin and then its argument prototype would still apply.  */
29031 #ifdef __cplusplus
29032 extern "C"
29033 #endif
29034 char getpwnam ();
29035 int
29036 main ()
29037 {
29038 return getpwnam ();
29039   ;
29040   return 0;
29041 }
29042 _ACEOF
29043 if ac_fn_c_try_link "$LINENO"; then :
29044   ac_cv_lib_sun_getpwnam=yes
29045 else
29046   ac_cv_lib_sun_getpwnam=no
29047 fi
29048 rm -f core conftest.err conftest.$ac_objext \
29049     conftest$ac_exeext conftest.$ac_ext
29050 LIBS=$ac_check_lib_save_LIBS
29051 fi
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29053 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29054 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29055   cat >>confdefs.h <<_ACEOF
29056 #define HAVE_LIBSUN 1
29057 _ACEOF
29058
29059   LIBS="-lsun $LIBS"
29060
29061 fi
29062
29063
29064 for ac_header in zlib.h
29065 do :
29066   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29067 if test "x$ac_cv_header_zlib_h" = xyes; then :
29068   cat >>confdefs.h <<_ACEOF
29069 #define HAVE_ZLIB_H 1
29070 _ACEOF
29071
29072 fi
29073
29074 done
29075
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29077 $as_echo_n "checking for deflate in -lz... " >&6; }
29078 if ${ac_cv_lib_z_deflate+:} false; then :
29079   $as_echo_n "(cached) " >&6
29080 else
29081   ac_check_lib_save_LIBS=$LIBS
29082 LIBS="-lz  $LIBS"
29083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29084 /* end confdefs.h.  */
29085
29086 /* Override any GCC internal prototype to avoid an error.
29087    Use char because int might match the return type of a GCC
29088    builtin and then its argument prototype would still apply.  */
29089 #ifdef __cplusplus
29090 extern "C"
29091 #endif
29092 char deflate ();
29093 int
29094 main ()
29095 {
29096 return deflate ();
29097   ;
29098   return 0;
29099 }
29100 _ACEOF
29101 if ac_fn_c_try_link "$LINENO"; then :
29102   ac_cv_lib_z_deflate=yes
29103 else
29104   ac_cv_lib_z_deflate=no
29105 fi
29106 rm -f core conftest.err conftest.$ac_objext \
29107     conftest$ac_exeext conftest.$ac_ext
29108 LIBS=$ac_check_lib_save_LIBS
29109 fi
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29111 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29112 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29113   ZLIBS="-lz"
29114 fi
29115
29116 have_zlib=no
29117 if test x$ZLIBS = x-lz; then
29118    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29119
29120    have_zlib=yes
29121 fi
29122
29123
29124 AFS_CFLAGS=""
29125 AFS_LIBS=""
29126 support_afs=auto
29127 # Check whether --enable-afs was given.
29128 if test "${enable_afs+set}" = set; then :
29129   enableval=$enable_afs;
29130        if test x$enableval = xyes; then
29131           support_afs=yes
29132        elif test x$enableval = xno; then
29133           support_afs=no
29134        fi
29135
29136
29137 fi
29138
29139
29140 have_afs=no
29141 if test x$support_afs = xyes -o x$support_afs = xauto; then
29142
29143 # Check whether --with-afsdir was given.
29144 if test "${with_afsdir+set}" = set; then :
29145   withval=$with_afsdir; with_afsdir=$withval
29146
29147 fi
29148
29149
29150             if test x$with_afsdir = x; then
29151       for root in /usr /usr/local; do
29152          if test -d ${root}/include/afs/ ; then
29153             with_afsdir=${root}
29154             break
29155          fi
29156          if test -d ${root}/include/openafs/afs/ ; then
29157             with_afsdir=${root}
29158             break
29159          fi
29160       done
29161    fi
29162
29163    if test -d ${with_afsdir}/include/afs/ ; then
29164       AFS_CFLAGS="-I${with_afsdir}/include"
29165    else
29166       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29167          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29168       fi
29169    fi
29170
29171    saved_CFLAGS="${CFLAGS}"
29172    saved_CPPFLAGS="${CPPFLAGS}"
29173    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29174    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29175
29176    for ac_header in afs/afsint.h
29177 do :
29178   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29179 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29180   cat >>confdefs.h <<_ACEOF
29181 #define HAVE_AFS_AFSINT_H 1
29182 _ACEOF
29183
29184 fi
29185
29186 done
29187
29188    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29189 /* end confdefs.h.  */
29190
29191           #include <afs/afsint.h>
29192           #include <afs/venus.h>
29193
29194 _ACEOF
29195 if ac_fn_c_try_cpp "$LINENO"; then :
29196
29197 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29198
29199
29200 fi
29201 rm -f conftest.err conftest.i conftest.$ac_ext
29202
29203    CFLAGS="${saved_CFLAGS}"
29204    CPPFLAGS="${saved_CPPFLAGS}"
29205
29206             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29207 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29208    for dir in ${with_afsdir}/lib \
29209               ${with_afsdir}/lib/afs \
29210               ${with_afsdir}/lib/openafs \
29211               ${with_afsdir}/lib64 \
29212               ${with_afsdir}/lib64/afs \
29213               ${with_afsdir}/lib64/openafs
29214    do
29215       for arch_type in .a .so
29216       do
29217          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29218          pkg=$?
29219          if test $pkg = 0; then
29220             have_afs=yes
29221             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29222             break
29223          fi
29224       done
29225    done
29226
29227    if test $have_afs = yes; then
29228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29229 $as_echo "yes" >&6; }
29230    else
29231       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29232 $as_echo "no" >&6; }
29233    fi
29234
29235    if test x$support_afs = xyes -a $have_afs != yes; then
29236       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29237   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29238    else
29239       if test $have_afs = yes; then
29240
29241 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29242
29243
29244 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29245
29246       fi
29247    fi
29248 fi
29249
29250
29251
29252
29253 # Check whether --enable-lzo was given.
29254 if test "${enable_lzo+set}" = set; then :
29255   enableval=$enable_lzo;
29256        if test x$enableval = xno; then
29257           support_lzo=no
29258        fi
29259
29260
29261 fi
29262
29263
29264 LZO_INC=
29265 LZO_LIBS=
29266 LZO_LDFLAGS=
29267
29268 have_lzo="no"
29269 if test x$support_lzo = xyes; then
29270
29271 # Check whether --with-lzo was given.
29272 if test "${with_lzo+set}" = set; then :
29273   withval=$with_lzo;
29274           case "$with_lzo" in
29275           no)
29276              :
29277              ;;
29278           yes|*)
29279              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29280                 LZO_INC="-I${with_lzo}/include"
29281                 LZO_LDFLAGS="-L${with_lzo}/lib"
29282                 with_lzo="${with_lzo}/include"
29283              else
29284                 with_lzo="/usr/include"
29285              fi
29286
29287              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29288 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29290
29291
29292 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29293
29294                     LZO_LIBS="${LZO_LDFLAGS} -lzo2"
29295                     have_lzo="yes"
29296
29297 else
29298
29299                     echo " "
29300                     echo "lzoconf.h not found. lzo turned off ..."
29301                     echo " "
29302
29303
29304 fi
29305
29306
29307              ;;
29308           esac
29309
29310 else
29311
29312          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29313 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29314
29315             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29316 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29317
29318                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29319 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29320 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29321   $as_echo_n "(cached) " >&6
29322 else
29323   ac_check_lib_save_LIBS=$LIBS
29324 LIBS="-llzo2  $LIBS"
29325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29326 /* end confdefs.h.  */
29327
29328 /* Override any GCC internal prototype to avoid an error.
29329    Use char because int might match the return type of a GCC
29330    builtin and then its argument prototype would still apply.  */
29331 #ifdef __cplusplus
29332 extern "C"
29333 #endif
29334 char lzo1x_1_compress ();
29335 int
29336 main ()
29337 {
29338 return lzo1x_1_compress ();
29339   ;
29340   return 0;
29341 }
29342 _ACEOF
29343 if ac_fn_c_try_link "$LINENO"; then :
29344   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29345 else
29346   ac_cv_lib_lzo2_lzo1x_1_compress=no
29347 fi
29348 rm -f core conftest.err conftest.$ac_objext \
29349     conftest$ac_exeext conftest.$ac_ext
29350 LIBS=$ac_check_lib_save_LIBS
29351 fi
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29353 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29354 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29355
29356                  LZO_LIBS="-llzo2"
29357
29358 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29359
29360                  have_lzo=yes
29361
29362 fi
29363
29364
29365 fi
29366
29367
29368
29369 fi
29370
29371
29372
29373 fi
29374
29375 fi
29376
29377
29378
29379
29380
29381 support_acl=auto
29382 # Check whether --enable-acl was given.
29383 if test "${enable_acl+set}" = set; then :
29384   enableval=$enable_acl;
29385        if test x$enableval = xyes; then
29386           support_acl=yes
29387        elif test x$enableval = xno; then
29388           support_acl=no
29389        fi
29390
29391
29392 fi
29393
29394
29395 have_acl=no
29396 have_extended_acl=no
29397 if test x$support_acl = xyes -o x$support_acl = xauto; then
29398    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29399 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29400
29401 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29402
29403 fi
29404
29405
29406
29407             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29408 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29409
29410           have_acl=yes
29411
29412
29413 fi
29414
29415
29416             if test $have_acl = no; then
29417       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29418 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29419 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29420   $as_echo_n "(cached) " >&6
29421 else
29422   ac_check_lib_save_LIBS=$LIBS
29423 LIBS="-lacl  $LIBS"
29424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29425 /* end confdefs.h.  */
29426
29427 /* Override any GCC internal prototype to avoid an error.
29428    Use char because int might match the return type of a GCC
29429    builtin and then its argument prototype would still apply.  */
29430 #ifdef __cplusplus
29431 extern "C"
29432 #endif
29433 char acl_get_file ();
29434 int
29435 main ()
29436 {
29437 return acl_get_file ();
29438   ;
29439   return 0;
29440 }
29441 _ACEOF
29442 if ac_fn_c_try_link "$LINENO"; then :
29443   ac_cv_lib_acl_acl_get_file=yes
29444 else
29445   ac_cv_lib_acl_acl_get_file=no
29446 fi
29447 rm -f core conftest.err conftest.$ac_objext \
29448     conftest$ac_exeext conftest.$ac_ext
29449 LIBS=$ac_check_lib_save_LIBS
29450 fi
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29452 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29453 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29454
29455              have_acl=yes
29456              if test $have_afs = yes; then
29457                                                                 if test -d /usr/lib64/; then
29458                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29459                 else
29460                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29461                 fi
29462              else
29463                 FDLIBS="-lacl $FDLIBS"
29464              fi
29465
29466
29467 fi
29468
29469    fi
29470
29471                if test $have_acl = no -a \
29472            x${HAVE_OSF1_OS_TRUE} = x; then
29473       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29474 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29475 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29476   $as_echo_n "(cached) " >&6
29477 else
29478   ac_check_lib_save_LIBS=$LIBS
29479 LIBS="-lpacl  $LIBS"
29480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29481 /* end confdefs.h.  */
29482
29483 /* Override any GCC internal prototype to avoid an error.
29484    Use char because int might match the return type of a GCC
29485    builtin and then its argument prototype would still apply.  */
29486 #ifdef __cplusplus
29487 extern "C"
29488 #endif
29489 char acl_get_file ();
29490 int
29491 main ()
29492 {
29493 return acl_get_file ();
29494   ;
29495   return 0;
29496 }
29497 _ACEOF
29498 if ac_fn_c_try_link "$LINENO"; then :
29499   ac_cv_lib_pacl_acl_get_file=yes
29500 else
29501   ac_cv_lib_pacl_acl_get_file=no
29502 fi
29503 rm -f core conftest.err conftest.$ac_objext \
29504     conftest$ac_exeext conftest.$ac_ext
29505 LIBS=$ac_check_lib_save_LIBS
29506 fi
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29508 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29509 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29510
29511              have_acl=yes
29512              FDLIBS="-lpacl $FDLIBS"
29513
29514
29515 fi
29516
29517
29518       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29519 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29520       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29521       if test $? = 0; then
29522
29523 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29524
29525          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29526 $as_echo "yes" >&6; }
29527       else
29528          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29529 $as_echo "no" >&6; }
29530       fi
29531    fi
29532
29533             if test $have_acl = yes -a \
29534            x${HAVE_DARWIN_OS_TRUE} = x; then
29535       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29536 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29537       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29538       if test $? = 0; then
29539
29540 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29541
29542          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29543 $as_echo "yes" >&6; }
29544       else
29545          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546 $as_echo "no" >&6; }
29547       fi
29548    fi
29549
29550             if test $have_acl = yes -a \
29551            x${HAVE_FREEBSD_OS_TRUE} = x; then
29552       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29553 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29554       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29555       if test $? = 0; then
29556
29557 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29558
29559          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29560 $as_echo "yes" >&6; }
29561       else
29562          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29563 $as_echo "no" >&6; }
29564       fi
29565    fi
29566
29567             if test $have_acl = no -a \
29568            x${HAVE_SUN_OS_TRUE} = x; then
29569       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29570 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29571 if ${ac_cv_lib_sec_acltotext+:} false; then :
29572   $as_echo_n "(cached) " >&6
29573 else
29574   ac_check_lib_save_LIBS=$LIBS
29575 LIBS="-lsec  $LIBS"
29576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29577 /* end confdefs.h.  */
29578
29579 /* Override any GCC internal prototype to avoid an error.
29580    Use char because int might match the return type of a GCC
29581    builtin and then its argument prototype would still apply.  */
29582 #ifdef __cplusplus
29583 extern "C"
29584 #endif
29585 char acltotext ();
29586 int
29587 main ()
29588 {
29589 return acltotext ();
29590   ;
29591   return 0;
29592 }
29593 _ACEOF
29594 if ac_fn_c_try_link "$LINENO"; then :
29595   ac_cv_lib_sec_acltotext=yes
29596 else
29597   ac_cv_lib_sec_acltotext=no
29598 fi
29599 rm -f core conftest.err conftest.$ac_objext \
29600     conftest$ac_exeext conftest.$ac_ext
29601 LIBS=$ac_check_lib_save_LIBS
29602 fi
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29604 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29605 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29606
29607              have_acl=yes
29608              FDLIBS="-lsec $FDLIBS"
29609
29610              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29611 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29612 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29613   $as_echo_n "(cached) " >&6
29614 else
29615   ac_check_lib_save_LIBS=$LIBS
29616 LIBS="-lsec  $LIBS"
29617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29618 /* end confdefs.h.  */
29619
29620 /* Override any GCC internal prototype to avoid an error.
29621    Use char because int might match the return type of a GCC
29622    builtin and then its argument prototype would still apply.  */
29623 #ifdef __cplusplus
29624 extern "C"
29625 #endif
29626 char acl_totext ();
29627 int
29628 main ()
29629 {
29630 return acl_totext ();
29631   ;
29632   return 0;
29633 }
29634 _ACEOF
29635 if ac_fn_c_try_link "$LINENO"; then :
29636   ac_cv_lib_sec_acl_totext=yes
29637 else
29638   ac_cv_lib_sec_acl_totext=no
29639 fi
29640 rm -f core conftest.err conftest.$ac_objext \
29641     conftest$ac_exeext conftest.$ac_ext
29642 LIBS=$ac_check_lib_save_LIBS
29643 fi
29644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29645 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29646 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29647
29648                     have_extended_acl=yes
29649
29650
29651 fi
29652
29653
29654
29655 fi
29656
29657    fi
29658
29659             if test $have_acl = no -a \
29660            x${HAVE_AIX_OS_TRUE} = x; then
29661       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29662 if test "x$ac_cv_func_acl_get" = xyes; then :
29663
29664              have_acl=yes
29665
29666              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29667 if test "x$ac_cv_func_aclx_get" = xyes; then :
29668
29669                     have_extended_acl=yes
29670
29671
29672 fi
29673
29674
29675
29676 fi
29677
29678    fi
29679
29680    if test x$support_acl = xyes -a $have_acl != yes; then
29681       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29682   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29683    else
29684       if test $have_acl = yes; then
29685
29686 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29687
29688       fi
29689
29690       if test $have_extended_acl = yes; then
29691
29692 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29693
29694       fi
29695    fi
29696 fi
29697
29698 support_xattr=auto
29699 # Check whether --enable-xattr was given.
29700 if test "${enable_xattr+set}" = set; then :
29701   enableval=$enable_xattr;
29702        if test x$enableval = xyes; then
29703           support_xattr=yes
29704        elif test x$enableval = xno; then
29705           support_xattr=no
29706        fi
29707
29708
29709 fi
29710
29711
29712 have_xattr=no
29713 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29714                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29715            x${HAVE_NETBSD_OS_TRUE} = x -o \
29716            x${HAVE_OPENBSD_OS_TRUE} = x; then
29717       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29718 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29719
29720 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29721
29722 fi
29723
29724
29725       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29726 if test "x$ac_cv_header_libutil_h" = xyes; then :
29727
29728 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29729
29730 fi
29731
29732
29733       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29734 do :
29735   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29737 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29738   cat >>confdefs.h <<_ACEOF
29739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29740 _ACEOF
29741
29742              have_xattr=yes
29743
29744 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29745
29746
29747 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29748
29749
29750 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29751
29752
29753
29754 fi
29755 done
29756
29757
29758       if test $have_xattr = no; then
29759          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29760 do :
29761   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29762 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29763 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29764   cat >>confdefs.h <<_ACEOF
29765 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29766 _ACEOF
29767
29768                 have_xattr=yes
29769
29770 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29771
29772
29773 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29774
29775
29776 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29777
29778
29779
29780 fi
29781 done
29782
29783       fi
29784
29785       if test $have_xattr = yes; then
29786          have_extattr_string_in_libc=no
29787          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29788 do :
29789   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29792   cat >>confdefs.h <<_ACEOF
29793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29794 _ACEOF
29795
29796                 have_extattr_string_in_libc=yes
29797
29798 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29799
29800
29801 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29802
29803
29804
29805 fi
29806 done
29807
29808
29809                                  if test $have_extattr_string_in_libc = no; then
29810             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29811 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29812 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29813   $as_echo_n "(cached) " >&6
29814 else
29815   ac_check_lib_save_LIBS=$LIBS
29816 LIBS="-lutil  $LIBS"
29817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29818 /* end confdefs.h.  */
29819
29820 /* Override any GCC internal prototype to avoid an error.
29821    Use char because int might match the return type of a GCC
29822    builtin and then its argument prototype would still apply.  */
29823 #ifdef __cplusplus
29824 extern "C"
29825 #endif
29826 char extattr_namespace_to_string extattr_string_to_namespace ();
29827 int
29828 main ()
29829 {
29830 return extattr_namespace_to_string extattr_string_to_namespace ();
29831   ;
29832   return 0;
29833 }
29834 _ACEOF
29835 if ac_fn_c_try_link "$LINENO"; then :
29836   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29837 else
29838   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29839 fi
29840 rm -f core conftest.err conftest.$ac_objext \
29841     conftest$ac_exeext conftest.$ac_ext
29842 LIBS=$ac_check_lib_save_LIBS
29843 fi
29844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29845 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29846 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29847
29848
29849 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29850
29851
29852 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29853
29854                    FDLIBS="-lutil $FDLIBS"
29855
29856
29857 fi
29858
29859          fi
29860       fi
29861    fi
29862
29863                if test $have_xattr = no -a \
29864            x${HAVE_AIX_OS_TRUE} = x; then
29865       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29866 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29867
29868 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29869
29870 fi
29871
29872
29873       for ac_func in llistea lgetea lsetea
29874 do :
29875   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29876 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29877 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29878   cat >>confdefs.h <<_ACEOF
29879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29880 _ACEOF
29881
29882              have_xattr=yes
29883
29884 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29885
29886
29887 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29888
29889
29890 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29891
29892
29893
29894 fi
29895 done
29896
29897
29898       if test $have_xattr = no; then
29899          for ac_func in listea getea setea
29900 do :
29901   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29904   cat >>confdefs.h <<_ACEOF
29905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29906 _ACEOF
29907
29908                 have_xattr=yes
29909
29910 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29911
29912
29913 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29914
29915
29916 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29917
29918
29919
29920 fi
29921 done
29922
29923       fi
29924    fi
29925
29926                if test $have_xattr = no -a \
29927            x${HAVE_OSF1_OS_TRUE} = x; then
29928       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29929 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29930
29931 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29932
29933 fi
29934
29935
29936       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29937 do :
29938   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29939 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29940 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29941   cat >>confdefs.h <<_ACEOF
29942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29943 _ACEOF
29944
29945              have_xattr=yes
29946
29947 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29948
29949
29950 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29951
29952
29953 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29954
29955
29956 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29957
29958
29959 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29960
29961
29962
29963 fi
29964 done
29965
29966    fi
29967
29968                if test $have_xattr = no -a \
29969            x${HAVE_SUN_OS_TRUE} = x; then
29970       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29971 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29972
29973 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29974
29975 fi
29976
29977
29978       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29979 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29980
29981 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29982
29983 fi
29984
29985
29986       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29987 if test "x$ac_cv_header_attr_h" = xyes; then :
29988
29989 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29990
29991 fi
29992
29993
29994
29995       for ac_func in openat fstatat unlinkat fchownat futimesat
29996 do :
29997   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29999 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30000   cat >>confdefs.h <<_ACEOF
30001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30002 _ACEOF
30003
30004              have_xattr=yes
30005
30006 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30007
30008
30009 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30010
30011
30012 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30013
30014
30015 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30016
30017
30018 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30019
30020
30021
30022 fi
30023 done
30024
30025
30026       if test $have_xattr = yes; then
30027          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30028 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30029 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30030   $as_echo_n "(cached) " >&6
30031 else
30032   ac_check_lib_save_LIBS=$LIBS
30033 LIBS="-lnvpair  $LIBS"
30034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30035 /* end confdefs.h.  */
30036
30037 /* Override any GCC internal prototype to avoid an error.
30038    Use char because int might match the return type of a GCC
30039    builtin and then its argument prototype would still apply.  */
30040 #ifdef __cplusplus
30041 extern "C"
30042 #endif
30043 char nvlist_next_nvpair ();
30044 int
30045 main ()
30046 {
30047 return nvlist_next_nvpair ();
30048   ;
30049   return 0;
30050 }
30051 _ACEOF
30052 if ac_fn_c_try_link "$LINENO"; then :
30053   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30054 else
30055   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30056 fi
30057 rm -f core conftest.err conftest.$ac_objext \
30058     conftest$ac_exeext conftest.$ac_ext
30059 LIBS=$ac_check_lib_save_LIBS
30060 fi
30061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30062 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30063 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30064
30065
30066 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30067
30068                 FDLIBS="-lnvpair $FDLIBS"
30069
30070
30071 fi
30072
30073       fi
30074    fi
30075
30076             if test $have_xattr = no; then
30077       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30078 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30079
30080 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30081
30082 fi
30083
30084
30085       for ac_func in llistxattr lgetxattr lsetxattr
30086 do :
30087   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30088 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30089 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30090   cat >>confdefs.h <<_ACEOF
30091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30092 _ACEOF
30093
30094              have_xattr=yes
30095
30096 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30097
30098
30099 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30100
30101
30102 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30103
30104
30105
30106 fi
30107 done
30108
30109
30110       if test $have_xattr = no; then
30111          for ac_func in listxattr getxattr setxattr
30112 do :
30113   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30114 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30115 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30116   cat >>confdefs.h <<_ACEOF
30117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30118 _ACEOF
30119
30120                 have_xattr=yes
30121
30122 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30123
30124
30125 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30126
30127
30128 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30129
30130
30131
30132 fi
30133 done
30134
30135       fi
30136    fi
30137
30138    if test x$support_xattr = xyes -a $have_xattr != yes; then
30139       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30140   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30141    else
30142       if test $have_xattr = yes; then
30143
30144 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30145
30146       fi
30147    fi
30148 fi
30149
30150 PTHREAD_LIB=""
30151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30152 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30153 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30154   $as_echo_n "(cached) " >&6
30155 else
30156   ac_check_lib_save_LIBS=$LIBS
30157 LIBS="-lpthread  $LIBS"
30158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30159 /* end confdefs.h.  */
30160
30161 /* Override any GCC internal prototype to avoid an error.
30162    Use char because int might match the return type of a GCC
30163    builtin and then its argument prototype would still apply.  */
30164 #ifdef __cplusplus
30165 extern "C"
30166 #endif
30167 char pthread_create ();
30168 int
30169 main ()
30170 {
30171 return pthread_create ();
30172   ;
30173   return 0;
30174 }
30175 _ACEOF
30176 if ac_fn_c_try_link "$LINENO"; then :
30177   ac_cv_lib_pthread_pthread_create=yes
30178 else
30179   ac_cv_lib_pthread_pthread_create=no
30180 fi
30181 rm -f core conftest.err conftest.$ac_objext \
30182     conftest$ac_exeext conftest.$ac_ext
30183 LIBS=$ac_check_lib_save_LIBS
30184 fi
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30186 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30187 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30188   PTHREAD_LIB="-lpthread"
30189 else
30190
30191        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30192 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30193 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30194   $as_echo_n "(cached) " >&6
30195 else
30196   ac_check_lib_save_LIBS=$LIBS
30197 LIBS="-lpthreads  $LIBS"
30198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30199 /* end confdefs.h.  */
30200
30201 /* Override any GCC internal prototype to avoid an error.
30202    Use char because int might match the return type of a GCC
30203    builtin and then its argument prototype would still apply.  */
30204 #ifdef __cplusplus
30205 extern "C"
30206 #endif
30207 char pthread_create ();
30208 int
30209 main ()
30210 {
30211 return pthread_create ();
30212   ;
30213   return 0;
30214 }
30215 _ACEOF
30216 if ac_fn_c_try_link "$LINENO"; then :
30217   ac_cv_lib_pthreads_pthread_create=yes
30218 else
30219   ac_cv_lib_pthreads_pthread_create=no
30220 fi
30221 rm -f core conftest.err conftest.$ac_objext \
30222     conftest$ac_exeext conftest.$ac_ext
30223 LIBS=$ac_check_lib_save_LIBS
30224 fi
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30226 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30227 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30228   PTHREAD_LIB="-lpthreads"
30229 else
30230
30231               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30232 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30233 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30234   $as_echo_n "(cached) " >&6
30235 else
30236   ac_check_lib_save_LIBS=$LIBS
30237 LIBS="-lc_r  $LIBS"
30238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30239 /* end confdefs.h.  */
30240
30241 /* Override any GCC internal prototype to avoid an error.
30242    Use char because int might match the return type of a GCC
30243    builtin and then its argument prototype would still apply.  */
30244 #ifdef __cplusplus
30245 extern "C"
30246 #endif
30247 char pthread_create ();
30248 int
30249 main ()
30250 {
30251 return pthread_create ();
30252   ;
30253   return 0;
30254 }
30255 _ACEOF
30256 if ac_fn_c_try_link "$LINENO"; then :
30257   ac_cv_lib_c_r_pthread_create=yes
30258 else
30259   ac_cv_lib_c_r_pthread_create=no
30260 fi
30261 rm -f core conftest.err conftest.$ac_objext \
30262     conftest$ac_exeext conftest.$ac_ext
30263 LIBS=$ac_check_lib_save_LIBS
30264 fi
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30266 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30267 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30268   PTHREAD_LIB="-lc_r"
30269 else
30270
30271                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30272 if test "x$ac_cv_func_pthread_create" = xyes; then :
30273
30274 fi
30275
30276
30277
30278 fi
30279
30280
30281
30282 fi
30283
30284
30285
30286 fi
30287
30288
30289 for ac_header in sys/prctl.h sys/capability.h
30290 do :
30291   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30292 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30293 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30294   cat >>confdefs.h <<_ACEOF
30295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30296 _ACEOF
30297
30298 fi
30299
30300 done
30301
30302 for ac_func in prctl setreuid
30303 do :
30304   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30305 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30306 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30307   cat >>confdefs.h <<_ACEOF
30308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30309 _ACEOF
30310
30311 fi
30312 done
30313
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30315 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30316 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30317   $as_echo_n "(cached) " >&6
30318 else
30319   ac_check_lib_save_LIBS=$LIBS
30320 LIBS="-lcap  $LIBS"
30321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30322 /* end confdefs.h.  */
30323
30324 /* Override any GCC internal prototype to avoid an error.
30325    Use char because int might match the return type of a GCC
30326    builtin and then its argument prototype would still apply.  */
30327 #ifdef __cplusplus
30328 extern "C"
30329 #endif
30330 char cap_set_proc ();
30331 int
30332 main ()
30333 {
30334 return cap_set_proc ();
30335   ;
30336   return 0;
30337 }
30338 _ACEOF
30339 if ac_fn_c_try_link "$LINENO"; then :
30340   ac_cv_lib_cap_cap_set_proc=yes
30341 else
30342   ac_cv_lib_cap_cap_set_proc=no
30343 fi
30344 rm -f core conftest.err conftest.$ac_objext \
30345     conftest$ac_exeext conftest.$ac_ext
30346 LIBS=$ac_check_lib_save_LIBS
30347 fi
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30349 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30350 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30351   CAP_LIBS="-lcap"
30352 else
30353   CAP_LIBS=
30354 fi
30355
30356 if test x$CAP_LIBS = x-lcap; then
30357
30358 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30359
30360 fi
30361
30362
30363
30364 $as_echo "#define FDLIBS 1" >>confdefs.h
30365
30366
30367 CFLAGS=${CFLAGS--O}
30368
30369 if test x$have_gcc = xyes ; then
30370    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30371    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30372 fi
30373 LDFLAGS=${LDFLAGS--O}
30374 CPPFLAGS="$CPPFLAGS"
30375 CFLAGS="$CFLAGS"
30376
30377
30378
30379
30380
30381
30382
30383
30384
30385
30386
30387
30388
30389
30390
30391 OBJLIST=
30392
30393
30394 lld="lld"
30395 llu="llu"
30396
30397 WCFLAGS=
30398 WLDFLAGS=
30399
30400 PFILES="platforms/Makefile"
30401 PSCMD="ps -e"
30402 MACOSX=
30403 COMPRESS_MANPAGES=yes
30404
30405 case "$DISTNAME" in
30406 aix)
30407    DISTVER=`uname -r`
30408    PSCMD="ps -e -o pid,comm"
30409    PFILES="${PFILES} \
30410       platforms/aix/Makefile"
30411    TAPEDRIVE="/dev/rmt0.1"
30412   ;;
30413 alpha)
30414    DISTVER=`uname -r`
30415    PTHREAD_LIB="-lpthread -lexc"
30416    if test "${CC}" = "gcc" ; then
30417       lld="lld"
30418       llu="llu"
30419    else
30420       lld="ld"
30421       llu="lu"
30422    fi
30423    TAPEDRIVE="/dev/nrmt0"
30424   ;;
30425 bsdi)
30426    DISTVER=`uname -a |awk '{print $3}'`
30427    TAPEDRIVE="/dev/nrmt0"
30428    PTHREAD_LIB="-pthread"
30429    CFLAGS="${CFLAGS} -pthread"
30430    PSCMD="ps -ax -o pid,command"
30431    lld="qd"
30432    llu="qu"
30433    PFILES="${PFILES} \
30434        platforms/bsdi/Makefile \
30435        platforms/bsdi/bacula-fd \
30436        platforms/bsdi/bacula-sd \
30437        platforms/bsdi/bacula-dir"
30438    largefile_support="yes"
30439   ;;
30440 darwin)
30441    DISTVER=`uname -r`
30442    TAPEDRIVE="/dev/nst0"
30443    PSCMD="ps -e -o pid,command"
30444    MACOSX=macosx
30445    PFILES="${PFILES} \
30446       platforms/darwin/Makefile"
30447   ;;
30448 osx)
30449    DISTVER=`uname -r`
30450    TAPEDRIVE="/dev/nst0"
30451    PSCMD="ps -e -o pid,command"
30452    MACOSX=macosx
30453    PFILES="${PFILES} \
30454       platforms/osx/Makefile"
30455   ;;
30456 debian)
30457    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30458       DISTNAME="ubuntu"
30459    fi
30460    DISTVER=`cat /etc/debian_version`
30461    if test -f /etc/lsb-release ; then
30462       . /etc/lsb-release
30463       if test "x$DISTRIB_ID" != "x" ; then
30464          DISTNAME=$DISTRIB_ID
30465       fi
30466       if test "x$DISTRIB_RELEASE" != "x" ; then
30467          DISTVER=$DISTRIB_RELEASE
30468       fi
30469    fi
30470    if test "$DISTNAME" = "Ubuntu" ; then
30471       DISTNAME="ubuntu"
30472    fi
30473    TAPEDRIVE="/dev/nst0"
30474    PSCMD="ps -e -o pid,command"
30475    if test "$DISTNAME" = "ubuntu" ; then
30476       PFILES="${PFILES} \
30477          platforms/ubuntu/Makefile \
30478          platforms/ubuntu/bacula-fd \
30479          platforms/ubuntu/bacula-sd \
30480          platforms/ubuntu/bacula-dir"
30481    else
30482       PFILES="${PFILES} \
30483          platforms/debian/Makefile \
30484          platforms/debian/bacula-fd \
30485          platforms/debian/bacula-sd \
30486          platforms/debian/bacula-dir"
30487    fi
30488   ;;
30489 freebsd)
30490    DISTVER=`uname -a |awk '{print $3}'`
30491    VER=`echo $DISTVER | cut -c 1`
30492    if test x$VER = x4 ; then
30493       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30494       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30495    fi
30496    lld="qd"
30497    llu="qu"
30498    TAPEDRIVE="/dev/nrsa0"
30499    PSCMD="ps -ax -o pid,command"
30500    PFILES="${PFILES} \
30501        platforms/freebsd/Makefile \
30502        platforms/freebsd/bacula-fd \
30503        platforms/freebsd/bacula-sd \
30504        platforms/freebsd/bacula-dir"
30505    largefile_support="yes"
30506   ;;
30507 hurd)
30508    DISTVER=`uname -r`
30509    TAPEDRIVE="/dev/nst0"
30510    PSCMD="ps -e -o pid,command"
30511    PFILES="${PFILES} \
30512        platforms/hurd/Makefile \
30513        platforms/hurd/bacula-fd \
30514        platforms/hurd/bacula-sd \
30515        platforms/hurd/bacula-dir"
30516   ;;
30517 hpux)
30518    PSCMD="UNIX95=1; ps -e -o pid,comm"
30519    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30520    DISTVER=`uname -r`
30521    TAPEDRIVE="/dev/rmt/0hnb"
30522    PTHREAD_LIB="-lpthread"
30523    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30524
30525   ;;
30526 irix)
30527    DISTVER=`uname -r`
30528    TAPEDRIVE="/dev/rmt/0cbn"
30529    PSCMD="ps -e -o pid,comm"
30530    PFILES="${PFILES} \
30531        platforms/irix/Makefile \
30532        platforms/irix/bacula-fd \
30533        platforms/irix/bacula-sd \
30534        platforms/irix/bacula-dir"
30535   ;;
30536 netbsd)
30537    DISTVER=`uname -a |awk '{print $3}'`
30538    lld="qd"
30539    llu="qu"
30540    TAPEDRIVE="/dev/nrst0"
30541    PSCMD="ps -ax -o pid,command"
30542    PTHREAD_LIB="-pthread"
30543    CFLAGS="${CFLAGS} -pthread"
30544   ;;
30545 openbsd)
30546    DISTVER=`uname -a |awk '{print $3}'`
30547    lld="qd"
30548    llu="qu"
30549    TAPEDRIVE="/dev/nrst0"
30550    PSCMD="ps -ax -o pid,command"
30551    PTHREAD_LIB="-pthread"
30552    CFLAGS="${CFLAGS} -pthread"
30553    PFILES="${PFILES} \
30554        platforms/openbsd/Makefile \
30555        platforms/openbsd/bacula-fd \
30556        platforms/openbsd/bacula-sd \
30557        platforms/openbsd/bacula-dir"
30558   ;;
30559 redhat)
30560    if test -f /etc/whitebox-release ; then
30561       f=/etc/whitebox-release
30562    else
30563       f=/etc/redhat-release
30564    fi
30565    if test `cat $f | grep release |\
30566          cut -f 3 -d ' '`x = "Enterprise"x ; then
30567       DISTVER="Enterprise "`cat $f | grep release |\
30568           cut -f 6 -d ' '`
30569    else
30570        DISTVER=`cat /etc/redhat-release | grep release |\
30571            cut -f 5 -d ' '`
30572    fi
30573    TAPEDRIVE="/dev/nst0"
30574    PSCMD="ps -e -o pid,command"
30575    PFILES="${PFILES} \
30576        platforms/redhat/Makefile \
30577        platforms/redhat/bacula-fd \
30578        platforms/redhat/bacula-sd \
30579        platforms/redhat/bacula-dir
30580        "
30581   ;;
30582 mandrake)
30583    DISTVER=`cat /etc/mandrake-release | grep release |\
30584       cut -f 5 -d ' '`
30585    TAPEDRIVE="/dev/nst0"
30586    PSCMD="ps -e -o pid,command"
30587    PFILES="${PFILES} \
30588        platforms/mandrake/Makefile \
30589        platforms/mandrake/bacula-fd \
30590        platforms/mandrake/bacula-sd \
30591        platforms/mandrake/bacula-dir \
30592        "
30593   ;;
30594 gentoo)
30595    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30596    TAPEDRIVE="/dev/nst0"
30597    PSCMD="ps -e -o pid,command"
30598    PFILES="${PFILES} \
30599        platforms/gentoo/Makefile \
30600     platforms/gentoo/bacula-init \
30601        platforms/gentoo/bacula-fd \
30602        platforms/gentoo/bacula-sd \
30603        platforms/gentoo/bacula-dir"
30604   ;;
30605 slackware)
30606    DISTVER=`cat /etc/slackware-version`
30607    TAPEDRIVE="/dev/nst0"
30608    PSCMD="ps -e -o pid,command"
30609    PFILES="${PFILES} \
30610        platforms/slackware/Makefile \
30611        platforms/slackware/rc.bacula-fd \
30612        platforms/slackware/rc.bacula-sd \
30613        platforms/slackware/rc.bacula-dir\
30614        platforms/slackware/functions.bacula"
30615   ;;
30616 solaris)
30617    DISTVER=`uname -r`
30618    TAPEDRIVE="/dev/rmt/0cbn"
30619    PSCMD="ps -e -o pid,comm"
30620    PFILES="${PFILES} \
30621        platforms/solaris/Makefile \
30622        platforms/solaris/bacula-fd \
30623        platforms/solaris/bacula-sd \
30624        platforms/solaris/bacula-dir"
30625    COMPRESS_MANPAGES=
30626    case ${DISTVER} in
30627    5.5|5.6)
30628       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30629
30630       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30631
30632       ;;
30633    5.7|5.8)
30634       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30635
30636       ;;
30637    *)
30638       ;;
30639    esac
30640    LIBS="$LIBS -lresolv -lrt"
30641   ;;
30642 suse)
30643    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30644        cut -f 3 -d ' '`
30645    TAPEDRIVE="/dev/nst0"
30646    PSCMD="ps -e -o pid,command"
30647    PFILES="${PFILES} \
30648        platforms/suse/Makefile \
30649        platforms/suse/bacula-fd \
30650        platforms/suse/bacula-sd \
30651        platforms/suse/bacula-dir \
30652        platforms/suse/bacula"
30653   ;;
30654 suse5)
30655    DISTNAME=suse
30656    DISTVER=5.x
30657    TAPEDRIVE="/dev/nst0"
30658    PSCMD="ps -e -o pid,command"
30659    PFILES="${PFILES} \
30660        platforms/suse/Makefile \
30661        platforms/suse/bacula-fd \
30662        platforms/suse/bacula-sd \
30663        platforms/suse/bacula-dir"
30664   ;;
30665 unknown)
30666    DISTVER=unknown
30667    TAPEDRIVE="/dev/nst0"
30668   ;;
30669 *)
30670   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30671   ;;
30672 esac
30673
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30675 $as_echo_n "checking for systemd support... " >&6; }
30676
30677 # Check whether --with-systemd was given.
30678 if test "${with_systemd+set}" = set; then :
30679   withval=$with_systemd;
30680        if test "$withval" != "no"; then
30681            if test "$withval" = "yes"; then
30682                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30683            else
30684                SYSTEMD_UNITDIR="${withval}"
30685            fi
30686
30687            PFILES="${PFILES} \
30688                    platforms/systemd/Makefile \
30689                    platforms/systemd/bacula.conf \
30690                    platforms/systemd/bacula-dir.service \
30691                    platforms/systemd/bacula-fd.service \
30692                    platforms/systemd/bacula-sd.service"
30693
30694 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30695
30696            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30697 $as_echo "yes" >&6; }
30698            support_systemd="yes"
30699        else
30700            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30701 $as_echo "no" >&6; }
30702            support_systemd="no"
30703        fi
30704
30705 else
30706
30707        support_systemd="no"
30708        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30709 $as_echo "no" >&6; }
30710
30711
30712 fi
30713
30714
30715
30716
30717
30718 LIBS="$PTHREAD_LIB $LIBS"
30719
30720 cat >>confdefs.h <<_ACEOF
30721 #define lld "$lld"
30722 _ACEOF
30723
30724 cat >>confdefs.h <<_ACEOF
30725 #define llu "$llu"
30726 _ACEOF
30727
30728
30729
30730
30731
30732
30733
30734
30735 MCOMMON=./autoconf/Make.common
30736
30737
30738 if test "x${subsysdir}" = "x${sbindir}" ; then
30739    echo " "
30740    echo " "
30741    echo "You have set both --sbindir and --with-subsys-dir"
30742    echo "  equal to: ${subsysdir} "
30743    echo "This is not permitted. Please reconfigure."
30744    echo " "
30745    echo "Aborting configuration ..."
30746    echo " "
30747    echo " "
30748    exit 1
30749 fi
30750
30751 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 updatedb/update_mysql_tables_12_to_14 updatedb/update_sqlite3_tables_12_to_14 updatedb/update_postgresql_tables_12_to_14 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30752
30753 ac_config_commands="$ac_config_commands default"
30754
30755 cat >confcache <<\_ACEOF
30756 # This file is a shell script that caches the results of configure
30757 # tests run on this system so they can be shared between configure
30758 # scripts and configure runs, see configure's option --config-cache.
30759 # It is not useful on other systems.  If it contains results you don't
30760 # want to keep, you may remove or edit it.
30761 #
30762 # config.status only pays attention to the cache file if you give it
30763 # the --recheck option to rerun configure.
30764 #
30765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30767 # following values.
30768
30769 _ACEOF
30770
30771 # The following way of writing the cache mishandles newlines in values,
30772 # but we know of no workaround that is simple, portable, and efficient.
30773 # So, we kill variables containing newlines.
30774 # Ultrix sh set writes to stderr and can't be redirected directly,
30775 # and sets the high bit in the cache file unless we assign to the vars.
30776 (
30777   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30778     eval ac_val=\$$ac_var
30779     case $ac_val in #(
30780     *${as_nl}*)
30781       case $ac_var in #(
30782       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30784       esac
30785       case $ac_var in #(
30786       _ | IFS | as_nl) ;; #(
30787       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30788       *) { eval $ac_var=; unset $ac_var;} ;;
30789       esac ;;
30790     esac
30791   done
30792
30793   (set) 2>&1 |
30794     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30795     *${as_nl}ac_space=\ *)
30796       # `set' does not quote correctly, so add quotes: double-quote
30797       # substitution turns \\\\ into \\, and sed turns \\ into \.
30798       sed -n \
30799         "s/'/'\\\\''/g;
30800           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30801       ;; #(
30802     *)
30803       # `set' quotes correctly as required by POSIX, so do not add quotes.
30804       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30805       ;;
30806     esac |
30807     sort
30808 ) |
30809   sed '
30810      /^ac_cv_env_/b end
30811      t clear
30812      :clear
30813      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30814      t end
30815      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30816      :end' >>confcache
30817 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30818   if test -w "$cache_file"; then
30819     if test "x$cache_file" != "x/dev/null"; then
30820       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30821 $as_echo "$as_me: updating cache $cache_file" >&6;}
30822       if test ! -f "$cache_file" || test -h "$cache_file"; then
30823         cat confcache >"$cache_file"
30824       else
30825         case $cache_file in #(
30826         */* | ?:*)
30827           mv -f confcache "$cache_file"$$ &&
30828           mv -f "$cache_file"$$ "$cache_file" ;; #(
30829         *)
30830           mv -f confcache "$cache_file" ;;
30831         esac
30832       fi
30833     fi
30834   else
30835     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30836 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30837   fi
30838 fi
30839 rm -f confcache
30840
30841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30842 # Let make expand exec_prefix.
30843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30844
30845 DEFS=-DHAVE_CONFIG_H
30846
30847 ac_libobjs=
30848 ac_ltlibobjs=
30849 U=
30850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30851   # 1. Remove the extension, and $U if already installed.
30852   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30853   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30854   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30855   #    will be set to the directory where LIBOBJS objects are built.
30856   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30857   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30858 done
30859 LIBOBJS=$ac_libobjs
30860
30861 LTLIBOBJS=$ac_ltlibobjs
30862
30863
30864
30865
30866 : "${CONFIG_STATUS=./config.status}"
30867 ac_write_fail=0
30868 ac_clean_files_save=$ac_clean_files
30869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30871 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30872 as_write_fail=0
30873 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30874 #! $SHELL
30875 # Generated by $as_me.
30876 # Run this file to recreate the current configuration.
30877 # Compiler output produced by configure, useful for debugging
30878 # configure, is in config.log if it exists.
30879
30880 debug=false
30881 ac_cs_recheck=false
30882 ac_cs_silent=false
30883
30884 SHELL=\${CONFIG_SHELL-$SHELL}
30885 export SHELL
30886 _ASEOF
30887 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30888 ## -------------------- ##
30889 ## M4sh Initialization. ##
30890 ## -------------------- ##
30891
30892 # Be more Bourne compatible
30893 DUALCASE=1; export DUALCASE # for MKS sh
30894 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30895   emulate sh
30896   NULLCMD=:
30897   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30898   # is contrary to our usage.  Disable this feature.
30899   alias -g '${1+"$@"}'='"$@"'
30900   setopt NO_GLOB_SUBST
30901 else
30902   case `(set -o) 2>/dev/null` in #(
30903   *posix*) :
30904     set -o posix ;; #(
30905   *) :
30906      ;;
30907 esac
30908 fi
30909
30910
30911 as_nl='
30912 '
30913 export as_nl
30914 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30915 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30918 # Prefer a ksh shell builtin over an external printf program on Solaris,
30919 # but without wasting forks for bash or zsh.
30920 if test -z "$BASH_VERSION$ZSH_VERSION" \
30921     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30922   as_echo='print -r --'
30923   as_echo_n='print -rn --'
30924 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30925   as_echo='printf %s\n'
30926   as_echo_n='printf %s'
30927 else
30928   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30929     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30930     as_echo_n='/usr/ucb/echo -n'
30931   else
30932     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30933     as_echo_n_body='eval
30934       arg=$1;
30935       case $arg in #(
30936       *"$as_nl"*)
30937         expr "X$arg" : "X\\(.*\\)$as_nl";
30938         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30939       esac;
30940       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30941     '
30942     export as_echo_n_body
30943     as_echo_n='sh -c $as_echo_n_body as_echo'
30944   fi
30945   export as_echo_body
30946   as_echo='sh -c $as_echo_body as_echo'
30947 fi
30948
30949 # The user is always right.
30950 if test "${PATH_SEPARATOR+set}" != set; then
30951   PATH_SEPARATOR=:
30952   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30953     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30954       PATH_SEPARATOR=';'
30955   }
30956 fi
30957
30958
30959 # IFS
30960 # We need space, tab and new line, in precisely that order.  Quoting is
30961 # there to prevent editors from complaining about space-tab.
30962 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30963 # splitting by setting IFS to empty value.)
30964 IFS=" ""        $as_nl"
30965
30966 # Find who we are.  Look in the path if we contain no directory separator.
30967 as_myself=
30968 case $0 in #((
30969   *[\\/]* ) as_myself=$0 ;;
30970   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30971 for as_dir in $PATH
30972 do
30973   IFS=$as_save_IFS
30974   test -z "$as_dir" && as_dir=.
30975     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30976   done
30977 IFS=$as_save_IFS
30978
30979      ;;
30980 esac
30981 # We did not find ourselves, most probably we were run as `sh COMMAND'
30982 # in which case we are not to be found in the path.
30983 if test "x$as_myself" = x; then
30984   as_myself=$0
30985 fi
30986 if test ! -f "$as_myself"; then
30987   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30988   exit 1
30989 fi
30990
30991 # Unset variables that we do not need and which cause bugs (e.g. in
30992 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30993 # suppresses any "Segmentation fault" message there.  '((' could
30994 # trigger a bug in pdksh 5.2.14.
30995 for as_var in BASH_ENV ENV MAIL MAILPATH
30996 do eval test x\${$as_var+set} = xset \
30997   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30998 done
30999 PS1='$ '
31000 PS2='> '
31001 PS4='+ '
31002
31003 # NLS nuisances.
31004 LC_ALL=C
31005 export LC_ALL
31006 LANGUAGE=C
31007 export LANGUAGE
31008
31009 # CDPATH.
31010 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31011
31012
31013 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31014 # ----------------------------------------
31015 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31016 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31017 # script with STATUS, using 1 if that was 0.
31018 as_fn_error ()
31019 {
31020   as_status=$1; test $as_status -eq 0 && as_status=1
31021   if test "$4"; then
31022     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31023     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31024   fi
31025   $as_echo "$as_me: error: $2" >&2
31026   as_fn_exit $as_status
31027 } # as_fn_error
31028
31029
31030 # as_fn_set_status STATUS
31031 # -----------------------
31032 # Set $? to STATUS, without forking.
31033 as_fn_set_status ()
31034 {
31035   return $1
31036 } # as_fn_set_status
31037
31038 # as_fn_exit STATUS
31039 # -----------------
31040 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31041 as_fn_exit ()
31042 {
31043   set +e
31044   as_fn_set_status $1
31045   exit $1
31046 } # as_fn_exit
31047
31048 # as_fn_unset VAR
31049 # ---------------
31050 # Portably unset VAR.
31051 as_fn_unset ()
31052 {
31053   { eval $1=; unset $1;}
31054 }
31055 as_unset=as_fn_unset
31056 # as_fn_append VAR VALUE
31057 # ----------------------
31058 # Append the text in VALUE to the end of the definition contained in VAR. Take
31059 # advantage of any shell optimizations that allow amortized linear growth over
31060 # repeated appends, instead of the typical quadratic growth present in naive
31061 # implementations.
31062 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31063   eval 'as_fn_append ()
31064   {
31065     eval $1+=\$2
31066   }'
31067 else
31068   as_fn_append ()
31069   {
31070     eval $1=\$$1\$2
31071   }
31072 fi # as_fn_append
31073
31074 # as_fn_arith ARG...
31075 # ------------------
31076 # Perform arithmetic evaluation on the ARGs, and store the result in the
31077 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31078 # must be portable across $(()) and expr.
31079 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31080   eval 'as_fn_arith ()
31081   {
31082     as_val=$(( $* ))
31083   }'
31084 else
31085   as_fn_arith ()
31086   {
31087     as_val=`expr "$@" || test $? -eq 1`
31088   }
31089 fi # as_fn_arith
31090
31091
31092 if expr a : '\(a\)' >/dev/null 2>&1 &&
31093    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31094   as_expr=expr
31095 else
31096   as_expr=false
31097 fi
31098
31099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31100   as_basename=basename
31101 else
31102   as_basename=false
31103 fi
31104
31105 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31106   as_dirname=dirname
31107 else
31108   as_dirname=false
31109 fi
31110
31111 as_me=`$as_basename -- "$0" ||
31112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31113          X"$0" : 'X\(//\)$' \| \
31114          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31115 $as_echo X/"$0" |
31116     sed '/^.*\/\([^/][^/]*\)\/*$/{
31117             s//\1/
31118             q
31119           }
31120           /^X\/\(\/\/\)$/{
31121             s//\1/
31122             q
31123           }
31124           /^X\/\(\/\).*/{
31125             s//\1/
31126             q
31127           }
31128           s/.*/./; q'`
31129
31130 # Avoid depending upon Character Ranges.
31131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31134 as_cr_digits='0123456789'
31135 as_cr_alnum=$as_cr_Letters$as_cr_digits
31136
31137 ECHO_C= ECHO_N= ECHO_T=
31138 case `echo -n x` in #(((((
31139 -n*)
31140   case `echo 'xy\c'` in
31141   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31142   xy)  ECHO_C='\c';;
31143   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31144        ECHO_T=' ';;
31145   esac;;
31146 *)
31147   ECHO_N='-n';;
31148 esac
31149
31150 rm -f conf$$ conf$$.exe conf$$.file
31151 if test -d conf$$.dir; then
31152   rm -f conf$$.dir/conf$$.file
31153 else
31154   rm -f conf$$.dir
31155   mkdir conf$$.dir 2>/dev/null
31156 fi
31157 if (echo >conf$$.file) 2>/dev/null; then
31158   if ln -s conf$$.file conf$$ 2>/dev/null; then
31159     as_ln_s='ln -s'
31160     # ... but there are two gotchas:
31161     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31162     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31163     # In both cases, we have to default to `cp -p'.
31164     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31165       as_ln_s='cp -p'
31166   elif ln conf$$.file conf$$ 2>/dev/null; then
31167     as_ln_s=ln
31168   else
31169     as_ln_s='cp -p'
31170   fi
31171 else
31172   as_ln_s='cp -p'
31173 fi
31174 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31175 rmdir conf$$.dir 2>/dev/null
31176
31177
31178 # as_fn_mkdir_p
31179 # -------------
31180 # Create "$as_dir" as a directory, including parents if necessary.
31181 as_fn_mkdir_p ()
31182 {
31183
31184   case $as_dir in #(
31185   -*) as_dir=./$as_dir;;
31186   esac
31187   test -d "$as_dir" || eval $as_mkdir_p || {
31188     as_dirs=
31189     while :; do
31190       case $as_dir in #(
31191       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31192       *) as_qdir=$as_dir;;
31193       esac
31194       as_dirs="'$as_qdir' $as_dirs"
31195       as_dir=`$as_dirname -- "$as_dir" ||
31196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31197          X"$as_dir" : 'X\(//\)[^/]' \| \
31198          X"$as_dir" : 'X\(//\)$' \| \
31199          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31200 $as_echo X"$as_dir" |
31201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31202             s//\1/
31203             q
31204           }
31205           /^X\(\/\/\)[^/].*/{
31206             s//\1/
31207             q
31208           }
31209           /^X\(\/\/\)$/{
31210             s//\1/
31211             q
31212           }
31213           /^X\(\/\).*/{
31214             s//\1/
31215             q
31216           }
31217           s/.*/./; q'`
31218       test -d "$as_dir" && break
31219     done
31220     test -z "$as_dirs" || eval "mkdir $as_dirs"
31221   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31222
31223
31224 } # as_fn_mkdir_p
31225 if mkdir -p . 2>/dev/null; then
31226   as_mkdir_p='mkdir -p "$as_dir"'
31227 else
31228   test -d ./-p && rmdir ./-p
31229   as_mkdir_p=false
31230 fi
31231
31232 if test -x / >/dev/null 2>&1; then
31233   as_test_x='test -x'
31234 else
31235   if ls -dL / >/dev/null 2>&1; then
31236     as_ls_L_option=L
31237   else
31238     as_ls_L_option=
31239   fi
31240   as_test_x='
31241     eval sh -c '\''
31242       if test -d "$1"; then
31243         test -d "$1/.";
31244       else
31245         case $1 in #(
31246         -*)set "./$1";;
31247         esac;
31248         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31249         ???[sx]*):;;*)false;;esac;fi
31250     '\'' sh
31251   '
31252 fi
31253 as_executable_p=$as_test_x
31254
31255 # Sed expression to map a string onto a valid CPP name.
31256 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31257
31258 # Sed expression to map a string onto a valid variable name.
31259 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31260
31261
31262 exec 6>&1
31263 ## ----------------------------------- ##
31264 ## Main body of $CONFIG_STATUS script. ##
31265 ## ----------------------------------- ##
31266 _ASEOF
31267 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31268
31269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31270 # Save the log message, to keep $0 and so on meaningful, and to
31271 # report actual input values of CONFIG_FILES etc. instead of their
31272 # values after options handling.
31273 ac_log="
31274 This file was extended by bacula $as_me 7.0.2, which was
31275 generated by GNU Autoconf 2.68.  Invocation command line was
31276
31277   CONFIG_FILES    = $CONFIG_FILES
31278   CONFIG_HEADERS  = $CONFIG_HEADERS
31279   CONFIG_LINKS    = $CONFIG_LINKS
31280   CONFIG_COMMANDS = $CONFIG_COMMANDS
31281   $ $0 $@
31282
31283 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31284 "
31285
31286 _ACEOF
31287
31288 case $ac_config_files in *"
31289 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31290 esac
31291
31292 case $ac_config_headers in *"
31293 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31294 esac
31295
31296
31297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31298 # Files that config.status was made for.
31299 config_files="$ac_config_files"
31300 config_headers="$ac_config_headers"
31301 config_commands="$ac_config_commands"
31302
31303 _ACEOF
31304
31305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31306 ac_cs_usage="\
31307 \`$as_me' instantiates files and other configuration actions
31308 from templates according to the current configuration.  Unless the files
31309 and actions are specified as TAGs, all are instantiated by default.
31310
31311 Usage: $0 [OPTION]... [TAG]...
31312
31313   -h, --help       print this help, then exit
31314   -V, --version    print version number and configuration settings, then exit
31315       --config     print configuration, then exit
31316   -q, --quiet, --silent
31317                    do not print progress messages
31318   -d, --debug      don't remove temporary files
31319       --recheck    update $as_me by reconfiguring in the same conditions
31320       --file=FILE[:TEMPLATE]
31321                    instantiate the configuration file FILE
31322       --header=FILE[:TEMPLATE]
31323                    instantiate the configuration header FILE
31324
31325 Configuration files:
31326 $config_files
31327
31328 Configuration headers:
31329 $config_headers
31330
31331 Configuration commands:
31332 $config_commands
31333
31334 Report bugs to the package provider."
31335
31336 _ACEOF
31337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31338 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31339 ac_cs_version="\\
31340 bacula config.status 7.0.2
31341 configured by $0, generated by GNU Autoconf 2.68,
31342   with options \\"\$ac_cs_config\\"
31343
31344 Copyright (C) 2010 Free Software Foundation, Inc.
31345 This config.status script is free software; the Free Software Foundation
31346 gives unlimited permission to copy, distribute and modify it."
31347
31348 ac_pwd='$ac_pwd'
31349 srcdir='$srcdir'
31350 INSTALL='$INSTALL'
31351 AWK='$AWK'
31352 test -n "\$AWK" || AWK=awk
31353 _ACEOF
31354
31355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31356 # The default lists apply if the user does not specify any file.
31357 ac_need_defaults=:
31358 while test $# != 0
31359 do
31360   case $1 in
31361   --*=?*)
31362     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31363     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31364     ac_shift=:
31365     ;;
31366   --*=)
31367     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31368     ac_optarg=
31369     ac_shift=:
31370     ;;
31371   *)
31372     ac_option=$1
31373     ac_optarg=$2
31374     ac_shift=shift
31375     ;;
31376   esac
31377
31378   case $ac_option in
31379   # Handling of the options.
31380   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31381     ac_cs_recheck=: ;;
31382   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31383     $as_echo "$ac_cs_version"; exit ;;
31384   --config | --confi | --conf | --con | --co | --c )
31385     $as_echo "$ac_cs_config"; exit ;;
31386   --debug | --debu | --deb | --de | --d | -d )
31387     debug=: ;;
31388   --file | --fil | --fi | --f )
31389     $ac_shift
31390     case $ac_optarg in
31391     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31392     '') as_fn_error $? "missing file argument" ;;
31393     esac
31394     as_fn_append CONFIG_FILES " '$ac_optarg'"
31395     ac_need_defaults=false;;
31396   --header | --heade | --head | --hea )
31397     $ac_shift
31398     case $ac_optarg in
31399     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31400     esac
31401     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31402     ac_need_defaults=false;;
31403   --he | --h)
31404     # Conflict between --help and --header
31405     as_fn_error $? "ambiguous option: \`$1'
31406 Try \`$0 --help' for more information.";;
31407   --help | --hel | -h )
31408     $as_echo "$ac_cs_usage"; exit ;;
31409   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31410   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31411     ac_cs_silent=: ;;
31412
31413   # This is an error.
31414   -*) as_fn_error $? "unrecognized option: \`$1'
31415 Try \`$0 --help' for more information." ;;
31416
31417   *) as_fn_append ac_config_targets " $1"
31418      ac_need_defaults=false ;;
31419
31420   esac
31421   shift
31422 done
31423
31424 ac_configure_extra_args=
31425
31426 if $ac_cs_silent; then
31427   exec 6>/dev/null
31428   ac_configure_extra_args="$ac_configure_extra_args --silent"
31429 fi
31430
31431 _ACEOF
31432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31433 if \$ac_cs_recheck; then
31434   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31435   shift
31436   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31437   CONFIG_SHELL='$SHELL'
31438   export CONFIG_SHELL
31439   exec "\$@"
31440 fi
31441
31442 _ACEOF
31443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31444 exec 5>>config.log
31445 {
31446   echo
31447   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31448 ## Running $as_me. ##
31449 _ASBOX
31450   $as_echo "$ac_log"
31451 } >&5
31452
31453 _ACEOF
31454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31455 #
31456 # INIT-COMMANDS
31457 #
31458
31459
31460 # The HP-UX ksh and POSIX shell print the target directory to stdout
31461 # if CDPATH is set.
31462 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31463
31464 sed_quote_subst='$sed_quote_subst'
31465 double_quote_subst='$double_quote_subst'
31466 delay_variable_subst='$delay_variable_subst'
31467 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31468 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31469 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31470 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31471 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31472 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31473 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31474 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31475 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31476 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31477 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31478 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31479 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31480 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31481 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31482 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31483 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31484 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31485 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31486 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31487 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31488 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31489 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31490 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31491 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31492 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31493 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31494 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31495 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31496 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31497 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31498 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31499 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31500 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31501 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31502 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31503 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31504 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31505 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31506 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31507 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31508 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31509 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31510 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31511 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31512 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31513 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31514 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31515 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31516 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31517 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31518 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31519 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31520 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31521 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31522 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31523 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"`'
31524 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31525 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31526 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31527 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31528 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31529 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31530 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31531 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31532 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31533 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31534 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31535 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31536 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31537 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31538 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31539 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31540 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31541 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31542 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31543 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31544 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31545 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31546 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31547 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31548 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31549 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31550 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31551 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31552 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31553 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31554 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31555 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31556 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31557 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31558 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31559 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31560 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31561 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31562 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31563 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31564 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31565 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31566 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31567 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31568 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31569 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31570 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31571 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31572 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31573 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31574 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31575 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31576 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31577 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31578 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31579 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31580 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31581 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31582 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31583 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31584 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31585 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31586 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31587 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31588 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31589 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31590 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31591 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31592 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31593 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31594 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31595 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31596 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31597 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31598 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31599 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31600 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31601 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31602 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31603 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31604 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31605 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31606 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31607 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31608 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31609 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31610 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31611 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31612 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31613 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31614 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31615 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31616 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31617 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31618 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31619 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31620 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31621 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31622 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31623 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31624 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31625 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31626 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31627 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31628 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31629 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31630 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31631 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31632 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31633 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31634 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31635 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31636 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31637 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31638 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31639 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31640 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31641 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31642 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31643 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31644 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31645 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31646 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31647 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31648 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31649 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31650 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31651
31652 LTCC='$LTCC'
31653 LTCFLAGS='$LTCFLAGS'
31654 compiler='$compiler_DEFAULT'
31655
31656 # A function that is used when there is no print builtin or printf.
31657 func_fallback_echo ()
31658 {
31659   eval 'cat <<_LTECHO_EOF
31660 \$1
31661 _LTECHO_EOF'
31662 }
31663
31664 # Quote evaled strings.
31665 for var in SHELL \
31666 ECHO \
31667 PATH_SEPARATOR \
31668 SED \
31669 GREP \
31670 EGREP \
31671 FGREP \
31672 LD \
31673 NM \
31674 LN_S \
31675 lt_SP2NL \
31676 lt_NL2SP \
31677 reload_flag \
31678 OBJDUMP \
31679 deplibs_check_method \
31680 file_magic_cmd \
31681 file_magic_glob \
31682 want_nocaseglob \
31683 DLLTOOL \
31684 sharedlib_from_linklib_cmd \
31685 AR \
31686 AR_FLAGS \
31687 archiver_list_spec \
31688 STRIP \
31689 RANLIB \
31690 CC \
31691 CFLAGS \
31692 compiler \
31693 lt_cv_sys_global_symbol_pipe \
31694 lt_cv_sys_global_symbol_to_cdecl \
31695 lt_cv_sys_global_symbol_to_c_name_address \
31696 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31697 nm_file_list_spec \
31698 lt_prog_compiler_no_builtin_flag \
31699 lt_prog_compiler_pic \
31700 lt_prog_compiler_wl \
31701 lt_prog_compiler_static \
31702 lt_cv_prog_compiler_c_o \
31703 need_locks \
31704 MANIFEST_TOOL \
31705 DSYMUTIL \
31706 NMEDIT \
31707 LIPO \
31708 OTOOL \
31709 OTOOL64 \
31710 shrext_cmds \
31711 export_dynamic_flag_spec \
31712 whole_archive_flag_spec \
31713 compiler_needs_object \
31714 with_gnu_ld \
31715 allow_undefined_flag \
31716 no_undefined_flag \
31717 hardcode_libdir_flag_spec \
31718 hardcode_libdir_separator \
31719 exclude_expsyms \
31720 include_expsyms \
31721 file_list_spec \
31722 variables_saved_for_relink \
31723 libname_spec \
31724 library_names_spec \
31725 soname_spec \
31726 install_override_mode \
31727 finish_eval \
31728 old_striplib \
31729 striplib \
31730 compiler_lib_search_dirs \
31731 predep_objects \
31732 postdep_objects \
31733 predeps \
31734 postdeps \
31735 compiler_lib_search_path \
31736 LD_CXX \
31737 reload_flag_CXX \
31738 compiler_CXX \
31739 lt_prog_compiler_no_builtin_flag_CXX \
31740 lt_prog_compiler_pic_CXX \
31741 lt_prog_compiler_wl_CXX \
31742 lt_prog_compiler_static_CXX \
31743 lt_cv_prog_compiler_c_o_CXX \
31744 export_dynamic_flag_spec_CXX \
31745 whole_archive_flag_spec_CXX \
31746 compiler_needs_object_CXX \
31747 with_gnu_ld_CXX \
31748 allow_undefined_flag_CXX \
31749 no_undefined_flag_CXX \
31750 hardcode_libdir_flag_spec_CXX \
31751 hardcode_libdir_separator_CXX \
31752 exclude_expsyms_CXX \
31753 include_expsyms_CXX \
31754 file_list_spec_CXX \
31755 compiler_lib_search_dirs_CXX \
31756 predep_objects_CXX \
31757 postdep_objects_CXX \
31758 predeps_CXX \
31759 postdeps_CXX \
31760 compiler_lib_search_path_CXX; do
31761     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31762     *[\\\\\\\`\\"\\\$]*)
31763       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31764       ;;
31765     *)
31766       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31767       ;;
31768     esac
31769 done
31770
31771 # Double-quote double-evaled strings.
31772 for var in reload_cmds \
31773 old_postinstall_cmds \
31774 old_postuninstall_cmds \
31775 old_archive_cmds \
31776 extract_expsyms_cmds \
31777 old_archive_from_new_cmds \
31778 old_archive_from_expsyms_cmds \
31779 archive_cmds \
31780 archive_expsym_cmds \
31781 module_cmds \
31782 module_expsym_cmds \
31783 export_symbols_cmds \
31784 prelink_cmds \
31785 postlink_cmds \
31786 postinstall_cmds \
31787 postuninstall_cmds \
31788 finish_cmds \
31789 sys_lib_search_path_spec \
31790 sys_lib_dlsearch_path_spec \
31791 reload_cmds_CXX \
31792 old_archive_cmds_CXX \
31793 old_archive_from_new_cmds_CXX \
31794 old_archive_from_expsyms_cmds_CXX \
31795 archive_cmds_CXX \
31796 archive_expsym_cmds_CXX \
31797 module_cmds_CXX \
31798 module_expsym_cmds_CXX \
31799 export_symbols_cmds_CXX \
31800 prelink_cmds_CXX \
31801 postlink_cmds_CXX; do
31802     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31803     *[\\\\\\\`\\"\\\$]*)
31804       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31805       ;;
31806     *)
31807       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31808       ;;
31809     esac
31810 done
31811
31812 ac_aux_dir='$ac_aux_dir'
31813 xsi_shell='$xsi_shell'
31814 lt_shell_append='$lt_shell_append'
31815
31816 # See if we are running on zsh, and set the options which allow our
31817 # commands through without removal of \ escapes INIT.
31818 if test -n "\${ZSH_VERSION+set}" ; then
31819    setopt NO_GLOB_SUBST
31820 fi
31821
31822
31823     PACKAGE='$PACKAGE'
31824     VERSION='$VERSION'
31825     TIMESTAMP='$TIMESTAMP'
31826     RM='$RM'
31827     ofile='$ofile'
31828
31829
31830
31831
31832
31833 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31834     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31835     # from automake.
31836     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31837     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31838     LINGUAS="${LINGUAS-%UNSET%}"
31839
31840
31841 _ACEOF
31842
31843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31844
31845 # Handling of arguments.
31846 for ac_config_target in $ac_config_targets
31847 do
31848   case $ac_config_target in
31849     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31850     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31851     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31852     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31853     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31854     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31855     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31856     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31857     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31858     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31859     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31860     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31861     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31862     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31863     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31864     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31865     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31866     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31867     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31868     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31869     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31870     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31871     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31872     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31873     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31874     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31875     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31876     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31877     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31878     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31879     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31880     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31881     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31882     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31883     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31884     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31885     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31886     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31887     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31888     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31889     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31890     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31891     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31892     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31893     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31894     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31895     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31896     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31897     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31898     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31899     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31900     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31901     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31902     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31903     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31904     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31905     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31906     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31907     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31908     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31909     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31910     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31911     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31912     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31913     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31914     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31915     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31916     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31917     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31918     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31919     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31920     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31921     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31922     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31923     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31924     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31925     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31926     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31927     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31928     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31929     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31930     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31931     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31932     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31933     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31934     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31935     "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31936     "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31937     "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31938     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31939     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
31940     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
31941     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
31942     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
31943     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
31944     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
31945     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
31946     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
31947     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31948     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31949
31950   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31951   esac
31952 done
31953
31954
31955 # If the user did not use the arguments to specify the items to instantiate,
31956 # then the envvar interface is used.  Set only those that are not.
31957 # We use the long form for the default assignment because of an extremely
31958 # bizarre bug on SunOS 4.1.3.
31959 if $ac_need_defaults; then
31960   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31961   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31962   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31963 fi
31964
31965 # Have a temporary directory for convenience.  Make it in the build tree
31966 # simply because there is no reason against having it here, and in addition,
31967 # creating and moving files from /tmp can sometimes cause problems.
31968 # Hook for its removal unless debugging.
31969 # Note that there is a small window in which the directory will not be cleaned:
31970 # after its creation but before its name has been assigned to `$tmp'.
31971 $debug ||
31972 {
31973   tmp= ac_tmp=
31974   trap 'exit_status=$?
31975   : "${ac_tmp:=$tmp}"
31976   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31977 ' 0
31978   trap 'as_fn_exit 1' 1 2 13 15
31979 }
31980 # Create a (secure) tmp directory for tmp files.
31981
31982 {
31983   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31984   test -d "$tmp"
31985 }  ||
31986 {
31987   tmp=./conf$$-$RANDOM
31988   (umask 077 && mkdir "$tmp")
31989 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31990 ac_tmp=$tmp
31991
31992 # Set up the scripts for CONFIG_FILES section.
31993 # No need to generate them if there are no CONFIG_FILES.
31994 # This happens for instance with `./config.status config.h'.
31995 if test -n "$CONFIG_FILES"; then
31996
31997 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31998   ac_cs_awk_getline=:
31999   ac_cs_awk_pipe_init=
32000   ac_cs_awk_read_file='
32001       while ((getline aline < (F[key])) > 0)
32002         print(aline)
32003       close(F[key])'
32004   ac_cs_awk_pipe_fini=
32005 else
32006   ac_cs_awk_getline=false
32007   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32008   ac_cs_awk_read_file='
32009       print "|#_!!_#|"
32010       print "cat " F[key] " &&"
32011       '$ac_cs_awk_pipe_init
32012   # The final `:' finishes the AND list.
32013   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32014 fi
32015 ac_cr=`echo X | tr X '\015'`
32016 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32017 # But we know of no other shell where ac_cr would be empty at this
32018 # point, so we can use a bashism as a fallback.
32019 if test "x$ac_cr" = x; then
32020   eval ac_cr=\$\'\\r\'
32021 fi
32022 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32023 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32024   ac_cs_awk_cr='\\r'
32025 else
32026   ac_cs_awk_cr=$ac_cr
32027 fi
32028
32029 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32030 _ACEOF
32031
32032 # Create commands to substitute file output variables.
32033 {
32034   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32035   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32036   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32037   echo "_ACAWK" &&
32038   echo "_ACEOF"
32039 } >conf$$files.sh &&
32040 . ./conf$$files.sh ||
32041   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32042 rm -f conf$$files.sh
32043
32044 {
32045   echo "cat >conf$$subs.awk <<_ACEOF" &&
32046   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32047   echo "_ACEOF"
32048 } >conf$$subs.sh ||
32049   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32050 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32051 ac_delim='%!_!# '
32052 for ac_last_try in false false false false false :; do
32053   . ./conf$$subs.sh ||
32054     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32055
32056   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32057   if test $ac_delim_n = $ac_delim_num; then
32058     break
32059   elif $ac_last_try; then
32060     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32061   else
32062     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32063   fi
32064 done
32065 rm -f conf$$subs.sh
32066
32067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32068 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32069 _ACEOF
32070 sed -n '
32071 h
32072 s/^/S["/; s/!.*/"]=/
32073 p
32074 g
32075 s/^[^!]*!//
32076 :repl
32077 t repl
32078 s/'"$ac_delim"'$//
32079 t delim
32080 :nl
32081 h
32082 s/\(.\{148\}\)..*/\1/
32083 t more1
32084 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32085 p
32086 n
32087 b repl
32088 :more1
32089 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32090 p
32091 g
32092 s/.\{148\}//
32093 t nl
32094 :delim
32095 h
32096 s/\(.\{148\}\)..*/\1/
32097 t more2
32098 s/["\\]/\\&/g; s/^/"/; s/$/"/
32099 p
32100 b
32101 :more2
32102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32103 p
32104 g
32105 s/.\{148\}//
32106 t delim
32107 ' <conf$$subs.awk | sed '
32108 /^[^""]/{
32109   N
32110   s/\n//
32111 }
32112 ' >>$CONFIG_STATUS || ac_write_fail=1
32113 rm -f conf$$subs.awk
32114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32115 _ACAWK
32116 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32117   for (key in S) S_is_set[key] = 1
32118   FS = "\a"
32119   \$ac_cs_awk_pipe_init
32120 }
32121 {
32122   line = $ 0
32123   nfields = split(line, field, "@")
32124   substed = 0
32125   len = length(field[1])
32126   for (i = 2; i < nfields; i++) {
32127     key = field[i]
32128     keylen = length(key)
32129     if (S_is_set[key]) {
32130       value = S[key]
32131       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32132       len += length(value) + length(field[++i])
32133       substed = 1
32134     } else
32135       len += 1 + keylen
32136   }
32137   if (nfields == 3 && !substed) {
32138     key = field[2]
32139     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32140       \$ac_cs_awk_read_file
32141       next
32142     }
32143   }
32144   print line
32145 }
32146 \$ac_cs_awk_pipe_fini
32147 _ACAWK
32148 _ACEOF
32149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32150 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32151   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32152 else
32153   cat
32154 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32155   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32156 _ACEOF
32157
32158 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32159 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32160 # trailing colons and then remove the whole line if VPATH becomes empty
32161 # (actually we leave an empty line to preserve line numbers).
32162 if test "x$srcdir" = x.; then
32163   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32164 h
32165 s///
32166 s/^/:/
32167 s/[      ]*$/:/
32168 s/:\$(srcdir):/:/g
32169 s/:\${srcdir}:/:/g
32170 s/:@srcdir@:/:/g
32171 s/^:*//
32172 s/:*$//
32173 x
32174 s/\(=[   ]*\).*/\1/
32175 G
32176 s/\n//
32177 s/^[^=]*=[       ]*$//
32178 }'
32179 fi
32180
32181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32182 fi # test -n "$CONFIG_FILES"
32183
32184 # Set up the scripts for CONFIG_HEADERS section.
32185 # No need to generate them if there are no CONFIG_HEADERS.
32186 # This happens for instance with `./config.status Makefile'.
32187 if test -n "$CONFIG_HEADERS"; then
32188 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32189 BEGIN {
32190 _ACEOF
32191
32192 # Transform confdefs.h into an awk script `defines.awk', embedded as
32193 # here-document in config.status, that substitutes the proper values into
32194 # config.h.in to produce config.h.
32195
32196 # Create a delimiter string that does not exist in confdefs.h, to ease
32197 # handling of long lines.
32198 ac_delim='%!_!# '
32199 for ac_last_try in false false :; do
32200   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32201   if test -z "$ac_tt"; then
32202     break
32203   elif $ac_last_try; then
32204     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32205   else
32206     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32207   fi
32208 done
32209
32210 # For the awk script, D is an array of macro values keyed by name,
32211 # likewise P contains macro parameters if any.  Preserve backslash
32212 # newline sequences.
32213
32214 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32215 sed -n '
32216 s/.\{148\}/&'"$ac_delim"'/g
32217 t rset
32218 :rset
32219 s/^[     ]*#[    ]*define[       ][      ]*/ /
32220 t def
32221 d
32222 :def
32223 s/\\$//
32224 t bsnl
32225 s/["\\]/\\&/g
32226 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32227 D["\1"]=" \3"/p
32228 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32229 d
32230 :bsnl
32231 s/["\\]/\\&/g
32232 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32233 D["\1"]=" \3\\\\\\n"\\/p
32234 t cont
32235 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32236 t cont
32237 d
32238 :cont
32239 n
32240 s/.\{148\}/&'"$ac_delim"'/g
32241 t clear
32242 :clear
32243 s/\\$//
32244 t bsnlc
32245 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32246 d
32247 :bsnlc
32248 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32249 b cont
32250 ' <confdefs.h | sed '
32251 s/'"$ac_delim"'/"\\\
32252 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32253
32254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32255   for (key in D) D_is_set[key] = 1
32256   FS = "\a"
32257 }
32258 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32259   line = \$ 0
32260   split(line, arg, " ")
32261   if (arg[1] == "#") {
32262     defundef = arg[2]
32263     mac1 = arg[3]
32264   } else {
32265     defundef = substr(arg[1], 2)
32266     mac1 = arg[2]
32267   }
32268   split(mac1, mac2, "(") #)
32269   macro = mac2[1]
32270   prefix = substr(line, 1, index(line, defundef) - 1)
32271   if (D_is_set[macro]) {
32272     # Preserve the white space surrounding the "#".
32273     print prefix "define", macro P[macro] D[macro]
32274     next
32275   } else {
32276     # Replace #undef with comments.  This is necessary, for example,
32277     # in the case of _POSIX_SOURCE, which is predefined and required
32278     # on some systems where configure will not decide to define it.
32279     if (defundef == "undef") {
32280       print "/*", prefix defundef, macro, "*/"
32281       next
32282     }
32283   }
32284 }
32285 { print }
32286 _ACAWK
32287 _ACEOF
32288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32289   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32290 fi # test -n "$CONFIG_HEADERS"
32291
32292
32293 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32294 shift
32295 for ac_tag
32296 do
32297   case $ac_tag in
32298   :[FHLC]) ac_mode=$ac_tag; continue;;
32299   esac
32300   case $ac_mode$ac_tag in
32301   :[FHL]*:*);;
32302   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32303   :[FH]-) ac_tag=-:-;;
32304   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32305   esac
32306   ac_save_IFS=$IFS
32307   IFS=:
32308   set x $ac_tag
32309   IFS=$ac_save_IFS
32310   shift
32311   ac_file=$1
32312   shift
32313
32314   case $ac_mode in
32315   :L) ac_source=$1;;
32316   :[FH])
32317     ac_file_inputs=
32318     for ac_f
32319     do
32320       case $ac_f in
32321       -) ac_f="$ac_tmp/stdin";;
32322       *) # Look for the file first in the build tree, then in the source tree
32323          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32324          # because $ac_f cannot contain `:'.
32325          test -f "$ac_f" ||
32326            case $ac_f in
32327            [\\/$]*) false;;
32328            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32329            esac ||
32330            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32331       esac
32332       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32333       as_fn_append ac_file_inputs " '$ac_f'"
32334     done
32335
32336     # Let's still pretend it is `configure' which instantiates (i.e., don't
32337     # use $as_me), people would be surprised to read:
32338     #    /* config.h.  Generated by config.status.  */
32339     configure_input='Generated from '`
32340           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32341         `' by configure.'
32342     if test x"$ac_file" != x-; then
32343       configure_input="$ac_file.  $configure_input"
32344       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32345 $as_echo "$as_me: creating $ac_file" >&6;}
32346     fi
32347     # Neutralize special characters interpreted by sed in replacement strings.
32348     case $configure_input in #(
32349     *\&* | *\|* | *\\* )
32350        ac_sed_conf_input=`$as_echo "$configure_input" |
32351        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32352     *) ac_sed_conf_input=$configure_input;;
32353     esac
32354
32355     case $ac_tag in
32356     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32357       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32358     esac
32359     ;;
32360   esac
32361
32362   ac_dir=`$as_dirname -- "$ac_file" ||
32363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32364          X"$ac_file" : 'X\(//\)[^/]' \| \
32365          X"$ac_file" : 'X\(//\)$' \| \
32366          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32367 $as_echo X"$ac_file" |
32368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32369             s//\1/
32370             q
32371           }
32372           /^X\(\/\/\)[^/].*/{
32373             s//\1/
32374             q
32375           }
32376           /^X\(\/\/\)$/{
32377             s//\1/
32378             q
32379           }
32380           /^X\(\/\).*/{
32381             s//\1/
32382             q
32383           }
32384           s/.*/./; q'`
32385   as_dir="$ac_dir"; as_fn_mkdir_p
32386   ac_builddir=.
32387
32388 case "$ac_dir" in
32389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32390 *)
32391   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32392   # A ".." for each directory in $ac_dir_suffix.
32393   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32394   case $ac_top_builddir_sub in
32395   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32396   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32397   esac ;;
32398 esac
32399 ac_abs_top_builddir=$ac_pwd
32400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32401 # for backward compatibility:
32402 ac_top_builddir=$ac_top_build_prefix
32403
32404 case $srcdir in
32405   .)  # We are building in place.
32406     ac_srcdir=.
32407     ac_top_srcdir=$ac_top_builddir_sub
32408     ac_abs_top_srcdir=$ac_pwd ;;
32409   [\\/]* | ?:[\\/]* )  # Absolute name.
32410     ac_srcdir=$srcdir$ac_dir_suffix;
32411     ac_top_srcdir=$srcdir
32412     ac_abs_top_srcdir=$srcdir ;;
32413   *) # Relative name.
32414     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32415     ac_top_srcdir=$ac_top_build_prefix$srcdir
32416     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32417 esac
32418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32419
32420
32421   case $ac_mode in
32422   :F)
32423   #
32424   # CONFIG_FILE
32425   #
32426
32427   case $INSTALL in
32428   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32429   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32430   esac
32431 _ACEOF
32432
32433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32434 # If the template does not know about datarootdir, expand it.
32435 # FIXME: This hack should be removed a few years after 2.60.
32436 ac_datarootdir_hack=; ac_datarootdir_seen=
32437 ac_sed_dataroot='
32438 /datarootdir/ {
32439   p
32440   q
32441 }
32442 /@datadir@/p
32443 /@docdir@/p
32444 /@infodir@/p
32445 /@localedir@/p
32446 /@mandir@/p'
32447 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32448 *datarootdir*) ac_datarootdir_seen=yes;;
32449 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32450   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32451 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32452 _ACEOF
32453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32454   ac_datarootdir_hack='
32455   s&@datadir@&$datadir&g
32456   s&@docdir@&$docdir&g
32457   s&@infodir@&$infodir&g
32458   s&@localedir@&$localedir&g
32459   s&@mandir@&$mandir&g
32460   s&\\\${datarootdir}&$datarootdir&g' ;;
32461 esac
32462 _ACEOF
32463
32464 # Neutralize VPATH when `$srcdir' = `.'.
32465 # Shell code in configure.ac might set extrasub.
32466 # FIXME: do we really want to maintain this feature?
32467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32468 ac_sed_extra="$ac_vpsub
32469 $extrasub
32470 _ACEOF
32471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32472 :t
32473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32474 s|@configure_input@|$ac_sed_conf_input|;t t
32475 s&@top_builddir@&$ac_top_builddir_sub&;t t
32476 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32477 s&@srcdir@&$ac_srcdir&;t t
32478 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32479 s&@top_srcdir@&$ac_top_srcdir&;t t
32480 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32481 s&@builddir@&$ac_builddir&;t t
32482 s&@abs_builddir@&$ac_abs_builddir&;t t
32483 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32484 s&@INSTALL@&$ac_INSTALL&;t t
32485 $ac_datarootdir_hack
32486 "
32487 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32488 if $ac_cs_awk_getline; then
32489   $AWK -f "$ac_tmp/subs.awk"
32490 else
32491   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32492 fi \
32493   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32494
32495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32496   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32497   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32498       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32499   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32500 which seems to be undefined.  Please make sure it is defined" >&5
32501 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32502 which seems to be undefined.  Please make sure it is defined" >&2;}
32503
32504   rm -f "$ac_tmp/stdin"
32505   case $ac_file in
32506   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32507   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32508   esac \
32509   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32510  ;;
32511   :H)
32512   #
32513   # CONFIG_HEADER
32514   #
32515   if test x"$ac_file" != x-; then
32516     {
32517       $as_echo "/* $configure_input  */" \
32518       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32519     } >"$ac_tmp/config.h" \
32520       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32521     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32522       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32523 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32524     else
32525       rm -f "$ac_file"
32526       mv "$ac_tmp/config.h" "$ac_file" \
32527         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32528     fi
32529   else
32530     $as_echo "/* $configure_input  */" \
32531       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32532       || as_fn_error $? "could not create -" "$LINENO" 5
32533   fi
32534  ;;
32535
32536   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32537 $as_echo "$as_me: executing $ac_file commands" >&6;}
32538  ;;
32539   esac
32540
32541
32542   case $ac_file$ac_mode in
32543     "libtool":C)
32544
32545     # See if we are running on zsh, and set the options which allow our
32546     # commands through without removal of \ escapes.
32547     if test -n "${ZSH_VERSION+set}" ; then
32548       setopt NO_GLOB_SUBST
32549     fi
32550
32551     cfgfile="${ofile}T"
32552     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32553     $RM "$cfgfile"
32554
32555     cat <<_LT_EOF >> "$cfgfile"
32556 #! $SHELL
32557
32558 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32559 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32560 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32561 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32562 #
32563 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32564 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32565 #                 Foundation, Inc.
32566 #   Written by Gordon Matzigkeit, 1996
32567 #
32568 #   This file is part of GNU Libtool.
32569 #
32570 # GNU Libtool is free software; you can redistribute it and/or
32571 # modify it under the terms of the GNU General Public License as
32572 # published by the Free Software Foundation; either version 2 of
32573 # the License, or (at your option) any later version.
32574 #
32575 # As a special exception to the GNU General Public License,
32576 # if you distribute this file as part of a program or library that
32577 # is built using GNU Libtool, you may include this file under the
32578 # same distribution terms that you use for the rest of that program.
32579 #
32580 # GNU Libtool is distributed in the hope that it will be useful,
32581 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32582 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32583 # GNU General Public License for more details.
32584 #
32585 # You should have received a copy of the GNU General Public License
32586 # along with GNU Libtool; see the file COPYING.  If not, a copy
32587 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32588 # obtained by writing to the Free Software Foundation, Inc.,
32589 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32590
32591
32592 # The names of the tagged configurations supported by this script.
32593 available_tags="CXX "
32594
32595 # ### BEGIN LIBTOOL CONFIG
32596
32597 # Which release of libtool.m4 was used?
32598 macro_version=$macro_version
32599 macro_revision=$macro_revision
32600
32601 # Whether or not to build shared libraries.
32602 build_libtool_libs=$enable_shared
32603
32604 # Whether or not to build static libraries.
32605 build_old_libs=$enable_static
32606
32607 # What type of objects to build.
32608 pic_mode=$pic_mode
32609
32610 # Whether or not to optimize for fast installation.
32611 fast_install=$enable_fast_install
32612
32613 # Shell to use when invoking shell scripts.
32614 SHELL=$lt_SHELL
32615
32616 # An echo program that protects backslashes.
32617 ECHO=$lt_ECHO
32618
32619 # The PATH separator for the build system.
32620 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32621
32622 # The host system.
32623 host_alias=$host_alias
32624 host=$host
32625 host_os=$host_os
32626
32627 # The build system.
32628 build_alias=$build_alias
32629 build=$build
32630 build_os=$build_os
32631
32632 # A sed program that does not truncate output.
32633 SED=$lt_SED
32634
32635 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32636 Xsed="\$SED -e 1s/^X//"
32637
32638 # A grep program that handles long lines.
32639 GREP=$lt_GREP
32640
32641 # An ERE matcher.
32642 EGREP=$lt_EGREP
32643
32644 # A literal string matcher.
32645 FGREP=$lt_FGREP
32646
32647 # A BSD- or MS-compatible name lister.
32648 NM=$lt_NM
32649
32650 # Whether we need soft or hard links.
32651 LN_S=$lt_LN_S
32652
32653 # What is the maximum length of a command?
32654 max_cmd_len=$max_cmd_len
32655
32656 # Object file suffix (normally "o").
32657 objext=$ac_objext
32658
32659 # Executable file suffix (normally "").
32660 exeext=$exeext
32661
32662 # whether the shell understands "unset".
32663 lt_unset=$lt_unset
32664
32665 # turn spaces into newlines.
32666 SP2NL=$lt_lt_SP2NL
32667
32668 # turn newlines into spaces.
32669 NL2SP=$lt_lt_NL2SP
32670
32671 # convert \$build file names to \$host format.
32672 to_host_file_cmd=$lt_cv_to_host_file_cmd
32673
32674 # convert \$build files to toolchain format.
32675 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32676
32677 # An object symbol dumper.
32678 OBJDUMP=$lt_OBJDUMP
32679
32680 # Method to check whether dependent libraries are shared objects.
32681 deplibs_check_method=$lt_deplibs_check_method
32682
32683 # Command to use when deplibs_check_method = "file_magic".
32684 file_magic_cmd=$lt_file_magic_cmd
32685
32686 # How to find potential files when deplibs_check_method = "file_magic".
32687 file_magic_glob=$lt_file_magic_glob
32688
32689 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32690 want_nocaseglob=$lt_want_nocaseglob
32691
32692 # DLL creation program.
32693 DLLTOOL=$lt_DLLTOOL
32694
32695 # Command to associate shared and link libraries.
32696 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32697
32698 # The archiver.
32699 AR=$lt_AR
32700
32701 # Flags to create an archive.
32702 AR_FLAGS=$lt_AR_FLAGS
32703
32704 # How to feed a file listing to the archiver.
32705 archiver_list_spec=$lt_archiver_list_spec
32706
32707 # A symbol stripping program.
32708 STRIP=$lt_STRIP
32709
32710 # Commands used to install an old-style archive.
32711 RANLIB=$lt_RANLIB
32712 old_postinstall_cmds=$lt_old_postinstall_cmds
32713 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32714
32715 # Whether to use a lock for old archive extraction.
32716 lock_old_archive_extraction=$lock_old_archive_extraction
32717
32718 # A C compiler.
32719 LTCC=$lt_CC
32720
32721 # LTCC compiler flags.
32722 LTCFLAGS=$lt_CFLAGS
32723
32724 # Take the output of nm and produce a listing of raw symbols and C names.
32725 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32726
32727 # Transform the output of nm in a proper C declaration.
32728 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32729
32730 # Transform the output of nm in a C name address pair.
32731 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32732
32733 # Transform the output of nm in a C name address pair when lib prefix is needed.
32734 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32735
32736 # Specify filename containing input files for \$NM.
32737 nm_file_list_spec=$lt_nm_file_list_spec
32738
32739 # The root where to search for dependent libraries,and in which our libraries should be installed.
32740 lt_sysroot=$lt_sysroot
32741
32742 # The name of the directory that contains temporary libtool files.
32743 objdir=$objdir
32744
32745 # Used to examine libraries when file_magic_cmd begins with "file".
32746 MAGIC_CMD=$MAGIC_CMD
32747
32748 # Must we lock files when doing compilation?
32749 need_locks=$lt_need_locks
32750
32751 # Manifest tool.
32752 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32753
32754 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32755 DSYMUTIL=$lt_DSYMUTIL
32756
32757 # Tool to change global to local symbols on Mac OS X.
32758 NMEDIT=$lt_NMEDIT
32759
32760 # Tool to manipulate fat objects and archives on Mac OS X.
32761 LIPO=$lt_LIPO
32762
32763 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32764 OTOOL=$lt_OTOOL
32765
32766 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32767 OTOOL64=$lt_OTOOL64
32768
32769 # Old archive suffix (normally "a").
32770 libext=$libext
32771
32772 # Shared library suffix (normally ".so").
32773 shrext_cmds=$lt_shrext_cmds
32774
32775 # The commands to extract the exported symbol list from a shared archive.
32776 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32777
32778 # Variables whose values should be saved in libtool wrapper scripts and
32779 # restored at link time.
32780 variables_saved_for_relink=$lt_variables_saved_for_relink
32781
32782 # Do we need the "lib" prefix for modules?
32783 need_lib_prefix=$need_lib_prefix
32784
32785 # Do we need a version for libraries?
32786 need_version=$need_version
32787
32788 # Library versioning type.
32789 version_type=$version_type
32790
32791 # Shared library runtime path variable.
32792 runpath_var=$runpath_var
32793
32794 # Shared library path variable.
32795 shlibpath_var=$shlibpath_var
32796
32797 # Is shlibpath searched before the hard-coded library search path?
32798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32799
32800 # Format of library name prefix.
32801 libname_spec=$lt_libname_spec
32802
32803 # List of archive names.  First name is the real one, the rest are links.
32804 # The last name is the one that the linker finds with -lNAME
32805 library_names_spec=$lt_library_names_spec
32806
32807 # The coded name of the library, if different from the real name.
32808 soname_spec=$lt_soname_spec
32809
32810 # Permission mode override for installation of shared libraries.
32811 install_override_mode=$lt_install_override_mode
32812
32813 # Command to use after installation of a shared archive.
32814 postinstall_cmds=$lt_postinstall_cmds
32815
32816 # Command to use after uninstallation of a shared archive.
32817 postuninstall_cmds=$lt_postuninstall_cmds
32818
32819 # Commands used to finish a libtool library installation in a directory.
32820 finish_cmds=$lt_finish_cmds
32821
32822 # As "finish_cmds", except a single script fragment to be evaled but
32823 # not shown.
32824 finish_eval=$lt_finish_eval
32825
32826 # Whether we should hardcode library paths into libraries.
32827 hardcode_into_libs=$hardcode_into_libs
32828
32829 # Compile-time system search path for libraries.
32830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32831
32832 # Run-time system search path for libraries.
32833 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32834
32835 # Whether dlopen is supported.
32836 dlopen_support=$enable_dlopen
32837
32838 # Whether dlopen of programs is supported.
32839 dlopen_self=$enable_dlopen_self
32840
32841 # Whether dlopen of statically linked programs is supported.
32842 dlopen_self_static=$enable_dlopen_self_static
32843
32844 # Commands to strip libraries.
32845 old_striplib=$lt_old_striplib
32846 striplib=$lt_striplib
32847
32848
32849 # The linker used to build libraries.
32850 LD=$lt_LD
32851
32852 # How to create reloadable object files.
32853 reload_flag=$lt_reload_flag
32854 reload_cmds=$lt_reload_cmds
32855
32856 # Commands used to build an old-style archive.
32857 old_archive_cmds=$lt_old_archive_cmds
32858
32859 # A language specific compiler.
32860 CC=$lt_compiler
32861
32862 # Is the compiler the GNU compiler?
32863 with_gcc=$GCC
32864
32865 # Compiler flag to turn off builtin functions.
32866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32867
32868 # Additional compiler flags for building library objects.
32869 pic_flag=$lt_lt_prog_compiler_pic
32870
32871 # How to pass a linker flag through the compiler.
32872 wl=$lt_lt_prog_compiler_wl
32873
32874 # Compiler flag to prevent dynamic linking.
32875 link_static_flag=$lt_lt_prog_compiler_static
32876
32877 # Does compiler simultaneously support -c and -o options?
32878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32879
32880 # Whether or not to add -lc for building shared libraries.
32881 build_libtool_need_lc=$archive_cmds_need_lc
32882
32883 # Whether or not to disallow shared libs when runtime libs are static.
32884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32885
32886 # Compiler flag to allow reflexive dlopens.
32887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32888
32889 # Compiler flag to generate shared objects directly from archives.
32890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32891
32892 # Whether the compiler copes with passing no objects directly.
32893 compiler_needs_object=$lt_compiler_needs_object
32894
32895 # Create an old-style archive from a shared archive.
32896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32897
32898 # Create a temporary old-style archive to link instead of a shared archive.
32899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32900
32901 # Commands used to build a shared archive.
32902 archive_cmds=$lt_archive_cmds
32903 archive_expsym_cmds=$lt_archive_expsym_cmds
32904
32905 # Commands used to build a loadable module if different from building
32906 # a shared archive.
32907 module_cmds=$lt_module_cmds
32908 module_expsym_cmds=$lt_module_expsym_cmds
32909
32910 # Whether we are building with GNU ld or not.
32911 with_gnu_ld=$lt_with_gnu_ld
32912
32913 # Flag that allows shared libraries with undefined symbols to be built.
32914 allow_undefined_flag=$lt_allow_undefined_flag
32915
32916 # Flag that enforces no undefined symbols.
32917 no_undefined_flag=$lt_no_undefined_flag
32918
32919 # Flag to hardcode \$libdir into a binary during linking.
32920 # This must work even if \$libdir does not exist
32921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32922
32923 # Whether we need a single "-rpath" flag with a separated argument.
32924 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32925
32926 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32927 # DIR into the resulting binary.
32928 hardcode_direct=$hardcode_direct
32929
32930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32931 # DIR into the resulting binary and the resulting library dependency is
32932 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32933 # library is relocated.
32934 hardcode_direct_absolute=$hardcode_direct_absolute
32935
32936 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32937 # into the resulting binary.
32938 hardcode_minus_L=$hardcode_minus_L
32939
32940 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32941 # into the resulting binary.
32942 hardcode_shlibpath_var=$hardcode_shlibpath_var
32943
32944 # Set to "yes" if building a shared library automatically hardcodes DIR
32945 # into the library and all subsequent libraries and executables linked
32946 # against it.
32947 hardcode_automatic=$hardcode_automatic
32948
32949 # Set to yes if linker adds runtime paths of dependent libraries
32950 # to runtime path list.
32951 inherit_rpath=$inherit_rpath
32952
32953 # Whether libtool must link a program against all its dependency libraries.
32954 link_all_deplibs=$link_all_deplibs
32955
32956 # Set to "yes" if exported symbols are required.
32957 always_export_symbols=$always_export_symbols
32958
32959 # The commands to list exported symbols.
32960 export_symbols_cmds=$lt_export_symbols_cmds
32961
32962 # Symbols that should not be listed in the preloaded symbols.
32963 exclude_expsyms=$lt_exclude_expsyms
32964
32965 # Symbols that must always be exported.
32966 include_expsyms=$lt_include_expsyms
32967
32968 # Commands necessary for linking programs (against libraries) with templates.
32969 prelink_cmds=$lt_prelink_cmds
32970
32971 # Commands necessary for finishing linking programs.
32972 postlink_cmds=$lt_postlink_cmds
32973
32974 # Specify filename containing input files.
32975 file_list_spec=$lt_file_list_spec
32976
32977 # How to hardcode a shared library path into an executable.
32978 hardcode_action=$hardcode_action
32979
32980 # The directories searched by this compiler when creating a shared library.
32981 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32982
32983 # Dependencies to place before and after the objects being linked to
32984 # create a shared library.
32985 predep_objects=$lt_predep_objects
32986 postdep_objects=$lt_postdep_objects
32987 predeps=$lt_predeps
32988 postdeps=$lt_postdeps
32989
32990 # The library search path used internally by the compiler when linking
32991 # a shared library.
32992 compiler_lib_search_path=$lt_compiler_lib_search_path
32993
32994 # ### END LIBTOOL CONFIG
32995
32996 _LT_EOF
32997
32998   case $host_os in
32999   aix3*)
33000     cat <<\_LT_EOF >> "$cfgfile"
33001 # AIX sometimes has problems with the GCC collect2 program.  For some
33002 # reason, if we set the COLLECT_NAMES environment variable, the problems
33003 # vanish in a puff of smoke.
33004 if test "X${COLLECT_NAMES+set}" != Xset; then
33005   COLLECT_NAMES=
33006   export COLLECT_NAMES
33007 fi
33008 _LT_EOF
33009     ;;
33010   esac
33011
33012
33013 ltmain="$ac_aux_dir/ltmain.sh"
33014
33015
33016   # We use sed instead of cat because bash on DJGPP gets confused if
33017   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33018   # text mode, it properly converts lines to CR/LF.  This bash problem
33019   # is reportedly fixed, but why not run on old versions too?
33020   sed '$q' "$ltmain" >> "$cfgfile" \
33021      || (rm -f "$cfgfile"; exit 1)
33022
33023   if test x"$xsi_shell" = xyes; then
33024   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33025 func_dirname ()\
33026 {\
33027 \    case ${1} in\
33028 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33029 \      *  ) func_dirname_result="${3}" ;;\
33030 \    esac\
33031 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33032   && mv -f "$cfgfile.tmp" "$cfgfile" \
33033     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33034 test 0 -eq $? || _lt_function_replace_fail=:
33035
33036
33037   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33038 func_basename ()\
33039 {\
33040 \    func_basename_result="${1##*/}"\
33041 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33042   && mv -f "$cfgfile.tmp" "$cfgfile" \
33043     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33044 test 0 -eq $? || _lt_function_replace_fail=:
33045
33046
33047   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33048 func_dirname_and_basename ()\
33049 {\
33050 \    case ${1} in\
33051 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33052 \      *  ) func_dirname_result="${3}" ;;\
33053 \    esac\
33054 \    func_basename_result="${1##*/}"\
33055 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33056   && mv -f "$cfgfile.tmp" "$cfgfile" \
33057     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33058 test 0 -eq $? || _lt_function_replace_fail=:
33059
33060
33061   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33062 func_stripname ()\
33063 {\
33064 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33065 \    # positional parameters, so assign one to ordinary parameter first.\
33066 \    func_stripname_result=${3}\
33067 \    func_stripname_result=${func_stripname_result#"${1}"}\
33068 \    func_stripname_result=${func_stripname_result%"${2}"}\
33069 } # Extended-shell func_stripname 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
33075   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33076 func_split_long_opt ()\
33077 {\
33078 \    func_split_long_opt_name=${1%%=*}\
33079 \    func_split_long_opt_arg=${1#*=}\
33080 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33081   && mv -f "$cfgfile.tmp" "$cfgfile" \
33082     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33083 test 0 -eq $? || _lt_function_replace_fail=:
33084
33085
33086   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33087 func_split_short_opt ()\
33088 {\
33089 \    func_split_short_opt_arg=${1#??}\
33090 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33091 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33092   && mv -f "$cfgfile.tmp" "$cfgfile" \
33093     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33094 test 0 -eq $? || _lt_function_replace_fail=:
33095
33096
33097   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33098 func_lo2o ()\
33099 {\
33100 \    case ${1} in\
33101 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33102 \      *)    func_lo2o_result=${1} ;;\
33103 \    esac\
33104 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33105   && mv -f "$cfgfile.tmp" "$cfgfile" \
33106     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33107 test 0 -eq $? || _lt_function_replace_fail=:
33108
33109
33110   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33111 func_xform ()\
33112 {\
33113     func_xform_result=${1%.*}.lo\
33114 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33115   && mv -f "$cfgfile.tmp" "$cfgfile" \
33116     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33117 test 0 -eq $? || _lt_function_replace_fail=:
33118
33119
33120   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33121 func_arith ()\
33122 {\
33123     func_arith_result=$(( $* ))\
33124 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33125   && mv -f "$cfgfile.tmp" "$cfgfile" \
33126     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33127 test 0 -eq $? || _lt_function_replace_fail=:
33128
33129
33130   sed -e '/^func_len ()$/,/^} # func_len /c\
33131 func_len ()\
33132 {\
33133     func_len_result=${#1}\
33134 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33135   && mv -f "$cfgfile.tmp" "$cfgfile" \
33136     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33137 test 0 -eq $? || _lt_function_replace_fail=:
33138
33139 fi
33140
33141 if test x"$lt_shell_append" = xyes; then
33142   sed -e '/^func_append ()$/,/^} # func_append /c\
33143 func_append ()\
33144 {\
33145     eval "${1}+=\\${2}"\
33146 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33147   && mv -f "$cfgfile.tmp" "$cfgfile" \
33148     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33149 test 0 -eq $? || _lt_function_replace_fail=:
33150
33151
33152   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33153 func_append_quoted ()\
33154 {\
33155 \    func_quote_for_eval "${2}"\
33156 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33157 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33158   && mv -f "$cfgfile.tmp" "$cfgfile" \
33159     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33160 test 0 -eq $? || _lt_function_replace_fail=:
33161
33162
33163   # Save a `func_append' function call where possible by direct use of '+='
33164   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33165     && mv -f "$cfgfile.tmp" "$cfgfile" \
33166       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33167   test 0 -eq $? || _lt_function_replace_fail=:
33168 else
33169   # Save a `func_append' function call even when '+=' is not available
33170   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33171     && mv -f "$cfgfile.tmp" "$cfgfile" \
33172       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33173   test 0 -eq $? || _lt_function_replace_fail=:
33174 fi
33175
33176 if test x"$_lt_function_replace_fail" = x":"; then
33177   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33178 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33179 fi
33180
33181
33182    mv -f "$cfgfile" "$ofile" ||
33183     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33184   chmod +x "$ofile"
33185
33186
33187     cat <<_LT_EOF >> "$ofile"
33188
33189 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33190
33191 # The linker used to build libraries.
33192 LD=$lt_LD_CXX
33193
33194 # How to create reloadable object files.
33195 reload_flag=$lt_reload_flag_CXX
33196 reload_cmds=$lt_reload_cmds_CXX
33197
33198 # Commands used to build an old-style archive.
33199 old_archive_cmds=$lt_old_archive_cmds_CXX
33200
33201 # A language specific compiler.
33202 CC=$lt_compiler_CXX
33203
33204 # Is the compiler the GNU compiler?
33205 with_gcc=$GCC_CXX
33206
33207 # Compiler flag to turn off builtin functions.
33208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33209
33210 # Additional compiler flags for building library objects.
33211 pic_flag=$lt_lt_prog_compiler_pic_CXX
33212
33213 # How to pass a linker flag through the compiler.
33214 wl=$lt_lt_prog_compiler_wl_CXX
33215
33216 # Compiler flag to prevent dynamic linking.
33217 link_static_flag=$lt_lt_prog_compiler_static_CXX
33218
33219 # Does compiler simultaneously support -c and -o options?
33220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33221
33222 # Whether or not to add -lc for building shared libraries.
33223 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33224
33225 # Whether or not to disallow shared libs when runtime libs are static.
33226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33227
33228 # Compiler flag to allow reflexive dlopens.
33229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33230
33231 # Compiler flag to generate shared objects directly from archives.
33232 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33233
33234 # Whether the compiler copes with passing no objects directly.
33235 compiler_needs_object=$lt_compiler_needs_object_CXX
33236
33237 # Create an old-style archive from a shared archive.
33238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33239
33240 # Create a temporary old-style archive to link instead of a shared archive.
33241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33242
33243 # Commands used to build a shared archive.
33244 archive_cmds=$lt_archive_cmds_CXX
33245 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33246
33247 # Commands used to build a loadable module if different from building
33248 # a shared archive.
33249 module_cmds=$lt_module_cmds_CXX
33250 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33251
33252 # Whether we are building with GNU ld or not.
33253 with_gnu_ld=$lt_with_gnu_ld_CXX
33254
33255 # Flag that allows shared libraries with undefined symbols to be built.
33256 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33257
33258 # Flag that enforces no undefined symbols.
33259 no_undefined_flag=$lt_no_undefined_flag_CXX
33260
33261 # Flag to hardcode \$libdir into a binary during linking.
33262 # This must work even if \$libdir does not exist
33263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33264
33265 # Whether we need a single "-rpath" flag with a separated argument.
33266 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33267
33268 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33269 # DIR into the resulting binary.
33270 hardcode_direct=$hardcode_direct_CXX
33271
33272 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33273 # DIR into the resulting binary and the resulting library dependency is
33274 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33275 # library is relocated.
33276 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33277
33278 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33279 # into the resulting binary.
33280 hardcode_minus_L=$hardcode_minus_L_CXX
33281
33282 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33283 # into the resulting binary.
33284 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33285
33286 # Set to "yes" if building a shared library automatically hardcodes DIR
33287 # into the library and all subsequent libraries and executables linked
33288 # against it.
33289 hardcode_automatic=$hardcode_automatic_CXX
33290
33291 # Set to yes if linker adds runtime paths of dependent libraries
33292 # to runtime path list.
33293 inherit_rpath=$inherit_rpath_CXX
33294
33295 # Whether libtool must link a program against all its dependency libraries.
33296 link_all_deplibs=$link_all_deplibs_CXX
33297
33298 # Set to "yes" if exported symbols are required.
33299 always_export_symbols=$always_export_symbols_CXX
33300
33301 # The commands to list exported symbols.
33302 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33303
33304 # Symbols that should not be listed in the preloaded symbols.
33305 exclude_expsyms=$lt_exclude_expsyms_CXX
33306
33307 # Symbols that must always be exported.
33308 include_expsyms=$lt_include_expsyms_CXX
33309
33310 # Commands necessary for linking programs (against libraries) with templates.
33311 prelink_cmds=$lt_prelink_cmds_CXX
33312
33313 # Commands necessary for finishing linking programs.
33314 postlink_cmds=$lt_postlink_cmds_CXX
33315
33316 # Specify filename containing input files.
33317 file_list_spec=$lt_file_list_spec_CXX
33318
33319 # How to hardcode a shared library path into an executable.
33320 hardcode_action=$hardcode_action_CXX
33321
33322 # The directories searched by this compiler when creating a shared library.
33323 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33324
33325 # Dependencies to place before and after the objects being linked to
33326 # create a shared library.
33327 predep_objects=$lt_predep_objects_CXX
33328 postdep_objects=$lt_postdep_objects_CXX
33329 predeps=$lt_predeps_CXX
33330 postdeps=$lt_postdeps_CXX
33331
33332 # The library search path used internally by the compiler when linking
33333 # a shared library.
33334 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33335
33336 # ### END LIBTOOL TAG CONFIG: CXX
33337 _LT_EOF
33338
33339  ;;
33340     "default-1":C)
33341     for ac_file in $CONFIG_FILES; do
33342       # Support "outfile[:infile[:infile...]]"
33343       case "$ac_file" in
33344         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33345       esac
33346       # PO directories have a Makefile.in generated from Makefile.in.in.
33347       case "$ac_file" in */Makefile.in)
33348         # Adjust a relative srcdir.
33349         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33350         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33351         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33352         # In autoconf-2.13 it is called $ac_given_srcdir.
33353         # In autoconf-2.50 it is called $srcdir.
33354         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33355         case "$ac_given_srcdir" in
33356           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33357           /*) top_srcdir="$ac_given_srcdir" ;;
33358           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33359         esac
33360         # Treat a directory as a PO directory if and only if it has a
33361         # POTFILES.in file. This allows packages to have multiple PO
33362         # directories under different names or in different locations.
33363         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33364           rm -f "$ac_dir/POTFILES"
33365           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33366           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33367           POMAKEFILEDEPS="POTFILES.in"
33368           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33369           # on $ac_dir but don't depend on user-specified configuration
33370           # parameters.
33371           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33372             # The LINGUAS file contains the set of available languages.
33373             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33374               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33375             fi
33376             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33377             # Hide the ALL_LINGUAS assigment from automake.
33378             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33379             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33380           else
33381             # The set of available languages was given in configure.in.
33382             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33383           fi
33384           # Compute POFILES
33385           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33386           # Compute UPDATEPOFILES
33387           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33388           # Compute DUMMYPOFILES
33389           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33390           # Compute GMOFILES
33391           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33392           case "$ac_given_srcdir" in
33393             .) srcdirpre= ;;
33394             *) srcdirpre='$(srcdir)/' ;;
33395           esac
33396           POFILES=
33397           UPDATEPOFILES=
33398           DUMMYPOFILES=
33399           GMOFILES=
33400           for lang in $ALL_LINGUAS; do
33401             POFILES="$POFILES $srcdirpre$lang.po"
33402             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33403             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33404             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33405           done
33406           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33407           # environment variable.
33408           INST_LINGUAS=
33409           if test -n "$ALL_LINGUAS"; then
33410             for presentlang in $ALL_LINGUAS; do
33411               useit=no
33412               if test "%UNSET%" != "$LINGUAS"; then
33413                 desiredlanguages="$LINGUAS"
33414               else
33415                 desiredlanguages="$ALL_LINGUAS"
33416               fi
33417               for desiredlang in $desiredlanguages; do
33418                 # Use the presentlang catalog if desiredlang is
33419                 #   a. equal to presentlang, or
33420                 #   b. a variant of presentlang (because in this case,
33421                 #      presentlang can be used as a fallback for messages
33422                 #      which are not translated in the desiredlang catalog).
33423                 case "$desiredlang" in
33424                   "$presentlang"*) useit=yes;;
33425                 esac
33426               done
33427               if test $useit = yes; then
33428                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33429               fi
33430             done
33431           fi
33432           CATALOGS=
33433           if test -n "$INST_LINGUAS"; then
33434             for lang in $INST_LINGUAS; do
33435               CATALOGS="$CATALOGS $lang.gmo"
33436             done
33437           fi
33438           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33439           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"
33440           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33441             if test -f "$f"; then
33442               case "$f" in
33443                 *.orig | *.bak | *~) ;;
33444                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33445               esac
33446             fi
33447           done
33448         fi
33449         ;;
33450       esac
33451     done ;;
33452     "default":C)
33453  ;;
33454
33455   esac
33456 done # for ac_tag
33457
33458
33459 as_fn_exit 0
33460 _ACEOF
33461 ac_clean_files=$ac_clean_files_save
33462
33463 test $ac_write_fail = 0 ||
33464   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33465
33466
33467 # configure is writing to config.log, and then calls config.status.
33468 # config.status does its own redirection, appending to config.log.
33469 # Unfortunately, on DOS this fails, as config.log is still kept open
33470 # by configure, so config.status won't be able to write to it; its
33471 # output is simply discarded.  So we exec the FD to /dev/null,
33472 # effectively closing config.log, so it can be properly (re)opened and
33473 # appended to by config.status.  When coming back to configure, we
33474 # need to make the FD available again.
33475 if test "$no_create" != yes; then
33476   ac_cs_success=:
33477   ac_config_status_args=
33478   test "$silent" = yes &&
33479     ac_config_status_args="$ac_config_status_args --quiet"
33480   exec 5>/dev/null
33481   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33482   exec 5>>config.log
33483   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33484   # would make configure fail if this is the last instruction.
33485   $ac_cs_success || as_fn_exit 1
33486 fi
33487 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33488   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33489 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33490 fi
33491
33492
33493 if test "${support_bat}" = "yes" ; then
33494    if test "x$QMAKE" = "xnone"; then
33495       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33496    fi
33497
33498    cd src/qt-console
33499    echo "Creating bat Makefile"
33500    touch bat
33501    chmod 755 bat
33502    rm -f Makefile
33503    rm -rf moc32 obj32
33504    $QMAKE
33505    ${MAKE:-make} clean
33506    cd ${BUILD_DIR}
33507 fi
33508
33509 if test X"$GCC" = "Xyes" ; then
33510   echo "Doing make of dependencies"
33511   ${MAKE:-make} depend
33512 fi
33513
33514 cd src/qt-console
33515 chmod 755 install_conf_file build-depkgs-qt-console
33516 cd ${BUILD_DIR}
33517
33518 cd scripts
33519 chmod 755 bacula btraceback mtx-changer storage-ctl bsg_persist
33520 chmod 755 dvd-handler dvd-simulator
33521 chmod 755 bconsole disk-changer devel_bacula logrotate
33522 cd ..
33523
33524 c=updatedb
33525 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33526 chmod 755 $c/update_postgresql_tables_10_to_11
33527 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33528 chmod 755 $c/update_postgresql_tables_11_to_12
33529
33530
33531 c=src/cats
33532
33533 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33534 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33535
33536 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33537 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33538
33539 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33540 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33541
33542 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33543 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33544
33545 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33546 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33547
33548
33549 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33550 chmod 755 $c/sqlite
33551 chmod 755 $c/mysql
33552
33553 chmod 755 $c/install-default-backend
33554
33555 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33556    largefile_support="yes"
33557 fi
33558
33559 if test X"$GCC" = "Xyes" ; then
33560                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33561    if test "x${CCVERSION}" = "x" ; then
33562       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33563    fi
33564    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33565    if test x"${CXXVERSION}" = x ; then
33566       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33567    fi
33568 fi
33569
33570 # clean up any old junk
33571 echo " "
33572 echo "Cleaning up"
33573 echo " "
33574 ${MAKE:-make} clean
33575
33576 echo "
33577 Configuration on `date`:
33578
33579    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33580    Bacula version:          ${BACULA} ${VERSION} (${DATE})
33581    Source code location:    ${srcdir}
33582    Install binaries:        ${sbindir}
33583    Install libraries:       ${libdir}
33584    Install config files:    ${sysconfdir}
33585    Scripts directory:       ${scriptdir}
33586    Archive directory:       ${archivedir}
33587    Working directory:       ${working_dir}
33588    PID directory:           ${piddir}
33589    Subsys directory:        ${subsysdir}
33590    Man directory:           ${mandir}
33591    Data directory:          ${datarootdir}
33592    Plugin directory:        ${plugindir}
33593    C Compiler:              ${CC} ${CCVERSION}
33594    C++ Compiler:            ${CXX} ${CXXVERSION}
33595    Compiler flags:          ${WCFLAGS} ${CFLAGS}
33596    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
33597    Libraries:               ${LIBS}
33598    Statically Linked Tools: ${support_static_tools}
33599    Statically Linked FD:    ${support_static_fd}
33600    Statically Linked SD:    ${support_static_sd}
33601    Statically Linked DIR:   ${support_static_dir}
33602    Statically Linked CONS:  ${support_static_cons}
33603    Database backends:       ${db_backends}
33604    Database port:           ${db_port}
33605    Database name:           ${db_name}
33606    Database user:           ${db_user}
33607
33608    Job Output Email:        ${job_email}
33609    Traceback Email:         ${dump_email}
33610    SMTP Host Address:       ${smtp_host}
33611
33612    Director Port:           ${dir_port}
33613    File daemon Port:        ${fd_port}
33614    Storage daemon Port:     ${sd_port}
33615
33616    Director User:           ${dir_user}
33617    Director Group:          ${dir_group}
33618    Storage Daemon User:     ${sd_user}
33619    Storage DaemonGroup:     ${sd_group}
33620    File Daemon User:        ${fd_user}
33621    File Daemon Group:       ${fd_group}
33622
33623    Large file support:      $largefile_support
33624    Bacula conio support:    ${got_conio} ${CONS_LIBS}
33625    readline support:        ${got_readline} ${PRTREADLINE_SRC}
33626    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
33627    TLS support:             ${support_tls}
33628    Encryption support:      ${support_crypto}
33629    ZLIB support:            ${have_zlib}
33630    LZO support:             ${have_lzo}
33631    enable-smartalloc:       ${support_smartalloc}
33632    enable-lockmgr:          ${support_lockmgr}
33633    bat support:             ${support_bat}
33634    client-only:             ${build_client_only}
33635    build-dird:              ${build_dird}
33636    build-stored:            ${build_stored}
33637    Plugin support:          ${have_plugins}
33638    AFS support:             ${have_afs}
33639    ACL support:             ${have_acl}
33640    XATTR support:           ${have_xattr}
33641    systemd support:         ${support_systemd} ${SYSTEMD_UNITDIR}
33642    Batch insert enabled:    ${batch_insert_db_backends}
33643
33644   " > config.out
33645
33646 # create a small shell script useful for support with
33647 # configure options and config.out info
33648 cat > scripts/bacula_config << EOF
33649 #!/bin/sh
33650 cat << __EOC__
33651 $ $0 $ac_configure_args
33652 EOF
33653 cat config.out >> scripts/bacula_config
33654 echo __EOC__ >> scripts/bacula_config
33655 chmod 755 scripts/bacula_config
33656
33657 cat config.out