]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Implement RestoreObject for sqlite + cleanups
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.1.14.
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   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         # Preserve -v and -x to the replacement shell.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         case $- in # ((((
224           *v*x* | *x*v* ) as_opts=-vx ;;
225           *v* ) as_opts=-v ;;
226           *x* ) as_opts=-x ;;
227           * ) as_opts= ;;
228         esac
229         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$lt_ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 ECHO=${lt_ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $ECHO works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<_LT_EOF
567 $*
568 _LT_EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$lt_ECHO"; then
577   if test "X${echo_test_string+set}" != Xset; then
578     # find a string as large as possible, as long as the shell can cope with it
579     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583       then
584         break
585       fi
586     done
587   fi
588
589   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591      test "X$echo_testing_string" = "X$echo_test_string"; then
592     :
593   else
594     # The Solaris, AIX, and Digital Unix default echo programs unquote
595     # backslashes.  This makes it impossible to quote backslashes using
596     #   echo "$something" | sed 's/\\/\\\\/g'
597     #
598     # So, first we look for a working echo in the user's PATH.
599
600     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601     for dir in $PATH /usr/ucb; do
602       IFS="$lt_save_ifs"
603       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606          test "X$echo_testing_string" = "X$echo_test_string"; then
607         ECHO="$dir/echo"
608         break
609       fi
610     done
611     IFS="$lt_save_ifs"
612
613     if test "X$ECHO" = Xecho; then
614       # We didn't find a better echo, so look for alternatives.
615       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617          test "X$echo_testing_string" = "X$echo_test_string"; then
618         # This shell has a builtin print -r that does the trick.
619         ECHO='print -r'
620       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621            test "X$CONFIG_SHELL" != X/bin/ksh; then
622         # If we have ksh, try running configure again with it.
623         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624         export ORIGINAL_CONFIG_SHELL
625         CONFIG_SHELL=/bin/ksh
626         export CONFIG_SHELL
627         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628       else
629         # Try using printf.
630         ECHO='printf %s\n'
631         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633            test "X$echo_testing_string" = "X$echo_test_string"; then
634           # Cool, printf works
635           :
636         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637              test "X$echo_testing_string" = 'X\t' &&
638              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639              test "X$echo_testing_string" = "X$echo_test_string"; then
640           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641           export CONFIG_SHELL
642           SHELL="$CONFIG_SHELL"
643           export SHELL
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646              test "X$echo_testing_string" = 'X\t' &&
647              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648              test "X$echo_testing_string" = "X$echo_test_string"; then
649           ECHO="$CONFIG_SHELL $0 --fallback-echo"
650         else
651           # maybe with a smaller string...
652           prev=:
653
654           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656             then
657               break
658             fi
659             prev="$cmd"
660           done
661
662           if test "$prev" != 'sed 50q "$0"'; then
663             echo_test_string=`eval $prev`
664             export echo_test_string
665             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666           else
667             # Oops.  We lost completely, so just stick with echo.
668             ECHO=echo
669           fi
670         fi
671       fi
672     fi
673   fi
674 fi
675
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
678 lt_ECHO=$ECHO
679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 fi
682
683
684
685
686 test -n "$DJDIR" || exec 7<&0 </dev/null
687 exec 6>&1
688
689 # Name of the host.
690 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694 #
695 # Initializations.
696 #
697 ac_default_prefix=/usr/local
698 ac_clean_files=
699 ac_config_libobj_dir=.
700 LIBOBJS=
701 cross_compiling=no
702 subdirs=
703 MFLAGS=
704 MAKEFLAGS=
705
706 # Identity of this package.
707 PACKAGE_NAME='bacula'
708 PACKAGE_TARNAME='bacula'
709 PACKAGE_VERSION='5.1.14'
710 PACKAGE_STRING='bacula 5.1.14'
711 PACKAGE_BUGREPORT=''
712 PACKAGE_URL=''
713
714 ac_unique_file="src/version.h"
715 # Factoring default headers for most tests.
716 ac_includes_default="\
717 #include <stdio.h>
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
720 #endif
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
723 #endif
724 #ifdef STDC_HEADERS
725 # include <stdlib.h>
726 # include <stddef.h>
727 #else
728 # ifdef HAVE_STDLIB_H
729 #  include <stdlib.h>
730 # endif
731 #endif
732 #ifdef HAVE_STRING_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 #  include <memory.h>
735 # endif
736 # include <string.h>
737 #endif
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
740 #endif
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
743 #endif
744 #ifdef HAVE_STDINT_H
745 # include <stdint.h>
746 #endif
747 #ifdef HAVE_UNISTD_H
748 # include <unistd.h>
749 #endif"
750
751 ac_header_list=
752 ac_subst_vars='LTLIBOBJS
753 DISTVER
754 DISTNAME
755 MACOSX
756 WIN32
757 PSCMD
758 TAPEDRIVE
759 OBJLIST
760 WRAPLIBS
761 WLDFLAGS
762 WCFLAGS
763 DLIB
764 DINCLUDE
765 DEBUG
766 FDLIBS
767 CAP_LIBS
768 ZLIBS
769 LIBOBJS
770 X_EXTRA_LIBS
771 X_LIBS
772 X_PRE_LIBS
773 X_CFLAGS
774 XMKMF
775 GETCONF
776 uncomment_dbi
777 SHARED_CATALOG_TARGETS
778 DEFAULT_DB_TYPE
779 DB_LIBS
780 DB_BACKENDS
781 SQLITE_BINDIR
782 SQLITE_INCLUDE
783 SQLITE_LIBS
784 MYSQL_BINDIR
785 MYSQL_INCLUDE
786 MYSQL_LIBS
787 POSTGRESQL_BINDIR
788 POSTGRESQL_INCLUDE
789 POSTGRESQL_LIBS
790 SBINPERM
791 fd_group
792 fd_user
793 sd_group
794 sd_user
795 dir_group
796 dir_user
797 db_port
798 db_password
799 db_user
800 db_name
801 mon_sd_password
802 mon_fd_password
803 mon_dir_password
804 sd_password
805 fd_password
806 dir_password
807 sd_port
808 fd_port
809 dir_port
810 baseport
811 subsysdir
812 piddir
813 smtp_host
814 job_email
815 dump_email
816 plugindir
817 logdir
818 bsrdir
819 scriptdir
820 hostname
821 basename
822 archivedir
823 working_dir
824 OPENSSL_INC
825 OPENSSL_LIBS
826 PYTHON_INCDIR
827 PYTHON_LIBS
828 READLINE_SRC
829 CONS_LDFLAGS
830 CONS_LIBS
831 CONS_SRC
832 CONS_OBJ
833 CONS_INC
834 STORED_DIR
835 DIR_TOOLS
836 DIRD_DIR
837 ALL_DIRS
838 STATIC_WX_CONS
839 STATIC_GNOME_CONS
840 STATIC_CONS
841 STATIC_DIR
842 STATIC_SD
843 STATIC_FD
844 TTOOL_LDFLAGS
845 TRAY_MONITOR_DIR
846 TRAY_MONITOR_LDFLAGS
847 TRAY_MONITOR_CPPFLAGS
848 WX_DIR
849 WXCONS_LDFLAGS
850 WXCONS_CPPFLAGS
851 QWT
852 QWT_LIB
853 QWT_LDFLAGS
854 QWT_INC
855 BAT_DIR
856 INTL_LIBTOOL_SUFFIX_PREFIX
857 INTLOBJS
858 GENCAT
859 INSTOBJEXT
860 DATADIRNAME
861 CATOBJEXT
862 USE_INCLUDED_LIBINTL
863 BUILD_INCLUDED_LIBINTL
864 INTLBISON
865 HAVE_WPRINTF
866 HAVE_SNPRINTF
867 HAVE_ASPRINTF
868 HAVE_POSIX_PRINTF
869 GLIBC21
870 ALLOCA
871 GLIBC2
872 POSUB
873 LTLIBINTL
874 LIBINTL
875 INTLLIBS
876 LTLIBICONV
877 LIBICONV
878 INTL_MACOSX_LIBS
879 MSGMERGE
880 XGETTEXT
881 GMSGFMT
882 MSGFMT
883 USE_NLS
884 MKINSTALLDIRS
885 SET_MAKE
886 HAVE_DARWIN_OS_FALSE
887 HAVE_DARWIN_OS_TRUE
888 HAVE_IRIX_OS_FALSE
889 HAVE_IRIX_OS_TRUE
890 HAVE_SGI_OS_FALSE
891 HAVE_SGI_OS_TRUE
892 HAVE_BSDI_OS_FALSE
893 HAVE_BSDI_OS_TRUE
894 HAVE_OPENBSD_OS_FALSE
895 HAVE_OPENBSD_OS_TRUE
896 HAVE_NETBSD_OS_FALSE
897 HAVE_NETBSD_OS_TRUE
898 HAVE_FREEBSD_OS_FALSE
899 HAVE_FREEBSD_OS_TRUE
900 HAVE_LINUX_OS_FALSE
901 HAVE_LINUX_OS_TRUE
902 HAVE_HPUX_OS_FALSE
903 HAVE_HPUX_OS_TRUE
904 HAVE_AIX_OS_FALSE
905 HAVE_AIX_OS_TRUE
906 HAVE_OSF1_OS_FALSE
907 HAVE_OSF1_OS_TRUE
908 HAVE_SUN_OS_FALSE
909 HAVE_SUN_OS_TRUE
910 INCLUDE_UNINSTALL_TARGET
911 INCLUDE_INSTALL_TARGET
912 FD_PLUGIN_DIR
913 QMAKE_LIBTOOL
914 LIBTOOL_CLEAN_TARGET
915 LIBTOOL_UNINSTALL_TARGET
916 LIBTOOL_INSTALL_TARGET
917 DEFAULT_SHARED_OBJECT_TYPE
918 DEFAULT_ARCHIVE_TYPE
919 DEFAULT_OBJECT_TYPE
920 CXXCPP
921 OTOOL64
922 OTOOL
923 LIPO
924 NMEDIT
925 DSYMUTIL
926 lt_ECHO
927 RANLIB
928 STRIP
929 OBJDUMP
930 LN_S
931 NM
932 ac_ct_DUMPBIN
933 DUMPBIN
934 LD
935 FGREP
936 host_os
937 host_vendor
938 host_cpu
939 host
940 build_os
941 build_vendor
942 build_cpu
943 build
944 LIBTOOL
945 LOCAL_DEFS
946 LOCAL_LDFLAGS
947 LOCAL_CFLAGS
948 LOCAL_LIBS
949 MAKE_SHELL
950 ARFLAGS
951 AWK
952 PIDOF
953 CDRECORD
954 WXFLAGS
955 WXCONFIG
956 GMAKE
957 QMAKE
958 PKGCONFIG
959 DVDRWFORMAT
960 DVDRWMEDIAINFO
961 GROWISOFS
962 PYTHON
963 MKISOFS
964 DD
965 MTX
966 OPENSSL
967 AR
968 TBL
969 CMP
970 ECHO
971 SED
972 CP
973 REMOVE
974 MV
975 INSTALL_DATA
976 INSTALL_SCRIPT
977 INSTALL_PROGRAM
978 EGREP
979 GREP
980 CPP
981 ac_ct_CXX
982 CXXFLAGS
983 CXX
984 OBJEXT
985 EXEEXT
986 ac_ct_CC
987 CPPFLAGS
988 LDFLAGS
989 CFLAGS
990 CC
991 LIBBACFIND_LT_RELEASE
992 LIBBACCATS_LT_RELEASE
993 LIBBACSQL_LT_RELEASE
994 LIBBACPY_LT_RELEASE
995 LIBBACCFG_LT_RELEASE
996 LIBBAC_LT_RELEASE
997 BDB_VERSION
998 post_host
999 BACULA
1000 LSMDATE
1001 DATE
1002 VERSION
1003 FALSEPRG
1004 TRUEPRG
1005 WIN32TOPDIR
1006 WIN32MAINDIR
1007 WIN32BUILDDIR
1008 TOP_DIR
1009 BUILD_DIR
1010 target_alias
1011 host_alias
1012 build_alias
1013 LIBS
1014 ECHO_T
1015 ECHO_N
1016 ECHO_C
1017 DEFS
1018 mandir
1019 localedir
1020 libdir
1021 psdir
1022 pdfdir
1023 dvidir
1024 htmldir
1025 infodir
1026 docdir
1027 oldincludedir
1028 includedir
1029 localstatedir
1030 sharedstatedir
1031 sysconfdir
1032 datadir
1033 datarootdir
1034 libexecdir
1035 sbindir
1036 bindir
1037 program_transform_name
1038 prefix
1039 exec_prefix
1040 PACKAGE_URL
1041 PACKAGE_BUGREPORT
1042 PACKAGE_STRING
1043 PACKAGE_VERSION
1044 PACKAGE_TARNAME
1045 PACKAGE_NAME
1046 PATH_SEPARATOR
1047 SHELL'
1048 ac_subst_files='MCOMMON'
1049 ac_user_opts='
1050 enable_option_checking
1051 enable_libtool
1052 enable_shared
1053 enable_static
1054 with_pic
1055 enable_fast_install
1056 with_gnu_ld
1057 enable_libtool_lock
1058 enable_includes
1059 enable_nls
1060 enable_rpath
1061 with_libiconv_prefix
1062 with_libintl_prefix
1063 with_included_gettext
1064 enable_gnome
1065 enable_bat
1066 enable_bwx_console
1067 enable_tray_monitor
1068 enable_smartalloc
1069 enable_lockmgr
1070 enable_static_tools
1071 enable_static_fd
1072 enable_static_sd
1073 enable_static_dir
1074 enable_static_cons
1075 enable_client_only
1076 enable_build_dird
1077 enable_build_stored
1078 enable_conio
1079 enable_ipv6
1080 enable_readline
1081 with_readline
1082 with_python
1083 with_tcp_wrappers
1084 with_openssl
1085 with_working_dir
1086 with_archivedir
1087 with_basename
1088 with_hostname
1089 with_scriptdir
1090 with_bsrdir
1091 with_logdir
1092 with_plugindir
1093 with_dump_email
1094 with_job_email
1095 with_smtp_host
1096 with_pid_dir
1097 with_subsys_dir
1098 with_baseport
1099 with_dir_password
1100 with_fd_password
1101 with_sd_password
1102 with_mon_dir_password
1103 with_mon_fd_password
1104 with_mon_sd_password
1105 with_db_name
1106 with_db_user
1107 with_db_password
1108 with_db_port
1109 with_dir_user
1110 with_dir_group
1111 with_sd_user
1112 with_sd_group
1113 with_fd_user
1114 with_fd_group
1115 with_sbin_perm
1116 with_postgresql
1117 with_mysql
1118 with_embedded_mysql
1119 with_sqlite3
1120 enable_batch_insert
1121 enable_largefile
1122 with_x
1123 enable_acl
1124 enable_xattr
1125 '
1126       ac_precious_vars='build_alias
1127 host_alias
1128 target_alias
1129 CC
1130 CFLAGS
1131 LDFLAGS
1132 LIBS
1133 CPPFLAGS
1134 CXX
1135 CXXFLAGS
1136 CCC
1137 CPP
1138 WXCONFIG
1139 WXFLAGS
1140 CXXCPP
1141 XMKMF'
1142
1143
1144 # Initialize some variables set by options.
1145 ac_init_help=
1146 ac_init_version=false
1147 ac_unrecognized_opts=
1148 ac_unrecognized_sep=
1149 # The variables have the same names as the options, with
1150 # dashes changed to underlines.
1151 cache_file=/dev/null
1152 exec_prefix=NONE
1153 no_create=
1154 no_recursion=
1155 prefix=NONE
1156 program_prefix=NONE
1157 program_suffix=NONE
1158 program_transform_name=s,x,x,
1159 silent=
1160 site=
1161 srcdir=
1162 verbose=
1163 x_includes=NONE
1164 x_libraries=NONE
1165
1166 # Installation directory options.
1167 # These are left unexpanded so users can "make install exec_prefix=/foo"
1168 # and all the variables that are supposed to be based on exec_prefix
1169 # by default will actually change.
1170 # Use braces instead of parens because sh, perl, etc. also accept them.
1171 # (The list follows the same order as the GNU Coding Standards.)
1172 bindir='${exec_prefix}/bin'
1173 sbindir='${exec_prefix}/sbin'
1174 libexecdir='${exec_prefix}/libexec'
1175 datarootdir='${prefix}/share'
1176 datadir='${datarootdir}'
1177 sysconfdir='${prefix}/etc'
1178 sharedstatedir='${prefix}/com'
1179 localstatedir='${prefix}/var'
1180 includedir='${prefix}/include'
1181 oldincludedir='/usr/include'
1182 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1183 infodir='${datarootdir}/info'
1184 htmldir='${docdir}'
1185 dvidir='${docdir}'
1186 pdfdir='${docdir}'
1187 psdir='${docdir}'
1188 libdir='${exec_prefix}/lib'
1189 localedir='${datarootdir}/locale'
1190 mandir='${datarootdir}/man'
1191
1192 ac_prev=
1193 ac_dashdash=
1194 for ac_option
1195 do
1196   # If the previous option needs an argument, assign it.
1197   if test -n "$ac_prev"; then
1198     eval $ac_prev=\$ac_option
1199     ac_prev=
1200     continue
1201   fi
1202
1203   case $ac_option in
1204   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1205   *=)   ac_optarg= ;;
1206   *)    ac_optarg=yes ;;
1207   esac
1208
1209   # Accept the important Cygnus configure options, so we can diagnose typos.
1210
1211   case $ac_dashdash$ac_option in
1212   --)
1213     ac_dashdash=yes ;;
1214
1215   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1216     ac_prev=bindir ;;
1217   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1218     bindir=$ac_optarg ;;
1219
1220   -build | --build | --buil | --bui | --bu)
1221     ac_prev=build_alias ;;
1222   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1223     build_alias=$ac_optarg ;;
1224
1225   -cache-file | --cache-file | --cache-fil | --cache-fi \
1226   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1227     ac_prev=cache_file ;;
1228   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1229   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1230     cache_file=$ac_optarg ;;
1231
1232   --config-cache | -C)
1233     cache_file=config.cache ;;
1234
1235   -datadir | --datadir | --datadi | --datad)
1236     ac_prev=datadir ;;
1237   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1238     datadir=$ac_optarg ;;
1239
1240   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1241   | --dataroo | --dataro | --datar)
1242     ac_prev=datarootdir ;;
1243   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1244   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1245     datarootdir=$ac_optarg ;;
1246
1247   -disable-* | --disable-*)
1248     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1249     # Reject names that are not valid shell variable names.
1250     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251       as_fn_error $? "invalid feature name: $ac_useropt"
1252     ac_useropt_orig=$ac_useropt
1253     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254     case $ac_user_opts in
1255       *"
1256 "enable_$ac_useropt"
1257 "*) ;;
1258       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1259          ac_unrecognized_sep=', ';;
1260     esac
1261     eval enable_$ac_useropt=no ;;
1262
1263   -docdir | --docdir | --docdi | --doc | --do)
1264     ac_prev=docdir ;;
1265   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1266     docdir=$ac_optarg ;;
1267
1268   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1269     ac_prev=dvidir ;;
1270   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1271     dvidir=$ac_optarg ;;
1272
1273   -enable-* | --enable-*)
1274     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277       as_fn_error $? "invalid feature name: $ac_useropt"
1278     ac_useropt_orig=$ac_useropt
1279     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280     case $ac_user_opts in
1281       *"
1282 "enable_$ac_useropt"
1283 "*) ;;
1284       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1285          ac_unrecognized_sep=', ';;
1286     esac
1287     eval enable_$ac_useropt=\$ac_optarg ;;
1288
1289   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1290   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1291   | --exec | --exe | --ex)
1292     ac_prev=exec_prefix ;;
1293   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1294   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1295   | --exec=* | --exe=* | --ex=*)
1296     exec_prefix=$ac_optarg ;;
1297
1298   -gas | --gas | --ga | --g)
1299     # Obsolete; use --with-gas.
1300     with_gas=yes ;;
1301
1302   -help | --help | --hel | --he | -h)
1303     ac_init_help=long ;;
1304   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1305     ac_init_help=recursive ;;
1306   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1307     ac_init_help=short ;;
1308
1309   -host | --host | --hos | --ho)
1310     ac_prev=host_alias ;;
1311   -host=* | --host=* | --hos=* | --ho=*)
1312     host_alias=$ac_optarg ;;
1313
1314   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1315     ac_prev=htmldir ;;
1316   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1317   | --ht=*)
1318     htmldir=$ac_optarg ;;
1319
1320   -includedir | --includedir | --includedi | --included | --include \
1321   | --includ | --inclu | --incl | --inc)
1322     ac_prev=includedir ;;
1323   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1324   | --includ=* | --inclu=* | --incl=* | --inc=*)
1325     includedir=$ac_optarg ;;
1326
1327   -infodir | --infodir | --infodi | --infod | --info | --inf)
1328     ac_prev=infodir ;;
1329   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1330     infodir=$ac_optarg ;;
1331
1332   -libdir | --libdir | --libdi | --libd)
1333     ac_prev=libdir ;;
1334   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1335     libdir=$ac_optarg ;;
1336
1337   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1338   | --libexe | --libex | --libe)
1339     ac_prev=libexecdir ;;
1340   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1341   | --libexe=* | --libex=* | --libe=*)
1342     libexecdir=$ac_optarg ;;
1343
1344   -localedir | --localedir | --localedi | --localed | --locale)
1345     ac_prev=localedir ;;
1346   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1347     localedir=$ac_optarg ;;
1348
1349   -localstatedir | --localstatedir | --localstatedi | --localstated \
1350   | --localstate | --localstat | --localsta | --localst | --locals)
1351     ac_prev=localstatedir ;;
1352   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1353   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1354     localstatedir=$ac_optarg ;;
1355
1356   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1357     ac_prev=mandir ;;
1358   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1359     mandir=$ac_optarg ;;
1360
1361   -nfp | --nfp | --nf)
1362     # Obsolete; use --without-fp.
1363     with_fp=no ;;
1364
1365   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1366   | --no-cr | --no-c | -n)
1367     no_create=yes ;;
1368
1369   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1370   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1371     no_recursion=yes ;;
1372
1373   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1374   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1375   | --oldin | --oldi | --old | --ol | --o)
1376     ac_prev=oldincludedir ;;
1377   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1378   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1379   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1380     oldincludedir=$ac_optarg ;;
1381
1382   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1383     ac_prev=prefix ;;
1384   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1385     prefix=$ac_optarg ;;
1386
1387   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1388   | --program-pre | --program-pr | --program-p)
1389     ac_prev=program_prefix ;;
1390   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1391   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1392     program_prefix=$ac_optarg ;;
1393
1394   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1395   | --program-suf | --program-su | --program-s)
1396     ac_prev=program_suffix ;;
1397   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1398   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1399     program_suffix=$ac_optarg ;;
1400
1401   -program-transform-name | --program-transform-name \
1402   | --program-transform-nam | --program-transform-na \
1403   | --program-transform-n | --program-transform- \
1404   | --program-transform | --program-transfor \
1405   | --program-transfo | --program-transf \
1406   | --program-trans | --program-tran \
1407   | --progr-tra | --program-tr | --program-t)
1408     ac_prev=program_transform_name ;;
1409   -program-transform-name=* | --program-transform-name=* \
1410   | --program-transform-nam=* | --program-transform-na=* \
1411   | --program-transform-n=* | --program-transform-=* \
1412   | --program-transform=* | --program-transfor=* \
1413   | --program-transfo=* | --program-transf=* \
1414   | --program-trans=* | --program-tran=* \
1415   | --progr-tra=* | --program-tr=* | --program-t=*)
1416     program_transform_name=$ac_optarg ;;
1417
1418   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1419     ac_prev=pdfdir ;;
1420   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1421     pdfdir=$ac_optarg ;;
1422
1423   -psdir | --psdir | --psdi | --psd | --ps)
1424     ac_prev=psdir ;;
1425   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1426     psdir=$ac_optarg ;;
1427
1428   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1429   | -silent | --silent | --silen | --sile | --sil)
1430     silent=yes ;;
1431
1432   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1433     ac_prev=sbindir ;;
1434   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1435   | --sbi=* | --sb=*)
1436     sbindir=$ac_optarg ;;
1437
1438   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1439   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1440   | --sharedst | --shareds | --shared | --share | --shar \
1441   | --sha | --sh)
1442     ac_prev=sharedstatedir ;;
1443   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1444   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1445   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1446   | --sha=* | --sh=*)
1447     sharedstatedir=$ac_optarg ;;
1448
1449   -site | --site | --sit)
1450     ac_prev=site ;;
1451   -site=* | --site=* | --sit=*)
1452     site=$ac_optarg ;;
1453
1454   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1455     ac_prev=srcdir ;;
1456   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1457     srcdir=$ac_optarg ;;
1458
1459   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1460   | --syscon | --sysco | --sysc | --sys | --sy)
1461     ac_prev=sysconfdir ;;
1462   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1463   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1464     sysconfdir=$ac_optarg ;;
1465
1466   -target | --target | --targe | --targ | --tar | --ta | --t)
1467     ac_prev=target_alias ;;
1468   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1469     target_alias=$ac_optarg ;;
1470
1471   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1472     verbose=yes ;;
1473
1474   -version | --version | --versio | --versi | --vers | -V)
1475     ac_init_version=: ;;
1476
1477   -with-* | --with-*)
1478     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1479     # Reject names that are not valid shell variable names.
1480     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1481       as_fn_error $? "invalid package name: $ac_useropt"
1482     ac_useropt_orig=$ac_useropt
1483     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1484     case $ac_user_opts in
1485       *"
1486 "with_$ac_useropt"
1487 "*) ;;
1488       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1489          ac_unrecognized_sep=', ';;
1490     esac
1491     eval with_$ac_useropt=\$ac_optarg ;;
1492
1493   -without-* | --without-*)
1494     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1495     # Reject names that are not valid shell variable names.
1496     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1497       as_fn_error $? "invalid package name: $ac_useropt"
1498     ac_useropt_orig=$ac_useropt
1499     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1500     case $ac_user_opts in
1501       *"
1502 "with_$ac_useropt"
1503 "*) ;;
1504       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1505          ac_unrecognized_sep=', ';;
1506     esac
1507     eval with_$ac_useropt=no ;;
1508
1509   --x)
1510     # Obsolete; use --with-x.
1511     with_x=yes ;;
1512
1513   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1514   | --x-incl | --x-inc | --x-in | --x-i)
1515     ac_prev=x_includes ;;
1516   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1517   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1518     x_includes=$ac_optarg ;;
1519
1520   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1521   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1522     ac_prev=x_libraries ;;
1523   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1524   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1525     x_libraries=$ac_optarg ;;
1526
1527   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1528 Try \`$0 --help' for more information"
1529     ;;
1530
1531   *=*)
1532     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1533     # Reject names that are not valid shell variable names.
1534     case $ac_envvar in #(
1535       '' | [0-9]* | *[!_$as_cr_alnum]* )
1536       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1537     esac
1538     eval $ac_envvar=\$ac_optarg
1539     export $ac_envvar ;;
1540
1541   *)
1542     # FIXME: should be removed in autoconf 3.0.
1543     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1544     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1545       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1546     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1547     ;;
1548
1549   esac
1550 done
1551
1552 if test -n "$ac_prev"; then
1553   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1554   as_fn_error $? "missing argument to $ac_option"
1555 fi
1556
1557 if test -n "$ac_unrecognized_opts"; then
1558   case $enable_option_checking in
1559     no) ;;
1560     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1561     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1562   esac
1563 fi
1564
1565 # Check all directory arguments for consistency.
1566 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1567                 datadir sysconfdir sharedstatedir localstatedir includedir \
1568                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1569                 libdir localedir mandir
1570 do
1571   eval ac_val=\$$ac_var
1572   # Remove trailing slashes.
1573   case $ac_val in
1574     */ )
1575       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1576       eval $ac_var=\$ac_val;;
1577   esac
1578   # Be sure to have absolute directory names.
1579   case $ac_val in
1580     [\\/$]* | ?:[\\/]* )  continue;;
1581     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1582   esac
1583   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1584 done
1585
1586 # There might be people who depend on the old broken behavior: `$host'
1587 # used to hold the argument of --host etc.
1588 # FIXME: To remove some day.
1589 build=$build_alias
1590 host=$host_alias
1591 target=$target_alias
1592
1593 # FIXME: To remove some day.
1594 if test "x$host_alias" != x; then
1595   if test "x$build_alias" = x; then
1596     cross_compiling=maybe
1597     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1598     If a cross compiler is detected then cross compile mode will be used" >&2
1599   elif test "x$build_alias" != "x$host_alias"; then
1600     cross_compiling=yes
1601   fi
1602 fi
1603
1604 ac_tool_prefix=
1605 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1606
1607 test "$silent" = yes && exec 6>/dev/null
1608
1609
1610 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1611 ac_ls_di=`ls -di .` &&
1612 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1613   as_fn_error $? "working directory cannot be determined"
1614 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1615   as_fn_error $? "pwd does not report name of working directory"
1616
1617
1618 # Find the source files, if location was not specified.
1619 if test -z "$srcdir"; then
1620   ac_srcdir_defaulted=yes
1621   # Try the directory containing this script, then the parent directory.
1622   ac_confdir=`$as_dirname -- "$as_myself" ||
1623 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1624          X"$as_myself" : 'X\(//\)[^/]' \| \
1625          X"$as_myself" : 'X\(//\)$' \| \
1626          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1627 $as_echo X"$as_myself" |
1628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1629             s//\1/
1630             q
1631           }
1632           /^X\(\/\/\)[^/].*/{
1633             s//\1/
1634             q
1635           }
1636           /^X\(\/\/\)$/{
1637             s//\1/
1638             q
1639           }
1640           /^X\(\/\).*/{
1641             s//\1/
1642             q
1643           }
1644           s/.*/./; q'`
1645   srcdir=$ac_confdir
1646   if test ! -r "$srcdir/$ac_unique_file"; then
1647     srcdir=..
1648   fi
1649 else
1650   ac_srcdir_defaulted=no
1651 fi
1652 if test ! -r "$srcdir/$ac_unique_file"; then
1653   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1654   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1655 fi
1656 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1657 ac_abs_confdir=`(
1658         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1659         pwd)`
1660 # When building in place, set srcdir=.
1661 if test "$ac_abs_confdir" = "$ac_pwd"; then
1662   srcdir=.
1663 fi
1664 # Remove unnecessary trailing slashes from srcdir.
1665 # Double slashes in file names in object file debugging info
1666 # mess up M-x gdb in Emacs.
1667 case $srcdir in
1668 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1669 esac
1670 for ac_var in $ac_precious_vars; do
1671   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1672   eval ac_env_${ac_var}_value=\$${ac_var}
1673   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1674   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1675 done
1676
1677 #
1678 # Report the --help message.
1679 #
1680 if test "$ac_init_help" = "long"; then
1681   # Omit some internal or obsolete options to make the list less imposing.
1682   # This message is too long to be a string in the A/UX 3.1 sh.
1683   cat <<_ACEOF
1684 \`configure' configures bacula 5.1.14 to adapt to many kinds of systems.
1685
1686 Usage: $0 [OPTION]... [VAR=VALUE]...
1687
1688 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1689 VAR=VALUE.  See below for descriptions of some of the useful variables.
1690
1691 Defaults for the options are specified in brackets.
1692
1693 Configuration:
1694   -h, --help              display this help and exit
1695       --help=short        display options specific to this package
1696       --help=recursive    display the short help of all the included packages
1697   -V, --version           display version information and exit
1698   -q, --quiet, --silent   do not print \`checking ...' messages
1699       --cache-file=FILE   cache test results in FILE [disabled]
1700   -C, --config-cache      alias for \`--cache-file=config.cache'
1701   -n, --no-create         do not create output files
1702       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1703
1704 Installation directories:
1705   --prefix=PREFIX         install architecture-independent files in PREFIX
1706                           [$ac_default_prefix]
1707   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1708                           [PREFIX]
1709
1710 By default, \`make install' will install all the files in
1711 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1712 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1713 for instance \`--prefix=\$HOME'.
1714
1715 For better control, use the options below.
1716
1717 Fine tuning of the installation directories:
1718   --bindir=DIR            user executables [EPREFIX/bin]
1719   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1720   --libexecdir=DIR        program executables [EPREFIX/libexec]
1721   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1722   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1723   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1724   --libdir=DIR            object code libraries [EPREFIX/lib]
1725   --includedir=DIR        C header files [PREFIX/include]
1726   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1727   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1728   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1729   --infodir=DIR           info documentation [DATAROOTDIR/info]
1730   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1731   --mandir=DIR            man documentation [DATAROOTDIR/man]
1732   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1733   --htmldir=DIR           html documentation [DOCDIR]
1734   --dvidir=DIR            dvi documentation [DOCDIR]
1735   --pdfdir=DIR            pdf documentation [DOCDIR]
1736   --psdir=DIR             ps documentation [DOCDIR]
1737 _ACEOF
1738
1739   cat <<\_ACEOF
1740
1741 X features:
1742   --x-includes=DIR    X include files are in DIR
1743   --x-libraries=DIR   X library files are in DIR
1744
1745 System types:
1746   --build=BUILD     configure for building on BUILD [guessed]
1747   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1748 _ACEOF
1749 fi
1750
1751 if test -n "$ac_init_help"; then
1752   case $ac_init_help in
1753      short | recursive ) echo "Configuration of bacula 5.1.14:";;
1754    esac
1755   cat <<\_ACEOF
1756
1757 Optional Features:
1758   --disable-option-checking  ignore unrecognized --enable/--with options
1759   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1760   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1761   --enable-libtool        enable building using GNU libtool [default=yes]
1762   --enable-shared[=PKGS]  build shared libraries [default=yes]
1763   --enable-static[=PKGS]  build static libraries [default=no]
1764   --enable-fast-install[=PKGS]
1765                           optimize for fast installation [default=yes]
1766   --disable-libtool-lock  avoid locking (might break parallel builds)
1767   --enable-includes       enable installing of include files [default=no]
1768   --disable-nls           do not use Native Language Support
1769   --disable-rpath         do not hardcode runtime library paths
1770   --enable-gnome          enable build of bgnome-console GUI [default=no]
1771   --enable-bat            enable build of bat Qt4 GUI [default=no]
1772   --enable-bwx-console    enable build of wxWidgets console [default=no]
1773   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1774                           KDE [default=no]
1775   --enable-smartalloc     enable smartalloc debugging support [default=no]
1776   --enable-lockmgr        enable lock manager support [default=no]
1777   --enable-static-tools   enable static tape tools [default=no]
1778   --enable-static-fd      enable static File daemon [default=no]
1779   --enable-static-sd      enable static Storage daemon [default=no]
1780   --enable-static-dir     enable static Director [default=no]
1781   --enable-static-cons    enable static Console [default=no]
1782   --enable-client-only    build client (File daemon) only [default=no]
1783   --enable-build-dird     enable building of dird (Director) [default=yes]
1784   --enable-build-stored   enable building of stored (Storage daemon)
1785                           [default=yes]
1786   --disable-conio         disable conio support [default=no]
1787   --enable-ipv6           enable ipv6 support [default=yes]
1788   --disable-readline      disable readline support [default=yes]
1789   --enable-batch-insert   enable the DB batch insert code [default=yes]
1790   --disable-largefile     omit support for large files
1791   --disable-acl           disable acl support [default=auto]
1792   --disable-xattr         disable xattr support [default=auto]
1793
1794 Optional Packages:
1795   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1796   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1797   --with-pic              try to use only PIC/non-PIC objects [default=use
1798                           both]
1799   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1800   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1801   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1802   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1803   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1804   --without-libintl-prefix     don't search for libintl in includedir and libdir
1805   --with-included-gettext use the GNU gettext library included here
1806   --with-readline[=DIR]   specify readline library directory
1807   --with-python[=DIR]     Include Python support. DIR is the Python base
1808                           install directory, default is to search through a
1809                           number of common places for the Python files.
1810   --with-tcp-wrappers[=DIR]
1811                           enable tcpwrappers support
1812   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1813   --with-working-dir=PATH specify path of Bacula working directory
1814   --with-archivedir=PATH  specify path of SD archive directory
1815   --with-basename=RESNAME specify base resource name for daemons
1816   --with-hostname=RESNAME specify host name for daemons
1817   --with-scriptdir=PATH   specify path of Bacula scripts directory
1818   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1819   --with-logdir=PATH      specify path of Bacula logs directory
1820   --with-plugindir=PATH   specify path of Bacula plugins directory
1821   --with-dump-email=EMAIL dump email address
1822   --with-job-email=EMAIL  job output email address
1823   --with-smtp-host=HOST   SMTP mail host address
1824   --with-pid-dir=PATH     specify location of Bacula pid files
1825   --with-subsys-dir=PATH  specify location of Bacula subsys file
1826   --with-baseport=PORT    specify base port address for daemons
1827   --with-dir-password=PASSWORD
1828                           specify Director's password
1829   --with-fd-password=PASSWORD
1830                           specify Client's password
1831   --with-sd-password=PASSWORD
1832                           specify Storage daemon's password
1833   --with-mon-dir-password=PASSWORD
1834                           specify Director's password used by the monitor
1835   --with-mon-fd-password=PASSWORD
1836                           specify Client's password used by the monitor
1837   --with-mon-sd-password=PASSWORD
1838                           specify Storage daemon's password used by the
1839                           monitor
1840   --with-db-name=DBNAME   specify database name [default=bacula]
1841   --with-db-user=UNAME    specify database user [default=bacula]
1842   --with-db-password=PWD  specify database password [default=*none*]
1843   --with-db-port=DBPORT   specify a database port [default=null]
1844   --with-dir-user=USER    specify user for Director daemon
1845   --with-dir-group=GROUP  specify group for Director daemon
1846   --with-sd-user=USER     specify user for Storage daemon
1847   --with-sd-group=GROUP   specify group for Storage daemon
1848   --with-fd-user=USER     specify user for File daemon
1849   --with-fd-group=GROUP   specify group for File daemon
1850   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1851   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1852                           base install directory, [default=/usr/local/pgsql]
1853   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1854                           directory, default is to search through a number of
1855                           common places for the MySQL files.
1856   --with-embedded-mysql[=DIR]
1857                           Include MySQL support. DIR is the MySQL base install
1858                           directory, default is to search through a number of
1859                           common places for the MySQL files.
1860   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1861                           install directory, default is to search through a
1862                           number of common places for the SQLite3 files.
1863   --with-x                use the X Window System
1864
1865 Some influential environment variables:
1866   CC          C compiler command
1867   CFLAGS      C compiler flags
1868   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1869               nonstandard directory <lib dir>
1870   LIBS        libraries to pass to the linker, e.g. -l<library>
1871   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1872               you have headers in a nonstandard directory <include dir>
1873   CXX         C++ compiler command
1874   CXXFLAGS    C++ compiler flags
1875   CPP         C preprocessor
1876   WXCONFIG    wx-config command. On some systems, you must set it to
1877               wx-config-2.6 to use wxWidgets 2.6.
1878   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1879   CXXCPP      C++ preprocessor
1880   XMKMF       Path to xmkmf, Makefile generator for X Window System
1881
1882 Use these variables to override the choices made by `configure' or to help
1883 it to find libraries and programs with nonstandard names/locations.
1884
1885 Report bugs to the package provider.
1886 _ACEOF
1887 ac_status=$?
1888 fi
1889
1890 if test "$ac_init_help" = "recursive"; then
1891   # If there are subdirs, report their specific --help.
1892   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1893     test -d "$ac_dir" ||
1894       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1895       continue
1896     ac_builddir=.
1897
1898 case "$ac_dir" in
1899 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1900 *)
1901   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1902   # A ".." for each directory in $ac_dir_suffix.
1903   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1904   case $ac_top_builddir_sub in
1905   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1906   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1907   esac ;;
1908 esac
1909 ac_abs_top_builddir=$ac_pwd
1910 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1911 # for backward compatibility:
1912 ac_top_builddir=$ac_top_build_prefix
1913
1914 case $srcdir in
1915   .)  # We are building in place.
1916     ac_srcdir=.
1917     ac_top_srcdir=$ac_top_builddir_sub
1918     ac_abs_top_srcdir=$ac_pwd ;;
1919   [\\/]* | ?:[\\/]* )  # Absolute name.
1920     ac_srcdir=$srcdir$ac_dir_suffix;
1921     ac_top_srcdir=$srcdir
1922     ac_abs_top_srcdir=$srcdir ;;
1923   *) # Relative name.
1924     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1925     ac_top_srcdir=$ac_top_build_prefix$srcdir
1926     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1927 esac
1928 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1929
1930     cd "$ac_dir" || { ac_status=$?; continue; }
1931     # Check for guested configure.
1932     if test -f "$ac_srcdir/configure.gnu"; then
1933       echo &&
1934       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1935     elif test -f "$ac_srcdir/configure"; then
1936       echo &&
1937       $SHELL "$ac_srcdir/configure" --help=recursive
1938     else
1939       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1940     fi || ac_status=$?
1941     cd "$ac_pwd" || { ac_status=$?; break; }
1942   done
1943 fi
1944
1945 test -n "$ac_init_help" && exit $ac_status
1946 if $ac_init_version; then
1947   cat <<\_ACEOF
1948 bacula configure 5.1.14
1949 generated by GNU Autoconf 2.68
1950
1951 Copyright (C) 2010 Free Software Foundation, Inc.
1952 This configure script is free software; the Free Software Foundation
1953 gives unlimited permission to copy, distribute and modify it.
1954 _ACEOF
1955   exit
1956 fi
1957
1958 ## ------------------------ ##
1959 ## Autoconf initialization. ##
1960 ## ------------------------ ##
1961
1962 # ac_fn_c_try_compile LINENO
1963 # --------------------------
1964 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1965 ac_fn_c_try_compile ()
1966 {
1967   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968   rm -f conftest.$ac_objext
1969   if { { ac_try="$ac_compile"
1970 case "(($ac_try" in
1971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972   *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976   (eval "$ac_compile") 2>conftest.err
1977   ac_status=$?
1978   if test -s conftest.err; then
1979     grep -v '^ *+' conftest.err >conftest.er1
1980     cat conftest.er1 >&5
1981     mv -f conftest.er1 conftest.err
1982   fi
1983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984   test $ac_status = 0; } && {
1985          test -z "$ac_c_werror_flag" ||
1986          test ! -s conftest.err
1987        } && test -s conftest.$ac_objext; then :
1988   ac_retval=0
1989 else
1990   $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993         ac_retval=1
1994 fi
1995   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996   as_fn_set_status $ac_retval
1997
1998 } # ac_fn_c_try_compile
1999
2000 # ac_fn_cxx_try_compile LINENO
2001 # ----------------------------
2002 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_cxx_try_compile ()
2004 {
2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006   rm -f conftest.$ac_objext
2007   if { { ac_try="$ac_compile"
2008 case "(($ac_try" in
2009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010   *) ac_try_echo=$ac_try;;
2011 esac
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014   (eval "$ac_compile") 2>conftest.err
2015   ac_status=$?
2016   if test -s conftest.err; then
2017     grep -v '^ *+' conftest.err >conftest.er1
2018     cat conftest.er1 >&5
2019     mv -f conftest.er1 conftest.err
2020   fi
2021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022   test $ac_status = 0; } && {
2023          test -z "$ac_cxx_werror_flag" ||
2024          test ! -s conftest.err
2025        } && test -s conftest.$ac_objext; then :
2026   ac_retval=0
2027 else
2028   $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2030
2031         ac_retval=1
2032 fi
2033   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034   as_fn_set_status $ac_retval
2035
2036 } # ac_fn_cxx_try_compile
2037
2038 # ac_fn_c_try_cpp LINENO
2039 # ----------------------
2040 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2041 ac_fn_c_try_cpp ()
2042 {
2043   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044   if { { ac_try="$ac_cpp conftest.$ac_ext"
2045 case "(($ac_try" in
2046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047   *) ac_try_echo=$ac_try;;
2048 esac
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2052   ac_status=$?
2053   if test -s conftest.err; then
2054     grep -v '^ *+' conftest.err >conftest.er1
2055     cat conftest.er1 >&5
2056     mv -f conftest.er1 conftest.err
2057   fi
2058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059   test $ac_status = 0; } > conftest.i && {
2060          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2061          test ! -s conftest.err
2062        }; then :
2063   ac_retval=0
2064 else
2065   $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2067
2068     ac_retval=1
2069 fi
2070   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071   as_fn_set_status $ac_retval
2072
2073 } # ac_fn_c_try_cpp
2074
2075 # ac_fn_c_try_link LINENO
2076 # -----------------------
2077 # Try to link conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_c_try_link ()
2079 {
2080   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081   rm -f conftest.$ac_objext conftest$ac_exeext
2082   if { { ac_try="$ac_link"
2083 case "(($ac_try" in
2084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085   *) ac_try_echo=$ac_try;;
2086 esac
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089   (eval "$ac_link") 2>conftest.err
2090   ac_status=$?
2091   if test -s conftest.err; then
2092     grep -v '^ *+' conftest.err >conftest.er1
2093     cat conftest.er1 >&5
2094     mv -f conftest.er1 conftest.err
2095   fi
2096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097   test $ac_status = 0; } && {
2098          test -z "$ac_c_werror_flag" ||
2099          test ! -s conftest.err
2100        } && test -s conftest$ac_exeext && {
2101          test "$cross_compiling" = yes ||
2102          $as_test_x conftest$ac_exeext
2103        }; then :
2104   ac_retval=0
2105 else
2106   $as_echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109         ac_retval=1
2110 fi
2111   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2112   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2113   # interfere with the next link command; also delete a directory that is
2114   # left behind by Apple's compiler.  We do this before executing the actions.
2115   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2116   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117   as_fn_set_status $ac_retval
2118
2119 } # ac_fn_c_try_link
2120
2121 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2122 # -------------------------------------------------------
2123 # Tests whether HEADER exists and can be compiled using the include files in
2124 # INCLUDES, setting the cache variable VAR accordingly.
2125 ac_fn_c_check_header_compile ()
2126 {
2127   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \${$3+:} false; then :
2131   $as_echo_n "(cached) " >&6
2132 else
2133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h.  */
2135 $4
2136 #include <$2>
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139   eval "$3=yes"
2140 else
2141   eval "$3=no"
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 eval ac_res=\$$3
2146                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149
2150 } # ac_fn_c_check_header_compile
2151
2152 # ac_fn_c_try_run LINENO
2153 # ----------------------
2154 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2155 # that executables *can* be run.
2156 ac_fn_c_try_run ()
2157 {
2158   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159   if { { ac_try="$ac_link"
2160 case "(($ac_try" in
2161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162   *) ac_try_echo=$ac_try;;
2163 esac
2164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2165 $as_echo "$ac_try_echo"; } >&5
2166   (eval "$ac_link") 2>&5
2167   ac_status=$?
2168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2170   { { case "(($ac_try" in
2171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172   *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176   (eval "$ac_try") 2>&5
2177   ac_status=$?
2178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179   test $ac_status = 0; }; }; then :
2180   ac_retval=0
2181 else
2182   $as_echo "$as_me: program exited with status $ac_status" >&5
2183        $as_echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2185
2186        ac_retval=$ac_status
2187 fi
2188   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2189   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190   as_fn_set_status $ac_retval
2191
2192 } # ac_fn_c_try_run
2193
2194 # ac_fn_c_check_func LINENO FUNC VAR
2195 # ----------------------------------
2196 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2197 ac_fn_c_check_func ()
2198 {
2199   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if eval \${$3+:} false; then :
2203   $as_echo_n "(cached) " >&6
2204 else
2205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h.  */
2207 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2209 #define $2 innocuous_$2
2210
2211 /* System header to define __stub macros and hopefully few prototypes,
2212     which can conflict with char $2 (); below.
2213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2214     <limits.h> exists even on freestanding compilers.  */
2215
2216 #ifdef __STDC__
2217 # include <limits.h>
2218 #else
2219 # include <assert.h>
2220 #endif
2221
2222 #undef $2
2223
2224 /* Override any GCC internal prototype to avoid an error.
2225    Use char because int might match the return type of a GCC
2226    builtin and then its argument prototype would still apply.  */
2227 #ifdef __cplusplus
2228 extern "C"
2229 #endif
2230 char $2 ();
2231 /* The GNU C library defines this for functions which it implements
2232     to always fail with ENOSYS.  Some functions are actually named
2233     something starting with __ and the normal name is an alias.  */
2234 #if defined __stub_$2 || defined __stub___$2
2235 choke me
2236 #endif
2237
2238 int
2239 main ()
2240 {
2241 return $2 ();
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_link "$LINENO"; then :
2247   eval "$3=yes"
2248 else
2249   eval "$3=no"
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext \
2252     conftest$ac_exeext conftest.$ac_ext
2253 fi
2254 eval ac_res=\$$3
2255                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258
2259 } # ac_fn_c_check_func
2260
2261 # ac_fn_cxx_try_cpp LINENO
2262 # ------------------------
2263 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2264 ac_fn_cxx_try_cpp ()
2265 {
2266   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267   if { { ac_try="$ac_cpp conftest.$ac_ext"
2268 case "(($ac_try" in
2269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270   *) ac_try_echo=$ac_try;;
2271 esac
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2275   ac_status=$?
2276   if test -s conftest.err; then
2277     grep -v '^ *+' conftest.err >conftest.er1
2278     cat conftest.er1 >&5
2279     mv -f conftest.er1 conftest.err
2280   fi
2281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282   test $ac_status = 0; } > conftest.i && {
2283          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2284          test ! -s conftest.err
2285        }; then :
2286   ac_retval=0
2287 else
2288   $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291     ac_retval=1
2292 fi
2293   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294   as_fn_set_status $ac_retval
2295
2296 } # ac_fn_cxx_try_cpp
2297
2298 # ac_fn_cxx_try_link LINENO
2299 # -------------------------
2300 # Try to link conftest.$ac_ext, and return whether this succeeded.
2301 ac_fn_cxx_try_link ()
2302 {
2303   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304   rm -f conftest.$ac_objext conftest$ac_exeext
2305   if { { ac_try="$ac_link"
2306 case "(($ac_try" in
2307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308   *) ac_try_echo=$ac_try;;
2309 esac
2310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311 $as_echo "$ac_try_echo"; } >&5
2312   (eval "$ac_link") 2>conftest.err
2313   ac_status=$?
2314   if test -s conftest.err; then
2315     grep -v '^ *+' conftest.err >conftest.er1
2316     cat conftest.er1 >&5
2317     mv -f conftest.er1 conftest.err
2318   fi
2319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320   test $ac_status = 0; } && {
2321          test -z "$ac_cxx_werror_flag" ||
2322          test ! -s conftest.err
2323        } && test -s conftest$ac_exeext && {
2324          test "$cross_compiling" = yes ||
2325          $as_test_x conftest$ac_exeext
2326        }; then :
2327   ac_retval=0
2328 else
2329   $as_echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332         ac_retval=1
2333 fi
2334   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2335   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2336   # interfere with the next link command; also delete a directory that is
2337   # left behind by Apple's compiler.  We do this before executing the actions.
2338   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2339   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340   as_fn_set_status $ac_retval
2341
2342 } # ac_fn_cxx_try_link
2343
2344 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2345 # -------------------------------------------
2346 # Tests whether TYPE exists after having included INCLUDES, setting cache
2347 # variable VAR accordingly.
2348 ac_fn_c_check_type ()
2349 {
2350   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2352 $as_echo_n "checking for $2... " >&6; }
2353 if eval \${$3+:} false; then :
2354   $as_echo_n "(cached) " >&6
2355 else
2356   eval "$3=no"
2357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h.  */
2359 $4
2360 int
2361 main ()
2362 {
2363 if (sizeof ($2))
2364          return 0;
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 if ac_fn_c_try_compile "$LINENO"; then :
2370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 $4
2373 int
2374 main ()
2375 {
2376 if (sizeof (($2)))
2377             return 0;
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 if ac_fn_c_try_compile "$LINENO"; then :
2383
2384 else
2385   eval "$3=yes"
2386 fi
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 fi
2391 eval ac_res=\$$3
2392                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2393 $as_echo "$ac_res" >&6; }
2394   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2395
2396 } # ac_fn_c_check_type
2397
2398 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2399 # -------------------------------------------------------
2400 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2401 # the include files in INCLUDES and setting the cache variable VAR
2402 # accordingly.
2403 ac_fn_c_check_header_mongrel ()
2404 {
2405   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406   if eval \${$3+:} false; then :
2407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2408 $as_echo_n "checking for $2... " >&6; }
2409 if eval \${$3+:} false; then :
2410   $as_echo_n "(cached) " >&6
2411 fi
2412 eval ac_res=\$$3
2413                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 else
2416   # Is the header compilable?
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2418 $as_echo_n "checking $2 usability... " >&6; }
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h.  */
2421 $4
2422 #include <$2>
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425   ac_header_compiler=yes
2426 else
2427   ac_header_compiler=no
2428 fi
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2431 $as_echo "$ac_header_compiler" >&6; }
2432
2433 # Is the header present?
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2435 $as_echo_n "checking $2 presence... " >&6; }
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h.  */
2438 #include <$2>
2439 _ACEOF
2440 if ac_fn_c_try_cpp "$LINENO"; then :
2441   ac_header_preproc=yes
2442 else
2443   ac_header_preproc=no
2444 fi
2445 rm -f conftest.err conftest.i conftest.$ac_ext
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2447 $as_echo "$ac_header_preproc" >&6; }
2448
2449 # So?  What about this header?
2450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2451   yes:no: )
2452     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2453 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2454     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2456     ;;
2457   no:yes:* )
2458     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2459 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2461 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2462     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2463 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2464     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2465 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2467 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2468     ;;
2469 esac
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if eval \${$3+:} false; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   eval "$3=\$ac_header_compiler"
2476 fi
2477 eval ac_res=\$$3
2478                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 fi
2481   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2482
2483 } # ac_fn_c_check_header_mongrel
2484
2485 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2486 # --------------------------------------------
2487 # Tries to find the compile-time value of EXPR in a program that includes
2488 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2489 # computed
2490 ac_fn_c_compute_int ()
2491 {
2492   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493   if test "$cross_compiling" = yes; then
2494     # Depending upon the size, compute the lo and hi bounds.
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h.  */
2497 $4
2498 int
2499 main ()
2500 {
2501 static int test_array [1 - 2 * !(($2) >= 0)];
2502 test_array [0] = 0
2503
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 if ac_fn_c_try_compile "$LINENO"; then :
2509   ac_lo=0 ac_mid=0
2510   while :; do
2511     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h.  */
2513 $4
2514 int
2515 main ()
2516 {
2517 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2518 test_array [0] = 0
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525   ac_hi=$ac_mid; break
2526 else
2527   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2528                         if test $ac_lo -le $ac_mid; then
2529                           ac_lo= ac_hi=
2530                           break
2531                         fi
2532                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535   done
2536 else
2537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h.  */
2539 $4
2540 int
2541 main ()
2542 {
2543 static int test_array [1 - 2 * !(($2) < 0)];
2544 test_array [0] = 0
2545
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 if ac_fn_c_try_compile "$LINENO"; then :
2551   ac_hi=-1 ac_mid=-1
2552   while :; do
2553     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h.  */
2555 $4
2556 int
2557 main ()
2558 {
2559 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2560 test_array [0] = 0
2561
2562   ;
2563   return 0;
2564 }
2565 _ACEOF
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567   ac_lo=$ac_mid; break
2568 else
2569   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2570                         if test $ac_mid -le $ac_hi; then
2571                           ac_lo= ac_hi=
2572                           break
2573                         fi
2574                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2575 fi
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577   done
2578 else
2579   ac_lo= ac_hi=
2580 fi
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 # Binary search between lo and hi bounds.
2585 while test "x$ac_lo" != "x$ac_hi"; do
2586   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h.  */
2589 $4
2590 int
2591 main ()
2592 {
2593 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2594 test_array [0] = 0
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 if ac_fn_c_try_compile "$LINENO"; then :
2601   ac_hi=$ac_mid
2602 else
2603   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2604 fi
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 done
2607 case $ac_lo in #((
2608 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2609 '') ac_retval=1 ;;
2610 esac
2611   else
2612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h.  */
2614 $4
2615 static long int longval () { return $2; }
2616 static unsigned long int ulongval () { return $2; }
2617 #include <stdio.h>
2618 #include <stdlib.h>
2619 int
2620 main ()
2621 {
2622
2623   FILE *f = fopen ("conftest.val", "w");
2624   if (! f)
2625     return 1;
2626   if (($2) < 0)
2627     {
2628       long int i = longval ();
2629       if (i != ($2))
2630         return 1;
2631       fprintf (f, "%ld", i);
2632     }
2633   else
2634     {
2635       unsigned long int i = ulongval ();
2636       if (i != ($2))
2637         return 1;
2638       fprintf (f, "%lu", i);
2639     }
2640   /* Do not output a trailing newline, as this causes \r\n confusion
2641      on some platforms.  */
2642   return ferror (f) || fclose (f) != 0;
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 if ac_fn_c_try_run "$LINENO"; then :
2649   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2650 else
2651   ac_retval=1
2652 fi
2653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2654   conftest.$ac_objext conftest.beam conftest.$ac_ext
2655 rm -f conftest.val
2656
2657   fi
2658   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659   as_fn_set_status $ac_retval
2660
2661 } # ac_fn_c_compute_int
2662
2663 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2664 # ----------------------------------------------------
2665 # Tries to find if the field MEMBER exists in type AGGR, after including
2666 # INCLUDES, setting cache variable VAR accordingly.
2667 ac_fn_c_check_member ()
2668 {
2669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2671 $as_echo_n "checking for $2.$3... " >&6; }
2672 if eval \${$4+:} false; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h.  */
2677 $5
2678 int
2679 main ()
2680 {
2681 static $2 ac_aggr;
2682 if (ac_aggr.$3)
2683 return 0;
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689   eval "$4=yes"
2690 else
2691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h.  */
2693 $5
2694 int
2695 main ()
2696 {
2697 static $2 ac_aggr;
2698 if (sizeof ac_aggr.$3)
2699 return 0;
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 if ac_fn_c_try_compile "$LINENO"; then :
2705   eval "$4=yes"
2706 else
2707   eval "$4=no"
2708 fi
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 fi
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 fi
2713 eval ac_res=\$$4
2714                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715 $as_echo "$ac_res" >&6; }
2716   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2717
2718 } # ac_fn_c_check_member
2719
2720 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2721 # ---------------------------------------------
2722 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2723 # accordingly.
2724 ac_fn_c_check_decl ()
2725 {
2726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727   as_decl_name=`echo $2|sed 's/ *(.*//'`
2728   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2730 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2731 if eval \${$3+:} false; then :
2732   $as_echo_n "(cached) " >&6
2733 else
2734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h.  */
2736 $4
2737 int
2738 main ()
2739 {
2740 #ifndef $as_decl_name
2741 #ifdef __cplusplus
2742   (void) $as_decl_use;
2743 #else
2744   (void) $as_decl_name;
2745 #endif
2746 #endif
2747
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 if ac_fn_c_try_compile "$LINENO"; then :
2753   eval "$3=yes"
2754 else
2755   eval "$3=no"
2756 fi
2757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 fi
2759 eval ac_res=\$$3
2760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761 $as_echo "$ac_res" >&6; }
2762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2763
2764 } # ac_fn_c_check_decl
2765
2766 # ac_fn_cxx_try_run LINENO
2767 # ------------------------
2768 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2769 # that executables *can* be run.
2770 ac_fn_cxx_try_run ()
2771 {
2772   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773   if { { ac_try="$ac_link"
2774 case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779 $as_echo "$ac_try_echo"; } >&5
2780   (eval "$ac_link") 2>&5
2781   ac_status=$?
2782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2784   { { case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790   (eval "$ac_try") 2>&5
2791   ac_status=$?
2792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793   test $ac_status = 0; }; }; then :
2794   ac_retval=0
2795 else
2796   $as_echo "$as_me: program exited with status $ac_status" >&5
2797        $as_echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800        ac_retval=$ac_status
2801 fi
2802   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2803   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2804   as_fn_set_status $ac_retval
2805
2806 } # ac_fn_cxx_try_run
2807
2808 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2809 # ---------------------------------------------------------
2810 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2811 # the include files in INCLUDES and setting the cache variable VAR
2812 # accordingly.
2813 ac_fn_cxx_check_header_mongrel ()
2814 {
2815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816   if eval \${$3+:} false; then :
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2818 $as_echo_n "checking for $2... " >&6; }
2819 if eval \${$3+:} false; then :
2820   $as_echo_n "(cached) " >&6
2821 fi
2822 eval ac_res=\$$3
2823                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2824 $as_echo "$ac_res" >&6; }
2825 else
2826   # Is the header compilable?
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2828 $as_echo_n "checking $2 usability... " >&6; }
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h.  */
2831 $4
2832 #include <$2>
2833 _ACEOF
2834 if ac_fn_cxx_try_compile "$LINENO"; then :
2835   ac_header_compiler=yes
2836 else
2837   ac_header_compiler=no
2838 fi
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2841 $as_echo "$ac_header_compiler" >&6; }
2842
2843 # Is the header present?
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2845 $as_echo_n "checking $2 presence... " >&6; }
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h.  */
2848 #include <$2>
2849 _ACEOF
2850 if ac_fn_cxx_try_cpp "$LINENO"; then :
2851   ac_header_preproc=yes
2852 else
2853   ac_header_preproc=no
2854 fi
2855 rm -f conftest.err conftest.i conftest.$ac_ext
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2857 $as_echo "$ac_header_preproc" >&6; }
2858
2859 # So?  What about this header?
2860 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2861   yes:no: )
2862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2863 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2866     ;;
2867   no:yes:* )
2868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2869 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2871 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2873 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2875 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2878     ;;
2879 esac
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2881 $as_echo_n "checking for $2... " >&6; }
2882 if eval \${$3+:} false; then :
2883   $as_echo_n "(cached) " >&6
2884 else
2885   eval "$3=\$ac_header_compiler"
2886 fi
2887 eval ac_res=\$$3
2888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2889 $as_echo "$ac_res" >&6; }
2890 fi
2891   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2892
2893 } # ac_fn_cxx_check_header_mongrel
2894 cat >config.log <<_ACEOF
2895 This file contains any messages produced by compilers while
2896 running configure, to aid debugging if configure makes a mistake.
2897
2898 It was created by bacula $as_me 5.1.14, which was
2899 generated by GNU Autoconf 2.68.  Invocation command line was
2900
2901   $ $0 $@
2902
2903 _ACEOF
2904 exec 5>>config.log
2905 {
2906 cat <<_ASUNAME
2907 ## --------- ##
2908 ## Platform. ##
2909 ## --------- ##
2910
2911 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2912 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2913 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2914 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2915 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2916
2917 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2918 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2919
2920 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2921 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2922 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2923 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2924 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2925 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2926 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2927
2928 _ASUNAME
2929
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935     $as_echo "PATH: $as_dir"
2936   done
2937 IFS=$as_save_IFS
2938
2939 } >&5
2940
2941 cat >&5 <<_ACEOF
2942
2943
2944 ## ----------- ##
2945 ## Core tests. ##
2946 ## ----------- ##
2947
2948 _ACEOF
2949
2950
2951 # Keep a trace of the command line.
2952 # Strip out --no-create and --no-recursion so they do not pile up.
2953 # Strip out --silent because we don't want to record it for future runs.
2954 # Also quote any args containing shell meta-characters.
2955 # Make two passes to allow for proper duplicate-argument suppression.
2956 ac_configure_args=
2957 ac_configure_args0=
2958 ac_configure_args1=
2959 ac_must_keep_next=false
2960 for ac_pass in 1 2
2961 do
2962   for ac_arg
2963   do
2964     case $ac_arg in
2965     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2966     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2967     | -silent | --silent | --silen | --sile | --sil)
2968       continue ;;
2969     *\'*)
2970       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2971     esac
2972     case $ac_pass in
2973     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2974     2)
2975       as_fn_append ac_configure_args1 " '$ac_arg'"
2976       if test $ac_must_keep_next = true; then
2977         ac_must_keep_next=false # Got value, back to normal.
2978       else
2979         case $ac_arg in
2980           *=* | --config-cache | -C | -disable-* | --disable-* \
2981           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2982           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2983           | -with-* | --with-* | -without-* | --without-* | --x)
2984             case "$ac_configure_args0 " in
2985               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2986             esac
2987             ;;
2988           -* ) ac_must_keep_next=true ;;
2989         esac
2990       fi
2991       as_fn_append ac_configure_args " '$ac_arg'"
2992       ;;
2993     esac
2994   done
2995 done
2996 { ac_configure_args0=; unset ac_configure_args0;}
2997 { ac_configure_args1=; unset ac_configure_args1;}
2998
2999 # When interrupted or exit'd, cleanup temporary files, and complete
3000 # config.log.  We remove comments because anyway the quotes in there
3001 # would cause problems or look ugly.
3002 # WARNING: Use '\'' to represent an apostrophe within the trap.
3003 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3004 trap 'exit_status=$?
3005   # Save into config.log some information that might help in debugging.
3006   {
3007     echo
3008
3009     $as_echo "## ---------------- ##
3010 ## Cache variables. ##
3011 ## ---------------- ##"
3012     echo
3013     # The following way of writing the cache mishandles newlines in values,
3014 (
3015   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3016     eval ac_val=\$$ac_var
3017     case $ac_val in #(
3018     *${as_nl}*)
3019       case $ac_var in #(
3020       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3022       esac
3023       case $ac_var in #(
3024       _ | IFS | as_nl) ;; #(
3025       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3026       *) { eval $ac_var=; unset $ac_var;} ;;
3027       esac ;;
3028     esac
3029   done
3030   (set) 2>&1 |
3031     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3032     *${as_nl}ac_space=\ *)
3033       sed -n \
3034         "s/'\''/'\''\\\\'\'''\''/g;
3035           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3036       ;; #(
3037     *)
3038       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3039       ;;
3040     esac |
3041     sort
3042 )
3043     echo
3044
3045     $as_echo "## ----------------- ##
3046 ## Output variables. ##
3047 ## ----------------- ##"
3048     echo
3049     for ac_var in $ac_subst_vars
3050     do
3051       eval ac_val=\$$ac_var
3052       case $ac_val in
3053       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3054       esac
3055       $as_echo "$ac_var='\''$ac_val'\''"
3056     done | sort
3057     echo
3058
3059     if test -n "$ac_subst_files"; then
3060       $as_echo "## ------------------- ##
3061 ## File substitutions. ##
3062 ## ------------------- ##"
3063       echo
3064       for ac_var in $ac_subst_files
3065       do
3066         eval ac_val=\$$ac_var
3067         case $ac_val in
3068         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3069         esac
3070         $as_echo "$ac_var='\''$ac_val'\''"
3071       done | sort
3072       echo
3073     fi
3074
3075     if test -s confdefs.h; then
3076       $as_echo "## ----------- ##
3077 ## confdefs.h. ##
3078 ## ----------- ##"
3079       echo
3080       cat confdefs.h
3081       echo
3082     fi
3083     test "$ac_signal" != 0 &&
3084       $as_echo "$as_me: caught signal $ac_signal"
3085     $as_echo "$as_me: exit $exit_status"
3086   } >&5
3087   rm -f core *.core core.conftest.* &&
3088     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3089     exit $exit_status
3090 ' 0
3091 for ac_signal in 1 2 13 15; do
3092   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3093 done
3094 ac_signal=0
3095
3096 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3097 rm -f -r conftest* confdefs.h
3098
3099 $as_echo "/* confdefs.h */" > confdefs.h
3100
3101 # Predefined preprocessor variables.
3102
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_NAME "$PACKAGE_NAME"
3105 _ACEOF
3106
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3109 _ACEOF
3110
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3113 _ACEOF
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_STRING "$PACKAGE_STRING"
3117 _ACEOF
3118
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3121 _ACEOF
3122
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_URL "$PACKAGE_URL"
3125 _ACEOF
3126
3127
3128 # Let the site file select an alternate cache file if it wants to.
3129 # Prefer an explicitly selected file to automatically selected ones.
3130 ac_site_file1=NONE
3131 ac_site_file2=NONE
3132 if test -n "$CONFIG_SITE"; then
3133   # We do not want a PATH search for config.site.
3134   case $CONFIG_SITE in #((
3135     -*)  ac_site_file1=./$CONFIG_SITE;;
3136     */*) ac_site_file1=$CONFIG_SITE;;
3137     *)   ac_site_file1=./$CONFIG_SITE;;
3138   esac
3139 elif test "x$prefix" != xNONE; then
3140   ac_site_file1=$prefix/share/config.site
3141   ac_site_file2=$prefix/etc/config.site
3142 else
3143   ac_site_file1=$ac_default_prefix/share/config.site
3144   ac_site_file2=$ac_default_prefix/etc/config.site
3145 fi
3146 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3147 do
3148   test "x$ac_site_file" = xNONE && continue
3149   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3150     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3151 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3152     sed 's/^/| /' "$ac_site_file" >&5
3153     . "$ac_site_file" \
3154       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error $? "failed to load site script $ac_site_file
3157 See \`config.log' for more details" "$LINENO" 5; }
3158   fi
3159 done
3160
3161 if test -r "$cache_file"; then
3162   # Some versions of bash will fail to source /dev/null (special files
3163   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3164   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3165     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3166 $as_echo "$as_me: loading cache $cache_file" >&6;}
3167     case $cache_file in
3168       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3169       *)                      . "./$cache_file";;
3170     esac
3171   fi
3172 else
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3174 $as_echo "$as_me: creating cache $cache_file" >&6;}
3175   >$cache_file
3176 fi
3177
3178 as_fn_append ac_header_list " stdlib.h"
3179 as_fn_append ac_header_list " unistd.h"
3180 as_fn_append ac_header_list " sys/param.h"
3181 # Check that the precious variables saved in the cache have kept the same
3182 # value.
3183 ac_cache_corrupted=false
3184 for ac_var in $ac_precious_vars; do
3185   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3186   eval ac_new_set=\$ac_env_${ac_var}_set
3187   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3188   eval ac_new_val=\$ac_env_${ac_var}_value
3189   case $ac_old_set,$ac_new_set in
3190     set,)
3191       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3192 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3193       ac_cache_corrupted=: ;;
3194     ,set)
3195       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3196 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3197       ac_cache_corrupted=: ;;
3198     ,);;
3199     *)
3200       if test "x$ac_old_val" != "x$ac_new_val"; then
3201         # differences in whitespace do not lead to failure.
3202         ac_old_val_w=`echo x $ac_old_val`
3203         ac_new_val_w=`echo x $ac_new_val`
3204         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3205           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3206 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3207           ac_cache_corrupted=:
3208         else
3209           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3210 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3211           eval $ac_var=\$ac_old_val
3212         fi
3213         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3214 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3215         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3216 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3217       fi;;
3218   esac
3219   # Pass precious variables to config.status.
3220   if test "$ac_new_set" = set; then
3221     case $ac_new_val in
3222     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3223     *) ac_arg=$ac_var=$ac_new_val ;;
3224     esac
3225     case " $ac_configure_args " in
3226       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3227       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3228     esac
3229   fi
3230 done
3231 if $ac_cache_corrupted; then
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3235 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3236   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3237 fi
3238 ## -------------------- ##
3239 ## Main body of script. ##
3240 ## -------------------- ##
3241
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247
3248
3249
3250
3251 BUILD_DIR=`pwd`
3252 cd ..
3253 TOP_DIR=`pwd`
3254 cd ${BUILD_DIR}
3255
3256
3257 ac_aux_dir=
3258 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3259   if test -f "$ac_dir/install-sh"; then
3260     ac_aux_dir=$ac_dir
3261     ac_install_sh="$ac_aux_dir/install-sh -c"
3262     break
3263   elif test -f "$ac_dir/install.sh"; then
3264     ac_aux_dir=$ac_dir
3265     ac_install_sh="$ac_aux_dir/install.sh -c"
3266     break
3267   elif test -f "$ac_dir/shtool"; then
3268     ac_aux_dir=$ac_dir
3269     ac_install_sh="$ac_aux_dir/shtool install -c"
3270     break
3271   fi
3272 done
3273 if test -z "$ac_aux_dir"; then
3274   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3275 fi
3276
3277 # These three variables are undocumented and unsupported,
3278 # and are intended to be withdrawn in a future Autoconf release.
3279 # They can cause serious problems if a builder's source tree is in a directory
3280 # whose full name contains unusual characters.
3281 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3282 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3283 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3284
3285
3286 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3287
3288
3289 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3290 WIN32MAINDIR=${BUILD_DIR}
3291 WIN32TOPDIR=${TOP_DIR}
3292
3293
3294
3295
3296 for ac_prog in true
3297 do
3298   # Extract the first word of "$ac_prog", so it can be a program name with args.
3299 set dummy $ac_prog; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_path_TRUEPRG+:} false; then :
3303   $as_echo_n "(cached) " >&6
3304 else
3305   case $TRUEPRG in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315     for ac_exec_ext in '' $ac_executable_extensions; do
3316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322   done
3323 IFS=$as_save_IFS
3324
3325   ;;
3326 esac
3327 fi
3328 TRUEPRG=$ac_cv_path_TRUEPRG
3329 if test -n "$TRUEPRG"; then
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3331 $as_echo "$TRUEPRG" >&6; }
3332 else
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338   test -n "$TRUEPRG" && break
3339 done
3340 test -n "$TRUEPRG" || TRUEPRG=":"
3341
3342 for ac_prog in false
3343 do
3344   # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_path_FALSEPRG+:} false; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   case $FALSEPRG in
3352   [\\/]* | ?:[\\/]*)
3353   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3354   ;;
3355   *)
3356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359   IFS=$as_save_IFS
3360   test -z "$as_dir" && as_dir=.
3361     for ac_exec_ext in '' $ac_executable_extensions; do
3362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365     break 2
3366   fi
3367 done
3368   done
3369 IFS=$as_save_IFS
3370
3371   ;;
3372 esac
3373 fi
3374 FALSEPRG=$ac_cv_path_FALSEPRG
3375 if test -n "$FALSEPRG"; then
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3377 $as_echo "$FALSEPRG" >&6; }
3378 else
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383
3384   test -n "$FALSEPRG" && break
3385 done
3386 test -n "$FALSEPRG" || FALSEPRG=":"
3387
3388
3389
3390 post_host=
3391 if test "x$BACULA" != x; then
3392    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3393 fi
3394 BACULA=${BACULA:-Bacula}
3395 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3396 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3397 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3398 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3399
3400 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3401 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3402 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3403
3404 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3405 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3406 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3407
3408
3409 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3410 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3411
3412 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3413 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3414
3415
3416 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3417
3418 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3419
3420
3421 echo "configuring for ${BACULA} $VERSION ($DATE)"
3422
3423
3424
3425 ac_ext=c
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 if test -n "$ac_tool_prefix"; then
3431   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_CC+:} false; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   if test -n "$CC"; then
3439   ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446     for ac_exec_ext in '' $ac_executable_extensions; do
3447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453   done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 CC=$ac_cv_prog_CC
3459 if test -n "$CC"; then
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461 $as_echo "$CC" >&6; }
3462 else
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467
3468 fi
3469 if test -z "$ac_cv_prog_CC"; then
3470   ac_ct_CC=$CC
3471   # Extract the first word of "gcc", so it can be a program name with args.
3472 set dummy gcc; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3476   $as_echo_n "(cached) " >&6
3477 else
3478   if test -n "$ac_ct_CC"; then
3479   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484   IFS=$as_save_IFS
3485   test -z "$as_dir" && as_dir=.
3486     for ac_exec_ext in '' $ac_executable_extensions; do
3487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488     ac_cv_prog_ac_ct_CC="gcc"
3489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493   done
3494 IFS=$as_save_IFS
3495
3496 fi
3497 fi
3498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3502 else
3503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 fi
3506
3507   if test "x$ac_ct_CC" = x; then
3508     CC=""
3509   else
3510     case $cross_compiling:$ac_tool_warned in
3511 yes:)
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514 ac_tool_warned=yes ;;
3515 esac
3516     CC=$ac_ct_CC
3517   fi
3518 else
3519   CC="$ac_cv_prog_CC"
3520 fi
3521
3522 if test -z "$CC"; then
3523           if test -n "$ac_tool_prefix"; then
3524     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3525 set dummy ${ac_tool_prefix}cc; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_CC+:} false; then :
3529   $as_echo_n "(cached) " >&6
3530 else
3531   if test -n "$CC"; then
3532   ac_cv_prog_CC="$CC" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3536 do
3537   IFS=$as_save_IFS
3538   test -z "$as_dir" && as_dir=.
3539     for ac_exec_ext in '' $ac_executable_extensions; do
3540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541     ac_cv_prog_CC="${ac_tool_prefix}cc"
3542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543     break 2
3544   fi
3545 done
3546   done
3547 IFS=$as_save_IFS
3548
3549 fi
3550 fi
3551 CC=$ac_cv_prog_CC
3552 if test -n "$CC"; then
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3555 else
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3558 fi
3559
3560
3561   fi
3562 fi
3563 if test -z "$CC"; then
3564   # Extract the first word of "cc", so it can be a program name with args.
3565 set dummy cc; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if ${ac_cv_prog_CC+:} false; then :
3569   $as_echo_n "(cached) " >&6
3570 else
3571   if test -n "$CC"; then
3572   ac_cv_prog_CC="$CC" # Let the user override the test.
3573 else
3574   ac_prog_rejected=no
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578   IFS=$as_save_IFS
3579   test -z "$as_dir" && as_dir=.
3580     for ac_exec_ext in '' $ac_executable_extensions; do
3581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3583        ac_prog_rejected=yes
3584        continue
3585      fi
3586     ac_cv_prog_CC="cc"
3587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588     break 2
3589   fi
3590 done
3591   done
3592 IFS=$as_save_IFS
3593
3594 if test $ac_prog_rejected = yes; then
3595   # We found a bogon in the path, so make sure we never use it.
3596   set dummy $ac_cv_prog_CC
3597   shift
3598   if test $# != 0; then
3599     # We chose a different compiler from the bogus one.
3600     # However, it has the same basename, so the bogon will be chosen
3601     # first if we set CC to just the basename; use the full file name.
3602     shift
3603     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3604   fi
3605 fi
3606 fi
3607 fi
3608 CC=$ac_cv_prog_CC
3609 if test -n "$CC"; then
3610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3612 else
3613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618 fi
3619 if test -z "$CC"; then
3620   if test -n "$ac_tool_prefix"; then
3621   for ac_prog in cl.exe
3622   do
3623     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if ${ac_cv_prog_CC+:} false; then :
3628   $as_echo_n "(cached) " >&6
3629 else
3630   if test -n "$CC"; then
3631   ac_cv_prog_CC="$CC" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638     for ac_exec_ext in '' $ac_executable_extensions; do
3639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642     break 2
3643   fi
3644 done
3645   done
3646 IFS=$as_save_IFS
3647
3648 fi
3649 fi
3650 CC=$ac_cv_prog_CC
3651 if test -n "$CC"; then
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3654 else
3655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660     test -n "$CC" && break
3661   done
3662 fi
3663 if test -z "$CC"; then
3664   ac_ct_CC=$CC
3665   for ac_prog in cl.exe
3666 do
3667   # Extract the first word of "$ac_prog", so it can be a program name with args.
3668 set dummy $ac_prog; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3672   $as_echo_n "(cached) " >&6
3673 else
3674   if test -n "$ac_ct_CC"; then
3675   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680   IFS=$as_save_IFS
3681   test -z "$as_dir" && as_dir=.
3682     for ac_exec_ext in '' $ac_executable_extensions; do
3683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684     ac_cv_prog_ac_ct_CC="$ac_prog"
3685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686     break 2
3687   fi
3688 done
3689   done
3690 IFS=$as_save_IFS
3691
3692 fi
3693 fi
3694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 $as_echo "$ac_ct_CC" >&6; }
3698 else
3699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 fi
3702
3703
3704   test -n "$ac_ct_CC" && break
3705 done
3706
3707   if test "x$ac_ct_CC" = x; then
3708     CC=""
3709   else
3710     case $cross_compiling:$ac_tool_warned in
3711 yes:)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714 ac_tool_warned=yes ;;
3715 esac
3716     CC=$ac_ct_CC
3717   fi
3718 fi
3719
3720 fi
3721
3722
3723 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error $? "no acceptable C compiler found in \$PATH
3726 See \`config.log' for more details" "$LINENO" 5; }
3727
3728 # Provide some information about the compiler.
3729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3730 set X $ac_compile
3731 ac_compiler=$2
3732 for ac_option in --version -v -V -qversion; do
3733   { { ac_try="$ac_compiler $ac_option >&5"
3734 case "(($ac_try" in
3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736   *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3741   ac_status=$?
3742   if test -s conftest.err; then
3743     sed '10a\
3744 ... rest of stderr output deleted ...
3745          10q' conftest.err >conftest.er1
3746     cat conftest.er1 >&5
3747   fi
3748   rm -f conftest.er1 conftest.err
3749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750   test $ac_status = 0; }
3751 done
3752
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h.  */
3755
3756 int
3757 main ()
3758 {
3759
3760   ;
3761   return 0;
3762 }
3763 _ACEOF
3764 ac_clean_files_save=$ac_clean_files
3765 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3766 # Try to create an executable without -o first, disregard a.out.
3767 # It will help us diagnose broken compilers, and finding out an intuition
3768 # of exeext.
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3770 $as_echo_n "checking whether the C compiler works... " >&6; }
3771 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3772
3773 # The possible output files:
3774 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3775
3776 ac_rmfiles=
3777 for ac_file in $ac_files
3778 do
3779   case $ac_file in
3780     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3781     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3782   esac
3783 done
3784 rm -f $ac_rmfiles
3785
3786 if { { ac_try="$ac_link_default"
3787 case "(($ac_try" in
3788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789   *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793   (eval "$ac_link_default") 2>&5
3794   ac_status=$?
3795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796   test $ac_status = 0; }; then :
3797   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3798 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3799 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3800 # so that the user can short-circuit this test for compilers unknown to
3801 # Autoconf.
3802 for ac_file in $ac_files ''
3803 do
3804   test -f "$ac_file" || continue
3805   case $ac_file in
3806     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3807         ;;
3808     [ab].out )
3809         # We found the default executable, but exeext='' is most
3810         # certainly right.
3811         break;;
3812     *.* )
3813         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3814         then :; else
3815            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3816         fi
3817         # We set ac_cv_exeext here because the later test for it is not
3818         # safe: cross compilers may not add the suffix if given an `-o'
3819         # argument, so we may need to know it at that point already.
3820         # Even if this section looks crufty: it has the advantage of
3821         # actually working.
3822         break;;
3823     * )
3824         break;;
3825   esac
3826 done
3827 test "$ac_cv_exeext" = no && ac_cv_exeext=
3828
3829 else
3830   ac_file=''
3831 fi
3832 if test -z "$ac_file"; then :
3833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3835 $as_echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3837
3838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error 77 "C compiler cannot create executables
3841 See \`config.log' for more details" "$LINENO" 5; }
3842 else
3843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3844 $as_echo "yes" >&6; }
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3847 $as_echo_n "checking for C compiler default output file name... " >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3849 $as_echo "$ac_file" >&6; }
3850 ac_exeext=$ac_cv_exeext
3851
3852 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3853 ac_clean_files=$ac_clean_files_save
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3855 $as_echo_n "checking for suffix of executables... " >&6; }
3856 if { { ac_try="$ac_link"
3857 case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863   (eval "$ac_link") 2>&5
3864   ac_status=$?
3865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866   test $ac_status = 0; }; then :
3867   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3868 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3869 # work properly (i.e., refer to `conftest.exe'), while it won't with
3870 # `rm'.
3871 for ac_file in conftest.exe conftest conftest.*; do
3872   test -f "$ac_file" || continue
3873   case $ac_file in
3874     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3875     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876           break;;
3877     * ) break;;
3878   esac
3879 done
3880 else
3881   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3884 See \`config.log' for more details" "$LINENO" 5; }
3885 fi
3886 rm -f conftest conftest$ac_cv_exeext
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3888 $as_echo "$ac_cv_exeext" >&6; }
3889
3890 rm -f conftest.$ac_ext
3891 EXEEXT=$ac_cv_exeext
3892 ac_exeext=$EXEEXT
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h.  */
3895 #include <stdio.h>
3896 int
3897 main ()
3898 {
3899 FILE *f = fopen ("conftest.out", "w");
3900  return ferror (f) || fclose (f) != 0;
3901
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 ac_clean_files="$ac_clean_files conftest.out"
3907 # Check that the compiler produces executables we can run.  If not, either
3908 # the compiler is broken, or we cross compile.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3910 $as_echo_n "checking whether we are cross compiling... " >&6; }
3911 if test "$cross_compiling" != yes; then
3912   { { ac_try="$ac_link"
3913 case "(($ac_try" in
3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915   *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919   (eval "$ac_link") 2>&5
3920   ac_status=$?
3921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922   test $ac_status = 0; }
3923   if { ac_try='./conftest$ac_cv_exeext'
3924   { { case "(($ac_try" in
3925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926   *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 $as_echo "$ac_try_echo"; } >&5
3930   (eval "$ac_try") 2>&5
3931   ac_status=$?
3932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933   test $ac_status = 0; }; }; then
3934     cross_compiling=no
3935   else
3936     if test "$cross_compiling" = maybe; then
3937         cross_compiling=yes
3938     else
3939         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error $? "cannot run C compiled programs.
3942 If you meant to cross compile, use \`--host'.
3943 See \`config.log' for more details" "$LINENO" 5; }
3944     fi
3945   fi
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3948 $as_echo "$cross_compiling" >&6; }
3949
3950 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3951 ac_clean_files=$ac_clean_files_save
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3953 $as_echo_n "checking for suffix of object files... " >&6; }
3954 if ${ac_cv_objext+:} false; then :
3955   $as_echo_n "(cached) " >&6
3956 else
3957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h.  */
3959
3960 int
3961 main ()
3962 {
3963
3964   ;
3965   return 0;
3966 }
3967 _ACEOF
3968 rm -f conftest.o conftest.obj
3969 if { { ac_try="$ac_compile"
3970 case "(($ac_try" in
3971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972   *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976   (eval "$ac_compile") 2>&5
3977   ac_status=$?
3978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979   test $ac_status = 0; }; then :
3980   for ac_file in conftest.o conftest.obj conftest.*; do
3981   test -f "$ac_file" || continue;
3982   case $ac_file in
3983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3984     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3985        break;;
3986   esac
3987 done
3988 else
3989   $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $? "cannot compute suffix of object files: cannot compile
3995 See \`config.log' for more details" "$LINENO" 5; }
3996 fi
3997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4000 $as_echo "$ac_cv_objext" >&6; }
4001 OBJEXT=$ac_cv_objext
4002 ac_objext=$OBJEXT
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4004 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4005 if ${ac_cv_c_compiler_gnu+:} false; then :
4006   $as_echo_n "(cached) " >&6
4007 else
4008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h.  */
4010
4011 int
4012 main ()
4013 {
4014 #ifndef __GNUC__
4015        choke me
4016 #endif
4017
4018   ;
4019   return 0;
4020 }
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023   ac_compiler_gnu=yes
4024 else
4025   ac_compiler_gnu=no
4026 fi
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4029
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4032 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4033 if test $ac_compiler_gnu = yes; then
4034   GCC=yes
4035 else
4036   GCC=
4037 fi
4038 ac_test_CFLAGS=${CFLAGS+set}
4039 ac_save_CFLAGS=$CFLAGS
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4041 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4042 if ${ac_cv_prog_cc_g+:} false; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045   ac_save_c_werror_flag=$ac_c_werror_flag
4046    ac_c_werror_flag=yes
4047    ac_cv_prog_cc_g=no
4048    CFLAGS="-g"
4049    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h.  */
4051
4052 int
4053 main ()
4054 {
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061   ac_cv_prog_cc_g=yes
4062 else
4063   CFLAGS=""
4064       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h.  */
4066
4067 int
4068 main ()
4069 {
4070
4071   ;
4072   return 0;
4073 }
4074 _ACEOF
4075 if ac_fn_c_try_compile "$LINENO"; then :
4076
4077 else
4078   ac_c_werror_flag=$ac_save_c_werror_flag
4079          CFLAGS="-g"
4080          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082
4083 int
4084 main ()
4085 {
4086
4087   ;
4088   return 0;
4089 }
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"; then :
4092   ac_cv_prog_cc_g=yes
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099    ac_c_werror_flag=$ac_save_c_werror_flag
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4102 $as_echo "$ac_cv_prog_cc_g" >&6; }
4103 if test "$ac_test_CFLAGS" = set; then
4104   CFLAGS=$ac_save_CFLAGS
4105 elif test $ac_cv_prog_cc_g = yes; then
4106   if test "$GCC" = yes; then
4107     CFLAGS="-g -O2"
4108   else
4109     CFLAGS="-g"
4110   fi
4111 else
4112   if test "$GCC" = yes; then
4113     CFLAGS="-O2"
4114   else
4115     CFLAGS=
4116   fi
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4119 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4120 if ${ac_cv_prog_cc_c89+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   ac_cv_prog_cc_c89=no
4124 ac_save_CC=$CC
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127 #include <stdarg.h>
4128 #include <stdio.h>
4129 #include <sys/types.h>
4130 #include <sys/stat.h>
4131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4132 struct buf { int x; };
4133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4134 static char *e (p, i)
4135      char **p;
4136      int i;
4137 {
4138   return p[i];
4139 }
4140 static char *f (char * (*g) (char **, int), char **p, ...)
4141 {
4142   char *s;
4143   va_list v;
4144   va_start (v,p);
4145   s = g (p, va_arg (v,int));
4146   va_end (v);
4147   return s;
4148 }
4149
4150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4151    function prototypes and stuff, but not '\xHH' hex character constants.
4152    These don't provoke an error unfortunately, instead are silently treated
4153    as 'x'.  The following induces an error, until -std is added to get
4154    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4155    array size at least.  It's necessary to write '\x00'==0 to get something
4156    that's true only with -std.  */
4157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4158
4159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4160    inside strings and character constants.  */
4161 #define FOO(x) 'x'
4162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4163
4164 int test (int i, double x);
4165 struct s1 {int (*f) (int a);};
4166 struct s2 {int (*f) (double a);};
4167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4168 int argc;
4169 char **argv;
4170 int
4171 main ()
4172 {
4173 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4179         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4180 do
4181   CC="$ac_save_CC $ac_arg"
4182   if ac_fn_c_try_compile "$LINENO"; then :
4183   ac_cv_prog_cc_c89=$ac_arg
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext
4186   test "x$ac_cv_prog_cc_c89" != "xno" && break
4187 done
4188 rm -f conftest.$ac_ext
4189 CC=$ac_save_CC
4190
4191 fi
4192 # AC_CACHE_VAL
4193 case "x$ac_cv_prog_cc_c89" in
4194   x)
4195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4196 $as_echo "none needed" >&6; } ;;
4197   xno)
4198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4199 $as_echo "unsupported" >&6; } ;;
4200   *)
4201     CC="$CC $ac_cv_prog_cc_c89"
4202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4203 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4204 esac
4205 if test "x$ac_cv_prog_cc_c89" != xno; then :
4206
4207 fi
4208
4209 ac_ext=c
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214
4215 ac_ext=cpp
4216 ac_cpp='$CXXCPP $CPPFLAGS'
4217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4220 if test -z "$CXX"; then
4221   if test -n "$CCC"; then
4222     CXX=$CCC
4223   else
4224     if test -n "$ac_tool_prefix"; then
4225   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4226   do
4227     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CXX+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   if test -n "$CXX"; then
4235   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240   IFS=$as_save_IFS
4241   test -z "$as_dir" && as_dir=.
4242     for ac_exec_ext in '' $ac_executable_extensions; do
4243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246     break 2
4247   fi
4248 done
4249   done
4250 IFS=$as_save_IFS
4251
4252 fi
4253 fi
4254 CXX=$ac_cv_prog_CXX
4255 if test -n "$CXX"; then
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4257 $as_echo "$CXX" >&6; }
4258 else
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4261 fi
4262
4263
4264     test -n "$CXX" && break
4265   done
4266 fi
4267 if test -z "$CXX"; then
4268   ac_ct_CXX=$CXX
4269   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4270 do
4271   # Extract the first word of "$ac_prog", so it can be a program name with args.
4272 set dummy $ac_prog; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   if test -n "$ac_ct_CXX"; then
4279   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286     for ac_exec_ext in '' $ac_executable_extensions; do
4287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288     ac_cv_prog_ac_ct_CXX="$ac_prog"
4289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290     break 2
4291   fi
4292 done
4293   done
4294 IFS=$as_save_IFS
4295
4296 fi
4297 fi
4298 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4299 if test -n "$ac_ct_CXX"; then
4300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4301 $as_echo "$ac_ct_CXX" >&6; }
4302 else
4303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4305 fi
4306
4307
4308   test -n "$ac_ct_CXX" && break
4309 done
4310
4311   if test "x$ac_ct_CXX" = x; then
4312     CXX="g++"
4313   else
4314     case $cross_compiling:$ac_tool_warned in
4315 yes:)
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4318 ac_tool_warned=yes ;;
4319 esac
4320     CXX=$ac_ct_CXX
4321   fi
4322 fi
4323
4324   fi
4325 fi
4326 # Provide some information about the compiler.
4327 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4328 set X $ac_compile
4329 ac_compiler=$2
4330 for ac_option in --version -v -V -qversion; do
4331   { { ac_try="$ac_compiler $ac_option >&5"
4332 case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4339   ac_status=$?
4340   if test -s conftest.err; then
4341     sed '10a\
4342 ... rest of stderr output deleted ...
4343          10q' conftest.err >conftest.er1
4344     cat conftest.er1 >&5
4345   fi
4346   rm -f conftest.er1 conftest.err
4347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348   test $ac_status = 0; }
4349 done
4350
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4352 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4353 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4354   $as_echo_n "(cached) " >&6
4355 else
4356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h.  */
4358
4359 int
4360 main ()
4361 {
4362 #ifndef __GNUC__
4363        choke me
4364 #endif
4365
4366   ;
4367   return 0;
4368 }
4369 _ACEOF
4370 if ac_fn_cxx_try_compile "$LINENO"; then :
4371   ac_compiler_gnu=yes
4372 else
4373   ac_compiler_gnu=no
4374 fi
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4377
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4380 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4381 if test $ac_compiler_gnu = yes; then
4382   GXX=yes
4383 else
4384   GXX=
4385 fi
4386 ac_test_CXXFLAGS=${CXXFLAGS+set}
4387 ac_save_CXXFLAGS=$CXXFLAGS
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4389 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4390 if ${ac_cv_prog_cxx_g+:} false; then :
4391   $as_echo_n "(cached) " >&6
4392 else
4393   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4394    ac_cxx_werror_flag=yes
4395    ac_cv_prog_cxx_g=no
4396    CXXFLAGS="-g"
4397    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h.  */
4399
4400 int
4401 main ()
4402 {
4403
4404   ;
4405   return 0;
4406 }
4407 _ACEOF
4408 if ac_fn_cxx_try_compile "$LINENO"; then :
4409   ac_cv_prog_cxx_g=yes
4410 else
4411   CXXFLAGS=""
4412       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h.  */
4414
4415 int
4416 main ()
4417 {
4418
4419   ;
4420   return 0;
4421 }
4422 _ACEOF
4423 if ac_fn_cxx_try_compile "$LINENO"; then :
4424
4425 else
4426   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4427          CXXFLAGS="-g"
4428          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h.  */
4430
4431 int
4432 main ()
4433 {
4434
4435   ;
4436   return 0;
4437 }
4438 _ACEOF
4439 if ac_fn_cxx_try_compile "$LINENO"; then :
4440   ac_cv_prog_cxx_g=yes
4441 fi
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4450 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4451 if test "$ac_test_CXXFLAGS" = set; then
4452   CXXFLAGS=$ac_save_CXXFLAGS
4453 elif test $ac_cv_prog_cxx_g = yes; then
4454   if test "$GXX" = yes; then
4455     CXXFLAGS="-g -O2"
4456   else
4457     CXXFLAGS="-g"
4458   fi
4459 else
4460   if test "$GXX" = yes; then
4461     CXXFLAGS="-O2"
4462   else
4463     CXXFLAGS=
4464   fi
4465 fi
4466 ac_ext=c
4467 ac_cpp='$CPP $CPPFLAGS'
4468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471
4472 if test "x$CC" != xcc; then
4473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4474 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4475 else
4476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4477 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4478 fi
4479 set dummy $CC; ac_cc=`$as_echo "$2" |
4480                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4481 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4482   $as_echo_n "(cached) " >&6
4483 else
4484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h.  */
4486
4487 int
4488 main ()
4489 {
4490
4491   ;
4492   return 0;
4493 }
4494 _ACEOF
4495 # Make sure it works both with $CC and with simple cc.
4496 # We do the test twice because some compilers refuse to overwrite an
4497 # existing .o file with -o, though they will create one.
4498 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4499 rm -f conftest2.*
4500 if { { case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506   (eval "$ac_try") 2>&5
4507   ac_status=$?
4508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509   test $ac_status = 0; } &&
4510    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512   *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516   (eval "$ac_try") 2>&5
4517   ac_status=$?
4518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519   test $ac_status = 0; };
4520 then
4521   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4522   if test "x$CC" != xcc; then
4523     # Test first that cc exists at all.
4524     if { ac_try='cc -c conftest.$ac_ext >&5'
4525   { { case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531   (eval "$ac_try") 2>&5
4532   ac_status=$?
4533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534   test $ac_status = 0; }; }; then
4535       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4536       rm -f conftest2.*
4537       if { { case "(($ac_try" in
4538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539   *) ac_try_echo=$ac_try;;
4540 esac
4541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4542 $as_echo "$ac_try_echo"; } >&5
4543   (eval "$ac_try") 2>&5
4544   ac_status=$?
4545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4546   test $ac_status = 0; } &&
4547          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549   *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4552 $as_echo "$ac_try_echo"; } >&5
4553   (eval "$ac_try") 2>&5
4554   ac_status=$?
4555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4556   test $ac_status = 0; };
4557       then
4558         # cc works too.
4559         :
4560       else
4561         # cc exists but doesn't like -o.
4562         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4563       fi
4564     fi
4565   fi
4566 else
4567   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4568 fi
4569 rm -f core conftest*
4570
4571 fi
4572 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4574 $as_echo "yes" >&6; }
4575 else
4576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578
4579 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4580
4581 fi
4582
4583 ac_ext=c
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4589 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4590 # On Suns, sometimes $CPP names a directory.
4591 if test -n "$CPP" && test -d "$CPP"; then
4592   CPP=
4593 fi
4594 if test -z "$CPP"; then
4595   if ${ac_cv_prog_CPP+:} false; then :
4596   $as_echo_n "(cached) " >&6
4597 else
4598       # Double quotes because CPP needs to be expanded
4599     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4600     do
4601       ac_preproc_ok=false
4602 for ac_c_preproc_warn_flag in '' yes
4603 do
4604   # Use a header file that comes with gcc, so configuring glibc
4605   # with a fresh cross-compiler works.
4606   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607   # <limits.h> exists even on freestanding compilers.
4608   # On the NeXT, cc -E runs the code through the compiler's parser,
4609   # not just through cpp. "Syntax error" is here to catch this case.
4610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h.  */
4612 #ifdef __STDC__
4613 # include <limits.h>
4614 #else
4615 # include <assert.h>
4616 #endif
4617                      Syntax error
4618 _ACEOF
4619 if ac_fn_c_try_cpp "$LINENO"; then :
4620
4621 else
4622   # Broken: fails on valid input.
4623 continue
4624 fi
4625 rm -f conftest.err conftest.i conftest.$ac_ext
4626
4627   # OK, works on sane cases.  Now check whether nonexistent headers
4628   # can be detected and how.
4629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h.  */
4631 #include <ac_nonexistent.h>
4632 _ACEOF
4633 if ac_fn_c_try_cpp "$LINENO"; then :
4634   # Broken: success on invalid input.
4635 continue
4636 else
4637   # Passes both tests.
4638 ac_preproc_ok=:
4639 break
4640 fi
4641 rm -f conftest.err conftest.i conftest.$ac_ext
4642
4643 done
4644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4645 rm -f conftest.i conftest.err conftest.$ac_ext
4646 if $ac_preproc_ok; then :
4647   break
4648 fi
4649
4650     done
4651     ac_cv_prog_CPP=$CPP
4652
4653 fi
4654   CPP=$ac_cv_prog_CPP
4655 else
4656   ac_cv_prog_CPP=$CPP
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4659 $as_echo "$CPP" >&6; }
4660 ac_preproc_ok=false
4661 for ac_c_preproc_warn_flag in '' yes
4662 do
4663   # Use a header file that comes with gcc, so configuring glibc
4664   # with a fresh cross-compiler works.
4665   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4666   # <limits.h> exists even on freestanding compilers.
4667   # On the NeXT, cc -E runs the code through the compiler's parser,
4668   # not just through cpp. "Syntax error" is here to catch this case.
4669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h.  */
4671 #ifdef __STDC__
4672 # include <limits.h>
4673 #else
4674 # include <assert.h>
4675 #endif
4676                      Syntax error
4677 _ACEOF
4678 if ac_fn_c_try_cpp "$LINENO"; then :
4679
4680 else
4681   # Broken: fails on valid input.
4682 continue
4683 fi
4684 rm -f conftest.err conftest.i conftest.$ac_ext
4685
4686   # OK, works on sane cases.  Now check whether nonexistent headers
4687   # can be detected and how.
4688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h.  */
4690 #include <ac_nonexistent.h>
4691 _ACEOF
4692 if ac_fn_c_try_cpp "$LINENO"; then :
4693   # Broken: success on invalid input.
4694 continue
4695 else
4696   # Passes both tests.
4697 ac_preproc_ok=:
4698 break
4699 fi
4700 rm -f conftest.err conftest.i conftest.$ac_ext
4701
4702 done
4703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4704 rm -f conftest.i conftest.err conftest.$ac_ext
4705 if $ac_preproc_ok; then :
4706
4707 else
4708   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4710 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4711 See \`config.log' for more details" "$LINENO" 5; }
4712 fi
4713
4714 ac_ext=c
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4722 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4723 if ${ac_cv_path_GREP+:} false; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726   if test -z "$GREP"; then
4727   ac_path_GREP_found=false
4728   # Loop through the user's path and test for each of PROGNAME-LIST
4729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4731 do
4732   IFS=$as_save_IFS
4733   test -z "$as_dir" && as_dir=.
4734     for ac_prog in grep ggrep; do
4735     for ac_exec_ext in '' $ac_executable_extensions; do
4736       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4737       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4738 # Check for GNU ac_path_GREP and select it if it is found.
4739   # Check for GNU $ac_path_GREP
4740 case `"$ac_path_GREP" --version 2>&1` in
4741 *GNU*)
4742   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4743 *)
4744   ac_count=0
4745   $as_echo_n 0123456789 >"conftest.in"
4746   while :
4747   do
4748     cat "conftest.in" "conftest.in" >"conftest.tmp"
4749     mv "conftest.tmp" "conftest.in"
4750     cp "conftest.in" "conftest.nl"
4751     $as_echo 'GREP' >> "conftest.nl"
4752     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4753     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4754     as_fn_arith $ac_count + 1 && ac_count=$as_val
4755     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4756       # Best one so far, save it but keep looking for a better one
4757       ac_cv_path_GREP="$ac_path_GREP"
4758       ac_path_GREP_max=$ac_count
4759     fi
4760     # 10*(2^10) chars as input seems more than enough
4761     test $ac_count -gt 10 && break
4762   done
4763   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4764 esac
4765
4766       $ac_path_GREP_found && break 3
4767     done
4768   done
4769   done
4770 IFS=$as_save_IFS
4771   if test -z "$ac_cv_path_GREP"; then
4772     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4773   fi
4774 else
4775   ac_cv_path_GREP=$GREP
4776 fi
4777
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4780 $as_echo "$ac_cv_path_GREP" >&6; }
4781  GREP="$ac_cv_path_GREP"
4782
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4785 $as_echo_n "checking for egrep... " >&6; }
4786 if ${ac_cv_path_EGREP+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4790    then ac_cv_path_EGREP="$GREP -E"
4791    else
4792      if test -z "$EGREP"; then
4793   ac_path_EGREP_found=false
4794   # Loop through the user's path and test for each of PROGNAME-LIST
4795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800     for ac_prog in egrep; do
4801     for ac_exec_ext in '' $ac_executable_extensions; do
4802       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4803       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4804 # Check for GNU ac_path_EGREP and select it if it is found.
4805   # Check for GNU $ac_path_EGREP
4806 case `"$ac_path_EGREP" --version 2>&1` in
4807 *GNU*)
4808   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4809 *)
4810   ac_count=0
4811   $as_echo_n 0123456789 >"conftest.in"
4812   while :
4813   do
4814     cat "conftest.in" "conftest.in" >"conftest.tmp"
4815     mv "conftest.tmp" "conftest.in"
4816     cp "conftest.in" "conftest.nl"
4817     $as_echo 'EGREP' >> "conftest.nl"
4818     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820     as_fn_arith $ac_count + 1 && ac_count=$as_val
4821     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4822       # Best one so far, save it but keep looking for a better one
4823       ac_cv_path_EGREP="$ac_path_EGREP"
4824       ac_path_EGREP_max=$ac_count
4825     fi
4826     # 10*(2^10) chars as input seems more than enough
4827     test $ac_count -gt 10 && break
4828   done
4829   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830 esac
4831
4832       $ac_path_EGREP_found && break 3
4833     done
4834   done
4835   done
4836 IFS=$as_save_IFS
4837   if test -z "$ac_cv_path_EGREP"; then
4838     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4839   fi
4840 else
4841   ac_cv_path_EGREP=$EGREP
4842 fi
4843
4844    fi
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4847 $as_echo "$ac_cv_path_EGREP" >&6; }
4848  EGREP="$ac_cv_path_EGREP"
4849
4850
4851 if test $ac_cv_c_compiler_gnu = yes; then
4852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4853 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4854 if ${ac_cv_prog_gcc_traditional+:} false; then :
4855   $as_echo_n "(cached) " >&6
4856 else
4857     ac_pattern="Autoconf.*'x'"
4858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h.  */
4860 #include <sgtty.h>
4861 Autoconf TIOCGETP
4862 _ACEOF
4863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4864   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4865   ac_cv_prog_gcc_traditional=yes
4866 else
4867   ac_cv_prog_gcc_traditional=no
4868 fi
4869 rm -f conftest*
4870
4871
4872   if test $ac_cv_prog_gcc_traditional = no; then
4873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h.  */
4875 #include <termio.h>
4876 Autoconf TCGETA
4877 _ACEOF
4878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4879   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4880   ac_cv_prog_gcc_traditional=yes
4881 fi
4882 rm -f conftest*
4883
4884   fi
4885 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4887 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4888   if test $ac_cv_prog_gcc_traditional = yes; then
4889     CC="$CC -traditional"
4890   fi
4891 fi
4892
4893 BASECC=`basename $CC`
4894 have_gcc=no
4895 if test "x$BASECC" = xgcc; then
4896    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4897
4898    have_gcc=yes
4899 fi
4900 # Extract the first word of "$CXX", so it can be a program name with args.
4901 set dummy $CXX; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if ${ac_cv_path_CXX+:} false; then :
4905   $as_echo_n "(cached) " >&6
4906 else
4907   case $CXX in
4908   [\\/]* | ?:[\\/]*)
4909   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4910   ;;
4911   *)
4912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917     for ac_exec_ext in '' $ac_executable_extensions; do
4918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924   done
4925 IFS=$as_save_IFS
4926
4927   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4928   ;;
4929 esac
4930 fi
4931 CXX=$ac_cv_path_CXX
4932 if test -n "$CXX"; then
4933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4934 $as_echo "$CXX" >&6; }
4935 else
4936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4938 fi
4939
4940
4941 if test ! -e $CXX; then
4942    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4943 fi
4944
4945 # Find a good install program.  We prefer a C program (faster),
4946 # so one script is as good as another.  But avoid the broken or
4947 # incompatible versions:
4948 # SysV /etc/install, /usr/sbin/install
4949 # SunOS /usr/etc/install
4950 # IRIX /sbin/install
4951 # AIX /bin/install
4952 # AmigaOS /C/install, which installs bootblocks on floppy discs
4953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4956 # OS/2's system install, which has a completely different semantic
4957 # ./install, which can be erroneously created by make from ./install.sh.
4958 # Reject install programs that cannot install multiple files.
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4960 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4961 if test -z "$INSTALL"; then
4962 if ${ac_cv_path_install+:} false; then :
4963   $as_echo_n "(cached) " >&6
4964 else
4965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968   IFS=$as_save_IFS
4969   test -z "$as_dir" && as_dir=.
4970     # Account for people who put trailing slashes in PATH elements.
4971 case $as_dir/ in #((
4972   ./ | .// | /[cC]/* | \
4973   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4974   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4975   /usr/ucb/* ) ;;
4976   *)
4977     # OSF1 and SCO ODT 3.0 have their own names for install.
4978     # Don't use installbsd from OSF since it installs stuff as root
4979     # by default.
4980     for ac_prog in ginstall scoinst install; do
4981       for ac_exec_ext in '' $ac_executable_extensions; do
4982         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4983           if test $ac_prog = install &&
4984             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4985             # AIX install.  It has an incompatible calling convention.
4986             :
4987           elif test $ac_prog = install &&
4988             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4989             # program-specific install script used by HP pwplus--don't use.
4990             :
4991           else
4992             rm -rf conftest.one conftest.two conftest.dir
4993             echo one > conftest.one
4994             echo two > conftest.two
4995             mkdir conftest.dir
4996             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4997               test -s conftest.one && test -s conftest.two &&
4998               test -s conftest.dir/conftest.one &&
4999               test -s conftest.dir/conftest.two
5000             then
5001               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5002               break 3
5003             fi
5004           fi
5005         fi
5006       done
5007     done
5008     ;;
5009 esac
5010
5011   done
5012 IFS=$as_save_IFS
5013
5014 rm -rf conftest.one conftest.two conftest.dir
5015
5016 fi
5017   if test "${ac_cv_path_install+set}" = set; then
5018     INSTALL=$ac_cv_path_install
5019   else
5020     # As a last resort, use the slow shell script.  Don't cache a
5021     # value for INSTALL within a source directory, because that will
5022     # break other packages using the cache if that directory is
5023     # removed, or if the value is a relative name.
5024     INSTALL=$ac_install_sh
5025   fi
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5028 $as_echo "$INSTALL" >&6; }
5029
5030 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5031 # It thinks the first close brace ends the variable substitution.
5032 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5033
5034 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5035
5036 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5037
5038 # Extract the first word of "mv", so it can be a program name with args.
5039 set dummy mv; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_path_MV+:} false; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   case $MV in
5046   [\\/]* | ?:[\\/]*)
5047   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5048   ;;
5049   *)
5050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055     for ac_exec_ext in '' $ac_executable_extensions; do
5056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059     break 2
5060   fi
5061 done
5062   done
5063 IFS=$as_save_IFS
5064
5065   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5066   ;;
5067 esac
5068 fi
5069 MV=$ac_cv_path_MV
5070 if test -n "$MV"; then
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5072 $as_echo "$MV" >&6; }
5073 else
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078
5079 # Extract the first word of "rm", so it can be a program name with args.
5080 set dummy rm; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if ${ac_cv_path_REMOVE+:} false; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086   case $REMOVE in
5087   [\\/]* | ?:[\\/]*)
5088   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5089   ;;
5090   *)
5091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094   IFS=$as_save_IFS
5095   test -z "$as_dir" && as_dir=.
5096     for ac_exec_ext in '' $ac_executable_extensions; do
5097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100     break 2
5101   fi
5102 done
5103   done
5104 IFS=$as_save_IFS
5105
5106   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5107   ;;
5108 esac
5109 fi
5110 REMOVE=$ac_cv_path_REMOVE
5111 if test -n "$REMOVE"; then
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5113 $as_echo "$REMOVE" >&6; }
5114 else
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120 # Extract the first word of "cp", so it can be a program name with args.
5121 set dummy cp; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_path_CP+:} false; then :
5125   $as_echo_n "(cached) " >&6
5126 else
5127   case $CP in
5128   [\\/]* | ?:[\\/]*)
5129   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5130   ;;
5131   *)
5132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5134 do
5135   IFS=$as_save_IFS
5136   test -z "$as_dir" && as_dir=.
5137     for ac_exec_ext in '' $ac_executable_extensions; do
5138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141     break 2
5142   fi
5143 done
5144   done
5145 IFS=$as_save_IFS
5146
5147   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5148   ;;
5149 esac
5150 fi
5151 CP=$ac_cv_path_CP
5152 if test -n "$CP"; then
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5154 $as_echo "$CP" >&6; }
5155 else
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5158 fi
5159
5160
5161 # Extract the first word of "sed", so it can be a program name with args.
5162 set dummy sed; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_path_SED+:} false; then :
5166   $as_echo_n "(cached) " >&6
5167 else
5168   case $SED in
5169   [\\/]* | ?:[\\/]*)
5170   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5171   ;;
5172   *)
5173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176   IFS=$as_save_IFS
5177   test -z "$as_dir" && as_dir=.
5178     for ac_exec_ext in '' $ac_executable_extensions; do
5179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182     break 2
5183   fi
5184 done
5185   done
5186 IFS=$as_save_IFS
5187
5188   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5189   ;;
5190 esac
5191 fi
5192 SED=$ac_cv_path_SED
5193 if test -n "$SED"; then
5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5195 $as_echo "$SED" >&6; }
5196 else
5197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201
5202 # Extract the first word of "echo", so it can be a program name with args.
5203 set dummy echo; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_path_ECHO+:} false; then :
5207   $as_echo_n "(cached) " >&6
5208 else
5209   case $ECHO in
5210   [\\/]* | ?:[\\/]*)
5211   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5212   ;;
5213   *)
5214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217   IFS=$as_save_IFS
5218   test -z "$as_dir" && as_dir=.
5219     for ac_exec_ext in '' $ac_executable_extensions; do
5220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223     break 2
5224   fi
5225 done
5226   done
5227 IFS=$as_save_IFS
5228
5229   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5230   ;;
5231 esac
5232 fi
5233 ECHO=$ac_cv_path_ECHO
5234 if test -n "$ECHO"; then
5235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5236 $as_echo "$ECHO" >&6; }
5237 else
5238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5240 fi
5241
5242
5243 # Extract the first word of "cmp", so it can be a program name with args.
5244 set dummy cmp; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_path_CMP+:} false; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   case $CMP in
5251   [\\/]* | ?:[\\/]*)
5252   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5253   ;;
5254   *)
5255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258   IFS=$as_save_IFS
5259   test -z "$as_dir" && as_dir=.
5260     for ac_exec_ext in '' $ac_executable_extensions; do
5261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267   done
5268 IFS=$as_save_IFS
5269
5270   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5271   ;;
5272 esac
5273 fi
5274 CMP=$ac_cv_path_CMP
5275 if test -n "$CMP"; then
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5277 $as_echo "$CMP" >&6; }
5278 else
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5281 fi
5282
5283
5284 # Extract the first word of "tbl", so it can be a program name with args.
5285 set dummy tbl; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_path_TBL+:} false; then :
5289   $as_echo_n "(cached) " >&6
5290 else
5291   case $TBL in
5292   [\\/]* | ?:[\\/]*)
5293   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5294   ;;
5295   *)
5296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5298 do
5299   IFS=$as_save_IFS
5300   test -z "$as_dir" && as_dir=.
5301     for ac_exec_ext in '' $ac_executable_extensions; do
5302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305     break 2
5306   fi
5307 done
5308   done
5309 IFS=$as_save_IFS
5310
5311   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5312   ;;
5313 esac
5314 fi
5315 TBL=$ac_cv_path_TBL
5316 if test -n "$TBL"; then
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5318 $as_echo "$TBL" >&6; }
5319 else
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5322 fi
5323
5324
5325 # Extract the first word of "ar", so it can be a program name with args.
5326 set dummy ar; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_path_AR+:} false; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332   case $AR in
5333   [\\/]* | ?:[\\/]*)
5334   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5335   ;;
5336   *)
5337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340   IFS=$as_save_IFS
5341   test -z "$as_dir" && as_dir=.
5342     for ac_exec_ext in '' $ac_executable_extensions; do
5343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346     break 2
5347   fi
5348 done
5349   done
5350 IFS=$as_save_IFS
5351
5352   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5353   ;;
5354 esac
5355 fi
5356 AR=$ac_cv_path_AR
5357 if test -n "$AR"; then
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5359 $as_echo "$AR" >&6; }
5360 else
5361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 fi
5364
5365
5366 # Extract the first word of "openssl", so it can be a program name with args.
5367 set dummy openssl; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if ${ac_cv_path_OPENSSL+:} false; then :
5371   $as_echo_n "(cached) " >&6
5372 else
5373   case $OPENSSL in
5374   [\\/]* | ?:[\\/]*)
5375   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5376   ;;
5377   *)
5378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383     for ac_exec_ext in '' $ac_executable_extensions; do
5384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390   done
5391 IFS=$as_save_IFS
5392
5393   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5394   ;;
5395 esac
5396 fi
5397 OPENSSL=$ac_cv_path_OPENSSL
5398 if test -n "$OPENSSL"; then
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5400 $as_echo "$OPENSSL" >&6; }
5401 else
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404 fi
5405
5406
5407 # Extract the first word of "mtx", so it can be a program name with args.
5408 set dummy mtx; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_path_MTX+:} false; then :
5412   $as_echo_n "(cached) " >&6
5413 else
5414   case $MTX in
5415   [\\/]* | ?:[\\/]*)
5416   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5417   ;;
5418   *)
5419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422   IFS=$as_save_IFS
5423   test -z "$as_dir" && as_dir=.
5424     for ac_exec_ext in '' $ac_executable_extensions; do
5425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428     break 2
5429   fi
5430 done
5431   done
5432 IFS=$as_save_IFS
5433
5434   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5435   ;;
5436 esac
5437 fi
5438 MTX=$ac_cv_path_MTX
5439 if test -n "$MTX"; then
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5441 $as_echo "$MTX" >&6; }
5442 else
5443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5445 fi
5446
5447
5448 # Extract the first word of "dd", so it can be a program name with args.
5449 set dummy dd; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if ${ac_cv_path_DD+:} false; then :
5453   $as_echo_n "(cached) " >&6
5454 else
5455   case $DD in
5456   [\\/]* | ?:[\\/]*)
5457   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5458   ;;
5459   *)
5460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465     for ac_exec_ext in '' $ac_executable_extensions; do
5466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469     break 2
5470   fi
5471 done
5472   done
5473 IFS=$as_save_IFS
5474
5475   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5476   ;;
5477 esac
5478 fi
5479 DD=$ac_cv_path_DD
5480 if test -n "$DD"; then
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5482 $as_echo "$DD" >&6; }
5483 else
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488
5489 # Extract the first word of "mkisofs", so it can be a program name with args.
5490 set dummy mkisofs; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_path_MKISOFS+:} false; then :
5494   $as_echo_n "(cached) " >&6
5495 else
5496   case $MKISOFS in
5497   [\\/]* | ?:[\\/]*)
5498   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5499   ;;
5500   *)
5501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504   IFS=$as_save_IFS
5505   test -z "$as_dir" && as_dir=.
5506     for ac_exec_ext in '' $ac_executable_extensions; do
5507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510     break 2
5511   fi
5512 done
5513   done
5514 IFS=$as_save_IFS
5515
5516   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5517   ;;
5518 esac
5519 fi
5520 MKISOFS=$ac_cv_path_MKISOFS
5521 if test -n "$MKISOFS"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5523 $as_echo "$MKISOFS" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 # Extract the first word of "python", so it can be a program name with args.
5531 set dummy python; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_path_PYTHON+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   case $PYTHON in
5538   [\\/]* | ?:[\\/]*)
5539   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5540   ;;
5541   *)
5542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547     for ac_exec_ext in '' $ac_executable_extensions; do
5548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554   done
5555 IFS=$as_save_IFS
5556
5557   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5558   ;;
5559 esac
5560 fi
5561 PYTHON=$ac_cv_path_PYTHON
5562 if test -n "$PYTHON"; then
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5564 $as_echo "$PYTHON" >&6; }
5565 else
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570
5571 # Extract the first word of "growisofs", so it can be a program name with args.
5572 set dummy growisofs; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_path_GROWISOFS+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   case $GROWISOFS in
5579   [\\/]* | ?:[\\/]*)
5580   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5581   ;;
5582   *)
5583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5585 do
5586   IFS=$as_save_IFS
5587   test -z "$as_dir" && as_dir=.
5588     for ac_exec_ext in '' $ac_executable_extensions; do
5589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592     break 2
5593   fi
5594 done
5595   done
5596 IFS=$as_save_IFS
5597
5598   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5599   ;;
5600 esac
5601 fi
5602 GROWISOFS=$ac_cv_path_GROWISOFS
5603 if test -n "$GROWISOFS"; then
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5605 $as_echo "$GROWISOFS" >&6; }
5606 else
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611
5612 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5613 set dummy dvd+rw-mediainfo; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5617   $as_echo_n "(cached) " >&6
5618 else
5619   case $DVDRWMEDIAINFO in
5620   [\\/]* | ?:[\\/]*)
5621   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5622   ;;
5623   *)
5624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629     for ac_exec_ext in '' $ac_executable_extensions; do
5630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636   done
5637 IFS=$as_save_IFS
5638
5639   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5640   ;;
5641 esac
5642 fi
5643 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5644 if test -n "$DVDRWMEDIAINFO"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5646 $as_echo "$DVDRWMEDIAINFO" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5654 set dummy dvd+rw-format; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5658   $as_echo_n "(cached) " >&6
5659 else
5660   case $DVDRWFORMAT in
5661   [\\/]* | ?:[\\/]*)
5662   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5663   ;;
5664   *)
5665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5667 do
5668   IFS=$as_save_IFS
5669   test -z "$as_dir" && as_dir=.
5670     for ac_exec_ext in '' $ac_executable_extensions; do
5671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674     break 2
5675   fi
5676 done
5677   done
5678 IFS=$as_save_IFS
5679
5680   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5681   ;;
5682 esac
5683 fi
5684 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5685 if test -n "$DVDRWFORMAT"; then
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5687 $as_echo "$DVDRWFORMAT" >&6; }
5688 else
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692
5693
5694 # Extract the first word of "pkg-config", so it can be a program name with args.
5695 set dummy pkg-config; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_path_PKGCONFIG+:} false; then :
5699   $as_echo_n "(cached) " >&6
5700 else
5701   case $PKGCONFIG in
5702   [\\/]* | ?:[\\/]*)
5703   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5704   ;;
5705   *)
5706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711     for ac_exec_ext in '' $ac_executable_extensions; do
5712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718   done
5719 IFS=$as_save_IFS
5720
5721   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5722   ;;
5723 esac
5724 fi
5725 PKGCONFIG=$ac_cv_path_PKGCONFIG
5726 if test -n "$PKGCONFIG"; then
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5728 $as_echo "$PKGCONFIG" >&6; }
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5732 fi
5733
5734
5735 # Extract the first word of "qmake", so it can be a program name with args.
5736 set dummy qmake; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_path_QMAKE+:} false; then :
5740   $as_echo_n "(cached) " >&6
5741 else
5742   case $QMAKE in
5743   [\\/]* | ?:[\\/]*)
5744   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5745   ;;
5746   *)
5747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750   IFS=$as_save_IFS
5751   test -z "$as_dir" && as_dir=.
5752     for ac_exec_ext in '' $ac_executable_extensions; do
5753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756     break 2
5757   fi
5758 done
5759   done
5760 IFS=$as_save_IFS
5761
5762   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5763   ;;
5764 esac
5765 fi
5766 QMAKE=$ac_cv_path_QMAKE
5767 if test -n "$QMAKE"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5769 $as_echo "$QMAKE" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775
5776 # Extract the first word of "gmake", so it can be a program name with args.
5777 set dummy gmake; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_path_GMAKE+:} false; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783   case $GMAKE in
5784   [\\/]* | ?:[\\/]*)
5785   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5786   ;;
5787   *)
5788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791   IFS=$as_save_IFS
5792   test -z "$as_dir" && as_dir=.
5793     for ac_exec_ext in '' $ac_executable_extensions; do
5794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5795     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797     break 2
5798   fi
5799 done
5800   done
5801 IFS=$as_save_IFS
5802
5803   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5804   ;;
5805 esac
5806 fi
5807 GMAKE=$ac_cv_path_GMAKE
5808 if test -n "$GMAKE"; then
5809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5810 $as_echo "$GMAKE" >&6; }
5811 else
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5814 fi
5815
5816
5817
5818 if test "x$WXCONFIG" = x; then
5819    WXCONFIG=wx-config
5820 fi
5821 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5822 set dummy ${WXCONFIG}; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if ${ac_cv_path_WXCONFIG+:} false; then :
5826   $as_echo_n "(cached) " >&6
5827 else
5828   case $WXCONFIG in
5829   [\\/]* | ?:[\\/]*)
5830   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5831   ;;
5832   *)
5833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838     for ac_exec_ext in '' $ac_executable_extensions; do
5839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845   done
5846 IFS=$as_save_IFS
5847
5848   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5849   ;;
5850 esac
5851 fi
5852 WXCONFIG=$ac_cv_path_WXCONFIG
5853 if test -n "$WXCONFIG"; then
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5855 $as_echo "$WXCONFIG" >&6; }
5856 else
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5859 fi
5860
5861
5862
5863 # Extract the first word of "cdrecord", so it can be a program name with args.
5864 set dummy cdrecord; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 $as_echo_n "checking for $ac_word... " >&6; }
5867 if ${ac_cv_path_CDRECORD+:} false; then :
5868   $as_echo_n "(cached) " >&6
5869 else
5870   case $CDRECORD in
5871   [\\/]* | ?:[\\/]*)
5872   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5873   ;;
5874   *)
5875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878   IFS=$as_save_IFS
5879   test -z "$as_dir" && as_dir=.
5880     for ac_exec_ext in '' $ac_executable_extensions; do
5881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5882     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884     break 2
5885   fi
5886 done
5887   done
5888 IFS=$as_save_IFS
5889
5890   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5891   ;;
5892 esac
5893 fi
5894 CDRECORD=$ac_cv_path_CDRECORD
5895 if test -n "$CDRECORD"; then
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5897 $as_echo "$CDRECORD" >&6; }
5898 else
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902
5903
5904 # Extract the first word of "pidof", so it can be a program name with args.
5905 set dummy pidof; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_path_PIDOF+:} false; then :
5909   $as_echo_n "(cached) " >&6
5910 else
5911   case $PIDOF in
5912   [\\/]* | ?:[\\/]*)
5913   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5914   ;;
5915   *)
5916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921     for ac_exec_ext in '' $ac_executable_extensions; do
5922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928   done
5929 IFS=$as_save_IFS
5930
5931   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5932   ;;
5933 esac
5934 fi
5935 PIDOF=$ac_cv_path_PIDOF
5936 if test -n "$PIDOF"; then
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5938 $as_echo "$PIDOF" >&6; }
5939 else
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 fi
5943
5944
5945 for ac_prog in gawk mawk nawk awk
5946 do
5947   # Extract the first word of "$ac_prog", so it can be a program name with args.
5948 set dummy $ac_prog; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if ${ac_cv_prog_AWK+:} false; then :
5952   $as_echo_n "(cached) " >&6
5953 else
5954   if test -n "$AWK"; then
5955   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960   IFS=$as_save_IFS
5961   test -z "$as_dir" && as_dir=.
5962     for ac_exec_ext in '' $ac_executable_extensions; do
5963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964     ac_cv_prog_AWK="$ac_prog"
5965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966     break 2
5967   fi
5968 done
5969   done
5970 IFS=$as_save_IFS
5971
5972 fi
5973 fi
5974 AWK=$ac_cv_prog_AWK
5975 if test -n "$AWK"; then
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5977 $as_echo "$AWK" >&6; }
5978 else
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983
5984   test -n "$AWK" && break
5985 done
5986
5987 # Some AWK programs fail, so test it and warn the user
5988 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5989       { if ((prog == $2) || (("(" prog ")") == $2) ||
5990       (("" prog "") == $2) ||
5991       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5992 else
5993   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5994    The regex engine of $AWK is too broken to be used you
5995    might want to install GNU AWK.
5996    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5997 fi
5998 THE_AWK=$AWK
5999 # Extract the first word of "$THE_AWK", so it can be a program name with args.
6000 set dummy $THE_AWK; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_path_AWK+:} false; then :
6004   $as_echo_n "(cached) " >&6
6005 else
6006   case $AWK in
6007   [\\/]* | ?:[\\/]*)
6008   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6009   ;;
6010   *)
6011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016     for ac_exec_ext in '' $ac_executable_extensions; do
6017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6018     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020     break 2
6021   fi
6022 done
6023   done
6024 IFS=$as_save_IFS
6025
6026   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
6027   ;;
6028 esac
6029 fi
6030 AWK=$ac_cv_path_AWK
6031 if test -n "$AWK"; then
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6033 $as_echo "$AWK" >&6; }
6034 else
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039
6040
6041
6042 test -n "$ARFLAG" || ARFLAGS="cr"
6043
6044
6045 MAKE_SHELL=/bin/sh
6046
6047
6048
6049
6050
6051
6052
6053 use_libtool=yes
6054 # Check whether --enable-libtool was given.
6055 if test "${enable_libtool+set}" = set; then :
6056   enableval=$enable_libtool;
6057        if test x$enableval = xno; then
6058           use_libtool=no
6059        fi
6060
6061
6062 fi
6063
6064 case `pwd` in
6065   *\ * | *\     *)
6066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6067 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6068 esac
6069
6070
6071
6072 macro_version='2.2.6'
6073 macro_revision='1.3012'
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087 ltmain="$ac_aux_dir/ltmain.sh"
6088
6089 # Make sure we can run config.sub.
6090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6091   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6092
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6094 $as_echo_n "checking build system type... " >&6; }
6095 if ${ac_cv_build+:} false; then :
6096   $as_echo_n "(cached) " >&6
6097 else
6098   ac_build_alias=$build_alias
6099 test "x$ac_build_alias" = x &&
6100   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6101 test "x$ac_build_alias" = x &&
6102   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6104   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6105
6106 fi
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6108 $as_echo "$ac_cv_build" >&6; }
6109 case $ac_cv_build in
6110 *-*-*) ;;
6111 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6112 esac
6113 build=$ac_cv_build
6114 ac_save_IFS=$IFS; IFS='-'
6115 set x $ac_cv_build
6116 shift
6117 build_cpu=$1
6118 build_vendor=$2
6119 shift; shift
6120 # Remember, the first character of IFS is used to create $*,
6121 # except with old shells:
6122 build_os=$*
6123 IFS=$ac_save_IFS
6124 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6125
6126
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6128 $as_echo_n "checking host system type... " >&6; }
6129 if ${ac_cv_host+:} false; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   if test "x$host_alias" = x; then
6133   ac_cv_host=$ac_cv_build
6134 else
6135   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6136     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6137 fi
6138
6139 fi
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6141 $as_echo "$ac_cv_host" >&6; }
6142 case $ac_cv_host in
6143 *-*-*) ;;
6144 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6145 esac
6146 host=$ac_cv_host
6147 ac_save_IFS=$IFS; IFS='-'
6148 set x $ac_cv_host
6149 shift
6150 host_cpu=$1
6151 host_vendor=$2
6152 shift; shift
6153 # Remember, the first character of IFS is used to create $*,
6154 # except with old shells:
6155 host_os=$*
6156 IFS=$ac_save_IFS
6157 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6158
6159
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6161 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6162 if ${ac_cv_path_SED+:} false; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6166      for ac_i in 1 2 3 4 5 6 7; do
6167        ac_script="$ac_script$as_nl$ac_script"
6168      done
6169      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6170      { ac_script=; unset ac_script;}
6171      if test -z "$SED"; then
6172   ac_path_SED_found=false
6173   # Loop through the user's path and test for each of PROGNAME-LIST
6174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179     for ac_prog in sed gsed; do
6180     for ac_exec_ext in '' $ac_executable_extensions; do
6181       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6182       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6183 # Check for GNU ac_path_SED and select it if it is found.
6184   # Check for GNU $ac_path_SED
6185 case `"$ac_path_SED" --version 2>&1` in
6186 *GNU*)
6187   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6188 *)
6189   ac_count=0
6190   $as_echo_n 0123456789 >"conftest.in"
6191   while :
6192   do
6193     cat "conftest.in" "conftest.in" >"conftest.tmp"
6194     mv "conftest.tmp" "conftest.in"
6195     cp "conftest.in" "conftest.nl"
6196     $as_echo '' >> "conftest.nl"
6197     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6198     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6199     as_fn_arith $ac_count + 1 && ac_count=$as_val
6200     if test $ac_count -gt ${ac_path_SED_max-0}; then
6201       # Best one so far, save it but keep looking for a better one
6202       ac_cv_path_SED="$ac_path_SED"
6203       ac_path_SED_max=$ac_count
6204     fi
6205     # 10*(2^10) chars as input seems more than enough
6206     test $ac_count -gt 10 && break
6207   done
6208   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6209 esac
6210
6211       $ac_path_SED_found && break 3
6212     done
6213   done
6214   done
6215 IFS=$as_save_IFS
6216   if test -z "$ac_cv_path_SED"; then
6217     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6218   fi
6219 else
6220   ac_cv_path_SED=$SED
6221 fi
6222
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6225 $as_echo "$ac_cv_path_SED" >&6; }
6226  SED="$ac_cv_path_SED"
6227   rm -f conftest.sed
6228
6229 test -z "$SED" && SED=sed
6230 Xsed="$SED -e 1s/^X//"
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6243 $as_echo_n "checking for fgrep... " >&6; }
6244 if ${ac_cv_path_FGREP+:} false; then :
6245   $as_echo_n "(cached) " >&6
6246 else
6247   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6248    then ac_cv_path_FGREP="$GREP -F"
6249    else
6250      if test -z "$FGREP"; then
6251   ac_path_FGREP_found=false
6252   # Loop through the user's path and test for each of PROGNAME-LIST
6253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6255 do
6256   IFS=$as_save_IFS
6257   test -z "$as_dir" && as_dir=.
6258     for ac_prog in fgrep; do
6259     for ac_exec_ext in '' $ac_executable_extensions; do
6260       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6261       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6262 # Check for GNU ac_path_FGREP and select it if it is found.
6263   # Check for GNU $ac_path_FGREP
6264 case `"$ac_path_FGREP" --version 2>&1` in
6265 *GNU*)
6266   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6267 *)
6268   ac_count=0
6269   $as_echo_n 0123456789 >"conftest.in"
6270   while :
6271   do
6272     cat "conftest.in" "conftest.in" >"conftest.tmp"
6273     mv "conftest.tmp" "conftest.in"
6274     cp "conftest.in" "conftest.nl"
6275     $as_echo 'FGREP' >> "conftest.nl"
6276     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6277     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6278     as_fn_arith $ac_count + 1 && ac_count=$as_val
6279     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6280       # Best one so far, save it but keep looking for a better one
6281       ac_cv_path_FGREP="$ac_path_FGREP"
6282       ac_path_FGREP_max=$ac_count
6283     fi
6284     # 10*(2^10) chars as input seems more than enough
6285     test $ac_count -gt 10 && break
6286   done
6287   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6288 esac
6289
6290       $ac_path_FGREP_found && break 3
6291     done
6292   done
6293   done
6294 IFS=$as_save_IFS
6295   if test -z "$ac_cv_path_FGREP"; then
6296     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6297   fi
6298 else
6299   ac_cv_path_FGREP=$FGREP
6300 fi
6301
6302    fi
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6305 $as_echo "$ac_cv_path_FGREP" >&6; }
6306  FGREP="$ac_cv_path_FGREP"
6307
6308
6309 test -z "$GREP" && GREP=grep
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329 # Check whether --with-gnu-ld was given.
6330 if test "${with_gnu_ld+set}" = set; then :
6331   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6332 else
6333   with_gnu_ld=no
6334 fi
6335
6336 ac_prog=ld
6337 if test "$GCC" = yes; then
6338   # Check if gcc -print-prog-name=ld gives a path.
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6340 $as_echo_n "checking for ld used by $CC... " >&6; }
6341   case $host in
6342   *-*-mingw*)
6343     # gcc leaves a trailing carriage return which upsets mingw
6344     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6345   *)
6346     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6347   esac
6348   case $ac_prog in
6349     # Accept absolute paths.
6350     [\\/]* | ?:[\\/]*)
6351       re_direlt='/[^/][^/]*/\.\./'
6352       # Canonicalize the pathname of ld
6353       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6354       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6355         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6356       done
6357       test -z "$LD" && LD="$ac_prog"
6358       ;;
6359   "")
6360     # If it fails, then pretend we aren't using GCC.
6361     ac_prog=ld
6362     ;;
6363   *)
6364     # If it is relative, then search for the first ld in PATH.
6365     with_gnu_ld=unknown
6366     ;;
6367   esac
6368 elif test "$with_gnu_ld" = yes; then
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6370 $as_echo_n "checking for GNU ld... " >&6; }
6371 else
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6373 $as_echo_n "checking for non-GNU ld... " >&6; }
6374 fi
6375 if ${lt_cv_path_LD+:} false; then :
6376   $as_echo_n "(cached) " >&6
6377 else
6378   if test -z "$LD"; then
6379   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6380   for ac_dir in $PATH; do
6381     IFS="$lt_save_ifs"
6382     test -z "$ac_dir" && ac_dir=.
6383     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6384       lt_cv_path_LD="$ac_dir/$ac_prog"
6385       # Check to see if the program is GNU ld.  I'd rather use --version,
6386       # but apparently some variants of GNU ld only accept -v.
6387       # Break only if it was the GNU/non-GNU ld that we prefer.
6388       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6389       *GNU* | *'with BFD'*)
6390         test "$with_gnu_ld" != no && break
6391         ;;
6392       *)
6393         test "$with_gnu_ld" != yes && break
6394         ;;
6395       esac
6396     fi
6397   done
6398   IFS="$lt_save_ifs"
6399 else
6400   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6401 fi
6402 fi
6403
6404 LD="$lt_cv_path_LD"
6405 if test -n "$LD"; then
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6407 $as_echo "$LD" >&6; }
6408 else
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6414 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6415 if ${lt_cv_prog_gnu_ld+:} false; then :
6416   $as_echo_n "(cached) " >&6
6417 else
6418   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6419 case `$LD -v 2>&1 </dev/null` in
6420 *GNU* | *'with BFD'*)
6421   lt_cv_prog_gnu_ld=yes
6422   ;;
6423 *)
6424   lt_cv_prog_gnu_ld=no
6425   ;;
6426 esac
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6429 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6430 with_gnu_ld=$lt_cv_prog_gnu_ld
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6441 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6442 if ${lt_cv_path_NM+:} false; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$NM"; then
6446   # Let the user override the test.
6447   lt_cv_path_NM="$NM"
6448 else
6449   lt_nm_to_check="${ac_tool_prefix}nm"
6450   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6451     lt_nm_to_check="$lt_nm_to_check nm"
6452   fi
6453   for lt_tmp_nm in $lt_nm_to_check; do
6454     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6455     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6456       IFS="$lt_save_ifs"
6457       test -z "$ac_dir" && ac_dir=.
6458       tmp_nm="$ac_dir/$lt_tmp_nm"
6459       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6460         # Check to see if the nm accepts a BSD-compat flag.
6461         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6462         #   nm: unknown option "B" ignored
6463         # Tru64's nm complains that /dev/null is an invalid object file
6464         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6465         */dev/null* | *'Invalid file or object type'*)
6466           lt_cv_path_NM="$tmp_nm -B"
6467           break
6468           ;;
6469         *)
6470           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6471           */dev/null*)
6472             lt_cv_path_NM="$tmp_nm -p"
6473             break
6474             ;;
6475           *)
6476             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6477             continue # so that we can try to find one that supports BSD flags
6478             ;;
6479           esac
6480           ;;
6481         esac
6482       fi
6483     done
6484     IFS="$lt_save_ifs"
6485   done
6486   : ${lt_cv_path_NM=no}
6487 fi
6488 fi
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6490 $as_echo "$lt_cv_path_NM" >&6; }
6491 if test "$lt_cv_path_NM" != "no"; then
6492   NM="$lt_cv_path_NM"
6493 else
6494   # Didn't find any BSD compatible name lister, look for dumpbin.
6495   if test -n "$ac_tool_prefix"; then
6496   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6497   do
6498     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_DUMPBIN+:} false; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505   if test -n "$DUMPBIN"; then
6506   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513     for ac_exec_ext in '' $ac_executable_extensions; do
6514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517     break 2
6518   fi
6519 done
6520   done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 DUMPBIN=$ac_cv_prog_DUMPBIN
6526 if test -n "$DUMPBIN"; then
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6528 $as_echo "$DUMPBIN" >&6; }
6529 else
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533
6534
6535     test -n "$DUMPBIN" && break
6536   done
6537 fi
6538 if test -z "$DUMPBIN"; then
6539   ac_ct_DUMPBIN=$DUMPBIN
6540   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6541 do
6542   # Extract the first word of "$ac_prog", so it can be a program name with args.
6543 set dummy $ac_prog; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   if test -n "$ac_ct_DUMPBIN"; then
6550   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557     for ac_exec_ext in '' $ac_executable_extensions; do
6558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564   done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6570 if test -n "$ac_ct_DUMPBIN"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6572 $as_echo "$ac_ct_DUMPBIN" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578
6579   test -n "$ac_ct_DUMPBIN" && break
6580 done
6581
6582   if test "x$ac_ct_DUMPBIN" = x; then
6583     DUMPBIN=":"
6584   else
6585     case $cross_compiling:$ac_tool_warned in
6586 yes:)
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591     DUMPBIN=$ac_ct_DUMPBIN
6592   fi
6593 fi
6594
6595
6596   if test "$DUMPBIN" != ":"; then
6597     NM="$DUMPBIN"
6598   fi
6599 fi
6600 test -z "$NM" && NM=nm
6601
6602
6603
6604
6605
6606
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6608 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6609 if ${lt_cv_nm_interface+:} false; then :
6610   $as_echo_n "(cached) " >&6
6611 else
6612   lt_cv_nm_interface="BSD nm"
6613   echo "int some_variable = 0;" > conftest.$ac_ext
6614   (eval echo "\"\$as_me:6614: $ac_compile\"" >&5)
6615   (eval "$ac_compile" 2>conftest.err)
6616   cat conftest.err >&5
6617   (eval echo "\"\$as_me:6617: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6618   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6619   cat conftest.err >&5
6620   (eval echo "\"\$as_me:6620: output\"" >&5)
6621   cat conftest.out >&5
6622   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6623     lt_cv_nm_interface="MS dumpbin"
6624   fi
6625   rm -f conftest*
6626 fi
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6628 $as_echo "$lt_cv_nm_interface" >&6; }
6629
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6631 $as_echo_n "checking whether ln -s works... " >&6; }
6632 LN_S=$as_ln_s
6633 if test "$LN_S" = "ln -s"; then
6634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6635 $as_echo "yes" >&6; }
6636 else
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6638 $as_echo "no, using $LN_S" >&6; }
6639 fi
6640
6641 # find the maximum length of command line arguments
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6643 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6644 if ${lt_cv_sys_max_cmd_len+:} false; then :
6645   $as_echo_n "(cached) " >&6
6646 else
6647     i=0
6648   teststring="ABCD"
6649
6650   case $build_os in
6651   msdosdjgpp*)
6652     # On DJGPP, this test can blow up pretty badly due to problems in libc
6653     # (any single argument exceeding 2000 bytes causes a buffer overrun
6654     # during glob expansion).  Even if it were fixed, the result of this
6655     # check would be larger than it should be.
6656     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6657     ;;
6658
6659   gnu*)
6660     # Under GNU Hurd, this test is not required because there is
6661     # no limit to the length of command line arguments.
6662     # Libtool will interpret -1 as no limit whatsoever
6663     lt_cv_sys_max_cmd_len=-1;
6664     ;;
6665
6666   cygwin* | mingw* | cegcc*)
6667     # On Win9x/ME, this test blows up -- it succeeds, but takes
6668     # about 5 minutes as the teststring grows exponentially.
6669     # Worse, since 9x/ME are not pre-emptively multitasking,
6670     # you end up with a "frozen" computer, even though with patience
6671     # the test eventually succeeds (with a max line length of 256k).
6672     # Instead, let's just punt: use the minimum linelength reported by
6673     # all of the supported platforms: 8192 (on NT/2K/XP).
6674     lt_cv_sys_max_cmd_len=8192;
6675     ;;
6676
6677   amigaos*)
6678     # On AmigaOS with pdksh, this test takes hours, literally.
6679     # So we just punt and use a minimum line length of 8192.
6680     lt_cv_sys_max_cmd_len=8192;
6681     ;;
6682
6683   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6684     # This has been around since 386BSD, at least.  Likely further.
6685     if test -x /sbin/sysctl; then
6686       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6687     elif test -x /usr/sbin/sysctl; then
6688       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6689     else
6690       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6691     fi
6692     # And add a safety zone
6693     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6694     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6695     ;;
6696
6697   interix*)
6698     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6699     lt_cv_sys_max_cmd_len=196608
6700     ;;
6701
6702   osf*)
6703     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6704     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6705     # nice to cause kernel panics so lets avoid the loop below.
6706     # First set a reasonable default.
6707     lt_cv_sys_max_cmd_len=16384
6708     #
6709     if test -x /sbin/sysconfig; then
6710       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6711         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6712       esac
6713     fi
6714     ;;
6715   sco3.2v5*)
6716     lt_cv_sys_max_cmd_len=102400
6717     ;;
6718   sysv5* | sco5v6* | sysv4.2uw2*)
6719     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6720     if test -n "$kargmax"; then
6721       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6722     else
6723       lt_cv_sys_max_cmd_len=32768
6724     fi
6725     ;;
6726   *)
6727     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6728     if test -n "$lt_cv_sys_max_cmd_len"; then
6729       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6730       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6731     else
6732       # Make teststring a little bigger before we do anything with it.
6733       # a 1K string should be a reasonable start.
6734       for i in 1 2 3 4 5 6 7 8 ; do
6735         teststring=$teststring$teststring
6736       done
6737       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6738       # If test is not a shell built-in, we'll probably end up computing a
6739       # maximum length that is only half of the actual maximum length, but
6740       # we can't tell.
6741       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6742                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6743               test $i != 17 # 1/2 MB should be enough
6744       do
6745         i=`expr $i + 1`
6746         teststring=$teststring$teststring
6747       done
6748       # Only check the string length outside the loop.
6749       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6750       teststring=
6751       # Add a significant safety factor because C++ compilers can tack on
6752       # massive amounts of additional arguments before passing them to the
6753       # linker.  It appears as though 1/2 is a usable value.
6754       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6755     fi
6756     ;;
6757   esac
6758
6759 fi
6760
6761 if test -n $lt_cv_sys_max_cmd_len ; then
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6763 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6764 else
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6766 $as_echo "none" >&6; }
6767 fi
6768 max_cmd_len=$lt_cv_sys_max_cmd_len
6769
6770
6771
6772
6773
6774
6775 : ${CP="cp -f"}
6776 : ${MV="mv -f"}
6777 : ${RM="rm -f"}
6778
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6780 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6781 # Try some XSI features
6782 xsi_shell=no
6783 ( _lt_dummy="a/b/c"
6784   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6785       = c,a/b,, \
6786     && eval 'test $(( 1 + 1 )) -eq 2 \
6787     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6788   && xsi_shell=yes
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6790 $as_echo "$xsi_shell" >&6; }
6791
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6794 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6795 lt_shell_append=no
6796 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6797     >/dev/null 2>&1 \
6798   && lt_shell_append=yes
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6800 $as_echo "$lt_shell_append" >&6; }
6801
6802
6803 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6804   lt_unset=unset
6805 else
6806   lt_unset=false
6807 fi
6808
6809
6810
6811
6812
6813 # test EBCDIC or ASCII
6814 case `echo X|tr X '\101'` in
6815  A) # ASCII based system
6816     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6817   lt_SP2NL='tr \040 \012'
6818   lt_NL2SP='tr \015\012 \040\040'
6819   ;;
6820  *) # EBCDIC based system
6821   lt_SP2NL='tr \100 \n'
6822   lt_NL2SP='tr \r\n \100\100'
6823   ;;
6824 esac
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6835 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6836 if ${lt_cv_ld_reload_flag+:} false; then :
6837   $as_echo_n "(cached) " >&6
6838 else
6839   lt_cv_ld_reload_flag='-r'
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6842 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6843 reload_flag=$lt_cv_ld_reload_flag
6844 case $reload_flag in
6845 "" | " "*) ;;
6846 *) reload_flag=" $reload_flag" ;;
6847 esac
6848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6849 case $host_os in
6850   darwin*)
6851     if test "$GCC" = yes; then
6852       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6853     else
6854       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6855     fi
6856     ;;
6857 esac
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867 if test -n "$ac_tool_prefix"; then
6868   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6869 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if ${ac_cv_prog_OBJDUMP+:} false; then :
6873   $as_echo_n "(cached) " >&6
6874 else
6875   if test -n "$OBJDUMP"; then
6876   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881   IFS=$as_save_IFS
6882   test -z "$as_dir" && as_dir=.
6883     for ac_exec_ext in '' $ac_executable_extensions; do
6884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887     break 2
6888   fi
6889 done
6890   done
6891 IFS=$as_save_IFS
6892
6893 fi
6894 fi
6895 OBJDUMP=$ac_cv_prog_OBJDUMP
6896 if test -n "$OBJDUMP"; then
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6898 $as_echo "$OBJDUMP" >&6; }
6899 else
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6902 fi
6903
6904
6905 fi
6906 if test -z "$ac_cv_prog_OBJDUMP"; then
6907   ac_ct_OBJDUMP=$OBJDUMP
6908   # Extract the first word of "objdump", so it can be a program name with args.
6909 set dummy objdump; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   if test -n "$ac_ct_OBJDUMP"; then
6916   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923     for ac_exec_ext in '' $ac_executable_extensions; do
6924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930   done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6936 if test -n "$ac_ct_OBJDUMP"; then
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6938 $as_echo "$ac_ct_OBJDUMP" >&6; }
6939 else
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943
6944   if test "x$ac_ct_OBJDUMP" = x; then
6945     OBJDUMP="false"
6946   else
6947     case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953     OBJDUMP=$ac_ct_OBJDUMP
6954   fi
6955 else
6956   OBJDUMP="$ac_cv_prog_OBJDUMP"
6957 fi
6958
6959 test -z "$OBJDUMP" && OBJDUMP=objdump
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6970 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6971 if ${lt_cv_deplibs_check_method+:} false; then :
6972   $as_echo_n "(cached) " >&6
6973 else
6974   lt_cv_file_magic_cmd='$MAGIC_CMD'
6975 lt_cv_file_magic_test_file=
6976 lt_cv_deplibs_check_method='unknown'
6977 # Need to set the preceding variable on all platforms that support
6978 # interlibrary dependencies.
6979 # 'none' -- dependencies not supported.
6980 # `unknown' -- same as none, but documents that we really don't know.
6981 # 'pass_all' -- all dependencies passed with no checks.
6982 # 'test_compile' -- check by making test program.
6983 # 'file_magic [[regex]]' -- check by looking for files in library path
6984 # which responds to the $file_magic_cmd with a given extended regex.
6985 # If you have `file' or equivalent on your system and you're not sure
6986 # whether `pass_all' will *always* work, you probably want this one.
6987
6988 case $host_os in
6989 aix[4-9]*)
6990   lt_cv_deplibs_check_method=pass_all
6991   ;;
6992
6993 beos*)
6994   lt_cv_deplibs_check_method=pass_all
6995   ;;
6996
6997 bsdi[45]*)
6998   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6999   lt_cv_file_magic_cmd='/usr/bin/file -L'
7000   lt_cv_file_magic_test_file=/shlib/libc.so
7001   ;;
7002
7003 cygwin*)
7004   # func_win32_libid is a shell function defined in ltmain.sh
7005   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7006   lt_cv_file_magic_cmd='func_win32_libid'
7007   ;;
7008
7009 mingw* | pw32*)
7010   # Base MSYS/MinGW do not provide the 'file' command needed by
7011   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7012   # unless we find 'file', for example because we are cross-compiling.
7013   if ( file / ) >/dev/null 2>&1; then
7014     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7015     lt_cv_file_magic_cmd='func_win32_libid'
7016   else
7017     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7018     lt_cv_file_magic_cmd='$OBJDUMP -f'
7019   fi
7020   ;;
7021
7022 cegcc)
7023   # use the weaker test based on 'objdump'. See mingw*.
7024   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7025   lt_cv_file_magic_cmd='$OBJDUMP -f'
7026   ;;
7027
7028 darwin* | rhapsody*)
7029   lt_cv_deplibs_check_method=pass_all
7030   ;;
7031
7032 freebsd* | dragonfly*)
7033   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7034     case $host_cpu in
7035     i*86 )
7036       # Not sure whether the presence of OpenBSD here was a mistake.
7037       # Let's accept both of them until this is cleared up.
7038       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7039       lt_cv_file_magic_cmd=/usr/bin/file
7040       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7041       ;;
7042     esac
7043   else
7044     lt_cv_deplibs_check_method=pass_all
7045   fi
7046   ;;
7047
7048 gnu*)
7049   lt_cv_deplibs_check_method=pass_all
7050   ;;
7051
7052 hpux10.20* | hpux11*)
7053   lt_cv_file_magic_cmd=/usr/bin/file
7054   case $host_cpu in
7055   ia64*)
7056     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7057     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7058     ;;
7059   hppa*64*)
7060     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7061     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7062     ;;
7063   *)
7064     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7065     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7066     ;;
7067   esac
7068   ;;
7069
7070 interix[3-9]*)
7071   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7072   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7073   ;;
7074
7075 irix5* | irix6* | nonstopux*)
7076   case $LD in
7077   *-32|*"-32 ") libmagic=32-bit;;
7078   *-n32|*"-n32 ") libmagic=N32;;
7079   *-64|*"-64 ") libmagic=64-bit;;
7080   *) libmagic=never-match;;
7081   esac
7082   lt_cv_deplibs_check_method=pass_all
7083   ;;
7084
7085 # This must be Linux ELF.
7086 linux* | k*bsd*-gnu)
7087   lt_cv_deplibs_check_method=pass_all
7088   ;;
7089
7090 netbsd*)
7091   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7092     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7093   else
7094     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7095   fi
7096   ;;
7097
7098 newos6*)
7099   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7100   lt_cv_file_magic_cmd=/usr/bin/file
7101   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7102   ;;
7103
7104 *nto* | *qnx*)
7105   lt_cv_deplibs_check_method=pass_all
7106   ;;
7107
7108 openbsd*)
7109   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7110     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7111   else
7112     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7113   fi
7114   ;;
7115
7116 osf3* | osf4* | osf5*)
7117   lt_cv_deplibs_check_method=pass_all
7118   ;;
7119
7120 rdos*)
7121   lt_cv_deplibs_check_method=pass_all
7122   ;;
7123
7124 solaris*)
7125   lt_cv_deplibs_check_method=pass_all
7126   ;;
7127
7128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7129   lt_cv_deplibs_check_method=pass_all
7130   ;;
7131
7132 sysv4 | sysv4.3*)
7133   case $host_vendor in
7134   motorola)
7135     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]'
7136     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7137     ;;
7138   ncr)
7139     lt_cv_deplibs_check_method=pass_all
7140     ;;
7141   sequent)
7142     lt_cv_file_magic_cmd='/bin/file'
7143     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7144     ;;
7145   sni)
7146     lt_cv_file_magic_cmd='/bin/file'
7147     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7148     lt_cv_file_magic_test_file=/lib/libc.so
7149     ;;
7150   siemens)
7151     lt_cv_deplibs_check_method=pass_all
7152     ;;
7153   pc)
7154     lt_cv_deplibs_check_method=pass_all
7155     ;;
7156   esac
7157   ;;
7158
7159 tpf*)
7160   lt_cv_deplibs_check_method=pass_all
7161   ;;
7162 esac
7163
7164 fi
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7166 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7167 file_magic_cmd=$lt_cv_file_magic_cmd
7168 deplibs_check_method=$lt_cv_deplibs_check_method
7169 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182 if test -n "$ac_tool_prefix"; then
7183   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7184 set dummy ${ac_tool_prefix}ar; ac_word=$2
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if ${ac_cv_prog_AR+:} false; then :
7188   $as_echo_n "(cached) " >&6
7189 else
7190   if test -n "$AR"; then
7191   ac_cv_prog_AR="$AR" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198     for ac_exec_ext in '' $ac_executable_extensions; do
7199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200     ac_cv_prog_AR="${ac_tool_prefix}ar"
7201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205   done
7206 IFS=$as_save_IFS
7207
7208 fi
7209 fi
7210 AR=$ac_cv_prog_AR
7211 if test -n "$AR"; then
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7213 $as_echo "$AR" >&6; }
7214 else
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7217 fi
7218
7219
7220 fi
7221 if test -z "$ac_cv_prog_AR"; then
7222   ac_ct_AR=$AR
7223   # Extract the first word of "ar", so it can be a program name with args.
7224 set dummy ar; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7228   $as_echo_n "(cached) " >&6
7229 else
7230   if test -n "$ac_ct_AR"; then
7231   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238     for ac_exec_ext in '' $ac_executable_extensions; do
7239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240     ac_cv_prog_ac_ct_AR="ar"
7241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245   done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7251 if test -n "$ac_ct_AR"; then
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7253 $as_echo "$ac_ct_AR" >&6; }
7254 else
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258
7259   if test "x$ac_ct_AR" = x; then
7260     AR="false"
7261   else
7262     case $cross_compiling:$ac_tool_warned in
7263 yes:)
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7266 ac_tool_warned=yes ;;
7267 esac
7268     AR=$ac_ct_AR
7269   fi
7270 else
7271   AR="$ac_cv_prog_AR"
7272 fi
7273
7274 test -z "$AR" && AR=ar
7275 test -z "$AR_FLAGS" && AR_FLAGS=cru
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287 if test -n "$ac_tool_prefix"; then
7288   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}strip; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_STRIP+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   if test -n "$STRIP"; then
7296   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310   done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 STRIP=$ac_cv_prog_STRIP
7316 if test -n "$STRIP"; then
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7318 $as_echo "$STRIP" >&6; }
7319 else
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7323
7324
7325 fi
7326 if test -z "$ac_cv_prog_STRIP"; then
7327   ac_ct_STRIP=$STRIP
7328   # Extract the first word of "strip", so it can be a program name with args.
7329 set dummy strip; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7333   $as_echo_n "(cached) " >&6
7334 else
7335   if test -n "$ac_ct_STRIP"; then
7336   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343     for ac_exec_ext in '' $ac_executable_extensions; do
7344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345     ac_cv_prog_ac_ct_STRIP="strip"
7346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350   done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7356 if test -n "$ac_ct_STRIP"; then
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7358 $as_echo "$ac_ct_STRIP" >&6; }
7359 else
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364   if test "x$ac_ct_STRIP" = x; then
7365     STRIP=":"
7366   else
7367     case $cross_compiling:$ac_tool_warned in
7368 yes:)
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned=yes ;;
7372 esac
7373     STRIP=$ac_ct_STRIP
7374   fi
7375 else
7376   STRIP="$ac_cv_prog_STRIP"
7377 fi
7378
7379 test -z "$STRIP" && STRIP=:
7380
7381
7382
7383
7384
7385
7386 if test -n "$ac_tool_prefix"; then
7387   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7388 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_RANLIB+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$RANLIB"; then
7395   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 RANLIB=$ac_cv_prog_RANLIB
7415 if test -n "$RANLIB"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7417 $as_echo "$RANLIB" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423
7424 fi
7425 if test -z "$ac_cv_prog_RANLIB"; then
7426   ac_ct_RANLIB=$RANLIB
7427   # Extract the first word of "ranlib", so it can be a program name with args.
7428 set dummy ranlib; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7432   $as_echo_n "(cached) " >&6
7433 else
7434   if test -n "$ac_ct_RANLIB"; then
7435   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442     for ac_exec_ext in '' $ac_executable_extensions; do
7443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7444     ac_cv_prog_ac_ct_RANLIB="ranlib"
7445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446     break 2
7447   fi
7448 done
7449   done
7450 IFS=$as_save_IFS
7451
7452 fi
7453 fi
7454 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7455 if test -n "$ac_ct_RANLIB"; then
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7457 $as_echo "$ac_ct_RANLIB" >&6; }
7458 else
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 fi
7462
7463   if test "x$ac_ct_RANLIB" = x; then
7464     RANLIB=":"
7465   else
7466     case $cross_compiling:$ac_tool_warned in
7467 yes:)
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7470 ac_tool_warned=yes ;;
7471 esac
7472     RANLIB=$ac_ct_RANLIB
7473   fi
7474 else
7475   RANLIB="$ac_cv_prog_RANLIB"
7476 fi
7477
7478 test -z "$RANLIB" && RANLIB=:
7479
7480
7481
7482
7483
7484
7485 # Determine commands to create old-style static archives.
7486 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7487 old_postinstall_cmds='chmod 644 $oldlib'
7488 old_postuninstall_cmds=
7489
7490 if test -n "$RANLIB"; then
7491   case $host_os in
7492   openbsd*)
7493     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7494     ;;
7495   *)
7496     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7497     ;;
7498   esac
7499   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7500 fi
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535 # If no C compiler was specified, use CC.
7536 LTCC=${LTCC-"$CC"}
7537
7538 # If no C compiler flags were specified, use CFLAGS.
7539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7540
7541 # Allow CC to be a program name with arguments.
7542 compiler=$CC
7543
7544
7545 # Check for command to grab the raw symbol name followed by C symbol from nm.
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7547 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7548 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7549   $as_echo_n "(cached) " >&6
7550 else
7551
7552 # These are sane defaults that work on at least a few old systems.
7553 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7554
7555 # Character class describing NM global symbol codes.
7556 symcode='[BCDEGRST]'
7557
7558 # Regexp to match symbols that can be accessed directly from C.
7559 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7560
7561 # Define system-specific variables.
7562 case $host_os in
7563 aix*)
7564   symcode='[BCDT]'
7565   ;;
7566 cygwin* | mingw* | pw32* | cegcc*)
7567   symcode='[ABCDGISTW]'
7568   ;;
7569 hpux*)
7570   if test "$host_cpu" = ia64; then
7571     symcode='[ABCDEGRST]'
7572   fi
7573   ;;
7574 irix* | nonstopux*)
7575   symcode='[BCDEGRST]'
7576   ;;
7577 osf*)
7578   symcode='[BCDEGQRST]'
7579   ;;
7580 solaris*)
7581   symcode='[BDRT]'
7582   ;;
7583 sco3.2v5*)
7584   symcode='[DT]'
7585   ;;
7586 sysv4.2uw2*)
7587   symcode='[DT]'
7588   ;;
7589 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7590   symcode='[ABDT]'
7591   ;;
7592 sysv4)
7593   symcode='[DFNSTU]'
7594   ;;
7595 esac
7596
7597 # If we're using GNU nm, then use its standard symbol codes.
7598 case `$NM -V 2>&1` in
7599 *GNU* | *'with BFD'*)
7600   symcode='[ABCDGIRSTW]' ;;
7601 esac
7602
7603 # Transform an extracted symbol line into a proper C declaration.
7604 # Some systems (esp. on ia64) link data and code symbols differently,
7605 # so use this general approach.
7606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7607
7608 # Transform an extracted symbol line into symbol name and symbol address
7609 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7610 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'"
7611
7612 # Handle CRLF in mingw tool chain
7613 opt_cr=
7614 case $build_os in
7615 mingw*)
7616   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7617   ;;
7618 esac
7619
7620 # Try without a prefix underscore, then with it.
7621 for ac_symprfx in "" "_"; do
7622
7623   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7624   symxfrm="\\1 $ac_symprfx\\2 \\2"
7625
7626   # Write the raw and C identifiers.
7627   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7628     # Fake it for dumpbin and say T for any non-static function
7629     # and D for any global variable.
7630     # Also find C++ and __fastcall symbols from MSVC++,
7631     # which start with @ or ?.
7632     lt_cv_sys_global_symbol_pipe="$AWK '"\
7633 "     {last_section=section; section=\$ 3};"\
7634 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7635 "     \$ 0!~/External *\|/{next};"\
7636 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7637 "     {if(hide[section]) next};"\
7638 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7639 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7640 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7641 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7642 "     ' prfx=^$ac_symprfx"
7643   else
7644     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7645   fi
7646
7647   # Check to see that the pipe works correctly.
7648   pipe_works=no
7649
7650   rm -f conftest*
7651   cat > conftest.$ac_ext <<_LT_EOF
7652 #ifdef __cplusplus
7653 extern "C" {
7654 #endif
7655 char nm_test_var;
7656 void nm_test_func(void);
7657 void nm_test_func(void){}
7658 #ifdef __cplusplus
7659 }
7660 #endif
7661 int main(){nm_test_var='a';nm_test_func();return(0);}
7662 _LT_EOF
7663
7664   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7665   (eval $ac_compile) 2>&5
7666   ac_status=$?
7667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668   test $ac_status = 0; }; then
7669     # Now try to grab the symbols.
7670     nlist=conftest.nm
7671     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7672   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7673   ac_status=$?
7674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7675   test $ac_status = 0; } && test -s "$nlist"; then
7676       # Try sorting and uniquifying the output.
7677       if sort "$nlist" | uniq > "$nlist"T; then
7678         mv -f "$nlist"T "$nlist"
7679       else
7680         rm -f "$nlist"T
7681       fi
7682
7683       # Make sure that we snagged all the symbols we need.
7684       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7685         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7686           cat <<_LT_EOF > conftest.$ac_ext
7687 #ifdef __cplusplus
7688 extern "C" {
7689 #endif
7690
7691 _LT_EOF
7692           # Now generate the symbol file.
7693           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7694
7695           cat <<_LT_EOF >> conftest.$ac_ext
7696
7697 /* The mapping between symbol names and symbols.  */
7698 const struct {
7699   const char *name;
7700   void       *address;
7701 }
7702 lt__PROGRAM__LTX_preloaded_symbols[] =
7703 {
7704   { "@PROGRAM@", (void *) 0 },
7705 _LT_EOF
7706           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7707           cat <<\_LT_EOF >> conftest.$ac_ext
7708   {0, (void *) 0}
7709 };
7710
7711 /* This works around a problem in FreeBSD linker */
7712 #ifdef FREEBSD_WORKAROUND
7713 static const void *lt_preloaded_setup() {
7714   return lt__PROGRAM__LTX_preloaded_symbols;
7715 }
7716 #endif
7717
7718 #ifdef __cplusplus
7719 }
7720 #endif
7721 _LT_EOF
7722           # Now try linking the two files.
7723           mv conftest.$ac_objext conftstm.$ac_objext
7724           lt_save_LIBS="$LIBS"
7725           lt_save_CFLAGS="$CFLAGS"
7726           LIBS="conftstm.$ac_objext"
7727           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7728           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7729   (eval $ac_link) 2>&5
7730   ac_status=$?
7731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7732   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7733             pipe_works=yes
7734           fi
7735           LIBS="$lt_save_LIBS"
7736           CFLAGS="$lt_save_CFLAGS"
7737         else
7738           echo "cannot find nm_test_func in $nlist" >&5
7739         fi
7740       else
7741         echo "cannot find nm_test_var in $nlist" >&5
7742       fi
7743     else
7744       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7745     fi
7746   else
7747     echo "$progname: failed program was:" >&5
7748     cat conftest.$ac_ext >&5
7749   fi
7750   rm -rf conftest* conftst*
7751
7752   # Do not use the global_symbol_pipe unless it works.
7753   if test "$pipe_works" = yes; then
7754     break
7755   else
7756     lt_cv_sys_global_symbol_pipe=
7757   fi
7758 done
7759
7760 fi
7761
7762 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7763   lt_cv_sys_global_symbol_to_cdecl=
7764 fi
7765 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7767 $as_echo "failed" >&6; }
7768 else
7769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7770 $as_echo "ok" >&6; }
7771 fi
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794 # Check whether --enable-libtool-lock was given.
7795 if test "${enable_libtool_lock+set}" = set; then :
7796   enableval=$enable_libtool_lock;
7797 fi
7798
7799 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7800
7801 # Some flags need to be propagated to the compiler or linker for good
7802 # libtool support.
7803 case $host in
7804 ia64-*-hpux*)
7805   # Find out which ABI we are using.
7806   echo 'int i;' > conftest.$ac_ext
7807   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7808   (eval $ac_compile) 2>&5
7809   ac_status=$?
7810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7811   test $ac_status = 0; }; then
7812     case `/usr/bin/file conftest.$ac_objext` in
7813       *ELF-32*)
7814         HPUX_IA64_MODE="32"
7815         ;;
7816       *ELF-64*)
7817         HPUX_IA64_MODE="64"
7818         ;;
7819     esac
7820   fi
7821   rm -rf conftest*
7822   ;;
7823 *-*-irix6*)
7824   # Find out which ABI we are using.
7825   echo '#line 7825 "configure"' > conftest.$ac_ext
7826   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7827   (eval $ac_compile) 2>&5
7828   ac_status=$?
7829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830   test $ac_status = 0; }; then
7831     if test "$lt_cv_prog_gnu_ld" = yes; then
7832       case `/usr/bin/file conftest.$ac_objext` in
7833         *32-bit*)
7834           LD="${LD-ld} -melf32bsmip"
7835           ;;
7836         *N32*)
7837           LD="${LD-ld} -melf32bmipn32"
7838           ;;
7839         *64-bit*)
7840           LD="${LD-ld} -melf64bmip"
7841         ;;
7842       esac
7843     else
7844       case `/usr/bin/file conftest.$ac_objext` in
7845         *32-bit*)
7846           LD="${LD-ld} -32"
7847           ;;
7848         *N32*)
7849           LD="${LD-ld} -n32"
7850           ;;
7851         *64-bit*)
7852           LD="${LD-ld} -64"
7853           ;;
7854       esac
7855     fi
7856   fi
7857   rm -rf conftest*
7858   ;;
7859
7860 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7861 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7862   # Find out which ABI we are using.
7863   echo 'int i;' > conftest.$ac_ext
7864   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7865   (eval $ac_compile) 2>&5
7866   ac_status=$?
7867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868   test $ac_status = 0; }; then
7869     case `/usr/bin/file conftest.o` in
7870       *32-bit*)
7871         case $host in
7872           x86_64-*kfreebsd*-gnu)
7873             LD="${LD-ld} -m elf_i386_fbsd"
7874             ;;
7875           x86_64-*linux*)
7876             LD="${LD-ld} -m elf_i386"
7877             ;;
7878           ppc64-*linux*|powerpc64-*linux*)
7879             LD="${LD-ld} -m elf32ppclinux"
7880             ;;
7881           s390x-*linux*)
7882             LD="${LD-ld} -m elf_s390"
7883             ;;
7884           sparc64-*linux*)
7885             LD="${LD-ld} -m elf32_sparc"
7886             ;;
7887         esac
7888         ;;
7889       *64-bit*)
7890         case $host in
7891           x86_64-*kfreebsd*-gnu)
7892             LD="${LD-ld} -m elf_x86_64_fbsd"
7893             ;;
7894           x86_64-*linux*)
7895             LD="${LD-ld} -m elf_x86_64"
7896             ;;
7897           ppc*-*linux*|powerpc*-*linux*)
7898             LD="${LD-ld} -m elf64ppc"
7899             ;;
7900           s390*-*linux*|s390*-*tpf*)
7901             LD="${LD-ld} -m elf64_s390"
7902             ;;
7903           sparc*-*linux*)
7904             LD="${LD-ld} -m elf64_sparc"
7905             ;;
7906         esac
7907         ;;
7908     esac
7909   fi
7910   rm -rf conftest*
7911   ;;
7912
7913 *-*-sco3.2v5*)
7914   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7915   SAVE_CFLAGS="$CFLAGS"
7916   CFLAGS="$CFLAGS -belf"
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7918 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7919 if ${lt_cv_cc_needs_belf+:} false; then :
7920   $as_echo_n "(cached) " >&6
7921 else
7922   ac_ext=c
7923 ac_cpp='$CPP $CPPFLAGS'
7924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7927
7928      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h.  */
7930
7931 int
7932 main ()
7933 {
7934
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 if ac_fn_c_try_link "$LINENO"; then :
7940   lt_cv_cc_needs_belf=yes
7941 else
7942   lt_cv_cc_needs_belf=no
7943 fi
7944 rm -f core conftest.err conftest.$ac_objext \
7945     conftest$ac_exeext conftest.$ac_ext
7946      ac_ext=c
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7951
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7954 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7955   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7956     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7957     CFLAGS="$SAVE_CFLAGS"
7958   fi
7959   ;;
7960 sparc*-*solaris*)
7961   # Find out which ABI we are using.
7962   echo 'int i;' > conftest.$ac_ext
7963   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7964   (eval $ac_compile) 2>&5
7965   ac_status=$?
7966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7967   test $ac_status = 0; }; then
7968     case `/usr/bin/file conftest.o` in
7969     *64-bit*)
7970       case $lt_cv_prog_gnu_ld in
7971       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7972       *)
7973         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7974           LD="${LD-ld} -64"
7975         fi
7976         ;;
7977       esac
7978       ;;
7979     esac
7980   fi
7981   rm -rf conftest*
7982   ;;
7983 esac
7984
7985 need_locks="$enable_libtool_lock"
7986
7987
7988   case $host_os in
7989     rhapsody* | darwin*)
7990     if test -n "$ac_tool_prefix"; then
7991   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7992 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7996   $as_echo_n "(cached) " >&6
7997 else
7998   if test -n "$DSYMUTIL"; then
7999   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004   IFS=$as_save_IFS
8005   test -z "$as_dir" && as_dir=.
8006     for ac_exec_ext in '' $ac_executable_extensions; do
8007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010     break 2
8011   fi
8012 done
8013   done
8014 IFS=$as_save_IFS
8015
8016 fi
8017 fi
8018 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8019 if test -n "$DSYMUTIL"; then
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8021 $as_echo "$DSYMUTIL" >&6; }
8022 else
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8025 fi
8026
8027
8028 fi
8029 if test -z "$ac_cv_prog_DSYMUTIL"; then
8030   ac_ct_DSYMUTIL=$DSYMUTIL
8031   # Extract the first word of "dsymutil", so it can be a program name with args.
8032 set dummy dsymutil; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8036   $as_echo_n "(cached) " >&6
8037 else
8038   if test -n "$ac_ct_DSYMUTIL"; then
8039   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046     for ac_exec_ext in '' $ac_executable_extensions; do
8047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053   done
8054 IFS=$as_save_IFS
8055
8056 fi
8057 fi
8058 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8059 if test -n "$ac_ct_DSYMUTIL"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8061 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066
8067   if test "x$ac_ct_DSYMUTIL" = x; then
8068     DSYMUTIL=":"
8069   else
8070     case $cross_compiling:$ac_tool_warned in
8071 yes:)
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074 ac_tool_warned=yes ;;
8075 esac
8076     DSYMUTIL=$ac_ct_DSYMUTIL
8077   fi
8078 else
8079   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8080 fi
8081
8082     if test -n "$ac_tool_prefix"; then
8083   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8084 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if ${ac_cv_prog_NMEDIT+:} false; then :
8088   $as_echo_n "(cached) " >&6
8089 else
8090   if test -n "$NMEDIT"; then
8091   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8092 else
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8095 do
8096   IFS=$as_save_IFS
8097   test -z "$as_dir" && as_dir=.
8098     for ac_exec_ext in '' $ac_executable_extensions; do
8099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102     break 2
8103   fi
8104 done
8105   done
8106 IFS=$as_save_IFS
8107
8108 fi
8109 fi
8110 NMEDIT=$ac_cv_prog_NMEDIT
8111 if test -n "$NMEDIT"; then
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8113 $as_echo "$NMEDIT" >&6; }
8114 else
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118
8119
8120 fi
8121 if test -z "$ac_cv_prog_NMEDIT"; then
8122   ac_ct_NMEDIT=$NMEDIT
8123   # Extract the first word of "nmedit", so it can be a program name with args.
8124 set dummy nmedit; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8128   $as_echo_n "(cached) " >&6
8129 else
8130   if test -n "$ac_ct_NMEDIT"; then
8131   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138     for ac_exec_ext in '' $ac_executable_extensions; do
8139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145   done
8146 IFS=$as_save_IFS
8147
8148 fi
8149 fi
8150 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8151 if test -n "$ac_ct_NMEDIT"; then
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8153 $as_echo "$ac_ct_NMEDIT" >&6; }
8154 else
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8157 fi
8158
8159   if test "x$ac_ct_NMEDIT" = x; then
8160     NMEDIT=":"
8161   else
8162     case $cross_compiling:$ac_tool_warned in
8163 yes:)
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8166 ac_tool_warned=yes ;;
8167 esac
8168     NMEDIT=$ac_ct_NMEDIT
8169   fi
8170 else
8171   NMEDIT="$ac_cv_prog_NMEDIT"
8172 fi
8173
8174     if test -n "$ac_tool_prefix"; then
8175   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8176 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178 $as_echo_n "checking for $ac_word... " >&6; }
8179 if ${ac_cv_prog_LIPO+:} false; then :
8180   $as_echo_n "(cached) " >&6
8181 else
8182   if test -n "$LIPO"; then
8183   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8184 else
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8187 do
8188   IFS=$as_save_IFS
8189   test -z "$as_dir" && as_dir=.
8190     for ac_exec_ext in '' $ac_executable_extensions; do
8191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8192     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194     break 2
8195   fi
8196 done
8197   done
8198 IFS=$as_save_IFS
8199
8200 fi
8201 fi
8202 LIPO=$ac_cv_prog_LIPO
8203 if test -n "$LIPO"; then
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8205 $as_echo "$LIPO" >&6; }
8206 else
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8209 fi
8210
8211
8212 fi
8213 if test -z "$ac_cv_prog_LIPO"; then
8214   ac_ct_LIPO=$LIPO
8215   # Extract the first word of "lipo", so it can be a program name with args.
8216 set dummy lipo; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   if test -n "$ac_ct_LIPO"; then
8223   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228   IFS=$as_save_IFS
8229   test -z "$as_dir" && as_dir=.
8230     for ac_exec_ext in '' $ac_executable_extensions; do
8231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232     ac_cv_prog_ac_ct_LIPO="lipo"
8233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234     break 2
8235   fi
8236 done
8237   done
8238 IFS=$as_save_IFS
8239
8240 fi
8241 fi
8242 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8243 if test -n "$ac_ct_LIPO"; then
8244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8245 $as_echo "$ac_ct_LIPO" >&6; }
8246 else
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8249 fi
8250
8251   if test "x$ac_ct_LIPO" = x; then
8252     LIPO=":"
8253   else
8254     case $cross_compiling:$ac_tool_warned in
8255 yes:)
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8258 ac_tool_warned=yes ;;
8259 esac
8260     LIPO=$ac_ct_LIPO
8261   fi
8262 else
8263   LIPO="$ac_cv_prog_LIPO"
8264 fi
8265
8266     if test -n "$ac_tool_prefix"; then
8267   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8268 set dummy ${ac_tool_prefix}otool; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if ${ac_cv_prog_OTOOL+:} false; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   if test -n "$OTOOL"; then
8275   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282     for ac_exec_ext in '' $ac_executable_extensions; do
8283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289   done
8290 IFS=$as_save_IFS
8291
8292 fi
8293 fi
8294 OTOOL=$ac_cv_prog_OTOOL
8295 if test -n "$OTOOL"; then
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8297 $as_echo "$OTOOL" >&6; }
8298 else
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8301 fi
8302
8303
8304 fi
8305 if test -z "$ac_cv_prog_OTOOL"; then
8306   ac_ct_OTOOL=$OTOOL
8307   # Extract the first word of "otool", so it can be a program name with args.
8308 set dummy otool; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8312   $as_echo_n "(cached) " >&6
8313 else
8314   if test -n "$ac_ct_OTOOL"; then
8315   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320   IFS=$as_save_IFS
8321   test -z "$as_dir" && as_dir=.
8322     for ac_exec_ext in '' $ac_executable_extensions; do
8323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8324     ac_cv_prog_ac_ct_OTOOL="otool"
8325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326     break 2
8327   fi
8328 done
8329   done
8330 IFS=$as_save_IFS
8331
8332 fi
8333 fi
8334 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8335 if test -n "$ac_ct_OTOOL"; then
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8337 $as_echo "$ac_ct_OTOOL" >&6; }
8338 else
8339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8341 fi
8342
8343   if test "x$ac_ct_OTOOL" = x; then
8344     OTOOL=":"
8345   else
8346     case $cross_compiling:$ac_tool_warned in
8347 yes:)
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8350 ac_tool_warned=yes ;;
8351 esac
8352     OTOOL=$ac_ct_OTOOL
8353   fi
8354 else
8355   OTOOL="$ac_cv_prog_OTOOL"
8356 fi
8357
8358     if test -n "$ac_tool_prefix"; then
8359   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8360 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if ${ac_cv_prog_OTOOL64+:} false; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   if test -n "$OTOOL64"; then
8367   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8368 else
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8371 do
8372   IFS=$as_save_IFS
8373   test -z "$as_dir" && as_dir=.
8374     for ac_exec_ext in '' $ac_executable_extensions; do
8375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378     break 2
8379   fi
8380 done
8381   done
8382 IFS=$as_save_IFS
8383
8384 fi
8385 fi
8386 OTOOL64=$ac_cv_prog_OTOOL64
8387 if test -n "$OTOOL64"; then
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8389 $as_echo "$OTOOL64" >&6; }
8390 else
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395
8396 fi
8397 if test -z "$ac_cv_prog_OTOOL64"; then
8398   ac_ct_OTOOL64=$OTOOL64
8399   # Extract the first word of "otool64", so it can be a program name with args.
8400 set dummy otool64; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8404   $as_echo_n "(cached) " >&6
8405 else
8406   if test -n "$ac_ct_OTOOL64"; then
8407   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8408 else
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8411 do
8412   IFS=$as_save_IFS
8413   test -z "$as_dir" && as_dir=.
8414     for ac_exec_ext in '' $ac_executable_extensions; do
8415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8416     ac_cv_prog_ac_ct_OTOOL64="otool64"
8417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418     break 2
8419   fi
8420 done
8421   done
8422 IFS=$as_save_IFS
8423
8424 fi
8425 fi
8426 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8427 if test -n "$ac_ct_OTOOL64"; then
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8429 $as_echo "$ac_ct_OTOOL64" >&6; }
8430 else
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8433 fi
8434
8435   if test "x$ac_ct_OTOOL64" = x; then
8436     OTOOL64=":"
8437   else
8438     case $cross_compiling:$ac_tool_warned in
8439 yes:)
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8442 ac_tool_warned=yes ;;
8443 esac
8444     OTOOL64=$ac_ct_OTOOL64
8445   fi
8446 else
8447   OTOOL64="$ac_cv_prog_OTOOL64"
8448 fi
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8477 $as_echo_n "checking for -single_module linker flag... " >&6; }
8478 if ${lt_cv_apple_cc_single_mod+:} false; then :
8479   $as_echo_n "(cached) " >&6
8480 else
8481   lt_cv_apple_cc_single_mod=no
8482       if test -z "${LT_MULTI_MODULE}"; then
8483         # By default we will add the -single_module flag. You can override
8484         # by either setting the environment variable LT_MULTI_MODULE
8485         # non-empty at configure time, or by adding -multi_module to the
8486         # link flags.
8487         rm -rf libconftest.dylib*
8488         echo "int foo(void){return 1;}" > conftest.c
8489         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8490 -dynamiclib -Wl,-single_module conftest.c" >&5
8491         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8492           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8493         _lt_result=$?
8494         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8495           lt_cv_apple_cc_single_mod=yes
8496         else
8497           cat conftest.err >&5
8498         fi
8499         rm -rf libconftest.dylib*
8500         rm -f conftest.*
8501       fi
8502 fi
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8504 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8506 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8507 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8508   $as_echo_n "(cached) " >&6
8509 else
8510   lt_cv_ld_exported_symbols_list=no
8511       save_LDFLAGS=$LDFLAGS
8512       echo "_main" > conftest.sym
8513       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h.  */
8516
8517 int
8518 main ()
8519 {
8520
8521   ;
8522   return 0;
8523 }
8524 _ACEOF
8525 if ac_fn_c_try_link "$LINENO"; then :
8526   lt_cv_ld_exported_symbols_list=yes
8527 else
8528   lt_cv_ld_exported_symbols_list=no
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext \
8531     conftest$ac_exeext conftest.$ac_ext
8532         LDFLAGS="$save_LDFLAGS"
8533
8534 fi
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8536 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8537     case $host_os in
8538     rhapsody* | darwin1.[012])
8539       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8540     darwin1.*)
8541       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8542     darwin*) # darwin 5.x on
8543       # if running on 10.5 or later, the deployment target defaults
8544       # to the OS version, if on x86, and 10.4, the deployment
8545       # target defaults to 10.4. Don't you love it?
8546       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8547         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8548           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8549         10.[012]*)
8550           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8551         10.*)
8552           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8553       esac
8554     ;;
8555   esac
8556     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8557       _lt_dar_single_mod='$single_module'
8558     fi
8559     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8560       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8561     else
8562       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8563     fi
8564     if test "$DSYMUTIL" != ":"; then
8565       _lt_dsymutil='~$DSYMUTIL $lib || :'
8566     else
8567       _lt_dsymutil=
8568     fi
8569     ;;
8570   esac
8571
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8573 $as_echo_n "checking for ANSI C header files... " >&6; }
8574 if ${ac_cv_header_stdc+:} false; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h.  */
8579 #include <stdlib.h>
8580 #include <stdarg.h>
8581 #include <string.h>
8582 #include <float.h>
8583
8584 int
8585 main ()
8586 {
8587
8588   ;
8589   return 0;
8590 }
8591 _ACEOF
8592 if ac_fn_c_try_compile "$LINENO"; then :
8593   ac_cv_header_stdc=yes
8594 else
8595   ac_cv_header_stdc=no
8596 fi
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598
8599 if test $ac_cv_header_stdc = yes; then
8600   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h.  */
8603 #include <string.h>
8604
8605 _ACEOF
8606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8607   $EGREP "memchr" >/dev/null 2>&1; then :
8608
8609 else
8610   ac_cv_header_stdc=no
8611 fi
8612 rm -f conftest*
8613
8614 fi
8615
8616 if test $ac_cv_header_stdc = yes; then
8617   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h.  */
8620 #include <stdlib.h>
8621
8622 _ACEOF
8623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8624   $EGREP "free" >/dev/null 2>&1; then :
8625
8626 else
8627   ac_cv_header_stdc=no
8628 fi
8629 rm -f conftest*
8630
8631 fi
8632
8633 if test $ac_cv_header_stdc = yes; then
8634   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8635   if test "$cross_compiling" = yes; then :
8636   :
8637 else
8638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h.  */
8640 #include <ctype.h>
8641 #include <stdlib.h>
8642 #if ((' ' & 0x0FF) == 0x020)
8643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8645 #else
8646 # define ISLOWER(c) \
8647                    (('a' <= (c) && (c) <= 'i') \
8648                      || ('j' <= (c) && (c) <= 'r') \
8649                      || ('s' <= (c) && (c) <= 'z'))
8650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8651 #endif
8652
8653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8654 int
8655 main ()
8656 {
8657   int i;
8658   for (i = 0; i < 256; i++)
8659     if (XOR (islower (i), ISLOWER (i))
8660         || toupper (i) != TOUPPER (i))
8661       return 2;
8662   return 0;
8663 }
8664 _ACEOF
8665 if ac_fn_c_try_run "$LINENO"; then :
8666
8667 else
8668   ac_cv_header_stdc=no
8669 fi
8670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8671   conftest.$ac_objext conftest.beam conftest.$ac_ext
8672 fi
8673
8674 fi
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8677 $as_echo "$ac_cv_header_stdc" >&6; }
8678 if test $ac_cv_header_stdc = yes; then
8679
8680 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8681
8682 fi
8683
8684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8686                   inttypes.h stdint.h unistd.h
8687 do :
8688   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8690 "
8691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8692   cat >>confdefs.h <<_ACEOF
8693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8694 _ACEOF
8695
8696 fi
8697
8698 done
8699
8700
8701 for ac_header in dlfcn.h
8702 do :
8703   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8704 "
8705 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8706   cat >>confdefs.h <<_ACEOF
8707 #define HAVE_DLFCN_H 1
8708 _ACEOF
8709
8710 fi
8711
8712 done
8713
8714
8715
8716 ac_ext=cpp
8717 ac_cpp='$CXXCPP $CPPFLAGS'
8718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8721 if test -z "$CXX"; then
8722   if test -n "$CCC"; then
8723     CXX=$CCC
8724   else
8725     if test -n "$ac_tool_prefix"; then
8726   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8727   do
8728     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if ${ac_cv_prog_CXX+:} false; then :
8733   $as_echo_n "(cached) " >&6
8734 else
8735   if test -n "$CXX"; then
8736   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8737 else
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741   IFS=$as_save_IFS
8742   test -z "$as_dir" && as_dir=.
8743     for ac_exec_ext in '' $ac_executable_extensions; do
8744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747     break 2
8748   fi
8749 done
8750   done
8751 IFS=$as_save_IFS
8752
8753 fi
8754 fi
8755 CXX=$ac_cv_prog_CXX
8756 if test -n "$CXX"; then
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8758 $as_echo "$CXX" >&6; }
8759 else
8760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8762 fi
8763
8764
8765     test -n "$CXX" && break
8766   done
8767 fi
8768 if test -z "$CXX"; then
8769   ac_ct_CXX=$CXX
8770   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8771 do
8772   # Extract the first word of "$ac_prog", so it can be a program name with args.
8773 set dummy $ac_prog; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   if test -n "$ac_ct_CXX"; then
8780   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8781 else
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8784 do
8785   IFS=$as_save_IFS
8786   test -z "$as_dir" && as_dir=.
8787     for ac_exec_ext in '' $ac_executable_extensions; do
8788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8789     ac_cv_prog_ac_ct_CXX="$ac_prog"
8790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791     break 2
8792   fi
8793 done
8794   done
8795 IFS=$as_save_IFS
8796
8797 fi
8798 fi
8799 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8800 if test -n "$ac_ct_CXX"; then
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8802 $as_echo "$ac_ct_CXX" >&6; }
8803 else
8804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8806 fi
8807
8808
8809   test -n "$ac_ct_CXX" && break
8810 done
8811
8812   if test "x$ac_ct_CXX" = x; then
8813     CXX="g++"
8814   else
8815     case $cross_compiling:$ac_tool_warned in
8816 yes:)
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8819 ac_tool_warned=yes ;;
8820 esac
8821     CXX=$ac_ct_CXX
8822   fi
8823 fi
8824
8825   fi
8826 fi
8827 # Provide some information about the compiler.
8828 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8829 set X $ac_compile
8830 ac_compiler=$2
8831 for ac_option in --version -v -V -qversion; do
8832   { { ac_try="$ac_compiler $ac_option >&5"
8833 case "(($ac_try" in
8834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835   *) ac_try_echo=$ac_try;;
8836 esac
8837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8838 $as_echo "$ac_try_echo"; } >&5
8839   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8840   ac_status=$?
8841   if test -s conftest.err; then
8842     sed '10a\
8843 ... rest of stderr output deleted ...
8844          10q' conftest.err >conftest.er1
8845     cat conftest.er1 >&5
8846   fi
8847   rm -f conftest.er1 conftest.err
8848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8849   test $ac_status = 0; }
8850 done
8851
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8853 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8854 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8855   $as_echo_n "(cached) " >&6
8856 else
8857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h.  */
8859
8860 int
8861 main ()
8862 {
8863 #ifndef __GNUC__
8864        choke me
8865 #endif
8866
8867   ;
8868   return 0;
8869 }
8870 _ACEOF
8871 if ac_fn_cxx_try_compile "$LINENO"; then :
8872   ac_compiler_gnu=yes
8873 else
8874   ac_compiler_gnu=no
8875 fi
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8878
8879 fi
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8881 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8882 if test $ac_compiler_gnu = yes; then
8883   GXX=yes
8884 else
8885   GXX=
8886 fi
8887 ac_test_CXXFLAGS=${CXXFLAGS+set}
8888 ac_save_CXXFLAGS=$CXXFLAGS
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8890 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8891 if ${ac_cv_prog_cxx_g+:} false; then :
8892   $as_echo_n "(cached) " >&6
8893 else
8894   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8895    ac_cxx_werror_flag=yes
8896    ac_cv_prog_cxx_g=no
8897    CXXFLAGS="-g"
8898    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h.  */
8900
8901 int
8902 main ()
8903 {
8904
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 if ac_fn_cxx_try_compile "$LINENO"; then :
8910   ac_cv_prog_cxx_g=yes
8911 else
8912   CXXFLAGS=""
8913       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h.  */
8915
8916 int
8917 main ()
8918 {
8919
8920   ;
8921   return 0;
8922 }
8923 _ACEOF
8924 if ac_fn_cxx_try_compile "$LINENO"; then :
8925
8926 else
8927   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8928          CXXFLAGS="-g"
8929          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h.  */
8931
8932 int
8933 main ()
8934 {
8935
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 if ac_fn_cxx_try_compile "$LINENO"; then :
8941   ac_cv_prog_cxx_g=yes
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8949 fi
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8951 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8952 if test "$ac_test_CXXFLAGS" = set; then
8953   CXXFLAGS=$ac_save_CXXFLAGS
8954 elif test $ac_cv_prog_cxx_g = yes; then
8955   if test "$GXX" = yes; then
8956     CXXFLAGS="-g -O2"
8957   else
8958     CXXFLAGS="-g"
8959   fi
8960 else
8961   if test "$GXX" = yes; then
8962     CXXFLAGS="-O2"
8963   else
8964     CXXFLAGS=
8965   fi
8966 fi
8967 ac_ext=c
8968 ac_cpp='$CPP $CPPFLAGS'
8969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8972
8973 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8974     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8975     (test "X$CXX" != "Xg++"))) ; then
8976   ac_ext=cpp
8977 ac_cpp='$CXXCPP $CPPFLAGS'
8978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8982 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8983 if test -z "$CXXCPP"; then
8984   if ${ac_cv_prog_CXXCPP+:} false; then :
8985   $as_echo_n "(cached) " >&6
8986 else
8987       # Double quotes because CXXCPP needs to be expanded
8988     for CXXCPP in "$CXX -E" "/lib/cpp"
8989     do
8990       ac_preproc_ok=false
8991 for ac_cxx_preproc_warn_flag in '' yes
8992 do
8993   # Use a header file that comes with gcc, so configuring glibc
8994   # with a fresh cross-compiler works.
8995   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8996   # <limits.h> exists even on freestanding compilers.
8997   # On the NeXT, cc -E runs the code through the compiler's parser,
8998   # not just through cpp. "Syntax error" is here to catch this case.
8999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h.  */
9001 #ifdef __STDC__
9002 # include <limits.h>
9003 #else
9004 # include <assert.h>
9005 #endif
9006                      Syntax error
9007 _ACEOF
9008 if ac_fn_cxx_try_cpp "$LINENO"; then :
9009
9010 else
9011   # Broken: fails on valid input.
9012 continue
9013 fi
9014 rm -f conftest.err conftest.i conftest.$ac_ext
9015
9016   # OK, works on sane cases.  Now check whether nonexistent headers
9017   # can be detected and how.
9018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h.  */
9020 #include <ac_nonexistent.h>
9021 _ACEOF
9022 if ac_fn_cxx_try_cpp "$LINENO"; then :
9023   # Broken: success on invalid input.
9024 continue
9025 else
9026   # Passes both tests.
9027 ac_preproc_ok=:
9028 break
9029 fi
9030 rm -f conftest.err conftest.i conftest.$ac_ext
9031
9032 done
9033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9034 rm -f conftest.i conftest.err conftest.$ac_ext
9035 if $ac_preproc_ok; then :
9036   break
9037 fi
9038
9039     done
9040     ac_cv_prog_CXXCPP=$CXXCPP
9041
9042 fi
9043   CXXCPP=$ac_cv_prog_CXXCPP
9044 else
9045   ac_cv_prog_CXXCPP=$CXXCPP
9046 fi
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9048 $as_echo "$CXXCPP" >&6; }
9049 ac_preproc_ok=false
9050 for ac_cxx_preproc_warn_flag in '' yes
9051 do
9052   # Use a header file that comes with gcc, so configuring glibc
9053   # with a fresh cross-compiler works.
9054   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9055   # <limits.h> exists even on freestanding compilers.
9056   # On the NeXT, cc -E runs the code through the compiler's parser,
9057   # not just through cpp. "Syntax error" is here to catch this case.
9058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h.  */
9060 #ifdef __STDC__
9061 # include <limits.h>
9062 #else
9063 # include <assert.h>
9064 #endif
9065                      Syntax error
9066 _ACEOF
9067 if ac_fn_cxx_try_cpp "$LINENO"; then :
9068
9069 else
9070   # Broken: fails on valid input.
9071 continue
9072 fi
9073 rm -f conftest.err conftest.i conftest.$ac_ext
9074
9075   # OK, works on sane cases.  Now check whether nonexistent headers
9076   # can be detected and how.
9077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h.  */
9079 #include <ac_nonexistent.h>
9080 _ACEOF
9081 if ac_fn_cxx_try_cpp "$LINENO"; then :
9082   # Broken: success on invalid input.
9083 continue
9084 else
9085   # Passes both tests.
9086 ac_preproc_ok=:
9087 break
9088 fi
9089 rm -f conftest.err conftest.i conftest.$ac_ext
9090
9091 done
9092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9093 rm -f conftest.i conftest.err conftest.$ac_ext
9094 if $ac_preproc_ok; then :
9095
9096 else
9097   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9099 _lt_caught_CXX_error=yes; }
9100 fi
9101
9102 ac_ext=c
9103 ac_cpp='$CPP $CPPFLAGS'
9104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9107
9108 else
9109   _lt_caught_CXX_error=yes
9110 fi
9111
9112
9113
9114
9115
9116 # Set options
9117 # Check whether --enable-shared was given.
9118 if test "${enable_shared+set}" = set; then :
9119   enableval=$enable_shared; p=${PACKAGE-default}
9120     case $enableval in
9121     yes) enable_shared=yes ;;
9122     no) enable_shared=no ;;
9123     *)
9124       enable_shared=no
9125       # Look at the argument we got.  We use all the common list separators.
9126       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9127       for pkg in $enableval; do
9128         IFS="$lt_save_ifs"
9129         if test "X$pkg" = "X$p"; then
9130           enable_shared=yes
9131         fi
9132       done
9133       IFS="$lt_save_ifs"
9134       ;;
9135     esac
9136 else
9137   enable_shared=yes
9138 fi
9139
9140
9141
9142
9143
9144
9145
9146 # Check whether --enable-static was given.
9147 if test "${enable_static+set}" = set; then :
9148   enableval=$enable_static; p=${PACKAGE-default}
9149     case $enableval in
9150     yes) enable_static=yes ;;
9151     no) enable_static=no ;;
9152     *)
9153      enable_static=no
9154       # Look at the argument we got.  We use all the common list separators.
9155       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9156       for pkg in $enableval; do
9157         IFS="$lt_save_ifs"
9158         if test "X$pkg" = "X$p"; then
9159           enable_static=yes
9160         fi
9161       done
9162       IFS="$lt_save_ifs"
9163       ;;
9164     esac
9165 else
9166   enable_static=no
9167 fi
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178         enable_dlopen=no
9179
9180
9181   enable_win32_dll=no
9182
9183
9184
9185
9186
9187 # Check whether --with-pic was given.
9188 if test "${with_pic+set}" = set; then :
9189   withval=$with_pic; pic_mode="$withval"
9190 else
9191   pic_mode=default
9192 fi
9193
9194
9195 test -z "$pic_mode" && pic_mode=default
9196
9197
9198
9199
9200
9201
9202
9203   # Check whether --enable-fast-install was given.
9204 if test "${enable_fast_install+set}" = set; then :
9205   enableval=$enable_fast_install; p=${PACKAGE-default}
9206     case $enableval in
9207     yes) enable_fast_install=yes ;;
9208     no) enable_fast_install=no ;;
9209     *)
9210       enable_fast_install=no
9211       # Look at the argument we got.  We use all the common list separators.
9212       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9213       for pkg in $enableval; do
9214         IFS="$lt_save_ifs"
9215         if test "X$pkg" = "X$p"; then
9216           enable_fast_install=yes
9217         fi
9218       done
9219       IFS="$lt_save_ifs"
9220       ;;
9221     esac
9222 else
9223   enable_fast_install=yes
9224 fi
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236 # This can be used to rebuild libtool when needed
9237 LIBTOOL_DEPS="$ltmain"
9238
9239 # Always use our own libtool.
9240 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266 test -z "$LN_S" && LN_S="ln -s"
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281 if test -n "${ZSH_VERSION+set}" ; then
9282    setopt NO_GLOB_SUBST
9283 fi
9284
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9286 $as_echo_n "checking for objdir... " >&6; }
9287 if ${lt_cv_objdir+:} false; then :
9288   $as_echo_n "(cached) " >&6
9289 else
9290   rm -f .libs 2>/dev/null
9291 mkdir .libs 2>/dev/null
9292 if test -d .libs; then
9293   lt_cv_objdir=.libs
9294 else
9295   # MS-DOS does not allow filenames that begin with a dot.
9296   lt_cv_objdir=_libs
9297 fi
9298 rmdir .libs 2>/dev/null
9299 fi
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9301 $as_echo "$lt_cv_objdir" >&6; }
9302 objdir=$lt_cv_objdir
9303
9304
9305
9306
9307
9308 cat >>confdefs.h <<_ACEOF
9309 #define LT_OBJDIR "$lt_cv_objdir/"
9310 _ACEOF
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328 case $host_os in
9329 aix3*)
9330   # AIX sometimes has problems with the GCC collect2 program.  For some
9331   # reason, if we set the COLLECT_NAMES environment variable, the problems
9332   # vanish in a puff of smoke.
9333   if test "X${COLLECT_NAMES+set}" != Xset; then
9334     COLLECT_NAMES=
9335     export COLLECT_NAMES
9336   fi
9337   ;;
9338 esac
9339
9340 # Sed substitution that helps us do robust quoting.  It backslashifies
9341 # metacharacters that are still active within double-quoted strings.
9342 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9343
9344 # Same as above, but do not quote variable references.
9345 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9346
9347 # Sed substitution to delay expansion of an escaped shell variable in a
9348 # double_quote_subst'ed string.
9349 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9350
9351 # Sed substitution to delay expansion of an escaped single quote.
9352 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9353
9354 # Sed substitution to avoid accidental globbing in evaled expressions
9355 no_glob_subst='s/\*/\\\*/g'
9356
9357 # Global variables:
9358 ofile=libtool
9359 can_build_shared=yes
9360
9361 # All known linkers require a `.a' archive for static linking (except MSVC,
9362 # which needs '.lib').
9363 libext=a
9364
9365 with_gnu_ld="$lt_cv_prog_gnu_ld"
9366
9367 old_CC="$CC"
9368 old_CFLAGS="$CFLAGS"
9369
9370 # Set sane defaults for various variables
9371 test -z "$CC" && CC=cc
9372 test -z "$LTCC" && LTCC=$CC
9373 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9374 test -z "$LD" && LD=ld
9375 test -z "$ac_objext" && ac_objext=o
9376
9377 for cc_temp in $compiler""; do
9378   case $cc_temp in
9379     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9380     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9381     \-*) ;;
9382     *) break;;
9383   esac
9384 done
9385 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9386
9387
9388 # Only perform the check for file, if the check method requires it
9389 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9390 case $deplibs_check_method in
9391 file_magic*)
9392   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9394 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9395 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9396   $as_echo_n "(cached) " >&6
9397 else
9398   case $MAGIC_CMD in
9399 [\\/*] |  ?:[\\/]*)
9400   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9401   ;;
9402 *)
9403   lt_save_MAGIC_CMD="$MAGIC_CMD"
9404   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9405   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9406   for ac_dir in $ac_dummy; do
9407     IFS="$lt_save_ifs"
9408     test -z "$ac_dir" && ac_dir=.
9409     if test -f $ac_dir/${ac_tool_prefix}file; then
9410       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9411       if test -n "$file_magic_test_file"; then
9412         case $deplibs_check_method in
9413         "file_magic "*)
9414           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9415           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9416           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9417             $EGREP "$file_magic_regex" > /dev/null; then
9418             :
9419           else
9420             cat <<_LT_EOF 1>&2
9421
9422 *** Warning: the command libtool uses to detect shared libraries,
9423 *** $file_magic_cmd, produces output that libtool cannot recognize.
9424 *** The result is that libtool may fail to recognize shared libraries
9425 *** as such.  This will affect the creation of libtool libraries that
9426 *** depend on shared libraries, but programs linked with such libtool
9427 *** libraries will work regardless of this problem.  Nevertheless, you
9428 *** may want to report the problem to your system manager and/or to
9429 *** bug-libtool@gnu.org
9430
9431 _LT_EOF
9432           fi ;;
9433         esac
9434       fi
9435       break
9436     fi
9437   done
9438   IFS="$lt_save_ifs"
9439   MAGIC_CMD="$lt_save_MAGIC_CMD"
9440   ;;
9441 esac
9442 fi
9443
9444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9445 if test -n "$MAGIC_CMD"; then
9446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9447 $as_echo "$MAGIC_CMD" >&6; }
9448 else
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9451 fi
9452
9453
9454
9455
9456
9457 if test -z "$lt_cv_path_MAGIC_CMD"; then
9458   if test -n "$ac_tool_prefix"; then
9459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9460 $as_echo_n "checking for file... " >&6; }
9461 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9462   $as_echo_n "(cached) " >&6
9463 else
9464   case $MAGIC_CMD in
9465 [\\/*] |  ?:[\\/]*)
9466   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9467   ;;
9468 *)
9469   lt_save_MAGIC_CMD="$MAGIC_CMD"
9470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9471   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9472   for ac_dir in $ac_dummy; do
9473     IFS="$lt_save_ifs"
9474     test -z "$ac_dir" && ac_dir=.
9475     if test -f $ac_dir/file; then
9476       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9477       if test -n "$file_magic_test_file"; then
9478         case $deplibs_check_method in
9479         "file_magic "*)
9480           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9481           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9482           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9483             $EGREP "$file_magic_regex" > /dev/null; then
9484             :
9485           else
9486             cat <<_LT_EOF 1>&2
9487
9488 *** Warning: the command libtool uses to detect shared libraries,
9489 *** $file_magic_cmd, produces output that libtool cannot recognize.
9490 *** The result is that libtool may fail to recognize shared libraries
9491 *** as such.  This will affect the creation of libtool libraries that
9492 *** depend on shared libraries, but programs linked with such libtool
9493 *** libraries will work regardless of this problem.  Nevertheless, you
9494 *** may want to report the problem to your system manager and/or to
9495 *** bug-libtool@gnu.org
9496
9497 _LT_EOF
9498           fi ;;
9499         esac
9500       fi
9501       break
9502     fi
9503   done
9504   IFS="$lt_save_ifs"
9505   MAGIC_CMD="$lt_save_MAGIC_CMD"
9506   ;;
9507 esac
9508 fi
9509
9510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9511 if test -n "$MAGIC_CMD"; then
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9513 $as_echo "$MAGIC_CMD" >&6; }
9514 else
9515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9517 fi
9518
9519
9520   else
9521     MAGIC_CMD=:
9522   fi
9523 fi
9524
9525   fi
9526   ;;
9527 esac
9528
9529 # Use C for the default configuration in the libtool script
9530
9531 lt_save_CC="$CC"
9532 ac_ext=c
9533 ac_cpp='$CPP $CPPFLAGS'
9534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9537
9538
9539 # Source file extension for C test sources.
9540 ac_ext=c
9541
9542 # Object file extension for compiled C test sources.
9543 objext=o
9544 objext=$objext
9545
9546 # Code to be used in simple compile tests
9547 lt_simple_compile_test_code="int some_variable = 0;"
9548
9549 # Code to be used in simple link tests
9550 lt_simple_link_test_code='int main(){return(0);}'
9551
9552
9553
9554
9555
9556
9557
9558 # If no C compiler was specified, use CC.
9559 LTCC=${LTCC-"$CC"}
9560
9561 # If no C compiler flags were specified, use CFLAGS.
9562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9563
9564 # Allow CC to be a program name with arguments.
9565 compiler=$CC
9566
9567 # Save the default compiler, since it gets overwritten when the other
9568 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9569 compiler_DEFAULT=$CC
9570
9571 # save warnings/boilerplate of simple test code
9572 ac_outfile=conftest.$ac_objext
9573 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9574 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9575 _lt_compiler_boilerplate=`cat conftest.err`
9576 $RM conftest*
9577
9578 ac_outfile=conftest.$ac_objext
9579 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9580 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9581 _lt_linker_boilerplate=`cat conftest.err`
9582 $RM -r conftest*
9583
9584
9585 ## CAVEAT EMPTOR:
9586 ## There is no encapsulation within the following macros, do not change
9587 ## the running order or otherwise move them around unless you know exactly
9588 ## what you are doing...
9589 if test -n "$compiler"; then
9590
9591 lt_prog_compiler_no_builtin_flag=
9592
9593 if test "$GCC" = yes; then
9594   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9595
9596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9597 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9598 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9599   $as_echo_n "(cached) " >&6
9600 else
9601   lt_cv_prog_compiler_rtti_exceptions=no
9602    ac_outfile=conftest.$ac_objext
9603    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9604    lt_compiler_flag="-fno-rtti -fno-exceptions"
9605    # Insert the option either (1) after the last *FLAGS variable, or
9606    # (2) before a word containing "conftest.", or (3) at the end.
9607    # Note that $ac_compile itself does not contain backslashes and begins
9608    # with a dollar sign (not a hyphen), so the echo should work correctly.
9609    # The option is referenced via a variable to avoid confusing sed.
9610    lt_compile=`echo "$ac_compile" | $SED \
9611    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9612    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9613    -e 's:$: $lt_compiler_flag:'`
9614    (eval echo "\"\$as_me:9614: $lt_compile\"" >&5)
9615    (eval "$lt_compile" 2>conftest.err)
9616    ac_status=$?
9617    cat conftest.err >&5
9618    echo "$as_me:9618: \$? = $ac_status" >&5
9619    if (exit $ac_status) && test -s "$ac_outfile"; then
9620      # The compiler can only warn and ignore the option if not recognized
9621      # So say no if there are warnings other than the usual output.
9622      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9623      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9624      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9625        lt_cv_prog_compiler_rtti_exceptions=yes
9626      fi
9627    fi
9628    $RM conftest*
9629
9630 fi
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9632 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9633
9634 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9635     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9636 else
9637     :
9638 fi
9639
9640 fi
9641
9642
9643
9644
9645
9646
9647   lt_prog_compiler_wl=
9648 lt_prog_compiler_pic=
9649 lt_prog_compiler_static=
9650
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9652 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9653
9654   if test "$GCC" = yes; then
9655     lt_prog_compiler_wl='-Wl,'
9656     lt_prog_compiler_static='-static'
9657
9658     case $host_os in
9659       aix*)
9660       # All AIX code is PIC.
9661       if test "$host_cpu" = ia64; then
9662         # AIX 5 now supports IA64 processor
9663         lt_prog_compiler_static='-Bstatic'
9664       fi
9665       ;;
9666
9667     amigaos*)
9668       case $host_cpu in
9669       powerpc)
9670             # see comment about AmigaOS4 .so support
9671             lt_prog_compiler_pic='-fPIC'
9672         ;;
9673       m68k)
9674             # FIXME: we need at least 68020 code to build shared libraries, but
9675             # adding the `-m68020' flag to GCC prevents building anything better,
9676             # like `-m68040'.
9677             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9678         ;;
9679       esac
9680       ;;
9681
9682     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9683       # PIC is the default for these OSes.
9684       ;;
9685
9686     mingw* | cygwin* | pw32* | os2* | cegcc*)
9687       # This hack is so that the source file can tell whether it is being
9688       # built for inclusion in a dll (and should export symbols for example).
9689       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9690       # (--disable-auto-import) libraries
9691       lt_prog_compiler_pic='-DDLL_EXPORT'
9692       ;;
9693
9694     darwin* | rhapsody*)
9695       # PIC is the default on this platform
9696       # Common symbols not allowed in MH_DYLIB files
9697       lt_prog_compiler_pic='-fno-common'
9698       ;;
9699
9700     hpux*)
9701       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9702       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9703       # sets the default TLS model and affects inlining.
9704       case $host_cpu in
9705       hppa*64*)
9706         # +Z the default
9707         ;;
9708       *)
9709         lt_prog_compiler_pic='-fPIC'
9710         ;;
9711       esac
9712       ;;
9713
9714     interix[3-9]*)
9715       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9716       # Instead, we relocate shared libraries at runtime.
9717       ;;
9718
9719     msdosdjgpp*)
9720       # Just because we use GCC doesn't mean we suddenly get shared libraries
9721       # on systems that don't support them.
9722       lt_prog_compiler_can_build_shared=no
9723       enable_shared=no
9724       ;;
9725
9726     *nto* | *qnx*)
9727       # QNX uses GNU C++, but need to define -shared option too, otherwise
9728       # it will coredump.
9729       lt_prog_compiler_pic='-fPIC -shared'
9730       ;;
9731
9732     sysv4*MP*)
9733       if test -d /usr/nec; then
9734         lt_prog_compiler_pic=-Kconform_pic
9735       fi
9736       ;;
9737
9738     *)
9739       lt_prog_compiler_pic='-fPIC'
9740       ;;
9741     esac
9742   else
9743     # PORTME Check for flag to pass linker flags through the system compiler.
9744     case $host_os in
9745     aix*)
9746       lt_prog_compiler_wl='-Wl,'
9747       if test "$host_cpu" = ia64; then
9748         # AIX 5 now supports IA64 processor
9749         lt_prog_compiler_static='-Bstatic'
9750       else
9751         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9752       fi
9753       ;;
9754
9755     mingw* | cygwin* | pw32* | os2* | cegcc*)
9756       # This hack is so that the source file can tell whether it is being
9757       # built for inclusion in a dll (and should export symbols for example).
9758       lt_prog_compiler_pic='-DDLL_EXPORT'
9759       ;;
9760
9761     hpux9* | hpux10* | hpux11*)
9762       lt_prog_compiler_wl='-Wl,'
9763       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9764       # not for PA HP-UX.
9765       case $host_cpu in
9766       hppa*64*|ia64*)
9767         # +Z the default
9768         ;;
9769       *)
9770         lt_prog_compiler_pic='+Z'
9771         ;;
9772       esac
9773       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9774       lt_prog_compiler_static='${wl}-a ${wl}archive'
9775       ;;
9776
9777     irix5* | irix6* | nonstopux*)
9778       lt_prog_compiler_wl='-Wl,'
9779       # PIC (with -KPIC) is the default.
9780       lt_prog_compiler_static='-non_shared'
9781       ;;
9782
9783     linux* | k*bsd*-gnu)
9784       case $cc_basename in
9785       # old Intel for x86_64 which still supported -KPIC.
9786       ecc*)
9787         lt_prog_compiler_wl='-Wl,'
9788         lt_prog_compiler_pic='-KPIC'
9789         lt_prog_compiler_static='-static'
9790         ;;
9791       # icc used to be incompatible with GCC.
9792       # ICC 10 doesn't accept -KPIC any more.
9793       icc* | ifort*)
9794         lt_prog_compiler_wl='-Wl,'
9795         lt_prog_compiler_pic='-fPIC'
9796         lt_prog_compiler_static='-static'
9797         ;;
9798       # Lahey Fortran 8.1.
9799       lf95*)
9800         lt_prog_compiler_wl='-Wl,'
9801         lt_prog_compiler_pic='--shared'
9802         lt_prog_compiler_static='--static'
9803         ;;
9804       pgcc* | pgf77* | pgf90* | pgf95*)
9805         # Portland Group compilers (*not* the Pentium gcc compiler,
9806         # which looks to be a dead project)
9807         lt_prog_compiler_wl='-Wl,'
9808         lt_prog_compiler_pic='-fpic'
9809         lt_prog_compiler_static='-Bstatic'
9810         ;;
9811       ccc*)
9812         lt_prog_compiler_wl='-Wl,'
9813         # All Alpha code is PIC.
9814         lt_prog_compiler_static='-non_shared'
9815         ;;
9816       xl*)
9817         # IBM XL C 8.0/Fortran 10.1 on PPC
9818         lt_prog_compiler_wl='-Wl,'
9819         lt_prog_compiler_pic='-qpic'
9820         lt_prog_compiler_static='-qstaticlink'
9821         ;;
9822       *)
9823         case `$CC -V 2>&1 | sed 5q` in
9824         *Sun\ C*)
9825           # Sun C 5.9
9826           lt_prog_compiler_pic='-KPIC'
9827           lt_prog_compiler_static='-Bstatic'
9828           lt_prog_compiler_wl='-Wl,'
9829           ;;
9830         *Sun\ F*)
9831           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9832           lt_prog_compiler_pic='-KPIC'
9833           lt_prog_compiler_static='-Bstatic'
9834           lt_prog_compiler_wl=''
9835           ;;
9836         esac
9837         ;;
9838       esac
9839       ;;
9840
9841     newsos6)
9842       lt_prog_compiler_pic='-KPIC'
9843       lt_prog_compiler_static='-Bstatic'
9844       ;;
9845
9846     *nto* | *qnx*)
9847       # QNX uses GNU C++, but need to define -shared option too, otherwise
9848       # it will coredump.
9849       lt_prog_compiler_pic='-fPIC -shared'
9850       ;;
9851
9852     osf3* | osf4* | osf5*)
9853       lt_prog_compiler_wl='-Wl,'
9854       # All OSF/1 code is PIC.
9855       lt_prog_compiler_static='-non_shared'
9856       ;;
9857
9858     rdos*)
9859       lt_prog_compiler_static='-non_shared'
9860       ;;
9861
9862     solaris*)
9863       lt_prog_compiler_pic='-KPIC'
9864       lt_prog_compiler_static='-Bstatic'
9865       case $cc_basename in
9866       f77* | f90* | f95*)
9867         lt_prog_compiler_wl='-Qoption ld ';;
9868       *)
9869         lt_prog_compiler_wl='-Wl,';;
9870       esac
9871       ;;
9872
9873     sunos4*)
9874       lt_prog_compiler_wl='-Qoption ld '
9875       lt_prog_compiler_pic='-PIC'
9876       lt_prog_compiler_static='-Bstatic'
9877       ;;
9878
9879     sysv4 | sysv4.2uw2* | sysv4.3*)
9880       lt_prog_compiler_wl='-Wl,'
9881       lt_prog_compiler_pic='-KPIC'
9882       lt_prog_compiler_static='-Bstatic'
9883       ;;
9884
9885     sysv4*MP*)
9886       if test -d /usr/nec ;then
9887         lt_prog_compiler_pic='-Kconform_pic'
9888         lt_prog_compiler_static='-Bstatic'
9889       fi
9890       ;;
9891
9892     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9893       lt_prog_compiler_wl='-Wl,'
9894       lt_prog_compiler_pic='-KPIC'
9895       lt_prog_compiler_static='-Bstatic'
9896       ;;
9897
9898     unicos*)
9899       lt_prog_compiler_wl='-Wl,'
9900       lt_prog_compiler_can_build_shared=no
9901       ;;
9902
9903     uts4*)
9904       lt_prog_compiler_pic='-pic'
9905       lt_prog_compiler_static='-Bstatic'
9906       ;;
9907
9908     *)
9909       lt_prog_compiler_can_build_shared=no
9910       ;;
9911     esac
9912   fi
9913
9914 case $host_os in
9915   # For platforms which do not support PIC, -DPIC is meaningless:
9916   *djgpp*)
9917     lt_prog_compiler_pic=
9918     ;;
9919   *)
9920     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9921     ;;
9922 esac
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9924 $as_echo "$lt_prog_compiler_pic" >&6; }
9925
9926
9927
9928
9929
9930
9931 #
9932 # Check to make sure the PIC flag actually works.
9933 #
9934 if test -n "$lt_prog_compiler_pic"; then
9935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9936 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9937 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9938   $as_echo_n "(cached) " >&6
9939 else
9940   lt_cv_prog_compiler_pic_works=no
9941    ac_outfile=conftest.$ac_objext
9942    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9943    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9944    # Insert the option either (1) after the last *FLAGS variable, or
9945    # (2) before a word containing "conftest.", or (3) at the end.
9946    # Note that $ac_compile itself does not contain backslashes and begins
9947    # with a dollar sign (not a hyphen), so the echo should work correctly.
9948    # The option is referenced via a variable to avoid confusing sed.
9949    lt_compile=`echo "$ac_compile" | $SED \
9950    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9952    -e 's:$: $lt_compiler_flag:'`
9953    (eval echo "\"\$as_me:9953: $lt_compile\"" >&5)
9954    (eval "$lt_compile" 2>conftest.err)
9955    ac_status=$?
9956    cat conftest.err >&5
9957    echo "$as_me:9957: \$? = $ac_status" >&5
9958    if (exit $ac_status) && test -s "$ac_outfile"; then
9959      # The compiler can only warn and ignore the option if not recognized
9960      # So say no if there are warnings other than the usual output.
9961      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9962      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9963      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9964        lt_cv_prog_compiler_pic_works=yes
9965      fi
9966    fi
9967    $RM conftest*
9968
9969 fi
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9971 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9972
9973 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9974     case $lt_prog_compiler_pic in
9975      "" | " "*) ;;
9976      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9977      esac
9978 else
9979     lt_prog_compiler_pic=
9980      lt_prog_compiler_can_build_shared=no
9981 fi
9982
9983 fi
9984
9985
9986
9987
9988
9989
9990 #
9991 # Check to make sure the static flag actually works.
9992 #
9993 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9995 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9996 if ${lt_cv_prog_compiler_static_works+:} false; then :
9997   $as_echo_n "(cached) " >&6
9998 else
9999   lt_cv_prog_compiler_static_works=no
10000    save_LDFLAGS="$LDFLAGS"
10001    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10002    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10003    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10004      # The linker can only warn and ignore the option if not recognized
10005      # So say no if there are warnings
10006      if test -s conftest.err; then
10007        # Append any errors to the config.log.
10008        cat conftest.err 1>&5
10009        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10010        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10011        if diff conftest.exp conftest.er2 >/dev/null; then
10012          lt_cv_prog_compiler_static_works=yes
10013        fi
10014      else
10015        lt_cv_prog_compiler_static_works=yes
10016      fi
10017    fi
10018    $RM -r conftest*
10019    LDFLAGS="$save_LDFLAGS"
10020
10021 fi
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10023 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10024
10025 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10026     :
10027 else
10028     lt_prog_compiler_static=
10029 fi
10030
10031
10032
10033
10034
10035
10036
10037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10038 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10039 if ${lt_cv_prog_compiler_c_o+:} false; then :
10040   $as_echo_n "(cached) " >&6
10041 else
10042   lt_cv_prog_compiler_c_o=no
10043    $RM -r conftest 2>/dev/null
10044    mkdir conftest
10045    cd conftest
10046    mkdir out
10047    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10048
10049    lt_compiler_flag="-o out/conftest2.$ac_objext"
10050    # Insert the option either (1) after the last *FLAGS variable, or
10051    # (2) before a word containing "conftest.", or (3) at the end.
10052    # Note that $ac_compile itself does not contain backslashes and begins
10053    # with a dollar sign (not a hyphen), so the echo should work correctly.
10054    lt_compile=`echo "$ac_compile" | $SED \
10055    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10056    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10057    -e 's:$: $lt_compiler_flag:'`
10058    (eval echo "\"\$as_me:10058: $lt_compile\"" >&5)
10059    (eval "$lt_compile" 2>out/conftest.err)
10060    ac_status=$?
10061    cat out/conftest.err >&5
10062    echo "$as_me:10062: \$? = $ac_status" >&5
10063    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10064    then
10065      # The compiler can only warn and ignore the option if not recognized
10066      # So say no if there are warnings
10067      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10068      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10069      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10070        lt_cv_prog_compiler_c_o=yes
10071      fi
10072    fi
10073    chmod u+w . 2>&5
10074    $RM conftest*
10075    # SGI C++ compiler will create directory out/ii_files/ for
10076    # template instantiation
10077    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10078    $RM out/* && rmdir out
10079    cd ..
10080    $RM -r conftest
10081    $RM conftest*
10082
10083 fi
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10085 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10086
10087
10088
10089
10090
10091
10092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10093 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10094 if ${lt_cv_prog_compiler_c_o+:} false; then :
10095   $as_echo_n "(cached) " >&6
10096 else
10097   lt_cv_prog_compiler_c_o=no
10098    $RM -r conftest 2>/dev/null
10099    mkdir conftest
10100    cd conftest
10101    mkdir out
10102    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10103
10104    lt_compiler_flag="-o out/conftest2.$ac_objext"
10105    # Insert the option either (1) after the last *FLAGS variable, or
10106    # (2) before a word containing "conftest.", or (3) at the end.
10107    # Note that $ac_compile itself does not contain backslashes and begins
10108    # with a dollar sign (not a hyphen), so the echo should work correctly.
10109    lt_compile=`echo "$ac_compile" | $SED \
10110    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10111    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10112    -e 's:$: $lt_compiler_flag:'`
10113    (eval echo "\"\$as_me:10113: $lt_compile\"" >&5)
10114    (eval "$lt_compile" 2>out/conftest.err)
10115    ac_status=$?
10116    cat out/conftest.err >&5
10117    echo "$as_me:10117: \$? = $ac_status" >&5
10118    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10119    then
10120      # The compiler can only warn and ignore the option if not recognized
10121      # So say no if there are warnings
10122      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10123      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10124      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10125        lt_cv_prog_compiler_c_o=yes
10126      fi
10127    fi
10128    chmod u+w . 2>&5
10129    $RM conftest*
10130    # SGI C++ compiler will create directory out/ii_files/ for
10131    # template instantiation
10132    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10133    $RM out/* && rmdir out
10134    cd ..
10135    $RM -r conftest
10136    $RM conftest*
10137
10138 fi
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10140 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10141
10142
10143
10144
10145 hard_links="nottested"
10146 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10147   # do not overwrite the value of need_locks provided by the user
10148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10149 $as_echo_n "checking if we can lock with hard links... " >&6; }
10150   hard_links=yes
10151   $RM conftest*
10152   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10153   touch conftest.a
10154   ln conftest.a conftest.b 2>&5 || hard_links=no
10155   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10157 $as_echo "$hard_links" >&6; }
10158   if test "$hard_links" = no; then
10159     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10160 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10161     need_locks=warn
10162   fi
10163 else
10164   need_locks=no
10165 fi
10166
10167
10168
10169
10170
10171
10172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10173 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10174
10175   runpath_var=
10176   allow_undefined_flag=
10177   always_export_symbols=no
10178   archive_cmds=
10179   archive_expsym_cmds=
10180   compiler_needs_object=no
10181   enable_shared_with_static_runtimes=no
10182   export_dynamic_flag_spec=
10183   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10184   hardcode_automatic=no
10185   hardcode_direct=no
10186   hardcode_direct_absolute=no
10187   hardcode_libdir_flag_spec=
10188   hardcode_libdir_flag_spec_ld=
10189   hardcode_libdir_separator=
10190   hardcode_minus_L=no
10191   hardcode_shlibpath_var=unsupported
10192   inherit_rpath=no
10193   link_all_deplibs=unknown
10194   module_cmds=
10195   module_expsym_cmds=
10196   old_archive_from_new_cmds=
10197   old_archive_from_expsyms_cmds=
10198   thread_safe_flag_spec=
10199   whole_archive_flag_spec=
10200   # include_expsyms should be a list of space-separated symbols to be *always*
10201   # included in the symbol list
10202   include_expsyms=
10203   # exclude_expsyms can be an extended regexp of symbols to exclude
10204   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10205   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10206   # as well as any symbol that contains `d'.
10207   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10208   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10209   # platforms (ab)use it in PIC code, but their linkers get confused if
10210   # the symbol is explicitly referenced.  Since portable code cannot
10211   # rely on this symbol name, it's probably fine to never include it in
10212   # preloaded symbol tables.
10213   # Exclude shared library initialization/finalization symbols.
10214   extract_expsyms_cmds=
10215
10216   case $host_os in
10217   cygwin* | mingw* | pw32* | cegcc*)
10218     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10219     # When not using gcc, we currently assume that we are using
10220     # Microsoft Visual C++.
10221     if test "$GCC" != yes; then
10222       with_gnu_ld=no
10223     fi
10224     ;;
10225   interix*)
10226     # we just hope/assume this is gcc and not c89 (= MSVC++)
10227     with_gnu_ld=yes
10228     ;;
10229   openbsd*)
10230     with_gnu_ld=no
10231     ;;
10232   esac
10233
10234   ld_shlibs=yes
10235   if test "$with_gnu_ld" = yes; then
10236     # If archive_cmds runs LD, not CC, wlarc should be empty
10237     wlarc='${wl}'
10238
10239     # Set some defaults for GNU ld with shared library support. These
10240     # are reset later if shared libraries are not supported. Putting them
10241     # here allows them to be overridden if necessary.
10242     runpath_var=LD_RUN_PATH
10243     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10244     export_dynamic_flag_spec='${wl}--export-dynamic'
10245     # ancient GNU ld didn't support --whole-archive et. al.
10246     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10247       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10248     else
10249       whole_archive_flag_spec=
10250     fi
10251     supports_anon_versioning=no
10252     case `$LD -v 2>&1` in
10253       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10254       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10255       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10256       *\ 2.11.*) ;; # other 2.11 versions
10257       *) supports_anon_versioning=yes ;;
10258     esac
10259
10260     # See if GNU ld supports shared libraries.
10261     case $host_os in
10262     aix[3-9]*)
10263       # On AIX/PPC, the GNU linker is very broken
10264       if test "$host_cpu" != ia64; then
10265         ld_shlibs=no
10266         cat <<_LT_EOF 1>&2
10267
10268 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10269 *** to be unable to reliably create shared libraries on AIX.
10270 *** Therefore, libtool is disabling shared libraries support.  If you
10271 *** really care for shared libraries, you may want to modify your PATH
10272 *** so that a non-GNU linker is found, and then restart.
10273
10274 _LT_EOF
10275       fi
10276       ;;
10277
10278     amigaos*)
10279       case $host_cpu in
10280       powerpc)
10281             # see comment about AmigaOS4 .so support
10282             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10283             archive_expsym_cmds=''
10284         ;;
10285       m68k)
10286             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)'
10287             hardcode_libdir_flag_spec='-L$libdir'
10288             hardcode_minus_L=yes
10289         ;;
10290       esac
10291       ;;
10292
10293     beos*)
10294       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295         allow_undefined_flag=unsupported
10296         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10297         # support --undefined.  This deserves some investigation.  FIXME
10298         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299       else
10300         ld_shlibs=no
10301       fi
10302       ;;
10303
10304     cygwin* | mingw* | pw32* | cegcc*)
10305       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10306       # as there is no search path for DLLs.
10307       hardcode_libdir_flag_spec='-L$libdir'
10308       allow_undefined_flag=unsupported
10309       always_export_symbols=no
10310       enable_shared_with_static_runtimes=yes
10311       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10312
10313       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10314         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10315         # If the export-symbols file already is a .def file (1st line
10316         # is EXPORTS), use it as is; otherwise, prepend...
10317         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10318           cp $export_symbols $output_objdir/$soname.def;
10319         else
10320           echo EXPORTS > $output_objdir/$soname.def;
10321           cat $export_symbols >> $output_objdir/$soname.def;
10322         fi~
10323         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10324       else
10325         ld_shlibs=no
10326       fi
10327       ;;
10328
10329     interix[3-9]*)
10330       hardcode_direct=no
10331       hardcode_shlibpath_var=no
10332       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10333       export_dynamic_flag_spec='${wl}-E'
10334       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10335       # Instead, shared libraries are loaded at an image base (0x10000000 by
10336       # default) and relocated if they conflict, which is a slow very memory
10337       # consuming and fragmenting process.  To avoid this, we pick a random,
10338       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10339       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10340       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10341       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'
10342       ;;
10343
10344     gnu* | linux* | tpf* | k*bsd*-gnu)
10345       tmp_diet=no
10346       if test "$host_os" = linux-dietlibc; then
10347         case $cc_basename in
10348           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10349         esac
10350       fi
10351       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10352          && test "$tmp_diet" = no
10353       then
10354         tmp_addflag=
10355         tmp_sharedflag='-shared'
10356         case $cc_basename,$host_cpu in
10357         pgcc*)                          # Portland Group C compiler
10358           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10359           tmp_addflag=' $pic_flag'
10360           ;;
10361         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10362           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10363           tmp_addflag=' $pic_flag -Mnomain' ;;
10364         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10365           tmp_addflag=' -i_dynamic' ;;
10366         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10367           tmp_addflag=' -i_dynamic -nofor_main' ;;
10368         ifc* | ifort*)                  # Intel Fortran compiler
10369           tmp_addflag=' -nofor_main' ;;
10370         lf95*)                          # Lahey Fortran 8.1
10371           whole_archive_flag_spec=
10372           tmp_sharedflag='--shared' ;;
10373         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10374           tmp_sharedflag='-qmkshrobj'
10375           tmp_addflag= ;;
10376         esac
10377         case `$CC -V 2>&1 | sed 5q` in
10378         *Sun\ C*)                       # Sun C 5.9
10379           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10380           compiler_needs_object=yes
10381           tmp_sharedflag='-G' ;;
10382         *Sun\ F*)                       # Sun Fortran 8.3
10383           tmp_sharedflag='-G' ;;
10384         esac
10385         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10386
10387         if test "x$supports_anon_versioning" = xyes; then
10388           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10389             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10390             echo "local: *; };" >> $output_objdir/$libname.ver~
10391             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10392         fi
10393
10394         case $cc_basename in
10395         xlf*)
10396           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10397           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10398           hardcode_libdir_flag_spec=
10399           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10400           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10401           if test "x$supports_anon_versioning" = xyes; then
10402             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10403               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10404               echo "local: *; };" >> $output_objdir/$libname.ver~
10405               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10406           fi
10407           ;;
10408         esac
10409       else
10410         ld_shlibs=no
10411       fi
10412       ;;
10413
10414     netbsd*)
10415       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10416         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10417         wlarc=
10418       else
10419         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10420         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10421       fi
10422       ;;
10423
10424     solaris*)
10425       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10426         ld_shlibs=no
10427         cat <<_LT_EOF 1>&2
10428
10429 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10430 *** create shared libraries on Solaris systems.  Therefore, libtool
10431 *** is disabling shared libraries support.  We urge you to upgrade GNU
10432 *** binutils to release 2.9.1 or newer.  Another option is to modify
10433 *** your PATH or compiler configuration so that the native linker is
10434 *** used, and then restart.
10435
10436 _LT_EOF
10437       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10438         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10439         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10440       else
10441         ld_shlibs=no
10442       fi
10443       ;;
10444
10445     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10446       case `$LD -v 2>&1` in
10447         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10448         ld_shlibs=no
10449         cat <<_LT_EOF 1>&2
10450
10451 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10452 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10453 *** is disabling shared libraries support.  We urge you to upgrade GNU
10454 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10455 *** your PATH or compiler configuration so that the native linker is
10456 *** used, and then restart.
10457
10458 _LT_EOF
10459         ;;
10460         *)
10461           # For security reasons, it is highly recommended that you always
10462           # use absolute paths for naming shared libraries, and exclude the
10463           # DT_RUNPATH tag from executables and libraries.  But doing so
10464           # requires that you compile everything twice, which is a pain.
10465           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10466             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10467             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10468             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10469           else
10470             ld_shlibs=no
10471           fi
10472         ;;
10473       esac
10474       ;;
10475
10476     sunos4*)
10477       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10478       wlarc=
10479       hardcode_direct=yes
10480       hardcode_shlibpath_var=no
10481       ;;
10482
10483     *)
10484       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10485         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10486         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10487       else
10488         ld_shlibs=no
10489       fi
10490       ;;
10491     esac
10492
10493     if test "$ld_shlibs" = no; then
10494       runpath_var=
10495       hardcode_libdir_flag_spec=
10496       export_dynamic_flag_spec=
10497       whole_archive_flag_spec=
10498     fi
10499   else
10500     # PORTME fill in a description of your system's linker (not GNU ld)
10501     case $host_os in
10502     aix3*)
10503       allow_undefined_flag=unsupported
10504       always_export_symbols=yes
10505       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'
10506       # Note: this linker hardcodes the directories in LIBPATH if there
10507       # are no directories specified by -L.
10508       hardcode_minus_L=yes
10509       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10510         # Neither direct hardcoding nor static linking is supported with a
10511         # broken collect2.
10512         hardcode_direct=unsupported
10513       fi
10514       ;;
10515
10516     aix[4-9]*)
10517       if test "$host_cpu" = ia64; then
10518         # On IA64, the linker does run time linking by default, so we don't
10519         # have to do anything special.
10520         aix_use_runtimelinking=no
10521         exp_sym_flag='-Bexport'
10522         no_entry_flag=""
10523       else
10524         # If we're using GNU nm, then we don't want the "-C" option.
10525         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10526         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10527           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10528         else
10529           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'
10530         fi
10531         aix_use_runtimelinking=no
10532
10533         # Test if we are trying to use run time linking or normal
10534         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10535         # need to do runtime linking.
10536         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10537           for ld_flag in $LDFLAGS; do
10538           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10539             aix_use_runtimelinking=yes
10540             break
10541           fi
10542           done
10543           ;;
10544         esac
10545
10546         exp_sym_flag='-bexport'
10547         no_entry_flag='-bnoentry'
10548       fi
10549
10550       # When large executables or shared objects are built, AIX ld can
10551       # have problems creating the table of contents.  If linking a library
10552       # or program results in "error TOC overflow" add -mminimal-toc to
10553       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10554       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10555
10556       archive_cmds=''
10557       hardcode_direct=yes
10558       hardcode_direct_absolute=yes
10559       hardcode_libdir_separator=':'
10560       link_all_deplibs=yes
10561       file_list_spec='${wl}-f,'
10562
10563       if test "$GCC" = yes; then
10564         case $host_os in aix4.[012]|aix4.[012].*)
10565         # We only want to do this on AIX 4.2 and lower, the check
10566         # below for broken collect2 doesn't work under 4.3+
10567           collect2name=`${CC} -print-prog-name=collect2`
10568           if test -f "$collect2name" &&
10569            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10570           then
10571           # We have reworked collect2
10572           :
10573           else
10574           # We have old collect2
10575           hardcode_direct=unsupported
10576           # It fails to find uninstalled libraries when the uninstalled
10577           # path is not listed in the libpath.  Setting hardcode_minus_L
10578           # to unsupported forces relinking
10579           hardcode_minus_L=yes
10580           hardcode_libdir_flag_spec='-L$libdir'
10581           hardcode_libdir_separator=
10582           fi
10583           ;;
10584         esac
10585         shared_flag='-shared'
10586         if test "$aix_use_runtimelinking" = yes; then
10587           shared_flag="$shared_flag "'${wl}-G'
10588         fi
10589       else
10590         # not using gcc
10591         if test "$host_cpu" = ia64; then
10592         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10593         # chokes on -Wl,-G. The following line is correct:
10594           shared_flag='-G'
10595         else
10596           if test "$aix_use_runtimelinking" = yes; then
10597             shared_flag='${wl}-G'
10598           else
10599             shared_flag='${wl}-bM:SRE'
10600           fi
10601         fi
10602       fi
10603
10604       export_dynamic_flag_spec='${wl}-bexpall'
10605       # It seems that -bexpall does not export symbols beginning with
10606       # underscore (_), so it is better to generate a list of symbols to export.
10607       always_export_symbols=yes
10608       if test "$aix_use_runtimelinking" = yes; then
10609         # Warning - without using the other runtime loading flags (-brtl),
10610         # -berok will link without error, but may produce a broken library.
10611         allow_undefined_flag='-berok'
10612         # Determine the default libpath from the value encoded in an
10613         # empty executable.
10614         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h.  */
10616
10617 int
10618 main ()
10619 {
10620
10621   ;
10622   return 0;
10623 }
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626
10627 lt_aix_libpath_sed='
10628     /Import File Strings/,/^$/ {
10629         /^0/ {
10630             s/^0  *\(.*\)$/\1/
10631             p
10632         }
10633     }'
10634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10635 # Check for a 64-bit object if we didn't find anything.
10636 if test -z "$aix_libpath"; then
10637   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10638 fi
10639 fi
10640 rm -f core conftest.err conftest.$ac_objext \
10641     conftest$ac_exeext conftest.$ac_ext
10642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10643
10644         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10645         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10646       else
10647         if test "$host_cpu" = ia64; then
10648           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10649           allow_undefined_flag="-z nodefs"
10650           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"
10651         else
10652          # Determine the default libpath from the value encoded in an
10653          # empty executable.
10654          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h.  */
10656
10657 int
10658 main ()
10659 {
10660
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 if ac_fn_c_try_link "$LINENO"; then :
10666
10667 lt_aix_libpath_sed='
10668     /Import File Strings/,/^$/ {
10669         /^0/ {
10670             s/^0  *\(.*\)$/\1/
10671             p
10672         }
10673     }'
10674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10675 # Check for a 64-bit object if we didn't find anything.
10676 if test -z "$aix_libpath"; then
10677   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10678 fi
10679 fi
10680 rm -f core conftest.err conftest.$ac_objext \
10681     conftest$ac_exeext conftest.$ac_ext
10682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10683
10684          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10685           # Warning - without using the other run time loading flags,
10686           # -berok will link without error, but may produce a broken library.
10687           no_undefined_flag=' ${wl}-bernotok'
10688           allow_undefined_flag=' ${wl}-berok'
10689           # Exported symbols can be pulled into shared objects from archives
10690           whole_archive_flag_spec='$convenience'
10691           archive_cmds_need_lc=yes
10692           # This is similar to how AIX traditionally builds its shared libraries.
10693           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'
10694         fi
10695       fi
10696       ;;
10697
10698     amigaos*)
10699       case $host_cpu in
10700       powerpc)
10701             # see comment about AmigaOS4 .so support
10702             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10703             archive_expsym_cmds=''
10704         ;;
10705       m68k)
10706             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)'
10707             hardcode_libdir_flag_spec='-L$libdir'
10708             hardcode_minus_L=yes
10709         ;;
10710       esac
10711       ;;
10712
10713     bsdi[45]*)
10714       export_dynamic_flag_spec=-rdynamic
10715       ;;
10716
10717     cygwin* | mingw* | pw32* | cegcc*)
10718       # When not using gcc, we currently assume that we are using
10719       # Microsoft Visual C++.
10720       # hardcode_libdir_flag_spec is actually meaningless, as there is
10721       # no search path for DLLs.
10722       hardcode_libdir_flag_spec=' '
10723       allow_undefined_flag=unsupported
10724       # Tell ltmain to make .lib files, not .a files.
10725       libext=lib
10726       # Tell ltmain to make .dll files, not .so files.
10727       shrext_cmds=".dll"
10728       # FIXME: Setting linknames here is a bad hack.
10729       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10730       # The linker will automatically build a .lib file if we build a DLL.
10731       old_archive_from_new_cmds='true'
10732       # FIXME: Should let the user specify the lib program.
10733       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10734       fix_srcfile_path='`cygpath -w "$srcfile"`'
10735       enable_shared_with_static_runtimes=yes
10736       ;;
10737
10738     darwin* | rhapsody*)
10739
10740
10741   archive_cmds_need_lc=no
10742   hardcode_direct=no
10743   hardcode_automatic=yes
10744   hardcode_shlibpath_var=unsupported
10745   whole_archive_flag_spec=''
10746   link_all_deplibs=yes
10747   allow_undefined_flag="$_lt_dar_allow_undefined"
10748   case $cc_basename in
10749      ifort*) _lt_dar_can_shared=yes ;;
10750      *) _lt_dar_can_shared=$GCC ;;
10751   esac
10752   if test "$_lt_dar_can_shared" = "yes"; then
10753     output_verbose_link_cmd=echo
10754     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10755     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10756     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}"
10757     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}"
10758
10759   else
10760   ld_shlibs=no
10761   fi
10762
10763       ;;
10764
10765     dgux*)
10766       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767       hardcode_libdir_flag_spec='-L$libdir'
10768       hardcode_shlibpath_var=no
10769       ;;
10770
10771     freebsd1*)
10772       ld_shlibs=no
10773       ;;
10774
10775     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10776     # support.  Future versions do this automatically, but an explicit c++rt0.o
10777     # does not break anything, and helps significantly (at the cost of a little
10778     # extra space).
10779     freebsd2.2*)
10780       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10781       hardcode_libdir_flag_spec='-R$libdir'
10782       hardcode_direct=yes
10783       hardcode_shlibpath_var=no
10784       ;;
10785
10786     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10787     freebsd2*)
10788       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10789       hardcode_direct=yes
10790       hardcode_minus_L=yes
10791       hardcode_shlibpath_var=no
10792       ;;
10793
10794     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10795     freebsd* | dragonfly*)
10796       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10797       hardcode_libdir_flag_spec='-R$libdir'
10798       hardcode_direct=yes
10799       hardcode_shlibpath_var=no
10800       ;;
10801
10802     hpux9*)
10803       if test "$GCC" = yes; then
10804         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10805       else
10806         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'
10807       fi
10808       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10809       hardcode_libdir_separator=:
10810       hardcode_direct=yes
10811
10812       # hardcode_minus_L: Not really in the search PATH,
10813       # but as the default location of the library.
10814       hardcode_minus_L=yes
10815       export_dynamic_flag_spec='${wl}-E'
10816       ;;
10817
10818     hpux10*)
10819       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10820         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10821       else
10822         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10823       fi
10824       if test "$with_gnu_ld" = no; then
10825         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10826         hardcode_libdir_flag_spec_ld='+b $libdir'
10827         hardcode_libdir_separator=:
10828         hardcode_direct=yes
10829         hardcode_direct_absolute=yes
10830         export_dynamic_flag_spec='${wl}-E'
10831         # hardcode_minus_L: Not really in the search PATH,
10832         # but as the default location of the library.
10833         hardcode_minus_L=yes
10834       fi
10835       ;;
10836
10837     hpux11*)
10838       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10839         case $host_cpu in
10840         hppa*64*)
10841           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10842           ;;
10843         ia64*)
10844           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10845           ;;
10846         *)
10847           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10848           ;;
10849         esac
10850       else
10851         case $host_cpu in
10852         hppa*64*)
10853           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10854           ;;
10855         ia64*)
10856           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10857           ;;
10858         *)
10859           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10860           ;;
10861         esac
10862       fi
10863       if test "$with_gnu_ld" = no; then
10864         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10865         hardcode_libdir_separator=:
10866
10867         case $host_cpu in
10868         hppa*64*|ia64*)
10869           hardcode_direct=no
10870           hardcode_shlibpath_var=no
10871           ;;
10872         *)
10873           hardcode_direct=yes
10874           hardcode_direct_absolute=yes
10875           export_dynamic_flag_spec='${wl}-E'
10876
10877           # hardcode_minus_L: Not really in the search PATH,
10878           # but as the default location of the library.
10879           hardcode_minus_L=yes
10880           ;;
10881         esac
10882       fi
10883       ;;
10884
10885     irix5* | irix6* | nonstopux*)
10886       if test "$GCC" = yes; then
10887         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10888         # Try to use the -exported_symbol ld option, if it does not
10889         # work, assume that -exports_file does not work either and
10890         # implicitly export all symbols.
10891         save_LDFLAGS="$LDFLAGS"
10892         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10893         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h.  */
10895 int foo(void) {}
10896 _ACEOF
10897 if ac_fn_c_try_link "$LINENO"; then :
10898   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10899
10900 fi
10901 rm -f core conftest.err conftest.$ac_objext \
10902     conftest$ac_exeext conftest.$ac_ext
10903         LDFLAGS="$save_LDFLAGS"
10904       else
10905         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10906         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10907       fi
10908       archive_cmds_need_lc='no'
10909       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10910       hardcode_libdir_separator=:
10911       inherit_rpath=yes
10912       link_all_deplibs=yes
10913       ;;
10914
10915     netbsd*)
10916       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10917         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10918       else
10919         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10920       fi
10921       hardcode_libdir_flag_spec='-R$libdir'
10922       hardcode_direct=yes
10923       hardcode_shlibpath_var=no
10924       ;;
10925
10926     newsos6)
10927       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928       hardcode_direct=yes
10929       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10930       hardcode_libdir_separator=:
10931       hardcode_shlibpath_var=no
10932       ;;
10933
10934     *nto* | *qnx*)
10935       ;;
10936
10937     openbsd*)
10938       if test -f /usr/libexec/ld.so; then
10939         hardcode_direct=yes
10940         hardcode_shlibpath_var=no
10941         hardcode_direct_absolute=yes
10942         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10943           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10944           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10945           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10946           export_dynamic_flag_spec='${wl}-E'
10947         else
10948           case $host_os in
10949            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10950              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10951              hardcode_libdir_flag_spec='-R$libdir'
10952              ;;
10953            *)
10954              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10955              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10956              ;;
10957           esac
10958         fi
10959       else
10960         ld_shlibs=no
10961       fi
10962       ;;
10963
10964     os2*)
10965       hardcode_libdir_flag_spec='-L$libdir'
10966       hardcode_minus_L=yes
10967       allow_undefined_flag=unsupported
10968       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'
10969       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10970       ;;
10971
10972     osf3*)
10973       if test "$GCC" = yes; then
10974         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10975         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10976       else
10977         allow_undefined_flag=' -expect_unresolved \*'
10978         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10979       fi
10980       archive_cmds_need_lc='no'
10981       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10982       hardcode_libdir_separator=:
10983       ;;
10984
10985     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10986       if test "$GCC" = yes; then
10987         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10988         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10989         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10990       else
10991         allow_undefined_flag=' -expect_unresolved \*'
10992         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10993         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~
10994         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10995
10996         # Both c and cxx compiler support -rpath directly
10997         hardcode_libdir_flag_spec='-rpath $libdir'
10998       fi
10999       archive_cmds_need_lc='no'
11000       hardcode_libdir_separator=:
11001       ;;
11002
11003     solaris*)
11004       no_undefined_flag=' -z defs'
11005       if test "$GCC" = yes; then
11006         wlarc='${wl}'
11007         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11008         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11009           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11010       else
11011         case `$CC -V 2>&1` in
11012         *"Compilers 5.0"*)
11013           wlarc=''
11014           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11015           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11016           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11017           ;;
11018         *)
11019           wlarc='${wl}'
11020           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11021           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11022           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11023           ;;
11024         esac
11025       fi
11026       hardcode_libdir_flag_spec='-R$libdir'
11027       hardcode_shlibpath_var=no
11028       case $host_os in
11029       solaris2.[0-5] | solaris2.[0-5].*) ;;
11030       *)
11031         # The compiler driver will combine and reorder linker options,
11032         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11033         # but is careful enough not to reorder.
11034         # Supported since Solaris 2.6 (maybe 2.5.1?)
11035         if test "$GCC" = yes; then
11036           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11037         else
11038           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11039         fi
11040         ;;
11041       esac
11042       link_all_deplibs=yes
11043       ;;
11044
11045     sunos4*)
11046       if test "x$host_vendor" = xsequent; then
11047         # Use $CC to link under sequent, because it throws in some extra .o
11048         # files that make .init and .fini sections work.
11049         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11050       else
11051         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11052       fi
11053       hardcode_libdir_flag_spec='-L$libdir'
11054       hardcode_direct=yes
11055       hardcode_minus_L=yes
11056       hardcode_shlibpath_var=no
11057       ;;
11058
11059     sysv4)
11060       case $host_vendor in
11061         sni)
11062           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11063           hardcode_direct=yes # is this really true???
11064         ;;
11065         siemens)
11066           ## LD is ld it makes a PLAMLIB
11067           ## CC just makes a GrossModule.
11068           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11069           reload_cmds='$CC -r -o $output$reload_objs'
11070           hardcode_direct=no
11071         ;;
11072         motorola)
11073           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11074           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11075         ;;
11076       esac
11077       runpath_var='LD_RUN_PATH'
11078       hardcode_shlibpath_var=no
11079       ;;
11080
11081     sysv4.3*)
11082       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11083       hardcode_shlibpath_var=no
11084       export_dynamic_flag_spec='-Bexport'
11085       ;;
11086
11087     sysv4*MP*)
11088       if test -d /usr/nec; then
11089         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11090         hardcode_shlibpath_var=no
11091         runpath_var=LD_RUN_PATH
11092         hardcode_runpath_var=yes
11093         ld_shlibs=yes
11094       fi
11095       ;;
11096
11097     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11098       no_undefined_flag='${wl}-z,text'
11099       archive_cmds_need_lc=no
11100       hardcode_shlibpath_var=no
11101       runpath_var='LD_RUN_PATH'
11102
11103       if test "$GCC" = yes; then
11104         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11105         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11106       else
11107         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11108         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11109       fi
11110       ;;
11111
11112     sysv5* | sco3.2v5* | sco5v6*)
11113       # Note: We can NOT use -z defs as we might desire, because we do not
11114       # link with -lc, and that would cause any symbols used from libc to
11115       # always be unresolved, which means just about no library would
11116       # ever link correctly.  If we're not using GNU ld we use -z text
11117       # though, which does catch some bad symbols but isn't as heavy-handed
11118       # as -z defs.
11119       no_undefined_flag='${wl}-z,text'
11120       allow_undefined_flag='${wl}-z,nodefs'
11121       archive_cmds_need_lc=no
11122       hardcode_shlibpath_var=no
11123       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11124       hardcode_libdir_separator=':'
11125       link_all_deplibs=yes
11126       export_dynamic_flag_spec='${wl}-Bexport'
11127       runpath_var='LD_RUN_PATH'
11128
11129       if test "$GCC" = yes; then
11130         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11131         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11132       else
11133         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11134         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11135       fi
11136       ;;
11137
11138     uts4*)
11139       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11140       hardcode_libdir_flag_spec='-L$libdir'
11141       hardcode_shlibpath_var=no
11142       ;;
11143
11144     *)
11145       ld_shlibs=no
11146       ;;
11147     esac
11148
11149     if test x$host_vendor = xsni; then
11150       case $host in
11151       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11152         export_dynamic_flag_spec='${wl}-Blargedynsym'
11153         ;;
11154       esac
11155     fi
11156   fi
11157
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11159 $as_echo "$ld_shlibs" >&6; }
11160 test "$ld_shlibs" = no && can_build_shared=no
11161
11162 with_gnu_ld=$with_gnu_ld
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178 #
11179 # Do we need to explicitly link libc?
11180 #
11181 case "x$archive_cmds_need_lc" in
11182 x|xyes)
11183   # Assume -lc should be added
11184   archive_cmds_need_lc=yes
11185
11186   if test "$enable_shared" = yes && test "$GCC" = yes; then
11187     case $archive_cmds in
11188     *'~'*)
11189       # FIXME: we may have to deal with multi-command sequences.
11190       ;;
11191     '$CC '*)
11192       # Test whether the compiler implicitly links with -lc since on some
11193       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11194       # to ld, don't add -lc before -lgcc.
11195       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11196 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11197       $RM conftest*
11198       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11199
11200       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11201   (eval $ac_compile) 2>&5
11202   ac_status=$?
11203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11204   test $ac_status = 0; } 2>conftest.err; then
11205         soname=conftest
11206         lib=conftest
11207         libobjs=conftest.$ac_objext
11208         deplibs=
11209         wl=$lt_prog_compiler_wl
11210         pic_flag=$lt_prog_compiler_pic
11211         compiler_flags=-v
11212         linker_flags=-v
11213         verstring=
11214         output_objdir=.
11215         libname=conftest
11216         lt_save_allow_undefined_flag=$allow_undefined_flag
11217         allow_undefined_flag=
11218         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11219   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11220   ac_status=$?
11221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11222   test $ac_status = 0; }
11223         then
11224           archive_cmds_need_lc=no
11225         else
11226           archive_cmds_need_lc=yes
11227         fi
11228         allow_undefined_flag=$lt_save_allow_undefined_flag
11229       else
11230         cat conftest.err 1>&5
11231       fi
11232       $RM conftest*
11233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11234 $as_echo "$archive_cmds_need_lc" >&6; }
11235       ;;
11236     esac
11237   fi
11238   ;;
11239 esac
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11398 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11399
11400 if test "$GCC" = yes; then
11401   case $host_os in
11402     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11403     *) lt_awk_arg="/^libraries:/" ;;
11404   esac
11405   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11406   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11407     # if the path contains ";" then we assume it to be the separator
11408     # otherwise default to the standard path separator (i.e. ":") - it is
11409     # assumed that no part of a normal pathname contains ";" but that should
11410     # okay in the real world where ";" in dirpaths is itself problematic.
11411     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11412   else
11413     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11414   fi
11415   # Ok, now we have the path, separated by spaces, we can step through it
11416   # and add multilib dir if necessary.
11417   lt_tmp_lt_search_path_spec=
11418   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11419   for lt_sys_path in $lt_search_path_spec; do
11420     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11421       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11422     else
11423       test -d "$lt_sys_path" && \
11424         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11425     fi
11426   done
11427   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11428 BEGIN {RS=" "; FS="/|\n";} {
11429   lt_foo="";
11430   lt_count=0;
11431   for (lt_i = NF; lt_i > 0; lt_i--) {
11432     if ($lt_i != "" && $lt_i != ".") {
11433       if ($lt_i == "..") {
11434         lt_count++;
11435       } else {
11436         if (lt_count == 0) {
11437           lt_foo="/" $lt_i lt_foo;
11438         } else {
11439           lt_count--;
11440         }
11441       }
11442     }
11443   }
11444   if (lt_foo != "") { lt_freq[lt_foo]++; }
11445   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11446 }'`
11447   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11448 else
11449   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11450 fi
11451 library_names_spec=
11452 libname_spec='lib$name'
11453 soname_spec=
11454 shrext_cmds=".so"
11455 postinstall_cmds=
11456 postuninstall_cmds=
11457 finish_cmds=
11458 finish_eval=
11459 shlibpath_var=
11460 shlibpath_overrides_runpath=unknown
11461 version_type=none
11462 dynamic_linker="$host_os ld.so"
11463 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11464 need_lib_prefix=unknown
11465 hardcode_into_libs=no
11466
11467 # when you set need_version to no, make sure it does not cause -set_version
11468 # flags to be left without arguments
11469 need_version=unknown
11470
11471 case $host_os in
11472 aix3*)
11473   version_type=linux
11474   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11475   shlibpath_var=LIBPATH
11476
11477   # AIX 3 has no versioning support, so we append a major version to the name.
11478   soname_spec='${libname}${release}${shared_ext}$major'
11479   ;;
11480
11481 aix[4-9]*)
11482   version_type=linux
11483   need_lib_prefix=no
11484   need_version=no
11485   hardcode_into_libs=yes
11486   if test "$host_cpu" = ia64; then
11487     # AIX 5 supports IA64
11488     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11489     shlibpath_var=LD_LIBRARY_PATH
11490   else
11491     # With GCC up to 2.95.x, collect2 would create an import file
11492     # for dependence libraries.  The import file would start with
11493     # the line `#! .'.  This would cause the generated library to
11494     # depend on `.', always an invalid library.  This was fixed in
11495     # development snapshots of GCC prior to 3.0.
11496     case $host_os in
11497       aix4 | aix4.[01] | aix4.[01].*)
11498       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11499            echo ' yes '
11500            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11501         :
11502       else
11503         can_build_shared=no
11504       fi
11505       ;;
11506     esac
11507     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11508     # soname into executable. Probably we can add versioning support to
11509     # collect2, so additional links can be useful in future.
11510     if test "$aix_use_runtimelinking" = yes; then
11511       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11512       # instead of lib<name>.a to let people know that these are not
11513       # typical AIX shared libraries.
11514       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515     else
11516       # We preserve .a as extension for shared libraries through AIX4.2
11517       # and later when we are not doing run time linking.
11518       library_names_spec='${libname}${release}.a $libname.a'
11519       soname_spec='${libname}${release}${shared_ext}$major'
11520     fi
11521     shlibpath_var=LIBPATH
11522   fi
11523   ;;
11524
11525 amigaos*)
11526   case $host_cpu in
11527   powerpc)
11528     # Since July 2007 AmigaOS4 officially supports .so libraries.
11529     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531     ;;
11532   m68k)
11533     library_names_spec='$libname.ixlibrary $libname.a'
11534     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11535     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11536     ;;
11537   esac
11538   ;;
11539
11540 beos*)
11541   library_names_spec='${libname}${shared_ext}'
11542   dynamic_linker="$host_os ld.so"
11543   shlibpath_var=LIBRARY_PATH
11544   ;;
11545
11546 bsdi[45]*)
11547   version_type=linux
11548   need_version=no
11549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550   soname_spec='${libname}${release}${shared_ext}$major'
11551   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11552   shlibpath_var=LD_LIBRARY_PATH
11553   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11554   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11555   # the default ld.so.conf also contains /usr/contrib/lib and
11556   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11557   # libtool to hard-code these into programs
11558   ;;
11559
11560 cygwin* | mingw* | pw32* | cegcc*)
11561   version_type=windows
11562   shrext_cmds=".dll"
11563   need_version=no
11564   need_lib_prefix=no
11565
11566   case $GCC,$host_os in
11567   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11568     library_names_spec='$libname.dll.a'
11569     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11570     postinstall_cmds='base_file=`basename \${file}`~
11571       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11572       dldir=$destdir/`dirname \$dlpath`~
11573       test -d \$dldir || mkdir -p \$dldir~
11574       $install_prog $dir/$dlname \$dldir/$dlname~
11575       chmod a+x \$dldir/$dlname~
11576       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11577         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11578       fi'
11579     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11580       dlpath=$dir/\$dldll~
11581        $RM \$dlpath'
11582     shlibpath_overrides_runpath=yes
11583
11584     case $host_os in
11585     cygwin*)
11586       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11587       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11588       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11589       ;;
11590     mingw* | cegcc*)
11591       # MinGW DLLs use traditional 'lib' prefix
11592       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11593       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11594       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11595         # It is most probably a Windows format PATH printed by
11596         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11597         # path with ; separators, and with drive letters. We can handle the
11598         # drive letters (cygwin fileutils understands them), so leave them,
11599         # especially as we might pass files found there to a mingw objdump,
11600         # which wouldn't understand a cygwinified path. Ahh.
11601         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11602       else
11603         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11604       fi
11605       ;;
11606     pw32*)
11607       # pw32 DLLs use 'pw' prefix rather than 'lib'
11608       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11609       ;;
11610     esac
11611     ;;
11612
11613   *)
11614     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11615     ;;
11616   esac
11617   dynamic_linker='Win32 ld.exe'
11618   # FIXME: first we should search . and the directory the executable is in
11619   shlibpath_var=PATH
11620   ;;
11621
11622 darwin* | rhapsody*)
11623   dynamic_linker="$host_os dyld"
11624   version_type=darwin
11625   need_lib_prefix=no
11626   need_version=no
11627   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11628   soname_spec='${libname}${release}${major}$shared_ext'
11629   shlibpath_overrides_runpath=yes
11630   shlibpath_var=DYLD_LIBRARY_PATH
11631   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11632
11633   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11634   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11635   ;;
11636
11637 dgux*)
11638   version_type=linux
11639   need_lib_prefix=no
11640   need_version=no
11641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11642   soname_spec='${libname}${release}${shared_ext}$major'
11643   shlibpath_var=LD_LIBRARY_PATH
11644   ;;
11645
11646 freebsd1*)
11647   dynamic_linker=no
11648   ;;
11649
11650 freebsd* | dragonfly*)
11651   # DragonFly does not have aout.  When/if they implement a new
11652   # versioning mechanism, adjust this.
11653   if test -x /usr/bin/objformat; then
11654     objformat=`/usr/bin/objformat`
11655   else
11656     case $host_os in
11657     freebsd[123]*) objformat=aout ;;
11658     *) objformat=elf ;;
11659     esac
11660   fi
11661   version_type=freebsd-$objformat
11662   case $version_type in
11663     freebsd-elf*)
11664       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11665       need_version=no
11666       need_lib_prefix=no
11667       ;;
11668     freebsd-*)
11669       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11670       need_version=yes
11671       ;;
11672   esac
11673   shlibpath_var=LD_LIBRARY_PATH
11674   case $host_os in
11675   freebsd2*)
11676     shlibpath_overrides_runpath=yes
11677     ;;
11678   freebsd3.[01]* | freebsdelf3.[01]*)
11679     shlibpath_overrides_runpath=yes
11680     hardcode_into_libs=yes
11681     ;;
11682   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11683   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11684     shlibpath_overrides_runpath=no
11685     hardcode_into_libs=yes
11686     ;;
11687   *) # from 4.6 on, and DragonFly
11688     shlibpath_overrides_runpath=yes
11689     hardcode_into_libs=yes
11690     ;;
11691   esac
11692   ;;
11693
11694 gnu*)
11695   version_type=linux
11696   need_lib_prefix=no
11697   need_version=no
11698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11699   soname_spec='${libname}${release}${shared_ext}$major'
11700   shlibpath_var=LD_LIBRARY_PATH
11701   hardcode_into_libs=yes
11702   ;;
11703
11704 hpux9* | hpux10* | hpux11*)
11705   # Give a soname corresponding to the major version so that dld.sl refuses to
11706   # link against other versions.
11707   version_type=sunos
11708   need_lib_prefix=no
11709   need_version=no
11710   case $host_cpu in
11711   ia64*)
11712     shrext_cmds='.so'
11713     hardcode_into_libs=yes
11714     dynamic_linker="$host_os dld.so"
11715     shlibpath_var=LD_LIBRARY_PATH
11716     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11718     soname_spec='${libname}${release}${shared_ext}$major'
11719     if test "X$HPUX_IA64_MODE" = X32; then
11720       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11721     else
11722       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11723     fi
11724     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11725     ;;
11726   hppa*64*)
11727     shrext_cmds='.sl'
11728     hardcode_into_libs=yes
11729     dynamic_linker="$host_os dld.sl"
11730     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11731     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733     soname_spec='${libname}${release}${shared_ext}$major'
11734     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11735     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11736     ;;
11737   *)
11738     shrext_cmds='.sl'
11739     dynamic_linker="$host_os dld.sl"
11740     shlibpath_var=SHLIB_PATH
11741     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743     soname_spec='${libname}${release}${shared_ext}$major'
11744     ;;
11745   esac
11746   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11747   postinstall_cmds='chmod 555 $lib'
11748   ;;
11749
11750 interix[3-9]*)
11751   version_type=linux
11752   need_lib_prefix=no
11753   need_version=no
11754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11755   soname_spec='${libname}${release}${shared_ext}$major'
11756   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11757   shlibpath_var=LD_LIBRARY_PATH
11758   shlibpath_overrides_runpath=no
11759   hardcode_into_libs=yes
11760   ;;
11761
11762 irix5* | irix6* | nonstopux*)
11763   case $host_os in
11764     nonstopux*) version_type=nonstopux ;;
11765     *)
11766         if test "$lt_cv_prog_gnu_ld" = yes; then
11767                 version_type=linux
11768         else
11769                 version_type=irix
11770         fi ;;
11771   esac
11772   need_lib_prefix=no
11773   need_version=no
11774   soname_spec='${libname}${release}${shared_ext}$major'
11775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11776   case $host_os in
11777   irix5* | nonstopux*)
11778     libsuff= shlibsuff=
11779     ;;
11780   *)
11781     case $LD in # libtool.m4 will add one of these switches to LD
11782     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11783       libsuff= shlibsuff= libmagic=32-bit;;
11784     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11785       libsuff=32 shlibsuff=N32 libmagic=N32;;
11786     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11787       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11788     *) libsuff= shlibsuff= libmagic=never-match;;
11789     esac
11790     ;;
11791   esac
11792   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11793   shlibpath_overrides_runpath=no
11794   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11795   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11796   hardcode_into_libs=yes
11797   ;;
11798
11799 # No shared lib support for Linux oldld, aout, or coff.
11800 linux*oldld* | linux*aout* | linux*coff*)
11801   dynamic_linker=no
11802   ;;
11803
11804 # This must be Linux ELF.
11805 linux* | k*bsd*-gnu)
11806   version_type=linux
11807   need_lib_prefix=no
11808   need_version=no
11809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810   soname_spec='${libname}${release}${shared_ext}$major'
11811   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11812   shlibpath_var=LD_LIBRARY_PATH
11813   shlibpath_overrides_runpath=no
11814   # Some binutils ld are patched to set DT_RUNPATH
11815   save_LDFLAGS=$LDFLAGS
11816   save_libdir=$libdir
11817   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11818        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h.  */
11821
11822 int
11823 main ()
11824 {
11825
11826   ;
11827   return 0;
11828 }
11829 _ACEOF
11830 if ac_fn_c_try_link "$LINENO"; then :
11831   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11832   shlibpath_overrides_runpath=yes
11833 fi
11834 fi
11835 rm -f core conftest.err conftest.$ac_objext \
11836     conftest$ac_exeext conftest.$ac_ext
11837   LDFLAGS=$save_LDFLAGS
11838   libdir=$save_libdir
11839
11840   # This implies no fast_install, which is unacceptable.
11841   # Some rework will be needed to allow for fast_install
11842   # before this can be enabled.
11843   hardcode_into_libs=yes
11844
11845   # Append ld.so.conf contents to the search path
11846   if test -f /etc/ld.so.conf; then
11847     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;/^$/d' | tr '\n' ' '`
11848     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11849   fi
11850
11851   # We used to test for /lib/ld.so.1 and disable shared libraries on
11852   # powerpc, because MkLinux only supported shared libraries with the
11853   # GNU dynamic linker.  Since this was broken with cross compilers,
11854   # most powerpc-linux boxes support dynamic linking these days and
11855   # people can always --disable-shared, the test was removed, and we
11856   # assume the GNU/Linux dynamic linker is in use.
11857   dynamic_linker='GNU/Linux ld.so'
11858   ;;
11859
11860 netbsd*)
11861   version_type=sunos
11862   need_lib_prefix=no
11863   need_version=no
11864   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11866     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11867     dynamic_linker='NetBSD (a.out) ld.so'
11868   else
11869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11870     soname_spec='${libname}${release}${shared_ext}$major'
11871     dynamic_linker='NetBSD ld.elf_so'
11872   fi
11873   shlibpath_var=LD_LIBRARY_PATH
11874   shlibpath_overrides_runpath=yes
11875   hardcode_into_libs=yes
11876   ;;
11877
11878 newsos6)
11879   version_type=linux
11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881   shlibpath_var=LD_LIBRARY_PATH
11882   shlibpath_overrides_runpath=yes
11883   ;;
11884
11885 *nto* | *qnx*)
11886   version_type=qnx
11887   need_lib_prefix=no
11888   need_version=no
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890   soname_spec='${libname}${release}${shared_ext}$major'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   shlibpath_overrides_runpath=no
11893   hardcode_into_libs=yes
11894   dynamic_linker='ldqnx.so'
11895   ;;
11896
11897 openbsd*)
11898   version_type=sunos
11899   sys_lib_dlsearch_path_spec="/usr/lib"
11900   need_lib_prefix=no
11901   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11902   case $host_os in
11903     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11904     *)                          need_version=no  ;;
11905   esac
11906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11907   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11908   shlibpath_var=LD_LIBRARY_PATH
11909   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11910     case $host_os in
11911       openbsd2.[89] | openbsd2.[89].*)
11912         shlibpath_overrides_runpath=no
11913         ;;
11914       *)
11915         shlibpath_overrides_runpath=yes
11916         ;;
11917       esac
11918   else
11919     shlibpath_overrides_runpath=yes
11920   fi
11921   ;;
11922
11923 os2*)
11924   libname_spec='$name'
11925   shrext_cmds=".dll"
11926   need_lib_prefix=no
11927   library_names_spec='$libname${shared_ext} $libname.a'
11928   dynamic_linker='OS/2 ld.exe'
11929   shlibpath_var=LIBPATH
11930   ;;
11931
11932 osf3* | osf4* | osf5*)
11933   version_type=osf
11934   need_lib_prefix=no
11935   need_version=no
11936   soname_spec='${libname}${release}${shared_ext}$major'
11937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938   shlibpath_var=LD_LIBRARY_PATH
11939   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11940   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11941   ;;
11942
11943 rdos*)
11944   dynamic_linker=no
11945   ;;
11946
11947 solaris*)
11948   version_type=linux
11949   need_lib_prefix=no
11950   need_version=no
11951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952   soname_spec='${libname}${release}${shared_ext}$major'
11953   shlibpath_var=LD_LIBRARY_PATH
11954   shlibpath_overrides_runpath=yes
11955   hardcode_into_libs=yes
11956   # ldd complains unless libraries are executable
11957   postinstall_cmds='chmod +x $lib'
11958   ;;
11959
11960 sunos4*)
11961   version_type=sunos
11962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11963   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11964   shlibpath_var=LD_LIBRARY_PATH
11965   shlibpath_overrides_runpath=yes
11966   if test "$with_gnu_ld" = yes; then
11967     need_lib_prefix=no
11968   fi
11969   need_version=yes
11970   ;;
11971
11972 sysv4 | sysv4.3*)
11973   version_type=linux
11974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11975   soname_spec='${libname}${release}${shared_ext}$major'
11976   shlibpath_var=LD_LIBRARY_PATH
11977   case $host_vendor in
11978     sni)
11979       shlibpath_overrides_runpath=no
11980       need_lib_prefix=no
11981       runpath_var=LD_RUN_PATH
11982       ;;
11983     siemens)
11984       need_lib_prefix=no
11985       ;;
11986     motorola)
11987       need_lib_prefix=no
11988       need_version=no
11989       shlibpath_overrides_runpath=no
11990       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11991       ;;
11992   esac
11993   ;;
11994
11995 sysv4*MP*)
11996   if test -d /usr/nec ;then
11997     version_type=linux
11998     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11999     soname_spec='$libname${shared_ext}.$major'
12000     shlibpath_var=LD_LIBRARY_PATH
12001   fi
12002   ;;
12003
12004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12005   version_type=freebsd-elf
12006   need_lib_prefix=no
12007   need_version=no
12008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12009   soname_spec='${libname}${release}${shared_ext}$major'
12010   shlibpath_var=LD_LIBRARY_PATH
12011   shlibpath_overrides_runpath=yes
12012   hardcode_into_libs=yes
12013   if test "$with_gnu_ld" = yes; then
12014     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12015   else
12016     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12017     case $host_os in
12018       sco3.2v5*)
12019         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12020         ;;
12021     esac
12022   fi
12023   sys_lib_dlsearch_path_spec='/usr/lib'
12024   ;;
12025
12026 tpf*)
12027   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12028   version_type=linux
12029   need_lib_prefix=no
12030   need_version=no
12031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032   shlibpath_var=LD_LIBRARY_PATH
12033   shlibpath_overrides_runpath=no
12034   hardcode_into_libs=yes
12035   ;;
12036
12037 uts4*)
12038   version_type=linux
12039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040   soname_spec='${libname}${release}${shared_ext}$major'
12041   shlibpath_var=LD_LIBRARY_PATH
12042   ;;
12043
12044 *)
12045   dynamic_linker=no
12046   ;;
12047 esac
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12049 $as_echo "$dynamic_linker" >&6; }
12050 test "$dynamic_linker" = no && can_build_shared=no
12051
12052 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12053 if test "$GCC" = yes; then
12054   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12055 fi
12056
12057 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12058   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12059 fi
12060 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12061   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12062 fi
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12151 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12152 hardcode_action=
12153 if test -n "$hardcode_libdir_flag_spec" ||
12154    test -n "$runpath_var" ||
12155    test "X$hardcode_automatic" = "Xyes" ; then
12156
12157   # We can hardcode non-existent directories.
12158   if test "$hardcode_direct" != no &&
12159      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12160      # have to relink, otherwise we might link with an installed library
12161      # when we should be linking with a yet-to-be-installed one
12162      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12163      test "$hardcode_minus_L" != no; then
12164     # Linking always hardcodes the temporary library directory.
12165     hardcode_action=relink
12166   else
12167     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12168     hardcode_action=immediate
12169   fi
12170 else
12171   # We cannot hardcode anything, or else we can only hardcode existing
12172   # directories.
12173   hardcode_action=unsupported
12174 fi
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12176 $as_echo "$hardcode_action" >&6; }
12177
12178 if test "$hardcode_action" = relink ||
12179    test "$inherit_rpath" = yes; then
12180   # Fast installation is not supported
12181   enable_fast_install=no
12182 elif test "$shlibpath_overrides_runpath" = yes ||
12183      test "$enable_shared" = no; then
12184   # Fast installation is not necessary
12185   enable_fast_install=needless
12186 fi
12187
12188
12189
12190
12191
12192
12193   if test "x$enable_dlopen" != xyes; then
12194   enable_dlopen=unknown
12195   enable_dlopen_self=unknown
12196   enable_dlopen_self_static=unknown
12197 else
12198   lt_cv_dlopen=no
12199   lt_cv_dlopen_libs=
12200
12201   case $host_os in
12202   beos*)
12203     lt_cv_dlopen="load_add_on"
12204     lt_cv_dlopen_libs=
12205     lt_cv_dlopen_self=yes
12206     ;;
12207
12208   mingw* | pw32* | cegcc*)
12209     lt_cv_dlopen="LoadLibrary"
12210     lt_cv_dlopen_libs=
12211     ;;
12212
12213   cygwin*)
12214     lt_cv_dlopen="dlopen"
12215     lt_cv_dlopen_libs=
12216     ;;
12217
12218   darwin*)
12219   # if libdl is installed we need to link against it
12220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12221 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12222 if ${ac_cv_lib_dl_dlopen+:} false; then :
12223   $as_echo_n "(cached) " >&6
12224 else
12225   ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-ldl  $LIBS"
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h.  */
12229
12230 /* Override any GCC internal prototype to avoid an error.
12231    Use char because int might match the return type of a GCC
12232    builtin and then its argument prototype would still apply.  */
12233 #ifdef __cplusplus
12234 extern "C"
12235 #endif
12236 char dlopen ();
12237 int
12238 main ()
12239 {
12240 return dlopen ();
12241   ;
12242   return 0;
12243 }
12244 _ACEOF
12245 if ac_fn_c_try_link "$LINENO"; then :
12246   ac_cv_lib_dl_dlopen=yes
12247 else
12248   ac_cv_lib_dl_dlopen=no
12249 fi
12250 rm -f core conftest.err conftest.$ac_objext \
12251     conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS
12253 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12255 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12256 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12257   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12258 else
12259
12260     lt_cv_dlopen="dyld"
12261     lt_cv_dlopen_libs=
12262     lt_cv_dlopen_self=yes
12263
12264 fi
12265
12266     ;;
12267
12268   *)
12269     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12270 if test "x$ac_cv_func_shl_load" = xyes; then :
12271   lt_cv_dlopen="shl_load"
12272 else
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12274 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12275 if ${ac_cv_lib_dld_shl_load+:} false; then :
12276   $as_echo_n "(cached) " >&6
12277 else
12278   ac_check_lib_save_LIBS=$LIBS
12279 LIBS="-ldld  $LIBS"
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h.  */
12282
12283 /* Override any GCC internal prototype to avoid an error.
12284    Use char because int might match the return type of a GCC
12285    builtin and then its argument prototype would still apply.  */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 char shl_load ();
12290 int
12291 main ()
12292 {
12293 return shl_load ();
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_c_try_link "$LINENO"; then :
12299   ac_cv_lib_dld_shl_load=yes
12300 else
12301   ac_cv_lib_dld_shl_load=no
12302 fi
12303 rm -f core conftest.err conftest.$ac_objext \
12304     conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12308 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12309 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12310   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12311 else
12312   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12313 if test "x$ac_cv_func_dlopen" = xyes; then :
12314   lt_cv_dlopen="dlopen"
12315 else
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12317 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12318 if ${ac_cv_lib_dl_dlopen+:} false; then :
12319   $as_echo_n "(cached) " >&6
12320 else
12321   ac_check_lib_save_LIBS=$LIBS
12322 LIBS="-ldl  $LIBS"
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h.  */
12325
12326 /* Override any GCC internal prototype to avoid an error.
12327    Use char because int might match the return type of a GCC
12328    builtin and then its argument prototype would still apply.  */
12329 #ifdef __cplusplus
12330 extern "C"
12331 #endif
12332 char dlopen ();
12333 int
12334 main ()
12335 {
12336 return dlopen ();
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 if ac_fn_c_try_link "$LINENO"; then :
12342   ac_cv_lib_dl_dlopen=yes
12343 else
12344   ac_cv_lib_dl_dlopen=no
12345 fi
12346 rm -f core conftest.err conftest.$ac_objext \
12347     conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12349 fi
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12351 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12352 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12353   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12354 else
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12356 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12357 if ${ac_cv_lib_svld_dlopen+:} false; then :
12358   $as_echo_n "(cached) " >&6
12359 else
12360   ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-lsvld  $LIBS"
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h.  */
12364
12365 /* Override any GCC internal prototype to avoid an error.
12366    Use char because int might match the return type of a GCC
12367    builtin and then its argument prototype would still apply.  */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 char dlopen ();
12372 int
12373 main ()
12374 {
12375 return dlopen ();
12376   ;
12377   return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_link "$LINENO"; then :
12381   ac_cv_lib_svld_dlopen=yes
12382 else
12383   ac_cv_lib_svld_dlopen=no
12384 fi
12385 rm -f core conftest.err conftest.$ac_objext \
12386     conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12388 fi
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12390 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12391 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12392   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12393 else
12394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12395 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12396 if ${ac_cv_lib_dld_dld_link+:} false; then :
12397   $as_echo_n "(cached) " >&6
12398 else
12399   ac_check_lib_save_LIBS=$LIBS
12400 LIBS="-ldld  $LIBS"
12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h.  */
12403
12404 /* Override any GCC internal prototype to avoid an error.
12405    Use char because int might match the return type of a GCC
12406    builtin and then its argument prototype would still apply.  */
12407 #ifdef __cplusplus
12408 extern "C"
12409 #endif
12410 char dld_link ();
12411 int
12412 main ()
12413 {
12414 return dld_link ();
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 if ac_fn_c_try_link "$LINENO"; then :
12420   ac_cv_lib_dld_dld_link=yes
12421 else
12422   ac_cv_lib_dld_dld_link=no
12423 fi
12424 rm -f core conftest.err conftest.$ac_objext \
12425     conftest$ac_exeext conftest.$ac_ext
12426 LIBS=$ac_check_lib_save_LIBS
12427 fi
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12429 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12430 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12431   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12432 fi
12433
12434
12435 fi
12436
12437
12438 fi
12439
12440
12441 fi
12442
12443
12444 fi
12445
12446
12447 fi
12448
12449     ;;
12450   esac
12451
12452   if test "x$lt_cv_dlopen" != xno; then
12453     enable_dlopen=yes
12454   else
12455     enable_dlopen=no
12456   fi
12457
12458   case $lt_cv_dlopen in
12459   dlopen)
12460     save_CPPFLAGS="$CPPFLAGS"
12461     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12462
12463     save_LDFLAGS="$LDFLAGS"
12464     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12465
12466     save_LIBS="$LIBS"
12467     LIBS="$lt_cv_dlopen_libs $LIBS"
12468
12469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12470 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12471 if ${lt_cv_dlopen_self+:} false; then :
12472   $as_echo_n "(cached) " >&6
12473 else
12474           if test "$cross_compiling" = yes; then :
12475   lt_cv_dlopen_self=cross
12476 else
12477   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12478   lt_status=$lt_dlunknown
12479   cat > conftest.$ac_ext <<_LT_EOF
12480 #line 12480 "configure"
12481 #include "confdefs.h"
12482
12483 #if HAVE_DLFCN_H
12484 #include <dlfcn.h>
12485 #endif
12486
12487 #include <stdio.h>
12488
12489 #ifdef RTLD_GLOBAL
12490 #  define LT_DLGLOBAL           RTLD_GLOBAL
12491 #else
12492 #  ifdef DL_GLOBAL
12493 #    define LT_DLGLOBAL         DL_GLOBAL
12494 #  else
12495 #    define LT_DLGLOBAL         0
12496 #  endif
12497 #endif
12498
12499 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12500    find out it does not work in some platform. */
12501 #ifndef LT_DLLAZY_OR_NOW
12502 #  ifdef RTLD_LAZY
12503 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12504 #  else
12505 #    ifdef DL_LAZY
12506 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12507 #    else
12508 #      ifdef RTLD_NOW
12509 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12510 #      else
12511 #        ifdef DL_NOW
12512 #          define LT_DLLAZY_OR_NOW      DL_NOW
12513 #        else
12514 #          define LT_DLLAZY_OR_NOW      0
12515 #        endif
12516 #      endif
12517 #    endif
12518 #  endif
12519 #endif
12520
12521 void fnord() { int i=42;}
12522 int main ()
12523 {
12524   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12525   int status = $lt_dlunknown;
12526
12527   if (self)
12528     {
12529       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12530       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12531       /* dlclose (self); */
12532     }
12533   else
12534     puts (dlerror ());
12535
12536   return status;
12537 }
12538 _LT_EOF
12539   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12540   (eval $ac_link) 2>&5
12541   ac_status=$?
12542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12543   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12544     (./conftest; exit; ) >&5 2>/dev/null
12545     lt_status=$?
12546     case x$lt_status in
12547       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12548       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12549       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12550     esac
12551   else :
12552     # compilation failed
12553     lt_cv_dlopen_self=no
12554   fi
12555 fi
12556 rm -fr conftest*
12557
12558
12559 fi
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12561 $as_echo "$lt_cv_dlopen_self" >&6; }
12562
12563     if test "x$lt_cv_dlopen_self" = xyes; then
12564       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12565       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12566 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12567 if ${lt_cv_dlopen_self_static+:} false; then :
12568   $as_echo_n "(cached) " >&6
12569 else
12570           if test "$cross_compiling" = yes; then :
12571   lt_cv_dlopen_self_static=cross
12572 else
12573   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12574   lt_status=$lt_dlunknown
12575   cat > conftest.$ac_ext <<_LT_EOF
12576 #line 12576 "configure"
12577 #include "confdefs.h"
12578
12579 #if HAVE_DLFCN_H
12580 #include <dlfcn.h>
12581 #endif
12582
12583 #include <stdio.h>
12584
12585 #ifdef RTLD_GLOBAL
12586 #  define LT_DLGLOBAL           RTLD_GLOBAL
12587 #else
12588 #  ifdef DL_GLOBAL
12589 #    define LT_DLGLOBAL         DL_GLOBAL
12590 #  else
12591 #    define LT_DLGLOBAL         0
12592 #  endif
12593 #endif
12594
12595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12596    find out it does not work in some platform. */
12597 #ifndef LT_DLLAZY_OR_NOW
12598 #  ifdef RTLD_LAZY
12599 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12600 #  else
12601 #    ifdef DL_LAZY
12602 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12603 #    else
12604 #      ifdef RTLD_NOW
12605 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12606 #      else
12607 #        ifdef DL_NOW
12608 #          define LT_DLLAZY_OR_NOW      DL_NOW
12609 #        else
12610 #          define LT_DLLAZY_OR_NOW      0
12611 #        endif
12612 #      endif
12613 #    endif
12614 #  endif
12615 #endif
12616
12617 void fnord() { int i=42;}
12618 int main ()
12619 {
12620   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12621   int status = $lt_dlunknown;
12622
12623   if (self)
12624     {
12625       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12626       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12627       /* dlclose (self); */
12628     }
12629   else
12630     puts (dlerror ());
12631
12632   return status;
12633 }
12634 _LT_EOF
12635   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12636   (eval $ac_link) 2>&5
12637   ac_status=$?
12638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12639   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12640     (./conftest; exit; ) >&5 2>/dev/null
12641     lt_status=$?
12642     case x$lt_status in
12643       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12644       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12645       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12646     esac
12647   else :
12648     # compilation failed
12649     lt_cv_dlopen_self_static=no
12650   fi
12651 fi
12652 rm -fr conftest*
12653
12654
12655 fi
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12657 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12658     fi
12659
12660     CPPFLAGS="$save_CPPFLAGS"
12661     LDFLAGS="$save_LDFLAGS"
12662     LIBS="$save_LIBS"
12663     ;;
12664   esac
12665
12666   case $lt_cv_dlopen_self in
12667   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12668   *) enable_dlopen_self=unknown ;;
12669   esac
12670
12671   case $lt_cv_dlopen_self_static in
12672   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12673   *) enable_dlopen_self_static=unknown ;;
12674   esac
12675 fi
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693 striplib=
12694 old_striplib=
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12696 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12697 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12698   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12699   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12701 $as_echo "yes" >&6; }
12702 else
12703 # FIXME - insert some real tests, host_os isn't really good enough
12704   case $host_os in
12705   darwin*)
12706     if test -n "$STRIP" ; then
12707       striplib="$STRIP -x"
12708       old_striplib="$STRIP -S"
12709       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12710 $as_echo "yes" >&6; }
12711     else
12712       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12714     fi
12715     ;;
12716   *)
12717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719     ;;
12720   esac
12721 fi
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734   # Report which library types will actually be built
12735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12736 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12738 $as_echo "$can_build_shared" >&6; }
12739
12740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12741 $as_echo_n "checking whether to build shared libraries... " >&6; }
12742   test "$can_build_shared" = "no" && enable_shared=no
12743
12744   # On AIX, shared libraries and static libraries use the same namespace, and
12745   # are all built from PIC.
12746   case $host_os in
12747   aix3*)
12748     test "$enable_shared" = yes && enable_static=no
12749     if test -n "$RANLIB"; then
12750       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12751       postinstall_cmds='$RANLIB $lib'
12752     fi
12753     ;;
12754
12755   aix[4-9]*)
12756     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12757       test "$enable_shared" = yes && enable_static=no
12758     fi
12759     ;;
12760   esac
12761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12762 $as_echo "$enable_shared" >&6; }
12763
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12765 $as_echo_n "checking whether to build static libraries... " >&6; }
12766   # Make sure either enable_shared or enable_static is yes.
12767   test "$enable_shared" = yes || enable_static=yes
12768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12769 $as_echo "$enable_static" >&6; }
12770
12771
12772
12773
12774 fi
12775 ac_ext=c
12776 ac_cpp='$CPP $CPPFLAGS'
12777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12780
12781 CC="$lt_save_CC"
12782
12783
12784 ac_ext=cpp
12785 ac_cpp='$CXXCPP $CPPFLAGS'
12786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12789
12790 archive_cmds_need_lc_CXX=no
12791 allow_undefined_flag_CXX=
12792 always_export_symbols_CXX=no
12793 archive_expsym_cmds_CXX=
12794 compiler_needs_object_CXX=no
12795 export_dynamic_flag_spec_CXX=
12796 hardcode_direct_CXX=no
12797 hardcode_direct_absolute_CXX=no
12798 hardcode_libdir_flag_spec_CXX=
12799 hardcode_libdir_flag_spec_ld_CXX=
12800 hardcode_libdir_separator_CXX=
12801 hardcode_minus_L_CXX=no
12802 hardcode_shlibpath_var_CXX=unsupported
12803 hardcode_automatic_CXX=no
12804 inherit_rpath_CXX=no
12805 module_cmds_CXX=
12806 module_expsym_cmds_CXX=
12807 link_all_deplibs_CXX=unknown
12808 old_archive_cmds_CXX=$old_archive_cmds
12809 no_undefined_flag_CXX=
12810 whole_archive_flag_spec_CXX=
12811 enable_shared_with_static_runtimes_CXX=no
12812
12813 # Source file extension for C++ test sources.
12814 ac_ext=cpp
12815
12816 # Object file extension for compiled C++ test sources.
12817 objext=o
12818 objext_CXX=$objext
12819
12820 # No sense in running all these tests if we already determined that
12821 # the CXX compiler isn't working.  Some variables (like enable_shared)
12822 # are currently assumed to apply to all compilers on this platform,
12823 # and will be corrupted by setting them based on a non-working compiler.
12824 if test "$_lt_caught_CXX_error" != yes; then
12825   # Code to be used in simple compile tests
12826   lt_simple_compile_test_code="int some_variable = 0;"
12827
12828   # Code to be used in simple link tests
12829   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12830
12831   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12832
12833
12834
12835
12836
12837
12838 # If no C compiler was specified, use CC.
12839 LTCC=${LTCC-"$CC"}
12840
12841 # If no C compiler flags were specified, use CFLAGS.
12842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12843
12844 # Allow CC to be a program name with arguments.
12845 compiler=$CC
12846
12847
12848   # save warnings/boilerplate of simple test code
12849   ac_outfile=conftest.$ac_objext
12850 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12851 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12852 _lt_compiler_boilerplate=`cat conftest.err`
12853 $RM conftest*
12854
12855   ac_outfile=conftest.$ac_objext
12856 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12857 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12858 _lt_linker_boilerplate=`cat conftest.err`
12859 $RM -r conftest*
12860
12861
12862   # Allow CC to be a program name with arguments.
12863   lt_save_CC=$CC
12864   lt_save_LD=$LD
12865   lt_save_GCC=$GCC
12866   GCC=$GXX
12867   lt_save_with_gnu_ld=$with_gnu_ld
12868   lt_save_path_LD=$lt_cv_path_LD
12869   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12870     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12871   else
12872     $as_unset lt_cv_prog_gnu_ld
12873   fi
12874   if test -n "${lt_cv_path_LDCXX+set}"; then
12875     lt_cv_path_LD=$lt_cv_path_LDCXX
12876   else
12877     $as_unset lt_cv_path_LD
12878   fi
12879   test -z "${LDCXX+set}" || LD=$LDCXX
12880   CC=${CXX-"c++"}
12881   compiler=$CC
12882   compiler_CXX=$CC
12883   for cc_temp in $compiler""; do
12884   case $cc_temp in
12885     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12886     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12887     \-*) ;;
12888     *) break;;
12889   esac
12890 done
12891 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12892
12893
12894   if test -n "$compiler"; then
12895     # We don't want -fno-exception when compiling C++ code, so set the
12896     # no_builtin_flag separately
12897     if test "$GXX" = yes; then
12898       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12899     else
12900       lt_prog_compiler_no_builtin_flag_CXX=
12901     fi
12902
12903     if test "$GXX" = yes; then
12904       # Set up default GNU C++ configuration
12905
12906
12907
12908 # Check whether --with-gnu-ld was given.
12909 if test "${with_gnu_ld+set}" = set; then :
12910   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12911 else
12912   with_gnu_ld=no
12913 fi
12914
12915 ac_prog=ld
12916 if test "$GCC" = yes; then
12917   # Check if gcc -print-prog-name=ld gives a path.
12918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12919 $as_echo_n "checking for ld used by $CC... " >&6; }
12920   case $host in
12921   *-*-mingw*)
12922     # gcc leaves a trailing carriage return which upsets mingw
12923     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12924   *)
12925     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12926   esac
12927   case $ac_prog in
12928     # Accept absolute paths.
12929     [\\/]* | ?:[\\/]*)
12930       re_direlt='/[^/][^/]*/\.\./'
12931       # Canonicalize the pathname of ld
12932       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12933       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12934         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12935       done
12936       test -z "$LD" && LD="$ac_prog"
12937       ;;
12938   "")
12939     # If it fails, then pretend we aren't using GCC.
12940     ac_prog=ld
12941     ;;
12942   *)
12943     # If it is relative, then search for the first ld in PATH.
12944     with_gnu_ld=unknown
12945     ;;
12946   esac
12947 elif test "$with_gnu_ld" = yes; then
12948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12949 $as_echo_n "checking for GNU ld... " >&6; }
12950 else
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12952 $as_echo_n "checking for non-GNU ld... " >&6; }
12953 fi
12954 if ${lt_cv_path_LD+:} false; then :
12955   $as_echo_n "(cached) " >&6
12956 else
12957   if test -z "$LD"; then
12958   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12959   for ac_dir in $PATH; do
12960     IFS="$lt_save_ifs"
12961     test -z "$ac_dir" && ac_dir=.
12962     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12963       lt_cv_path_LD="$ac_dir/$ac_prog"
12964       # Check to see if the program is GNU ld.  I'd rather use --version,
12965       # but apparently some variants of GNU ld only accept -v.
12966       # Break only if it was the GNU/non-GNU ld that we prefer.
12967       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12968       *GNU* | *'with BFD'*)
12969         test "$with_gnu_ld" != no && break
12970         ;;
12971       *)
12972         test "$with_gnu_ld" != yes && break
12973         ;;
12974       esac
12975     fi
12976   done
12977   IFS="$lt_save_ifs"
12978 else
12979   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12980 fi
12981 fi
12982
12983 LD="$lt_cv_path_LD"
12984 if test -n "$LD"; then
12985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12986 $as_echo "$LD" >&6; }
12987 else
12988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12990 fi
12991 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12994 if ${lt_cv_prog_gnu_ld+:} false; then :
12995   $as_echo_n "(cached) " >&6
12996 else
12997   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12998 case `$LD -v 2>&1 </dev/null` in
12999 *GNU* | *'with BFD'*)
13000   lt_cv_prog_gnu_ld=yes
13001   ;;
13002 *)
13003   lt_cv_prog_gnu_ld=no
13004   ;;
13005 esac
13006 fi
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13008 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13009 with_gnu_ld=$lt_cv_prog_gnu_ld
13010
13011
13012
13013
13014
13015
13016
13017       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13018       # archiving commands below assume that GNU ld is being used.
13019       if test "$with_gnu_ld" = yes; then
13020         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13022
13023         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13024         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13025
13026         # If archive_cmds runs LD, not CC, wlarc should be empty
13027         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13028         #     investigate it a little bit more. (MM)
13029         wlarc='${wl}'
13030
13031         # ancient GNU ld didn't support --whole-archive et. al.
13032         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13033           $GREP 'no-whole-archive' > /dev/null; then
13034           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13035         else
13036           whole_archive_flag_spec_CXX=
13037         fi
13038       else
13039         with_gnu_ld=no
13040         wlarc=
13041
13042         # A generic and very simple default shared library creation
13043         # command for GNU C++ for the case where it uses the native
13044         # linker, instead of GNU ld.  If possible, this setting should
13045         # overridden to take advantage of the native linker features on
13046         # the platform it is being used on.
13047         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13048       fi
13049
13050       # Commands to make compiler produce verbose output that lists
13051       # what "hidden" libraries, object files and flags are used when
13052       # linking a shared library.
13053       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13054
13055     else
13056       GXX=no
13057       with_gnu_ld=no
13058       wlarc=
13059     fi
13060
13061     # PORTME: fill in a description of your system's C++ link characteristics
13062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13063 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13064     ld_shlibs_CXX=yes
13065     case $host_os in
13066       aix3*)
13067         # FIXME: insert proper C++ library support
13068         ld_shlibs_CXX=no
13069         ;;
13070       aix[4-9]*)
13071         if test "$host_cpu" = ia64; then
13072           # On IA64, the linker does run time linking by default, so we don't
13073           # have to do anything special.
13074           aix_use_runtimelinking=no
13075           exp_sym_flag='-Bexport'
13076           no_entry_flag=""
13077         else
13078           aix_use_runtimelinking=no
13079
13080           # Test if we are trying to use run time linking or normal
13081           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13082           # need to do runtime linking.
13083           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13084             for ld_flag in $LDFLAGS; do
13085               case $ld_flag in
13086               *-brtl*)
13087                 aix_use_runtimelinking=yes
13088                 break
13089                 ;;
13090               esac
13091             done
13092             ;;
13093           esac
13094
13095           exp_sym_flag='-bexport'
13096           no_entry_flag='-bnoentry'
13097         fi
13098
13099         # When large executables or shared objects are built, AIX ld can
13100         # have problems creating the table of contents.  If linking a library
13101         # or program results in "error TOC overflow" add -mminimal-toc to
13102         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13103         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13104
13105         archive_cmds_CXX=''
13106         hardcode_direct_CXX=yes
13107         hardcode_direct_absolute_CXX=yes
13108         hardcode_libdir_separator_CXX=':'
13109         link_all_deplibs_CXX=yes
13110         file_list_spec_CXX='${wl}-f,'
13111
13112         if test "$GXX" = yes; then
13113           case $host_os in aix4.[012]|aix4.[012].*)
13114           # We only want to do this on AIX 4.2 and lower, the check
13115           # below for broken collect2 doesn't work under 4.3+
13116           collect2name=`${CC} -print-prog-name=collect2`
13117           if test -f "$collect2name" &&
13118              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13119           then
13120             # We have reworked collect2
13121             :
13122           else
13123             # We have old collect2
13124             hardcode_direct_CXX=unsupported
13125             # It fails to find uninstalled libraries when the uninstalled
13126             # path is not listed in the libpath.  Setting hardcode_minus_L
13127             # to unsupported forces relinking
13128             hardcode_minus_L_CXX=yes
13129             hardcode_libdir_flag_spec_CXX='-L$libdir'
13130             hardcode_libdir_separator_CXX=
13131           fi
13132           esac
13133           shared_flag='-shared'
13134           if test "$aix_use_runtimelinking" = yes; then
13135             shared_flag="$shared_flag "'${wl}-G'
13136           fi
13137         else
13138           # not using gcc
13139           if test "$host_cpu" = ia64; then
13140           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13141           # chokes on -Wl,-G. The following line is correct:
13142           shared_flag='-G'
13143           else
13144             if test "$aix_use_runtimelinking" = yes; then
13145               shared_flag='${wl}-G'
13146             else
13147               shared_flag='${wl}-bM:SRE'
13148             fi
13149           fi
13150         fi
13151
13152         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13153         # It seems that -bexpall does not export symbols beginning with
13154         # underscore (_), so it is better to generate a list of symbols to
13155         # export.
13156         always_export_symbols_CXX=yes
13157         if test "$aix_use_runtimelinking" = yes; then
13158           # Warning - without using the other runtime loading flags (-brtl),
13159           # -berok will link without error, but may produce a broken library.
13160           allow_undefined_flag_CXX='-berok'
13161           # Determine the default libpath from the value encoded in an empty
13162           # executable.
13163           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h.  */
13165
13166 int
13167 main ()
13168 {
13169
13170   ;
13171   return 0;
13172 }
13173 _ACEOF
13174 if ac_fn_cxx_try_link "$LINENO"; then :
13175
13176 lt_aix_libpath_sed='
13177     /Import File Strings/,/^$/ {
13178         /^0/ {
13179             s/^0  *\(.*\)$/\1/
13180             p
13181         }
13182     }'
13183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13184 # Check for a 64-bit object if we didn't find anything.
13185 if test -z "$aix_libpath"; then
13186   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13187 fi
13188 fi
13189 rm -f core conftest.err conftest.$ac_objext \
13190     conftest$ac_exeext conftest.$ac_ext
13191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13192
13193           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13194
13195           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13196         else
13197           if test "$host_cpu" = ia64; then
13198             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13199             allow_undefined_flag_CXX="-z nodefs"
13200             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"
13201           else
13202             # Determine the default libpath from the value encoded in an
13203             # empty executable.
13204             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h.  */
13206
13207 int
13208 main ()
13209 {
13210
13211   ;
13212   return 0;
13213 }
13214 _ACEOF
13215 if ac_fn_cxx_try_link "$LINENO"; then :
13216
13217 lt_aix_libpath_sed='
13218     /Import File Strings/,/^$/ {
13219         /^0/ {
13220             s/^0  *\(.*\)$/\1/
13221             p
13222         }
13223     }'
13224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13225 # Check for a 64-bit object if we didn't find anything.
13226 if test -z "$aix_libpath"; then
13227   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13228 fi
13229 fi
13230 rm -f core conftest.err conftest.$ac_objext \
13231     conftest$ac_exeext conftest.$ac_ext
13232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13233
13234             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13235             # Warning - without using the other run time loading flags,
13236             # -berok will link without error, but may produce a broken library.
13237             no_undefined_flag_CXX=' ${wl}-bernotok'
13238             allow_undefined_flag_CXX=' ${wl}-berok'
13239             # Exported symbols can be pulled into shared objects from archives
13240             whole_archive_flag_spec_CXX='$convenience'
13241             archive_cmds_need_lc_CXX=yes
13242             # This is similar to how AIX traditionally builds its shared
13243             # libraries.
13244             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'
13245           fi
13246         fi
13247         ;;
13248
13249       beos*)
13250         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13251           allow_undefined_flag_CXX=unsupported
13252           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13253           # support --undefined.  This deserves some investigation.  FIXME
13254           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13255         else
13256           ld_shlibs_CXX=no
13257         fi
13258         ;;
13259
13260       chorus*)
13261         case $cc_basename in
13262           *)
13263           # FIXME: insert proper C++ library support
13264           ld_shlibs_CXX=no
13265           ;;
13266         esac
13267         ;;
13268
13269       cygwin* | mingw* | pw32* | cegcc*)
13270         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13271         # as there is no search path for DLLs.
13272         hardcode_libdir_flag_spec_CXX='-L$libdir'
13273         allow_undefined_flag_CXX=unsupported
13274         always_export_symbols_CXX=no
13275         enable_shared_with_static_runtimes_CXX=yes
13276
13277         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13278           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'
13279           # If the export-symbols file already is a .def file (1st line
13280           # is EXPORTS), use it as is; otherwise, prepend...
13281           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13282             cp $export_symbols $output_objdir/$soname.def;
13283           else
13284             echo EXPORTS > $output_objdir/$soname.def;
13285             cat $export_symbols >> $output_objdir/$soname.def;
13286           fi~
13287           $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'
13288         else
13289           ld_shlibs_CXX=no
13290         fi
13291         ;;
13292       darwin* | rhapsody*)
13293
13294
13295   archive_cmds_need_lc_CXX=no
13296   hardcode_direct_CXX=no
13297   hardcode_automatic_CXX=yes
13298   hardcode_shlibpath_var_CXX=unsupported
13299   whole_archive_flag_spec_CXX=''
13300   link_all_deplibs_CXX=yes
13301   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13302   case $cc_basename in
13303      ifort*) _lt_dar_can_shared=yes ;;
13304      *) _lt_dar_can_shared=$GCC ;;
13305   esac
13306   if test "$_lt_dar_can_shared" = "yes"; then
13307     output_verbose_link_cmd=echo
13308     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}"
13309     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13310     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}"
13311     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}"
13312        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13313       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}"
13314       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}"
13315     fi
13316
13317   else
13318   ld_shlibs_CXX=no
13319   fi
13320
13321         ;;
13322
13323       dgux*)
13324         case $cc_basename in
13325           ec++*)
13326             # FIXME: insert proper C++ library support
13327             ld_shlibs_CXX=no
13328             ;;
13329           ghcx*)
13330             # Green Hills C++ Compiler
13331             # FIXME: insert proper C++ library support
13332             ld_shlibs_CXX=no
13333             ;;
13334           *)
13335             # FIXME: insert proper C++ library support
13336             ld_shlibs_CXX=no
13337             ;;
13338         esac
13339         ;;
13340
13341       freebsd[12]*)
13342         # C++ shared libraries reported to be fairly broken before
13343         # switch to ELF
13344         ld_shlibs_CXX=no
13345         ;;
13346
13347       freebsd-elf*)
13348         archive_cmds_need_lc_CXX=no
13349         ;;
13350
13351       freebsd* | dragonfly*)
13352         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13353         # conventions
13354         ld_shlibs_CXX=yes
13355         ;;
13356
13357       gnu*)
13358         ;;
13359
13360       hpux9*)
13361         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13362         hardcode_libdir_separator_CXX=:
13363         export_dynamic_flag_spec_CXX='${wl}-E'
13364         hardcode_direct_CXX=yes
13365         hardcode_minus_L_CXX=yes # Not in the search PATH,
13366                                              # but as the default
13367                                              # location of the library.
13368
13369         case $cc_basename in
13370           CC*)
13371             # FIXME: insert proper C++ library support
13372             ld_shlibs_CXX=no
13373             ;;
13374           aCC*)
13375             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'
13376             # Commands to make compiler produce verbose output that lists
13377             # what "hidden" libraries, object files and flags are used when
13378             # linking a shared library.
13379             #
13380             # There doesn't appear to be a way to prevent this compiler from
13381             # explicitly linking system object files so we need to strip them
13382             # from the output so that they don't get included in the library
13383             # dependencies.
13384             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; $ECHO "X$list" | $Xsed'
13385             ;;
13386           *)
13387             if test "$GXX" = yes; then
13388               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
13389             else
13390               # FIXME: insert proper C++ library support
13391               ld_shlibs_CXX=no
13392             fi
13393             ;;
13394         esac
13395         ;;
13396
13397       hpux10*|hpux11*)
13398         if test $with_gnu_ld = no; then
13399           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13400           hardcode_libdir_separator_CXX=:
13401
13402           case $host_cpu in
13403             hppa*64*|ia64*)
13404               ;;
13405             *)
13406               export_dynamic_flag_spec_CXX='${wl}-E'
13407               ;;
13408           esac
13409         fi
13410         case $host_cpu in
13411           hppa*64*|ia64*)
13412             hardcode_direct_CXX=no
13413             hardcode_shlibpath_var_CXX=no
13414             ;;
13415           *)
13416             hardcode_direct_CXX=yes
13417             hardcode_direct_absolute_CXX=yes
13418             hardcode_minus_L_CXX=yes # Not in the search PATH,
13419                                                  # but as the default
13420                                                  # location of the library.
13421             ;;
13422         esac
13423
13424         case $cc_basename in
13425           CC*)
13426             # FIXME: insert proper C++ library support
13427             ld_shlibs_CXX=no
13428             ;;
13429           aCC*)
13430             case $host_cpu in
13431               hppa*64*)
13432                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13433                 ;;
13434               ia64*)
13435                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13436                 ;;
13437               *)
13438                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13439                 ;;
13440             esac
13441             # Commands to make compiler produce verbose output that lists
13442             # what "hidden" libraries, object files and flags are used when
13443             # linking a shared library.
13444             #
13445             # There doesn't appear to be a way to prevent this compiler from
13446             # explicitly linking system object files so we need to strip them
13447             # from the output so that they don't get included in the library
13448             # dependencies.
13449             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; $ECHO "X$list" | $Xsed'
13450             ;;
13451           *)
13452             if test "$GXX" = yes; then
13453               if test $with_gnu_ld = no; then
13454                 case $host_cpu in
13455                   hppa*64*)
13456                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13457                     ;;
13458                   ia64*)
13459                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13460                     ;;
13461                   *)
13462                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13463                     ;;
13464                 esac
13465               fi
13466             else
13467               # FIXME: insert proper C++ library support
13468               ld_shlibs_CXX=no
13469             fi
13470             ;;
13471         esac
13472         ;;
13473
13474       interix[3-9]*)
13475         hardcode_direct_CXX=no
13476         hardcode_shlibpath_var_CXX=no
13477         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13478         export_dynamic_flag_spec_CXX='${wl}-E'
13479         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13480         # Instead, shared libraries are loaded at an image base (0x10000000 by
13481         # default) and relocated if they conflict, which is a slow very memory
13482         # consuming and fragmenting process.  To avoid this, we pick a random,
13483         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13484         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13485         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'
13486         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'
13487         ;;
13488       irix5* | irix6*)
13489         case $cc_basename in
13490           CC*)
13491             # SGI C++
13492             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13493
13494             # Archives containing C++ object files must be created using
13495             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13496             # necessary to make sure instantiated templates are included
13497             # in the archive.
13498             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13499             ;;
13500           *)
13501             if test "$GXX" = yes; then
13502               if test "$with_gnu_ld" = no; then
13503                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13504               else
13505                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13506               fi
13507             fi
13508             link_all_deplibs_CXX=yes
13509             ;;
13510         esac
13511         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13512         hardcode_libdir_separator_CXX=:
13513         inherit_rpath_CXX=yes
13514         ;;
13515
13516       linux* | k*bsd*-gnu)
13517         case $cc_basename in
13518           KCC*)
13519             # Kuck and Associates, Inc. (KAI) C++ Compiler
13520
13521             # KCC will only create a shared library if the output file
13522             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13523             # to its proper name (with version) after linking.
13524             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'
13525             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'
13526             # Commands to make compiler produce verbose output that lists
13527             # what "hidden" libraries, object files and flags are used when
13528             # linking a shared library.
13529             #
13530             # There doesn't appear to be a way to prevent this compiler from
13531             # explicitly linking system object files so we need to strip them
13532             # from the output so that they don't get included in the library
13533             # dependencies.
13534             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; $ECHO "X$list" | $Xsed'
13535
13536             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13537             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13538
13539             # Archives containing C++ object files must be created using
13540             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13541             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13542             ;;
13543           icpc* | ecpc* )
13544             # Intel C++
13545             with_gnu_ld=yes
13546             # version 8.0 and above of icpc choke on multiply defined symbols
13547             # if we add $predep_objects and $postdep_objects, however 7.1 and
13548             # earlier do not add the objects themselves.
13549             case `$CC -V 2>&1` in
13550               *"Version 7."*)
13551                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13552                 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'
13553                 ;;
13554               *)  # Version 8.0 or newer
13555                 tmp_idyn=
13556                 case $host_cpu in
13557                   ia64*) tmp_idyn=' -i_dynamic';;
13558                 esac
13559                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13560                 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'
13561                 ;;
13562             esac
13563             archive_cmds_need_lc_CXX=no
13564             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13565             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13566             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13567             ;;
13568           pgCC* | pgcpp*)
13569             # Portland Group C++ compiler
13570             case `$CC -V` in
13571             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13572               prelink_cmds_CXX='tpldir=Template.dir~
13573                 rm -rf $tpldir~
13574                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13575                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13576               old_archive_cmds_CXX='tpldir=Template.dir~
13577                 rm -rf $tpldir~
13578                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13579                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13580                 $RANLIB $oldlib'
13581               archive_cmds_CXX='tpldir=Template.dir~
13582                 rm -rf $tpldir~
13583                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13584                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13585               archive_expsym_cmds_CXX='tpldir=Template.dir~
13586                 rm -rf $tpldir~
13587                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13588                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13589               ;;
13590             *) # Version 6 will use weak symbols
13591               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13592               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'
13593               ;;
13594             esac
13595
13596             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13597             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13598             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13599             ;;
13600           cxx*)
13601             # Compaq C++
13602             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13603             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'
13604
13605             runpath_var=LD_RUN_PATH
13606             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13607             hardcode_libdir_separator_CXX=:
13608
13609             # Commands to make compiler produce verbose output that lists
13610             # what "hidden" libraries, object files and flags are used when
13611             # linking a shared library.
13612             #
13613             # There doesn't appear to be a way to prevent this compiler from
13614             # explicitly linking system object files so we need to strip them
13615             # from the output so that they don't get included in the library
13616             # dependencies.
13617             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13618             ;;
13619           xl*)
13620             # IBM XL 8.0 on PPC, with GNU ld
13621             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13622             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13623             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13624             if test "x$supports_anon_versioning" = xyes; then
13625               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13626                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13627                 echo "local: *; };" >> $output_objdir/$libname.ver~
13628                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13629             fi
13630             ;;
13631           *)
13632             case `$CC -V 2>&1 | sed 5q` in
13633             *Sun\ C*)
13634               # Sun C++ 5.9
13635               no_undefined_flag_CXX=' -zdefs'
13636               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13637               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'
13638               hardcode_libdir_flag_spec_CXX='-R$libdir'
13639               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13640               compiler_needs_object_CXX=yes
13641
13642               # Not sure whether something based on
13643               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13644               # would be better.
13645               output_verbose_link_cmd='echo'
13646
13647               # Archives containing C++ object files must be created using
13648               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13649               # necessary to make sure instantiated templates are included
13650               # in the archive.
13651               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13652               ;;
13653             esac
13654             ;;
13655         esac
13656         ;;
13657
13658       lynxos*)
13659         # FIXME: insert proper C++ library support
13660         ld_shlibs_CXX=no
13661         ;;
13662
13663       m88k*)
13664         # FIXME: insert proper C++ library support
13665         ld_shlibs_CXX=no
13666         ;;
13667
13668       mvs*)
13669         case $cc_basename in
13670           cxx*)
13671             # FIXME: insert proper C++ library support
13672             ld_shlibs_CXX=no
13673             ;;
13674           *)
13675             # FIXME: insert proper C++ library support
13676             ld_shlibs_CXX=no
13677             ;;
13678         esac
13679         ;;
13680
13681       netbsd*)
13682         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13683           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13684           wlarc=
13685           hardcode_libdir_flag_spec_CXX='-R$libdir'
13686           hardcode_direct_CXX=yes
13687           hardcode_shlibpath_var_CXX=no
13688         fi
13689         # Workaround some broken pre-1.5 toolchains
13690         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13691         ;;
13692
13693       *nto* | *qnx*)
13694         ld_shlibs_CXX=yes
13695         ;;
13696
13697       openbsd2*)
13698         # C++ shared libraries are fairly broken
13699         ld_shlibs_CXX=no
13700         ;;
13701
13702       openbsd*)
13703         if test -f /usr/libexec/ld.so; then
13704           hardcode_direct_CXX=yes
13705           hardcode_shlibpath_var_CXX=no
13706           hardcode_direct_absolute_CXX=yes
13707           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13708           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13709           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13710             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13711             export_dynamic_flag_spec_CXX='${wl}-E'
13712             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13713           fi
13714           output_verbose_link_cmd=echo
13715         else
13716           ld_shlibs_CXX=no
13717         fi
13718         ;;
13719
13720       osf3* | osf4* | osf5*)
13721         case $cc_basename in
13722           KCC*)
13723             # Kuck and Associates, Inc. (KAI) C++ Compiler
13724
13725             # KCC will only create a shared library if the output file
13726             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13727             # to its proper name (with version) after linking.
13728             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'
13729
13730             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13731             hardcode_libdir_separator_CXX=:
13732
13733             # Archives containing C++ object files must be created using
13734             # the KAI C++ compiler.
13735             case $host in
13736               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13737               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13738             esac
13739             ;;
13740           RCC*)
13741             # Rational C++ 2.4.1
13742             # FIXME: insert proper C++ library support
13743             ld_shlibs_CXX=no
13744             ;;
13745           cxx*)
13746             case $host in
13747               osf3*)
13748                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13749                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13750                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13751                 ;;
13752               *)
13753                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13754                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13755                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13756                   echo "-hidden">> $lib.exp~
13757                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13758                   $RM $lib.exp'
13759                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13760                 ;;
13761             esac
13762
13763             hardcode_libdir_separator_CXX=:
13764
13765             # Commands to make compiler produce verbose output that lists
13766             # what "hidden" libraries, object files and flags are used when
13767             # linking a shared library.
13768             #
13769             # There doesn't appear to be a way to prevent this compiler from
13770             # explicitly linking system object files so we need to strip them
13771             # from the output so that they don't get included in the library
13772             # dependencies.
13773             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13774             ;;
13775           *)
13776             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13777               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13778               case $host in
13779                 osf3*)
13780                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13781                   ;;
13782                 *)
13783                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13784                   ;;
13785               esac
13786
13787               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13788               hardcode_libdir_separator_CXX=:
13789
13790               # Commands to make compiler produce verbose output that lists
13791               # what "hidden" libraries, object files and flags are used when
13792               # linking a shared library.
13793               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13794
13795             else
13796               # FIXME: insert proper C++ library support
13797               ld_shlibs_CXX=no
13798             fi
13799             ;;
13800         esac
13801         ;;
13802
13803       psos*)
13804         # FIXME: insert proper C++ library support
13805         ld_shlibs_CXX=no
13806         ;;
13807
13808       sunos4*)
13809         case $cc_basename in
13810           CC*)
13811             # Sun C++ 4.x
13812             # FIXME: insert proper C++ library support
13813             ld_shlibs_CXX=no
13814             ;;
13815           lcc*)
13816             # Lucid
13817             # FIXME: insert proper C++ library support
13818             ld_shlibs_CXX=no
13819             ;;
13820           *)
13821             # FIXME: insert proper C++ library support
13822             ld_shlibs_CXX=no
13823             ;;
13824         esac
13825         ;;
13826
13827       solaris*)
13828         case $cc_basename in
13829           CC*)
13830             # Sun C++ 4.2, 5.x and Centerline C++
13831             archive_cmds_need_lc_CXX=yes
13832             no_undefined_flag_CXX=' -zdefs'
13833             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13834             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13835               $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'
13836
13837             hardcode_libdir_flag_spec_CXX='-R$libdir'
13838             hardcode_shlibpath_var_CXX=no
13839             case $host_os in
13840               solaris2.[0-5] | solaris2.[0-5].*) ;;
13841               *)
13842                 # The compiler driver will combine and reorder linker options,
13843                 # but understands `-z linker_flag'.
13844                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13845                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13846                 ;;
13847             esac
13848             link_all_deplibs_CXX=yes
13849
13850             output_verbose_link_cmd='echo'
13851
13852             # Archives containing C++ object files must be created using
13853             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13854             # necessary to make sure instantiated templates are included
13855             # in the archive.
13856             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13857             ;;
13858           gcx*)
13859             # Green Hills C++ Compiler
13860             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13861
13862             # The C++ compiler must be used to create the archive.
13863             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13864             ;;
13865           *)
13866             # GNU C++ compiler with Solaris linker
13867             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13868               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13869               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13870                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13871                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13872                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13873
13874                 # Commands to make compiler produce verbose output that lists
13875                 # what "hidden" libraries, object files and flags are used when
13876                 # linking a shared library.
13877                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13878               else
13879                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13880                 # platform.
13881                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13882                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13883                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13884
13885                 # Commands to make compiler produce verbose output that lists
13886                 # what "hidden" libraries, object files and flags are used when
13887                 # linking a shared library.
13888                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13889               fi
13890
13891               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13892               case $host_os in
13893                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13894                 *)
13895                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13896                   ;;
13897               esac
13898             fi
13899             ;;
13900         esac
13901         ;;
13902
13903     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13904       no_undefined_flag_CXX='${wl}-z,text'
13905       archive_cmds_need_lc_CXX=no
13906       hardcode_shlibpath_var_CXX=no
13907       runpath_var='LD_RUN_PATH'
13908
13909       case $cc_basename in
13910         CC*)
13911           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13912           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13913           ;;
13914         *)
13915           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13916           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13917           ;;
13918       esac
13919       ;;
13920
13921       sysv5* | sco3.2v5* | sco5v6*)
13922         # Note: We can NOT use -z defs as we might desire, because we do not
13923         # link with -lc, and that would cause any symbols used from libc to
13924         # always be unresolved, which means just about no library would
13925         # ever link correctly.  If we're not using GNU ld we use -z text
13926         # though, which does catch some bad symbols but isn't as heavy-handed
13927         # as -z defs.
13928         no_undefined_flag_CXX='${wl}-z,text'
13929         allow_undefined_flag_CXX='${wl}-z,nodefs'
13930         archive_cmds_need_lc_CXX=no
13931         hardcode_shlibpath_var_CXX=no
13932         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13933         hardcode_libdir_separator_CXX=':'
13934         link_all_deplibs_CXX=yes
13935         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13936         runpath_var='LD_RUN_PATH'
13937
13938         case $cc_basename in
13939           CC*)
13940             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13941             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13942             ;;
13943           *)
13944             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13945             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13946             ;;
13947         esac
13948       ;;
13949
13950       tandem*)
13951         case $cc_basename in
13952           NCC*)
13953             # NonStop-UX NCC 3.20
13954             # FIXME: insert proper C++ library support
13955             ld_shlibs_CXX=no
13956             ;;
13957           *)
13958             # FIXME: insert proper C++ library support
13959             ld_shlibs_CXX=no
13960             ;;
13961         esac
13962         ;;
13963
13964       vxworks*)
13965         # FIXME: insert proper C++ library support
13966         ld_shlibs_CXX=no
13967         ;;
13968
13969       *)
13970         # FIXME: insert proper C++ library support
13971         ld_shlibs_CXX=no
13972         ;;
13973     esac
13974
13975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13976 $as_echo "$ld_shlibs_CXX" >&6; }
13977     test "$ld_shlibs_CXX" = no && can_build_shared=no
13978
13979     GCC_CXX="$GXX"
13980     LD_CXX="$LD"
13981
13982     ## CAVEAT EMPTOR:
13983     ## There is no encapsulation within the following macros, do not change
13984     ## the running order or otherwise move them around unless you know exactly
13985     ## what you are doing...
13986     # Dependencies to place before and after the object being linked:
13987 predep_objects_CXX=
13988 postdep_objects_CXX=
13989 predeps_CXX=
13990 postdeps_CXX=
13991 compiler_lib_search_path_CXX=
13992
13993 cat > conftest.$ac_ext <<_LT_EOF
13994 class Foo
13995 {
13996 public:
13997   Foo (void) { a = 0; }
13998 private:
13999   int a;
14000 };
14001 _LT_EOF
14002
14003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14004   (eval $ac_compile) 2>&5
14005   ac_status=$?
14006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14007   test $ac_status = 0; }; then
14008   # Parse the compiler output and extract the necessary
14009   # objects, libraries and library flags.
14010
14011   # Sentinel used to keep track of whether or not we are before
14012   # the conftest object file.
14013   pre_test_object_deps_done=no
14014
14015   for p in `eval "$output_verbose_link_cmd"`; do
14016     case $p in
14017
14018     -L* | -R* | -l*)
14019        # Some compilers place space between "-{L,R}" and the path.
14020        # Remove the space.
14021        if test $p = "-L" ||
14022           test $p = "-R"; then
14023          prev=$p
14024          continue
14025        else
14026          prev=
14027        fi
14028
14029        if test "$pre_test_object_deps_done" = no; then
14030          case $p in
14031          -L* | -R*)
14032            # Internal compiler library paths should come after those
14033            # provided the user.  The postdeps already come after the
14034            # user supplied libs so there is no need to process them.
14035            if test -z "$compiler_lib_search_path_CXX"; then
14036              compiler_lib_search_path_CXX="${prev}${p}"
14037            else
14038              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14039            fi
14040            ;;
14041          # The "-l" case would never come before the object being
14042          # linked, so don't bother handling this case.
14043          esac
14044        else
14045          if test -z "$postdeps_CXX"; then
14046            postdeps_CXX="${prev}${p}"
14047          else
14048            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14049          fi
14050        fi
14051        ;;
14052
14053     *.$objext)
14054        # This assumes that the test object file only shows up
14055        # once in the compiler output.
14056        if test "$p" = "conftest.$objext"; then
14057          pre_test_object_deps_done=yes
14058          continue
14059        fi
14060
14061        if test "$pre_test_object_deps_done" = no; then
14062          if test -z "$predep_objects_CXX"; then
14063            predep_objects_CXX="$p"
14064          else
14065            predep_objects_CXX="$predep_objects_CXX $p"
14066          fi
14067        else
14068          if test -z "$postdep_objects_CXX"; then
14069            postdep_objects_CXX="$p"
14070          else
14071            postdep_objects_CXX="$postdep_objects_CXX $p"
14072          fi
14073        fi
14074        ;;
14075
14076     *) ;; # Ignore the rest.
14077
14078     esac
14079   done
14080
14081   # Clean up.
14082   rm -f a.out a.exe
14083 else
14084   echo "libtool.m4: error: problem compiling CXX test program"
14085 fi
14086
14087 $RM -f confest.$objext
14088
14089 # PORTME: override above test on systems where it is broken
14090 case $host_os in
14091 interix[3-9]*)
14092   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14093   # hack all around it, let's just trust "g++" to DTRT.
14094   predep_objects_CXX=
14095   postdep_objects_CXX=
14096   postdeps_CXX=
14097   ;;
14098
14099 linux*)
14100   case `$CC -V 2>&1 | sed 5q` in
14101   *Sun\ C*)
14102     # Sun C++ 5.9
14103
14104     # The more standards-conforming stlport4 library is
14105     # incompatible with the Cstd library. Avoid specifying
14106     # it if it's in CXXFLAGS. Ignore libCrun as
14107     # -library=stlport4 depends on it.
14108     case " $CXX $CXXFLAGS " in
14109     *" -library=stlport4 "*)
14110       solaris_use_stlport4=yes
14111       ;;
14112     esac
14113
14114     if test "$solaris_use_stlport4" != yes; then
14115       postdeps_CXX='-library=Cstd -library=Crun'
14116     fi
14117     ;;
14118   esac
14119   ;;
14120
14121 solaris*)
14122   case $cc_basename in
14123   CC*)
14124     # The more standards-conforming stlport4 library is
14125     # incompatible with the Cstd library. Avoid specifying
14126     # it if it's in CXXFLAGS. Ignore libCrun as
14127     # -library=stlport4 depends on it.
14128     case " $CXX $CXXFLAGS " in
14129     *" -library=stlport4 "*)
14130       solaris_use_stlport4=yes
14131       ;;
14132     esac
14133
14134     # Adding this requires a known-good setup of shared libraries for
14135     # Sun compiler versions before 5.6, else PIC objects from an old
14136     # archive will be linked into the output, leading to subtle bugs.
14137     if test "$solaris_use_stlport4" != yes; then
14138       postdeps_CXX='-library=Cstd -library=Crun'
14139     fi
14140     ;;
14141   esac
14142   ;;
14143 esac
14144
14145
14146 case " $postdeps_CXX " in
14147 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14148 esac
14149  compiler_lib_search_dirs_CXX=
14150 if test -n "${compiler_lib_search_path_CXX}"; then
14151  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14152 fi
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184     lt_prog_compiler_wl_CXX=
14185 lt_prog_compiler_pic_CXX=
14186 lt_prog_compiler_static_CXX=
14187
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14189 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14190
14191   # C++ specific cases for pic, static, wl, etc.
14192   if test "$GXX" = yes; then
14193     lt_prog_compiler_wl_CXX='-Wl,'
14194     lt_prog_compiler_static_CXX='-static'
14195
14196     case $host_os in
14197     aix*)
14198       # All AIX code is PIC.
14199       if test "$host_cpu" = ia64; then
14200         # AIX 5 now supports IA64 processor
14201         lt_prog_compiler_static_CXX='-Bstatic'
14202       fi
14203       ;;
14204
14205     amigaos*)
14206       case $host_cpu in
14207       powerpc)
14208             # see comment about AmigaOS4 .so support
14209             lt_prog_compiler_pic_CXX='-fPIC'
14210         ;;
14211       m68k)
14212             # FIXME: we need at least 68020 code to build shared libraries, but
14213             # adding the `-m68020' flag to GCC prevents building anything better,
14214             # like `-m68040'.
14215             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14216         ;;
14217       esac
14218       ;;
14219
14220     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14221       # PIC is the default for these OSes.
14222       ;;
14223     mingw* | cygwin* | os2* | pw32* | cegcc*)
14224       # This hack is so that the source file can tell whether it is being
14225       # built for inclusion in a dll (and should export symbols for example).
14226       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14227       # (--disable-auto-import) libraries
14228       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14229       ;;
14230     darwin* | rhapsody*)
14231       # PIC is the default on this platform
14232       # Common symbols not allowed in MH_DYLIB files
14233       lt_prog_compiler_pic_CXX='-fno-common'
14234       ;;
14235     *djgpp*)
14236       # DJGPP does not support shared libraries at all
14237       lt_prog_compiler_pic_CXX=
14238       ;;
14239     interix[3-9]*)
14240       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14241       # Instead, we relocate shared libraries at runtime.
14242       ;;
14243     sysv4*MP*)
14244       if test -d /usr/nec; then
14245         lt_prog_compiler_pic_CXX=-Kconform_pic
14246       fi
14247       ;;
14248     hpux*)
14249       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14250       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14251       # sets the default TLS model and affects inlining.
14252       case $host_cpu in
14253       hppa*64*)
14254         ;;
14255       *)
14256         lt_prog_compiler_pic_CXX='-fPIC'
14257         ;;
14258       esac
14259       ;;
14260     *qnx* | *nto*)
14261       # QNX uses GNU C++, but need to define -shared option too, otherwise
14262       # it will coredump.
14263       lt_prog_compiler_pic_CXX='-fPIC -shared'
14264       ;;
14265     *)
14266       lt_prog_compiler_pic_CXX='-fPIC'
14267       ;;
14268     esac
14269   else
14270     case $host_os in
14271       aix[4-9]*)
14272         # All AIX code is PIC.
14273         if test "$host_cpu" = ia64; then
14274           # AIX 5 now supports IA64 processor
14275           lt_prog_compiler_static_CXX='-Bstatic'
14276         else
14277           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14278         fi
14279         ;;
14280       chorus*)
14281         case $cc_basename in
14282         cxch68*)
14283           # Green Hills C++ Compiler
14284           # _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"
14285           ;;
14286         esac
14287         ;;
14288       dgux*)
14289         case $cc_basename in
14290           ec++*)
14291             lt_prog_compiler_pic_CXX='-KPIC'
14292             ;;
14293           ghcx*)
14294             # Green Hills C++ Compiler
14295             lt_prog_compiler_pic_CXX='-pic'
14296             ;;
14297           *)
14298             ;;
14299         esac
14300         ;;
14301       freebsd* | dragonfly*)
14302         # FreeBSD uses GNU C++
14303         ;;
14304       hpux9* | hpux10* | hpux11*)
14305         case $cc_basename in
14306           CC*)
14307             lt_prog_compiler_wl_CXX='-Wl,'
14308             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14309             if test "$host_cpu" != ia64; then
14310               lt_prog_compiler_pic_CXX='+Z'
14311             fi
14312             ;;
14313           aCC*)
14314             lt_prog_compiler_wl_CXX='-Wl,'
14315             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14316             case $host_cpu in
14317             hppa*64*|ia64*)
14318               # +Z the default
14319               ;;
14320             *)
14321               lt_prog_compiler_pic_CXX='+Z'
14322               ;;
14323             esac
14324             ;;
14325           *)
14326             ;;
14327         esac
14328         ;;
14329       interix*)
14330         # This is c89, which is MS Visual C++ (no shared libs)
14331         # Anyone wants to do a port?
14332         ;;
14333       irix5* | irix6* | nonstopux*)
14334         case $cc_basename in
14335           CC*)
14336             lt_prog_compiler_wl_CXX='-Wl,'
14337             lt_prog_compiler_static_CXX='-non_shared'
14338             # CC pic flag -KPIC is the default.
14339             ;;
14340           *)
14341             ;;
14342         esac
14343         ;;
14344       linux* | k*bsd*-gnu)
14345         case $cc_basename in
14346           KCC*)
14347             # KAI C++ Compiler
14348             lt_prog_compiler_wl_CXX='--backend -Wl,'
14349             lt_prog_compiler_pic_CXX='-fPIC'
14350             ;;
14351           ecpc* )
14352             # old Intel C++ for x86_64 which still supported -KPIC.
14353             lt_prog_compiler_wl_CXX='-Wl,'
14354             lt_prog_compiler_pic_CXX='-KPIC'
14355             lt_prog_compiler_static_CXX='-static'
14356             ;;
14357           icpc* )
14358             # Intel C++, used to be incompatible with GCC.
14359             # ICC 10 doesn't accept -KPIC any more.
14360             lt_prog_compiler_wl_CXX='-Wl,'
14361             lt_prog_compiler_pic_CXX='-fPIC'
14362             lt_prog_compiler_static_CXX='-static'
14363             ;;
14364           pgCC* | pgcpp*)
14365             # Portland Group C++ compiler
14366             lt_prog_compiler_wl_CXX='-Wl,'
14367             lt_prog_compiler_pic_CXX='-fpic'
14368             lt_prog_compiler_static_CXX='-Bstatic'
14369             ;;
14370           cxx*)
14371             # Compaq C++
14372             # Make sure the PIC flag is empty.  It appears that all Alpha
14373             # Linux and Compaq Tru64 Unix objects are PIC.
14374             lt_prog_compiler_pic_CXX=
14375             lt_prog_compiler_static_CXX='-non_shared'
14376             ;;
14377           xlc* | xlC*)
14378             # IBM XL 8.0 on PPC
14379             lt_prog_compiler_wl_CXX='-Wl,'
14380             lt_prog_compiler_pic_CXX='-qpic'
14381             lt_prog_compiler_static_CXX='-qstaticlink'
14382             ;;
14383           *)
14384             case `$CC -V 2>&1 | sed 5q` in
14385             *Sun\ C*)
14386               # Sun C++ 5.9
14387               lt_prog_compiler_pic_CXX='-KPIC'
14388               lt_prog_compiler_static_CXX='-Bstatic'
14389               lt_prog_compiler_wl_CXX='-Qoption ld '
14390               ;;
14391             esac
14392             ;;
14393         esac
14394         ;;
14395       lynxos*)
14396         ;;
14397       m88k*)
14398         ;;
14399       mvs*)
14400         case $cc_basename in
14401           cxx*)
14402             lt_prog_compiler_pic_CXX='-W c,exportall'
14403             ;;
14404           *)
14405             ;;
14406         esac
14407         ;;
14408       netbsd*)
14409         ;;
14410       *qnx* | *nto*)
14411         # QNX uses GNU C++, but need to define -shared option too, otherwise
14412         # it will coredump.
14413         lt_prog_compiler_pic_CXX='-fPIC -shared'
14414         ;;
14415       osf3* | osf4* | osf5*)
14416         case $cc_basename in
14417           KCC*)
14418             lt_prog_compiler_wl_CXX='--backend -Wl,'
14419             ;;
14420           RCC*)
14421             # Rational C++ 2.4.1
14422             lt_prog_compiler_pic_CXX='-pic'
14423             ;;
14424           cxx*)
14425             # Digital/Compaq C++
14426             lt_prog_compiler_wl_CXX='-Wl,'
14427             # Make sure the PIC flag is empty.  It appears that all Alpha
14428             # Linux and Compaq Tru64 Unix objects are PIC.
14429             lt_prog_compiler_pic_CXX=
14430             lt_prog_compiler_static_CXX='-non_shared'
14431             ;;
14432           *)
14433             ;;
14434         esac
14435         ;;
14436       psos*)
14437         ;;
14438       solaris*)
14439         case $cc_basename in
14440           CC*)
14441             # Sun C++ 4.2, 5.x and Centerline C++
14442             lt_prog_compiler_pic_CXX='-KPIC'
14443             lt_prog_compiler_static_CXX='-Bstatic'
14444             lt_prog_compiler_wl_CXX='-Qoption ld '
14445             ;;
14446           gcx*)
14447             # Green Hills C++ Compiler
14448             lt_prog_compiler_pic_CXX='-PIC'
14449             ;;
14450           *)
14451             ;;
14452         esac
14453         ;;
14454       sunos4*)
14455         case $cc_basename in
14456           CC*)
14457             # Sun C++ 4.x
14458             lt_prog_compiler_pic_CXX='-pic'
14459             lt_prog_compiler_static_CXX='-Bstatic'
14460             ;;
14461           lcc*)
14462             # Lucid
14463             lt_prog_compiler_pic_CXX='-pic'
14464             ;;
14465           *)
14466             ;;
14467         esac
14468         ;;
14469       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14470         case $cc_basename in
14471           CC*)
14472             lt_prog_compiler_wl_CXX='-Wl,'
14473             lt_prog_compiler_pic_CXX='-KPIC'
14474             lt_prog_compiler_static_CXX='-Bstatic'
14475             ;;
14476         esac
14477         ;;
14478       tandem*)
14479         case $cc_basename in
14480           NCC*)
14481             # NonStop-UX NCC 3.20
14482             lt_prog_compiler_pic_CXX='-KPIC'
14483             ;;
14484           *)
14485             ;;
14486         esac
14487         ;;
14488       vxworks*)
14489         ;;
14490       *)
14491         lt_prog_compiler_can_build_shared_CXX=no
14492         ;;
14493     esac
14494   fi
14495
14496 case $host_os in
14497   # For platforms which do not support PIC, -DPIC is meaningless:
14498   *djgpp*)
14499     lt_prog_compiler_pic_CXX=
14500     ;;
14501   *)
14502     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14503     ;;
14504 esac
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14506 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14507
14508
14509
14510 #
14511 # Check to make sure the PIC flag actually works.
14512 #
14513 if test -n "$lt_prog_compiler_pic_CXX"; then
14514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14515 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14516 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14517   $as_echo_n "(cached) " >&6
14518 else
14519   lt_cv_prog_compiler_pic_works_CXX=no
14520    ac_outfile=conftest.$ac_objext
14521    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14522    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14523    # Insert the option either (1) after the last *FLAGS variable, or
14524    # (2) before a word containing "conftest.", or (3) at the end.
14525    # Note that $ac_compile itself does not contain backslashes and begins
14526    # with a dollar sign (not a hyphen), so the echo should work correctly.
14527    # The option is referenced via a variable to avoid confusing sed.
14528    lt_compile=`echo "$ac_compile" | $SED \
14529    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14531    -e 's:$: $lt_compiler_flag:'`
14532    (eval echo "\"\$as_me:14532: $lt_compile\"" >&5)
14533    (eval "$lt_compile" 2>conftest.err)
14534    ac_status=$?
14535    cat conftest.err >&5
14536    echo "$as_me:14536: \$? = $ac_status" >&5
14537    if (exit $ac_status) && test -s "$ac_outfile"; then
14538      # The compiler can only warn and ignore the option if not recognized
14539      # So say no if there are warnings other than the usual output.
14540      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14541      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14542      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14543        lt_cv_prog_compiler_pic_works_CXX=yes
14544      fi
14545    fi
14546    $RM conftest*
14547
14548 fi
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14550 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14551
14552 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14553     case $lt_prog_compiler_pic_CXX in
14554      "" | " "*) ;;
14555      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14556      esac
14557 else
14558     lt_prog_compiler_pic_CXX=
14559      lt_prog_compiler_can_build_shared_CXX=no
14560 fi
14561
14562 fi
14563
14564
14565
14566 #
14567 # Check to make sure the static flag actually works.
14568 #
14569 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14571 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14572 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14573   $as_echo_n "(cached) " >&6
14574 else
14575   lt_cv_prog_compiler_static_works_CXX=no
14576    save_LDFLAGS="$LDFLAGS"
14577    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14578    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14579    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14580      # The linker can only warn and ignore the option if not recognized
14581      # So say no if there are warnings
14582      if test -s conftest.err; then
14583        # Append any errors to the config.log.
14584        cat conftest.err 1>&5
14585        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14586        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14587        if diff conftest.exp conftest.er2 >/dev/null; then
14588          lt_cv_prog_compiler_static_works_CXX=yes
14589        fi
14590      else
14591        lt_cv_prog_compiler_static_works_CXX=yes
14592      fi
14593    fi
14594    $RM -r conftest*
14595    LDFLAGS="$save_LDFLAGS"
14596
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14599 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14600
14601 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14602     :
14603 else
14604     lt_prog_compiler_static_CXX=
14605 fi
14606
14607
14608
14609
14610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14611 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14612 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14613   $as_echo_n "(cached) " >&6
14614 else
14615   lt_cv_prog_compiler_c_o_CXX=no
14616    $RM -r conftest 2>/dev/null
14617    mkdir conftest
14618    cd conftest
14619    mkdir out
14620    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14621
14622    lt_compiler_flag="-o out/conftest2.$ac_objext"
14623    # Insert the option either (1) after the last *FLAGS variable, or
14624    # (2) before a word containing "conftest.", or (3) at the end.
14625    # Note that $ac_compile itself does not contain backslashes and begins
14626    # with a dollar sign (not a hyphen), so the echo should work correctly.
14627    lt_compile=`echo "$ac_compile" | $SED \
14628    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14629    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14630    -e 's:$: $lt_compiler_flag:'`
14631    (eval echo "\"\$as_me:14631: $lt_compile\"" >&5)
14632    (eval "$lt_compile" 2>out/conftest.err)
14633    ac_status=$?
14634    cat out/conftest.err >&5
14635    echo "$as_me:14635: \$? = $ac_status" >&5
14636    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14637    then
14638      # The compiler can only warn and ignore the option if not recognized
14639      # So say no if there are warnings
14640      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14641      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14642      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14643        lt_cv_prog_compiler_c_o_CXX=yes
14644      fi
14645    fi
14646    chmod u+w . 2>&5
14647    $RM conftest*
14648    # SGI C++ compiler will create directory out/ii_files/ for
14649    # template instantiation
14650    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14651    $RM out/* && rmdir out
14652    cd ..
14653    $RM -r conftest
14654    $RM conftest*
14655
14656 fi
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14658 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14659
14660
14661
14662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14663 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14664 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14665   $as_echo_n "(cached) " >&6
14666 else
14667   lt_cv_prog_compiler_c_o_CXX=no
14668    $RM -r conftest 2>/dev/null
14669    mkdir conftest
14670    cd conftest
14671    mkdir out
14672    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14673
14674    lt_compiler_flag="-o out/conftest2.$ac_objext"
14675    # Insert the option either (1) after the last *FLAGS variable, or
14676    # (2) before a word containing "conftest.", or (3) at the end.
14677    # Note that $ac_compile itself does not contain backslashes and begins
14678    # with a dollar sign (not a hyphen), so the echo should work correctly.
14679    lt_compile=`echo "$ac_compile" | $SED \
14680    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14682    -e 's:$: $lt_compiler_flag:'`
14683    (eval echo "\"\$as_me:14683: $lt_compile\"" >&5)
14684    (eval "$lt_compile" 2>out/conftest.err)
14685    ac_status=$?
14686    cat out/conftest.err >&5
14687    echo "$as_me:14687: \$? = $ac_status" >&5
14688    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14689    then
14690      # The compiler can only warn and ignore the option if not recognized
14691      # So say no if there are warnings
14692      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14693      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14694      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14695        lt_cv_prog_compiler_c_o_CXX=yes
14696      fi
14697    fi
14698    chmod u+w . 2>&5
14699    $RM conftest*
14700    # SGI C++ compiler will create directory out/ii_files/ for
14701    # template instantiation
14702    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14703    $RM out/* && rmdir out
14704    cd ..
14705    $RM -r conftest
14706    $RM conftest*
14707
14708 fi
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14710 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14711
14712
14713
14714
14715 hard_links="nottested"
14716 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14717   # do not overwrite the value of need_locks provided by the user
14718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14719 $as_echo_n "checking if we can lock with hard links... " >&6; }
14720   hard_links=yes
14721   $RM conftest*
14722   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14723   touch conftest.a
14724   ln conftest.a conftest.b 2>&5 || hard_links=no
14725   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14727 $as_echo "$hard_links" >&6; }
14728   if test "$hard_links" = no; then
14729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14730 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14731     need_locks=warn
14732   fi
14733 else
14734   need_locks=no
14735 fi
14736
14737
14738
14739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14740 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14741
14742   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14743   case $host_os in
14744   aix[4-9]*)
14745     # If we're using GNU nm, then we don't want the "-C" option.
14746     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14747     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14748       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14749     else
14750       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'
14751     fi
14752     ;;
14753   pw32*)
14754     export_symbols_cmds_CXX="$ltdll_cmds"
14755   ;;
14756   cygwin* | mingw* | cegcc*)
14757     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14758   ;;
14759   *)
14760     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14761   ;;
14762   esac
14763   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14764
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14766 $as_echo "$ld_shlibs_CXX" >&6; }
14767 test "$ld_shlibs_CXX" = no && can_build_shared=no
14768
14769 with_gnu_ld_CXX=$with_gnu_ld
14770
14771
14772
14773
14774
14775
14776 #
14777 # Do we need to explicitly link libc?
14778 #
14779 case "x$archive_cmds_need_lc_CXX" in
14780 x|xyes)
14781   # Assume -lc should be added
14782   archive_cmds_need_lc_CXX=yes
14783
14784   if test "$enable_shared" = yes && test "$GCC" = yes; then
14785     case $archive_cmds_CXX in
14786     *'~'*)
14787       # FIXME: we may have to deal with multi-command sequences.
14788       ;;
14789     '$CC '*)
14790       # Test whether the compiler implicitly links with -lc since on some
14791       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14792       # to ld, don't add -lc before -lgcc.
14793       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14794 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14795       $RM conftest*
14796       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14797
14798       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14799   (eval $ac_compile) 2>&5
14800   ac_status=$?
14801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14802   test $ac_status = 0; } 2>conftest.err; then
14803         soname=conftest
14804         lib=conftest
14805         libobjs=conftest.$ac_objext
14806         deplibs=
14807         wl=$lt_prog_compiler_wl_CXX
14808         pic_flag=$lt_prog_compiler_pic_CXX
14809         compiler_flags=-v
14810         linker_flags=-v
14811         verstring=
14812         output_objdir=.
14813         libname=conftest
14814         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14815         allow_undefined_flag_CXX=
14816         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14817   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14818   ac_status=$?
14819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14820   test $ac_status = 0; }
14821         then
14822           archive_cmds_need_lc_CXX=no
14823         else
14824           archive_cmds_need_lc_CXX=yes
14825         fi
14826         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14827       else
14828         cat conftest.err 1>&5
14829       fi
14830       $RM conftest*
14831       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14832 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14833       ;;
14834     esac
14835   fi
14836   ;;
14837 esac
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14903 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14904
14905 library_names_spec=
14906 libname_spec='lib$name'
14907 soname_spec=
14908 shrext_cmds=".so"
14909 postinstall_cmds=
14910 postuninstall_cmds=
14911 finish_cmds=
14912 finish_eval=
14913 shlibpath_var=
14914 shlibpath_overrides_runpath=unknown
14915 version_type=none
14916 dynamic_linker="$host_os ld.so"
14917 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14918 need_lib_prefix=unknown
14919 hardcode_into_libs=no
14920
14921 # when you set need_version to no, make sure it does not cause -set_version
14922 # flags to be left without arguments
14923 need_version=unknown
14924
14925 case $host_os in
14926 aix3*)
14927   version_type=linux
14928   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14929   shlibpath_var=LIBPATH
14930
14931   # AIX 3 has no versioning support, so we append a major version to the name.
14932   soname_spec='${libname}${release}${shared_ext}$major'
14933   ;;
14934
14935 aix[4-9]*)
14936   version_type=linux
14937   need_lib_prefix=no
14938   need_version=no
14939   hardcode_into_libs=yes
14940   if test "$host_cpu" = ia64; then
14941     # AIX 5 supports IA64
14942     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14943     shlibpath_var=LD_LIBRARY_PATH
14944   else
14945     # With GCC up to 2.95.x, collect2 would create an import file
14946     # for dependence libraries.  The import file would start with
14947     # the line `#! .'.  This would cause the generated library to
14948     # depend on `.', always an invalid library.  This was fixed in
14949     # development snapshots of GCC prior to 3.0.
14950     case $host_os in
14951       aix4 | aix4.[01] | aix4.[01].*)
14952       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14953            echo ' yes '
14954            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14955         :
14956       else
14957         can_build_shared=no
14958       fi
14959       ;;
14960     esac
14961     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14962     # soname into executable. Probably we can add versioning support to
14963     # collect2, so additional links can be useful in future.
14964     if test "$aix_use_runtimelinking" = yes; then
14965       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14966       # instead of lib<name>.a to let people know that these are not
14967       # typical AIX shared libraries.
14968       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969     else
14970       # We preserve .a as extension for shared libraries through AIX4.2
14971       # and later when we are not doing run time linking.
14972       library_names_spec='${libname}${release}.a $libname.a'
14973       soname_spec='${libname}${release}${shared_ext}$major'
14974     fi
14975     shlibpath_var=LIBPATH
14976   fi
14977   ;;
14978
14979 amigaos*)
14980   case $host_cpu in
14981   powerpc)
14982     # Since July 2007 AmigaOS4 officially supports .so libraries.
14983     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985     ;;
14986   m68k)
14987     library_names_spec='$libname.ixlibrary $libname.a'
14988     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14989     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14990     ;;
14991   esac
14992   ;;
14993
14994 beos*)
14995   library_names_spec='${libname}${shared_ext}'
14996   dynamic_linker="$host_os ld.so"
14997   shlibpath_var=LIBRARY_PATH
14998   ;;
14999
15000 bsdi[45]*)
15001   version_type=linux
15002   need_version=no
15003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004   soname_spec='${libname}${release}${shared_ext}$major'
15005   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15006   shlibpath_var=LD_LIBRARY_PATH
15007   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15008   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15009   # the default ld.so.conf also contains /usr/contrib/lib and
15010   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15011   # libtool to hard-code these into programs
15012   ;;
15013
15014 cygwin* | mingw* | pw32* | cegcc*)
15015   version_type=windows
15016   shrext_cmds=".dll"
15017   need_version=no
15018   need_lib_prefix=no
15019
15020   case $GCC,$host_os in
15021   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15022     library_names_spec='$libname.dll.a'
15023     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15024     postinstall_cmds='base_file=`basename \${file}`~
15025       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15026       dldir=$destdir/`dirname \$dlpath`~
15027       test -d \$dldir || mkdir -p \$dldir~
15028       $install_prog $dir/$dlname \$dldir/$dlname~
15029       chmod a+x \$dldir/$dlname~
15030       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15031         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15032       fi'
15033     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15034       dlpath=$dir/\$dldll~
15035        $RM \$dlpath'
15036     shlibpath_overrides_runpath=yes
15037
15038     case $host_os in
15039     cygwin*)
15040       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15041       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15042       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15043       ;;
15044     mingw* | cegcc*)
15045       # MinGW DLLs use traditional 'lib' prefix
15046       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15047       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15048       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15049         # It is most probably a Windows format PATH printed by
15050         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15051         # path with ; separators, and with drive letters. We can handle the
15052         # drive letters (cygwin fileutils understands them), so leave them,
15053         # especially as we might pass files found there to a mingw objdump,
15054         # which wouldn't understand a cygwinified path. Ahh.
15055         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15056       else
15057         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15058       fi
15059       ;;
15060     pw32*)
15061       # pw32 DLLs use 'pw' prefix rather than 'lib'
15062       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15063       ;;
15064     esac
15065     ;;
15066
15067   *)
15068     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15069     ;;
15070   esac
15071   dynamic_linker='Win32 ld.exe'
15072   # FIXME: first we should search . and the directory the executable is in
15073   shlibpath_var=PATH
15074   ;;
15075
15076 darwin* | rhapsody*)
15077   dynamic_linker="$host_os dyld"
15078   version_type=darwin
15079   need_lib_prefix=no
15080   need_version=no
15081   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15082   soname_spec='${libname}${release}${major}$shared_ext'
15083   shlibpath_overrides_runpath=yes
15084   shlibpath_var=DYLD_LIBRARY_PATH
15085   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15086
15087   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15088   ;;
15089
15090 dgux*)
15091   version_type=linux
15092   need_lib_prefix=no
15093   need_version=no
15094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15095   soname_spec='${libname}${release}${shared_ext}$major'
15096   shlibpath_var=LD_LIBRARY_PATH
15097   ;;
15098
15099 freebsd1*)
15100   dynamic_linker=no
15101   ;;
15102
15103 freebsd* | dragonfly*)
15104   # DragonFly does not have aout.  When/if they implement a new
15105   # versioning mechanism, adjust this.
15106   if test -x /usr/bin/objformat; then
15107     objformat=`/usr/bin/objformat`
15108   else
15109     case $host_os in
15110     freebsd[123]*) objformat=aout ;;
15111     *) objformat=elf ;;
15112     esac
15113   fi
15114   version_type=freebsd-$objformat
15115   case $version_type in
15116     freebsd-elf*)
15117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15118       need_version=no
15119       need_lib_prefix=no
15120       ;;
15121     freebsd-*)
15122       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15123       need_version=yes
15124       ;;
15125   esac
15126   shlibpath_var=LD_LIBRARY_PATH
15127   case $host_os in
15128   freebsd2*)
15129     shlibpath_overrides_runpath=yes
15130     ;;
15131   freebsd3.[01]* | freebsdelf3.[01]*)
15132     shlibpath_overrides_runpath=yes
15133     hardcode_into_libs=yes
15134     ;;
15135   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15136   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15137     shlibpath_overrides_runpath=no
15138     hardcode_into_libs=yes
15139     ;;
15140   *) # from 4.6 on, and DragonFly
15141     shlibpath_overrides_runpath=yes
15142     hardcode_into_libs=yes
15143     ;;
15144   esac
15145   ;;
15146
15147 gnu*)
15148   version_type=linux
15149   need_lib_prefix=no
15150   need_version=no
15151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15152   soname_spec='${libname}${release}${shared_ext}$major'
15153   shlibpath_var=LD_LIBRARY_PATH
15154   hardcode_into_libs=yes
15155   ;;
15156
15157 hpux9* | hpux10* | hpux11*)
15158   # Give a soname corresponding to the major version so that dld.sl refuses to
15159   # link against other versions.
15160   version_type=sunos
15161   need_lib_prefix=no
15162   need_version=no
15163   case $host_cpu in
15164   ia64*)
15165     shrext_cmds='.so'
15166     hardcode_into_libs=yes
15167     dynamic_linker="$host_os dld.so"
15168     shlibpath_var=LD_LIBRARY_PATH
15169     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171     soname_spec='${libname}${release}${shared_ext}$major'
15172     if test "X$HPUX_IA64_MODE" = X32; then
15173       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15174     else
15175       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15176     fi
15177     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15178     ;;
15179   hppa*64*)
15180     shrext_cmds='.sl'
15181     hardcode_into_libs=yes
15182     dynamic_linker="$host_os dld.sl"
15183     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15184     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186     soname_spec='${libname}${release}${shared_ext}$major'
15187     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15188     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15189     ;;
15190   *)
15191     shrext_cmds='.sl'
15192     dynamic_linker="$host_os dld.sl"
15193     shlibpath_var=SHLIB_PATH
15194     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196     soname_spec='${libname}${release}${shared_ext}$major'
15197     ;;
15198   esac
15199   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15200   postinstall_cmds='chmod 555 $lib'
15201   ;;
15202
15203 interix[3-9]*)
15204   version_type=linux
15205   need_lib_prefix=no
15206   need_version=no
15207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15208   soname_spec='${libname}${release}${shared_ext}$major'
15209   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15210   shlibpath_var=LD_LIBRARY_PATH
15211   shlibpath_overrides_runpath=no
15212   hardcode_into_libs=yes
15213   ;;
15214
15215 irix5* | irix6* | nonstopux*)
15216   case $host_os in
15217     nonstopux*) version_type=nonstopux ;;
15218     *)
15219         if test "$lt_cv_prog_gnu_ld" = yes; then
15220                 version_type=linux
15221         else
15222                 version_type=irix
15223         fi ;;
15224   esac
15225   need_lib_prefix=no
15226   need_version=no
15227   soname_spec='${libname}${release}${shared_ext}$major'
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15229   case $host_os in
15230   irix5* | nonstopux*)
15231     libsuff= shlibsuff=
15232     ;;
15233   *)
15234     case $LD in # libtool.m4 will add one of these switches to LD
15235     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15236       libsuff= shlibsuff= libmagic=32-bit;;
15237     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15238       libsuff=32 shlibsuff=N32 libmagic=N32;;
15239     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15240       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15241     *) libsuff= shlibsuff= libmagic=never-match;;
15242     esac
15243     ;;
15244   esac
15245   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15246   shlibpath_overrides_runpath=no
15247   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15248   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15249   hardcode_into_libs=yes
15250   ;;
15251
15252 # No shared lib support for Linux oldld, aout, or coff.
15253 linux*oldld* | linux*aout* | linux*coff*)
15254   dynamic_linker=no
15255   ;;
15256
15257 # This must be Linux ELF.
15258 linux* | k*bsd*-gnu)
15259   version_type=linux
15260   need_lib_prefix=no
15261   need_version=no
15262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263   soname_spec='${libname}${release}${shared_ext}$major'
15264   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15265   shlibpath_var=LD_LIBRARY_PATH
15266   shlibpath_overrides_runpath=no
15267   # Some binutils ld are patched to set DT_RUNPATH
15268   save_LDFLAGS=$LDFLAGS
15269   save_libdir=$libdir
15270   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15271        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h.  */
15274
15275 int
15276 main ()
15277 {
15278
15279   ;
15280   return 0;
15281 }
15282 _ACEOF
15283 if ac_fn_cxx_try_link "$LINENO"; then :
15284   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15285   shlibpath_overrides_runpath=yes
15286 fi
15287 fi
15288 rm -f core conftest.err conftest.$ac_objext \
15289     conftest$ac_exeext conftest.$ac_ext
15290   LDFLAGS=$save_LDFLAGS
15291   libdir=$save_libdir
15292
15293   # This implies no fast_install, which is unacceptable.
15294   # Some rework will be needed to allow for fast_install
15295   # before this can be enabled.
15296   hardcode_into_libs=yes
15297
15298   # Append ld.so.conf contents to the search path
15299   if test -f /etc/ld.so.conf; then
15300     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;/^$/d' | tr '\n' ' '`
15301     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15302   fi
15303
15304   # We used to test for /lib/ld.so.1 and disable shared libraries on
15305   # powerpc, because MkLinux only supported shared libraries with the
15306   # GNU dynamic linker.  Since this was broken with cross compilers,
15307   # most powerpc-linux boxes support dynamic linking these days and
15308   # people can always --disable-shared, the test was removed, and we
15309   # assume the GNU/Linux dynamic linker is in use.
15310   dynamic_linker='GNU/Linux ld.so'
15311   ;;
15312
15313 netbsd*)
15314   version_type=sunos
15315   need_lib_prefix=no
15316   need_version=no
15317   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15319     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15320     dynamic_linker='NetBSD (a.out) ld.so'
15321   else
15322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15323     soname_spec='${libname}${release}${shared_ext}$major'
15324     dynamic_linker='NetBSD ld.elf_so'
15325   fi
15326   shlibpath_var=LD_LIBRARY_PATH
15327   shlibpath_overrides_runpath=yes
15328   hardcode_into_libs=yes
15329   ;;
15330
15331 newsos6)
15332   version_type=linux
15333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334   shlibpath_var=LD_LIBRARY_PATH
15335   shlibpath_overrides_runpath=yes
15336   ;;
15337
15338 *nto* | *qnx*)
15339   version_type=qnx
15340   need_lib_prefix=no
15341   need_version=no
15342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15343   soname_spec='${libname}${release}${shared_ext}$major'
15344   shlibpath_var=LD_LIBRARY_PATH
15345   shlibpath_overrides_runpath=no
15346   hardcode_into_libs=yes
15347   dynamic_linker='ldqnx.so'
15348   ;;
15349
15350 openbsd*)
15351   version_type=sunos
15352   sys_lib_dlsearch_path_spec="/usr/lib"
15353   need_lib_prefix=no
15354   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15355   case $host_os in
15356     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15357     *)                          need_version=no  ;;
15358   esac
15359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15360   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15361   shlibpath_var=LD_LIBRARY_PATH
15362   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15363     case $host_os in
15364       openbsd2.[89] | openbsd2.[89].*)
15365         shlibpath_overrides_runpath=no
15366         ;;
15367       *)
15368         shlibpath_overrides_runpath=yes
15369         ;;
15370       esac
15371   else
15372     shlibpath_overrides_runpath=yes
15373   fi
15374   ;;
15375
15376 os2*)
15377   libname_spec='$name'
15378   shrext_cmds=".dll"
15379   need_lib_prefix=no
15380   library_names_spec='$libname${shared_ext} $libname.a'
15381   dynamic_linker='OS/2 ld.exe'
15382   shlibpath_var=LIBPATH
15383   ;;
15384
15385 osf3* | osf4* | osf5*)
15386   version_type=osf
15387   need_lib_prefix=no
15388   need_version=no
15389   soname_spec='${libname}${release}${shared_ext}$major'
15390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391   shlibpath_var=LD_LIBRARY_PATH
15392   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15393   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15394   ;;
15395
15396 rdos*)
15397   dynamic_linker=no
15398   ;;
15399
15400 solaris*)
15401   version_type=linux
15402   need_lib_prefix=no
15403   need_version=no
15404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405   soname_spec='${libname}${release}${shared_ext}$major'
15406   shlibpath_var=LD_LIBRARY_PATH
15407   shlibpath_overrides_runpath=yes
15408   hardcode_into_libs=yes
15409   # ldd complains unless libraries are executable
15410   postinstall_cmds='chmod +x $lib'
15411   ;;
15412
15413 sunos4*)
15414   version_type=sunos
15415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15416   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15417   shlibpath_var=LD_LIBRARY_PATH
15418   shlibpath_overrides_runpath=yes
15419   if test "$with_gnu_ld" = yes; then
15420     need_lib_prefix=no
15421   fi
15422   need_version=yes
15423   ;;
15424
15425 sysv4 | sysv4.3*)
15426   version_type=linux
15427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428   soname_spec='${libname}${release}${shared_ext}$major'
15429   shlibpath_var=LD_LIBRARY_PATH
15430   case $host_vendor in
15431     sni)
15432       shlibpath_overrides_runpath=no
15433       need_lib_prefix=no
15434       runpath_var=LD_RUN_PATH
15435       ;;
15436     siemens)
15437       need_lib_prefix=no
15438       ;;
15439     motorola)
15440       need_lib_prefix=no
15441       need_version=no
15442       shlibpath_overrides_runpath=no
15443       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15444       ;;
15445   esac
15446   ;;
15447
15448 sysv4*MP*)
15449   if test -d /usr/nec ;then
15450     version_type=linux
15451     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15452     soname_spec='$libname${shared_ext}.$major'
15453     shlibpath_var=LD_LIBRARY_PATH
15454   fi
15455   ;;
15456
15457 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15458   version_type=freebsd-elf
15459   need_lib_prefix=no
15460   need_version=no
15461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15462   soname_spec='${libname}${release}${shared_ext}$major'
15463   shlibpath_var=LD_LIBRARY_PATH
15464   shlibpath_overrides_runpath=yes
15465   hardcode_into_libs=yes
15466   if test "$with_gnu_ld" = yes; then
15467     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15468   else
15469     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15470     case $host_os in
15471       sco3.2v5*)
15472         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15473         ;;
15474     esac
15475   fi
15476   sys_lib_dlsearch_path_spec='/usr/lib'
15477   ;;
15478
15479 tpf*)
15480   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15481   version_type=linux
15482   need_lib_prefix=no
15483   need_version=no
15484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485   shlibpath_var=LD_LIBRARY_PATH
15486   shlibpath_overrides_runpath=no
15487   hardcode_into_libs=yes
15488   ;;
15489
15490 uts4*)
15491   version_type=linux
15492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493   soname_spec='${libname}${release}${shared_ext}$major'
15494   shlibpath_var=LD_LIBRARY_PATH
15495   ;;
15496
15497 *)
15498   dynamic_linker=no
15499   ;;
15500 esac
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15502 $as_echo "$dynamic_linker" >&6; }
15503 test "$dynamic_linker" = no && can_build_shared=no
15504
15505 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15506 if test "$GCC" = yes; then
15507   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15508 fi
15509
15510 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15511   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15512 fi
15513 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15514   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15515 fi
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15553 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15554 hardcode_action_CXX=
15555 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15556    test -n "$runpath_var_CXX" ||
15557    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15558
15559   # We can hardcode non-existent directories.
15560   if test "$hardcode_direct_CXX" != no &&
15561      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15562      # have to relink, otherwise we might link with an installed library
15563      # when we should be linking with a yet-to-be-installed one
15564      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15565      test "$hardcode_minus_L_CXX" != no; then
15566     # Linking always hardcodes the temporary library directory.
15567     hardcode_action_CXX=relink
15568   else
15569     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15570     hardcode_action_CXX=immediate
15571   fi
15572 else
15573   # We cannot hardcode anything, or else we can only hardcode existing
15574   # directories.
15575   hardcode_action_CXX=unsupported
15576 fi
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15578 $as_echo "$hardcode_action_CXX" >&6; }
15579
15580 if test "$hardcode_action_CXX" = relink ||
15581    test "$inherit_rpath_CXX" = yes; then
15582   # Fast installation is not supported
15583   enable_fast_install=no
15584 elif test "$shlibpath_overrides_runpath" = yes ||
15585      test "$enable_shared" = no; then
15586   # Fast installation is not necessary
15587   enable_fast_install=needless
15588 fi
15589
15590
15591
15592
15593
15594
15595
15596   fi # test -n "$compiler"
15597
15598   CC=$lt_save_CC
15599   LDCXX=$LD
15600   LD=$lt_save_LD
15601   GCC=$lt_save_GCC
15602   with_gnu_ld=$lt_save_with_gnu_ld
15603   lt_cv_path_LDCXX=$lt_cv_path_LD
15604   lt_cv_path_LD=$lt_save_path_LD
15605   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15606   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15607 fi # test "$_lt_caught_CXX_error" != yes
15608
15609 ac_ext=c
15610 ac_cpp='$CPP $CPPFLAGS'
15611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627         ac_config_commands="$ac_config_commands libtool"
15628
15629
15630
15631
15632 # Only expand once:
15633
15634
15635
15636
15637 if test x$use_libtool != xno; then
15638    DEFAULT_OBJECT_TYPE=".lo"
15639    DEFAULT_ARCHIVE_TYPE=".la"
15640    DEFAULT_SHARED_OBJECT_TYPE=".la"
15641    LIBTOOL="\$(LIBTOOL)"
15642    LIBTOOL_INSTALL_TARGET="libtool-install"
15643    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15644    LIBTOOL_CLEAN_TARGET="libtool-clean"
15645    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15646    FD_PLUGIN_DIR="src/plugins/fd"
15647    have_plugins=yes
15648 else
15649    DEFAULT_OBJECT_TYPE=".o"
15650    DEFAULT_ARCHIVE_TYPE=".a"
15651    DEFAULT_SHARED_OBJECT_TYPE=".so"
15652    LIBTOOL="# \$(LIBTOOL)"
15653    LIBTOOL_INSTALL_TARGET=""
15654    LIBTOOL_UNINSTALL_TARGET=""
15655    LIBTOOL_CLEAN_TARGET=""
15656    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15657    FD_PLUGIN_DIR=""
15658    have_plugins=no
15659 fi
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671 # Check whether --enable-includes was given.
15672 if test "${enable_includes+set}" = set; then :
15673   enableval=$enable_includes;
15674        if test x$enableval = xyes; then
15675           install_includes=yes
15676        fi
15677
15678
15679 fi
15680
15681
15682
15683 if test x$use_libtool != xno -a x$install_includes = xyes; then
15684    INCLUDE_INSTALL_TARGET="install-includes"
15685    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15686 else
15687    INCLUDE_INSTALL_TARGET=""
15688    INCLUDE_UNINSTALL_TARGET=""
15689 fi
15690
15691
15692
15693
15694
15695 case $host_os in
15696   *cygwin* ) CYGWIN=yes;;
15697          * ) CYGWIN=no;;
15698 esac
15699
15700 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15701 then
15702
15703
15704 if $TRUEPRG; then
15705   HAVE_SUN_OS_TRUE=
15706   HAVE_SUN_OS_FALSE='#'
15707 else
15708   HAVE_SUN_OS_TRUE='#'
15709   HAVE_SUN_OS_FALSE=
15710 fi
15711         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15712
15713 else
15714
15715
15716 if $FALSEPRG; then
15717   HAVE_SUN_OS_TRUE=
15718   HAVE_SUN_OS_FALSE='#'
15719 else
15720   HAVE_SUN_OS_TRUE='#'
15721   HAVE_SUN_OS_FALSE=
15722 fi
15723 fi
15724
15725 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15726 then
15727
15728
15729 if $TRUEPRG; then
15730   HAVE_OSF1_OS_TRUE=
15731   HAVE_OSF1_OS_FALSE='#'
15732 else
15733   HAVE_OSF1_OS_TRUE='#'
15734   HAVE_OSF1_OS_FALSE=
15735 fi
15736         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15737
15738 else
15739
15740
15741 if $FALSEPRG; then
15742   HAVE_OSF1_OS_TRUE=
15743   HAVE_OSF1_OS_FALSE='#'
15744 else
15745   HAVE_OSF1_OS_TRUE='#'
15746   HAVE_OSF1_OS_FALSE=
15747 fi
15748 fi
15749
15750 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15751 then
15752
15753
15754 if $TRUEPRG; then
15755   HAVE_AIX_OS_TRUE=
15756   HAVE_AIX_OS_FALSE='#'
15757 else
15758   HAVE_AIX_OS_TRUE='#'
15759   HAVE_AIX_OS_FALSE=
15760 fi
15761         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15762
15763 else
15764
15765
15766 if $FALSEPRG; then
15767   HAVE_AIX_OS_TRUE=
15768   HAVE_AIX_OS_FALSE='#'
15769 else
15770   HAVE_AIX_OS_TRUE='#'
15771   HAVE_AIX_OS_FALSE=
15772 fi
15773 fi
15774
15775 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15776 then
15777
15778
15779 if $TRUEPRG; then
15780   HAVE_HPUX_OS_TRUE=
15781   HAVE_HPUX_OS_FALSE='#'
15782 else
15783   HAVE_HPUX_OS_TRUE='#'
15784   HAVE_HPUX_OS_FALSE=
15785 fi
15786         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15787
15788 else
15789
15790
15791 if $FALSEPRG; then
15792   HAVE_HPUX_OS_TRUE=
15793   HAVE_HPUX_OS_FALSE='#'
15794 else
15795   HAVE_HPUX_OS_TRUE='#'
15796   HAVE_HPUX_OS_FALSE=
15797 fi
15798 fi
15799
15800 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15801 then
15802
15803
15804 if $TRUEPRG; then
15805   HAVE_LINUX_OS_TRUE=
15806   HAVE_LINUX_OS_FALSE='#'
15807 else
15808   HAVE_LINUX_OS_TRUE='#'
15809   HAVE_LINUX_OS_FALSE=
15810 fi
15811         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15812
15813 else
15814
15815
15816 if $FALSEPRG; then
15817   HAVE_LINUX_OS_TRUE=
15818   HAVE_LINUX_OS_FALSE='#'
15819 else
15820   HAVE_LINUX_OS_TRUE='#'
15821   HAVE_LINUX_OS_FALSE=
15822 fi
15823 fi
15824
15825 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15826 then
15827
15828
15829 if $TRUEPRG; then
15830   HAVE_FREEBSD_OS_TRUE=
15831   HAVE_FREEBSD_OS_FALSE='#'
15832 else
15833   HAVE_FREEBSD_OS_TRUE='#'
15834   HAVE_FREEBSD_OS_FALSE=
15835 fi
15836         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15837
15838 else
15839
15840
15841 if $FALSEPRG; then
15842   HAVE_FREEBSD_OS_TRUE=
15843   HAVE_FREEBSD_OS_FALSE='#'
15844 else
15845   HAVE_FREEBSD_OS_TRUE='#'
15846   HAVE_FREEBSD_OS_FALSE=
15847 fi
15848 fi
15849
15850 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15851 then
15852
15853
15854 if $TRUEPRG; then
15855   HAVE_NETBSD_OS_TRUE=
15856   HAVE_NETBSD_OS_FALSE='#'
15857 else
15858   HAVE_NETBSD_OS_TRUE='#'
15859   HAVE_NETBSD_OS_FALSE=
15860 fi
15861         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15862
15863 else
15864
15865
15866 if $FALSEPRG; then
15867   HAVE_NETBSD_OS_TRUE=
15868   HAVE_NETBSD_OS_FALSE='#'
15869 else
15870   HAVE_NETBSD_OS_TRUE='#'
15871   HAVE_NETBSD_OS_FALSE=
15872 fi
15873 fi
15874
15875 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15876 then
15877
15878
15879 if $TRUEPRG; then
15880   HAVE_OPENBSD_OS_TRUE=
15881   HAVE_OPENBSD_OS_FALSE='#'
15882 else
15883   HAVE_OPENBSD_OS_TRUE='#'
15884   HAVE_OPENBSD_OS_FALSE=
15885 fi
15886         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15887
15888 else
15889
15890
15891 if $FALSEPRG; then
15892   HAVE_OPENBSD_OS_TRUE=
15893   HAVE_OPENBSD_OS_FALSE='#'
15894 else
15895   HAVE_OPENBSD_OS_TRUE='#'
15896   HAVE_OPENBSD_OS_FALSE=
15897 fi
15898 fi
15899
15900 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15901 then
15902
15903
15904 if $TRUEPRG; then
15905   HAVE_BSDI_OS_TRUE=
15906   HAVE_BSDI_OS_FALSE='#'
15907 else
15908   HAVE_BSDI_OS_TRUE='#'
15909   HAVE_BSDI_OS_FALSE=
15910 fi
15911         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15912
15913 else
15914
15915
15916 if $FALSEPRG; then
15917   HAVE_BSDI_OS_TRUE=
15918   HAVE_BSDI_OS_FALSE='#'
15919 else
15920   HAVE_BSDI_OS_TRUE='#'
15921   HAVE_BSDI_OS_FALSE=
15922 fi
15923 fi
15924
15925 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15926 then
15927
15928
15929 if $TRUEPRG; then
15930   HAVE_SGI_OS_TRUE=
15931   HAVE_SGI_OS_FALSE='#'
15932 else
15933   HAVE_SGI_OS_TRUE='#'
15934   HAVE_SGI_OS_FALSE=
15935 fi
15936         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15937
15938 else
15939
15940
15941 if $FALSEPRG; then
15942   HAVE_SGI_OS_TRUE=
15943   HAVE_SGI_OS_FALSE='#'
15944 else
15945   HAVE_SGI_OS_TRUE='#'
15946   HAVE_SGI_OS_FALSE=
15947 fi
15948 fi
15949
15950 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15951 then
15952
15953
15954 if $TRUEPRG; then
15955   HAVE_IRIX_OS_TRUE=
15956   HAVE_IRIX_OS_FALSE='#'
15957 else
15958   HAVE_IRIX_OS_TRUE='#'
15959   HAVE_IRIX_OS_FALSE=
15960 fi
15961         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15962
15963 else
15964
15965
15966 if $FALSEPRG; then
15967   HAVE_IRIX_OS_TRUE=
15968   HAVE_IRIX_OS_FALSE='#'
15969 else
15970   HAVE_IRIX_OS_TRUE='#'
15971   HAVE_IRIX_OS_FALSE=
15972 fi
15973 fi
15974
15975 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15976 then
15977
15978
15979 if $TRUEPRG; then
15980   HAVE_DARWIN_OS_TRUE=
15981   HAVE_DARWIN_OS_FALSE='#'
15982 else
15983   HAVE_DARWIN_OS_TRUE='#'
15984   HAVE_DARWIN_OS_FALSE=
15985 fi
15986     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15987
15988 else
15989
15990
15991 if $FALSEPRG; then
15992   HAVE_DARWIN_OS_TRUE=
15993   HAVE_DARWIN_OS_FALSE='#'
15994 else
15995   HAVE_DARWIN_OS_TRUE='#'
15996   HAVE_DARWIN_OS_FALSE=
15997 fi
15998 fi
15999
16000
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16002 $as_echo_n "checking for Operating System Distribution... " >&6; }
16003 if test "x$DISTNAME" != "x"
16004 then
16005         echo "distname set to $DISTNAME"
16006 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16007 then
16008         DISTNAME=alpha
16009 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16010 then
16011         DISTNAME=aix
16012 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16013 then
16014         DISTNAME=hpux
16015 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16016 then
16017         DISTNAME=solaris
16018 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16019 then
16020         DISTNAME=freebsd
16021 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16022 then
16023         DISTNAME=netbsd
16024 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16025 then
16026         DISTNAME=openbsd
16027 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16028 then
16029         DISTNAME=irix
16030 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16031 then
16032         DISTNAME=bsdi
16033 elif test -f /etc/SuSE-release
16034 then
16035         DISTNAME=suse
16036 elif test -d /etc/SuSEconfig
16037 then
16038         DISTNAME=suse5
16039 elif test -f /etc/mandrake-release
16040 then
16041         DISTNAME=mandrake
16042 elif test -f /etc/whitebox-release
16043 then
16044        DISTNAME=redhat
16045 elif test -f /etc/redhat-release
16046 then
16047         DISTNAME=redhat
16048 elif test -f /etc/gentoo-release
16049 then
16050         DISTNAME=gentoo
16051 elif test -f /etc/debian_version
16052 then
16053         DISTNAME=debian
16054 elif test -f /etc/slackware-version
16055 then
16056         DISTNAME=slackware
16057 elif test x$host_vendor = xapple
16058 then
16059     DISTNAME=osx
16060 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16061 then
16062     DISTNAME=darwin
16063 elif test -f /etc/engarde-version
16064 then
16065         DISTNAME=engarde
16066 elif test -f /etc/arch-release
16067 then
16068         DISTNAME=archlinux
16069 elif test "$CYGWIN" = yes
16070 then
16071         DISTNAME=cygwin
16072         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16073
16074 else
16075         DISTNAME=unknown
16076 fi
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16078 $as_echo "done" >&6; }
16079
16080
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16082 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16083 set x ${MAKE-make}
16084 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16085 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16086   $as_echo_n "(cached) " >&6
16087 else
16088   cat >conftest.make <<\_ACEOF
16089 SHELL = /bin/sh
16090 all:
16091         @echo '@@@%%%=$(MAKE)=@@@%%%'
16092 _ACEOF
16093 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16094 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16095   *@@@%%%=?*=@@@%%%*)
16096     eval ac_cv_prog_make_${ac_make}_set=yes;;
16097   *)
16098     eval ac_cv_prog_make_${ac_make}_set=no;;
16099 esac
16100 rm -f conftest.make
16101 fi
16102 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16104 $as_echo "yes" >&6; }
16105   SET_MAKE=
16106 else
16107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108 $as_echo "no" >&6; }
16109   SET_MAKE="MAKE=${MAKE-make}"
16110 fi
16111
16112
16113
16114         MKINSTALLDIRS=
16115   if test -n "$ac_aux_dir"; then
16116     case "$ac_aux_dir" in
16117       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16118       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16119     esac
16120   fi
16121   if test -z "$MKINSTALLDIRS"; then
16122     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16123   fi
16124
16125
16126
16127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16128 $as_echo_n "checking whether NLS is requested... " >&6; }
16129     # Check whether --enable-nls was given.
16130 if test "${enable_nls+set}" = set; then :
16131   enableval=$enable_nls; USE_NLS=$enableval
16132 else
16133   USE_NLS=yes
16134 fi
16135
16136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16137 $as_echo "$USE_NLS" >&6; }
16138
16139
16140
16141
16142
16143
16144 # Prepare PATH_SEPARATOR.
16145 # The user is always right.
16146 if test "${PATH_SEPARATOR+set}" != set; then
16147   echo "#! /bin/sh" >conf$$.sh
16148   echo  "exit 0"   >>conf$$.sh
16149   chmod +x conf$$.sh
16150   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16151     PATH_SEPARATOR=';'
16152   else
16153     PATH_SEPARATOR=:
16154   fi
16155   rm -f conf$$.sh
16156 fi
16157
16158 # Find out how to test for executable files. Don't use a zero-byte file,
16159 # as systems may use methods other than mode bits to determine executability.
16160 cat >conf$$.file <<_ASEOF
16161 #! /bin/sh
16162 exit 0
16163 _ASEOF
16164 chmod +x conf$$.file
16165 if test -x conf$$.file >/dev/null 2>&1; then
16166   ac_executable_p="test -x"
16167 else
16168   ac_executable_p="test -f"
16169 fi
16170 rm -f conf$$.file
16171
16172 # Extract the first word of "msgfmt", so it can be a program name with args.
16173 set dummy msgfmt; ac_word=$2
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16175 $as_echo_n "checking for $ac_word... " >&6; }
16176 if ${ac_cv_path_MSGFMT+:} false; then :
16177   $as_echo_n "(cached) " >&6
16178 else
16179   case "$MSGFMT" in
16180   [\\/]* | ?:[\\/]*)
16181     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16182     ;;
16183   *)
16184     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16185     for ac_dir in $PATH; do
16186       IFS="$ac_save_IFS"
16187       test -z "$ac_dir" && ac_dir=.
16188       for ac_exec_ext in '' $ac_executable_extensions; do
16189         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16190           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16191           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16192      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16193             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16194             break 2
16195           fi
16196         fi
16197       done
16198     done
16199     IFS="$ac_save_IFS"
16200   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16201     ;;
16202 esac
16203 fi
16204 MSGFMT="$ac_cv_path_MSGFMT"
16205 if test "$MSGFMT" != ":"; then
16206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16207 $as_echo "$MSGFMT" >&6; }
16208 else
16209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 $as_echo "no" >&6; }
16211 fi
16212
16213   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16214 set dummy gmsgfmt; ac_word=$2
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16216 $as_echo_n "checking for $ac_word... " >&6; }
16217 if ${ac_cv_path_GMSGFMT+:} false; then :
16218   $as_echo_n "(cached) " >&6
16219 else
16220   case $GMSGFMT in
16221   [\\/]* | ?:[\\/]*)
16222   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16223   ;;
16224   *)
16225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16226 for as_dir in $PATH
16227 do
16228   IFS=$as_save_IFS
16229   test -z "$as_dir" && as_dir=.
16230     for ac_exec_ext in '' $ac_executable_extensions; do
16231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16232     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16234     break 2
16235   fi
16236 done
16237   done
16238 IFS=$as_save_IFS
16239
16240   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16241   ;;
16242 esac
16243 fi
16244 GMSGFMT=$ac_cv_path_GMSGFMT
16245 if test -n "$GMSGFMT"; then
16246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16247 $as_echo "$GMSGFMT" >&6; }
16248 else
16249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250 $as_echo "no" >&6; }
16251 fi
16252
16253
16254
16255
16256 # Prepare PATH_SEPARATOR.
16257 # The user is always right.
16258 if test "${PATH_SEPARATOR+set}" != set; then
16259   echo "#! /bin/sh" >conf$$.sh
16260   echo  "exit 0"   >>conf$$.sh
16261   chmod +x conf$$.sh
16262   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16263     PATH_SEPARATOR=';'
16264   else
16265     PATH_SEPARATOR=:
16266   fi
16267   rm -f conf$$.sh
16268 fi
16269
16270 # Find out how to test for executable files. Don't use a zero-byte file,
16271 # as systems may use methods other than mode bits to determine executability.
16272 cat >conf$$.file <<_ASEOF
16273 #! /bin/sh
16274 exit 0
16275 _ASEOF
16276 chmod +x conf$$.file
16277 if test -x conf$$.file >/dev/null 2>&1; then
16278   ac_executable_p="test -x"
16279 else
16280   ac_executable_p="test -f"
16281 fi
16282 rm -f conf$$.file
16283
16284 # Extract the first word of "xgettext", so it can be a program name with args.
16285 set dummy xgettext; ac_word=$2
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16287 $as_echo_n "checking for $ac_word... " >&6; }
16288 if ${ac_cv_path_XGETTEXT+:} false; then :
16289   $as_echo_n "(cached) " >&6
16290 else
16291   case "$XGETTEXT" in
16292   [\\/]* | ?:[\\/]*)
16293     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16294     ;;
16295   *)
16296     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16297     for ac_dir in $PATH; do
16298       IFS="$ac_save_IFS"
16299       test -z "$ac_dir" && ac_dir=.
16300       for ac_exec_ext in '' $ac_executable_extensions; do
16301         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16302           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16303           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16304      (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
16305             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16306             break 2
16307           fi
16308         fi
16309       done
16310     done
16311     IFS="$ac_save_IFS"
16312   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16313     ;;
16314 esac
16315 fi
16316 XGETTEXT="$ac_cv_path_XGETTEXT"
16317 if test "$XGETTEXT" != ":"; then
16318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16319 $as_echo "$XGETTEXT" >&6; }
16320 else
16321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16322 $as_echo "no" >&6; }
16323 fi
16324
16325     rm -f messages.po
16326
16327
16328 # Prepare PATH_SEPARATOR.
16329 # The user is always right.
16330 if test "${PATH_SEPARATOR+set}" != set; then
16331   echo "#! /bin/sh" >conf$$.sh
16332   echo  "exit 0"   >>conf$$.sh
16333   chmod +x conf$$.sh
16334   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16335     PATH_SEPARATOR=';'
16336   else
16337     PATH_SEPARATOR=:
16338   fi
16339   rm -f conf$$.sh
16340 fi
16341
16342 # Find out how to test for executable files. Don't use a zero-byte file,
16343 # as systems may use methods other than mode bits to determine executability.
16344 cat >conf$$.file <<_ASEOF
16345 #! /bin/sh
16346 exit 0
16347 _ASEOF
16348 chmod +x conf$$.file
16349 if test -x conf$$.file >/dev/null 2>&1; then
16350   ac_executable_p="test -x"
16351 else
16352   ac_executable_p="test -f"
16353 fi
16354 rm -f conf$$.file
16355
16356 # Extract the first word of "msgmerge", so it can be a program name with args.
16357 set dummy msgmerge; ac_word=$2
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16359 $as_echo_n "checking for $ac_word... " >&6; }
16360 if ${ac_cv_path_MSGMERGE+:} false; then :
16361   $as_echo_n "(cached) " >&6
16362 else
16363   case "$MSGMERGE" in
16364   [\\/]* | ?:[\\/]*)
16365     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16366     ;;
16367   *)
16368     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16369     for ac_dir in $PATH; do
16370       IFS="$ac_save_IFS"
16371       test -z "$ac_dir" && ac_dir=.
16372       for ac_exec_ext in '' $ac_executable_extensions; do
16373         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16374           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16375           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16376             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16377             break 2
16378           fi
16379         fi
16380       done
16381     done
16382     IFS="$ac_save_IFS"
16383   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16384     ;;
16385 esac
16386 fi
16387 MSGMERGE="$ac_cv_path_MSGMERGE"
16388 if test "$MSGMERGE" != ":"; then
16389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16390 $as_echo "$MSGMERGE" >&6; }
16391 else
16392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16393 $as_echo "no" >&6; }
16394 fi
16395
16396
16397       if test "$GMSGFMT" != ":"; then
16398             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16399        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16400       : ;
16401     else
16402       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16403       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16404 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16405       GMSGFMT=":"
16406     fi
16407   fi
16408
16409       if test "$XGETTEXT" != ":"; then
16410             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16411        (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
16412       : ;
16413     else
16414       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16415 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16416       XGETTEXT=":"
16417     fi
16418         rm -f messages.po
16419   fi
16420
16421   ac_config_commands="$ac_config_commands default-1"
16422
16423
16424
16425       if test "X$prefix" = "XNONE"; then
16426     acl_final_prefix="$ac_default_prefix"
16427   else
16428     acl_final_prefix="$prefix"
16429   fi
16430   if test "X$exec_prefix" = "XNONE"; then
16431     acl_final_exec_prefix='${prefix}'
16432   else
16433     acl_final_exec_prefix="$exec_prefix"
16434   fi
16435   acl_save_prefix="$prefix"
16436   prefix="$acl_final_prefix"
16437   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16438   prefix="$acl_save_prefix"
16439
16440
16441 # Check whether --with-gnu-ld was given.
16442 if test "${with_gnu_ld+set}" = set; then :
16443   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16444 else
16445   with_gnu_ld=no
16446 fi
16447
16448 # Prepare PATH_SEPARATOR.
16449 # The user is always right.
16450 if test "${PATH_SEPARATOR+set}" != set; then
16451   echo "#! /bin/sh" >conf$$.sh
16452   echo  "exit 0"   >>conf$$.sh
16453   chmod +x conf$$.sh
16454   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16455     PATH_SEPARATOR=';'
16456   else
16457     PATH_SEPARATOR=:
16458   fi
16459   rm -f conf$$.sh
16460 fi
16461 ac_prog=ld
16462 if test "$GCC" = yes; then
16463   # Check if gcc -print-prog-name=ld gives a path.
16464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16465 $as_echo_n "checking for ld used by GCC... " >&6; }
16466   case $host in
16467   *-*-mingw*)
16468     # gcc leaves a trailing carriage return which upsets mingw
16469     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16470   *)
16471     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16472   esac
16473   case $ac_prog in
16474     # Accept absolute paths.
16475     [\\/]* | [A-Za-z]:[\\/]*)
16476       re_direlt='/[^/][^/]*/\.\./'
16477       # Canonicalize the path of ld
16478       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16479       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16480         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16481       done
16482       test -z "$LD" && LD="$ac_prog"
16483       ;;
16484   "")
16485     # If it fails, then pretend we aren't using GCC.
16486     ac_prog=ld
16487     ;;
16488   *)
16489     # If it is relative, then search for the first ld in PATH.
16490     with_gnu_ld=unknown
16491     ;;
16492   esac
16493 elif test "$with_gnu_ld" = yes; then
16494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16495 $as_echo_n "checking for GNU ld... " >&6; }
16496 else
16497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16498 $as_echo_n "checking for non-GNU ld... " >&6; }
16499 fi
16500 if ${acl_cv_path_LD+:} false; then :
16501   $as_echo_n "(cached) " >&6
16502 else
16503   if test -z "$LD"; then
16504   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16505   for ac_dir in $PATH; do
16506     test -z "$ac_dir" && ac_dir=.
16507     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16508       acl_cv_path_LD="$ac_dir/$ac_prog"
16509       # Check to see if the program is GNU ld.  I'd rather use --version,
16510       # but apparently some GNU ld's only accept -v.
16511       # Break only if it was the GNU/non-GNU ld that we prefer.
16512       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16513       *GNU* | *'with BFD'*)
16514         test "$with_gnu_ld" != no && break ;;
16515       *)
16516         test "$with_gnu_ld" != yes && break ;;
16517       esac
16518     fi
16519   done
16520   IFS="$ac_save_ifs"
16521 else
16522   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16523 fi
16524 fi
16525
16526 LD="$acl_cv_path_LD"
16527 if test -n "$LD"; then
16528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16529 $as_echo "$LD" >&6; }
16530 else
16531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16532 $as_echo "no" >&6; }
16533 fi
16534 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16536 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16537 if ${acl_cv_prog_gnu_ld+:} false; then :
16538   $as_echo_n "(cached) " >&6
16539 else
16540   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16541 case `$LD -v 2>&1 </dev/null` in
16542 *GNU* | *'with BFD'*)
16543   acl_cv_prog_gnu_ld=yes ;;
16544 *)
16545   acl_cv_prog_gnu_ld=no ;;
16546 esac
16547 fi
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16549 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16550 with_gnu_ld=$acl_cv_prog_gnu_ld
16551
16552
16553
16554
16555                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16556 $as_echo_n "checking for shared library run path origin... " >&6; }
16557 if ${acl_cv_rpath+:} false; then :
16558   $as_echo_n "(cached) " >&6
16559 else
16560
16561     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16562     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16563     . ./conftest.sh
16564     rm -f ./conftest.sh
16565     acl_cv_rpath=done
16566
16567 fi
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16569 $as_echo "$acl_cv_rpath" >&6; }
16570   wl="$acl_cv_wl"
16571   libext="$acl_cv_libext"
16572   shlibext="$acl_cv_shlibext"
16573   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16574   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16575   hardcode_direct="$acl_cv_hardcode_direct"
16576   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16577     # Check whether --enable-rpath was given.
16578 if test "${enable_rpath+set}" = set; then :
16579   enableval=$enable_rpath; :
16580 else
16581   enable_rpath=yes
16582 fi
16583
16584
16585
16586
16587
16588
16589
16590
16591     use_additional=yes
16592
16593   acl_save_prefix="$prefix"
16594   prefix="$acl_final_prefix"
16595   acl_save_exec_prefix="$exec_prefix"
16596   exec_prefix="$acl_final_exec_prefix"
16597
16598     eval additional_includedir=\"$includedir\"
16599     eval additional_libdir=\"$libdir\"
16600
16601   exec_prefix="$acl_save_exec_prefix"
16602   prefix="$acl_save_prefix"
16603
16604
16605 # Check whether --with-libiconv-prefix was given.
16606 if test "${with_libiconv_prefix+set}" = set; then :
16607   withval=$with_libiconv_prefix;
16608     if test "X$withval" = "Xno"; then
16609       use_additional=no
16610     else
16611       if test "X$withval" = "X"; then
16612
16613   acl_save_prefix="$prefix"
16614   prefix="$acl_final_prefix"
16615   acl_save_exec_prefix="$exec_prefix"
16616   exec_prefix="$acl_final_exec_prefix"
16617
16618           eval additional_includedir=\"$includedir\"
16619           eval additional_libdir=\"$libdir\"
16620
16621   exec_prefix="$acl_save_exec_prefix"
16622   prefix="$acl_save_prefix"
16623
16624       else
16625         additional_includedir="$withval/include"
16626         additional_libdir="$withval/lib"
16627       fi
16628     fi
16629
16630 fi
16631
16632       LIBICONV=
16633   LTLIBICONV=
16634   INCICONV=
16635   rpathdirs=
16636   ltrpathdirs=
16637   names_already_handled=
16638   names_next_round='iconv '
16639   while test -n "$names_next_round"; do
16640     names_this_round="$names_next_round"
16641     names_next_round=
16642     for name in $names_this_round; do
16643       already_handled=
16644       for n in $names_already_handled; do
16645         if test "$n" = "$name"; then
16646           already_handled=yes
16647           break
16648         fi
16649       done
16650       if test -z "$already_handled"; then
16651         names_already_handled="$names_already_handled $name"
16652                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16653         eval value=\"\$HAVE_LIB$uppername\"
16654         if test -n "$value"; then
16655           if test "$value" = yes; then
16656             eval value=\"\$LIB$uppername\"
16657             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16658             eval value=\"\$LTLIB$uppername\"
16659             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16660           else
16661                                     :
16662           fi
16663         else
16664                               found_dir=
16665           found_la=
16666           found_so=
16667           found_a=
16668           if test $use_additional = yes; then
16669             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16670               found_dir="$additional_libdir"
16671               found_so="$additional_libdir/lib$name.$shlibext"
16672               if test -f "$additional_libdir/lib$name.la"; then
16673                 found_la="$additional_libdir/lib$name.la"
16674               fi
16675             else
16676               if test -f "$additional_libdir/lib$name.$libext"; then
16677                 found_dir="$additional_libdir"
16678                 found_a="$additional_libdir/lib$name.$libext"
16679                 if test -f "$additional_libdir/lib$name.la"; then
16680                   found_la="$additional_libdir/lib$name.la"
16681                 fi
16682               fi
16683             fi
16684           fi
16685           if test "X$found_dir" = "X"; then
16686             for x in $LDFLAGS $LTLIBICONV; do
16687
16688   acl_save_prefix="$prefix"
16689   prefix="$acl_final_prefix"
16690   acl_save_exec_prefix="$exec_prefix"
16691   exec_prefix="$acl_final_exec_prefix"
16692   eval x=\"$x\"
16693   exec_prefix="$acl_save_exec_prefix"
16694   prefix="$acl_save_prefix"
16695
16696               case "$x" in
16697                 -L*)
16698                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16699                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16700                     found_dir="$dir"
16701                     found_so="$dir/lib$name.$shlibext"
16702                     if test -f "$dir/lib$name.la"; then
16703                       found_la="$dir/lib$name.la"
16704                     fi
16705                   else
16706                     if test -f "$dir/lib$name.$libext"; then
16707                       found_dir="$dir"
16708                       found_a="$dir/lib$name.$libext"
16709                       if test -f "$dir/lib$name.la"; then
16710                         found_la="$dir/lib$name.la"
16711                       fi
16712                     fi
16713                   fi
16714                   ;;
16715               esac
16716               if test "X$found_dir" != "X"; then
16717                 break
16718               fi
16719             done
16720           fi
16721           if test "X$found_dir" != "X"; then
16722                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16723             if test "X$found_so" != "X"; then
16724                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16725                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16726               else
16727                                                                                 haveit=
16728                 for x in $ltrpathdirs; do
16729                   if test "X$x" = "X$found_dir"; then
16730                     haveit=yes
16731                     break
16732                   fi
16733                 done
16734                 if test -z "$haveit"; then
16735                   ltrpathdirs="$ltrpathdirs $found_dir"
16736                 fi
16737                                 if test "$hardcode_direct" = yes; then
16738                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16739                 else
16740                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16741                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16742                                                             haveit=
16743                     for x in $rpathdirs; do
16744                       if test "X$x" = "X$found_dir"; then
16745                         haveit=yes
16746                         break
16747                       fi
16748                     done
16749                     if test -z "$haveit"; then
16750                       rpathdirs="$rpathdirs $found_dir"
16751                     fi
16752                   else
16753                                                                                 haveit=
16754                     for x in $LDFLAGS $LIBICONV; do
16755
16756   acl_save_prefix="$prefix"
16757   prefix="$acl_final_prefix"
16758   acl_save_exec_prefix="$exec_prefix"
16759   exec_prefix="$acl_final_exec_prefix"
16760   eval x=\"$x\"
16761   exec_prefix="$acl_save_exec_prefix"
16762   prefix="$acl_save_prefix"
16763
16764                       if test "X$x" = "X-L$found_dir"; then
16765                         haveit=yes
16766                         break
16767                       fi
16768                     done
16769                     if test -z "$haveit"; then
16770                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16771                     fi
16772                     if test "$hardcode_minus_L" != no; then
16773                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16774                     else
16775                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16776                     fi
16777                   fi
16778                 fi
16779               fi
16780             else
16781               if test "X$found_a" != "X"; then
16782                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16783               else
16784                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16785               fi
16786             fi
16787                         additional_includedir=
16788             case "$found_dir" in
16789               */lib | */lib/)
16790                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16791                 additional_includedir="$basedir/include"
16792                 ;;
16793             esac
16794             if test "X$additional_includedir" != "X"; then
16795                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16796                 haveit=
16797                 if test "X$additional_includedir" = "X/usr/local/include"; then
16798                   if test -n "$GCC"; then
16799                     case $host_os in
16800                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16801                     esac
16802                   fi
16803                 fi
16804                 if test -z "$haveit"; then
16805                   for x in $CPPFLAGS $INCICONV; do
16806
16807   acl_save_prefix="$prefix"
16808   prefix="$acl_final_prefix"
16809   acl_save_exec_prefix="$exec_prefix"
16810   exec_prefix="$acl_final_exec_prefix"
16811   eval x=\"$x\"
16812   exec_prefix="$acl_save_exec_prefix"
16813   prefix="$acl_save_prefix"
16814
16815                     if test "X$x" = "X-I$additional_includedir"; then
16816                       haveit=yes
16817                       break
16818                     fi
16819                   done
16820                   if test -z "$haveit"; then
16821                     if test -d "$additional_includedir"; then
16822                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16823                     fi
16824                   fi
16825                 fi
16826               fi
16827             fi
16828                         if test -n "$found_la"; then
16829                                                         save_libdir="$libdir"
16830               case "$found_la" in
16831                 */* | *\\*) . "$found_la" ;;
16832                 *) . "./$found_la" ;;
16833               esac
16834               libdir="$save_libdir"
16835                             for dep in $dependency_libs; do
16836                 case "$dep" in
16837                   -L*)
16838                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16839                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16840                       haveit=
16841                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16842                         if test -n "$GCC"; then
16843                           case $host_os in
16844                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16845                           esac
16846                         fi
16847                       fi
16848                       if test -z "$haveit"; then
16849                         haveit=
16850                         for x in $LDFLAGS $LIBICONV; do
16851
16852   acl_save_prefix="$prefix"
16853   prefix="$acl_final_prefix"
16854   acl_save_exec_prefix="$exec_prefix"
16855   exec_prefix="$acl_final_exec_prefix"
16856   eval x=\"$x\"
16857   exec_prefix="$acl_save_exec_prefix"
16858   prefix="$acl_save_prefix"
16859
16860                           if test "X$x" = "X-L$additional_libdir"; then
16861                             haveit=yes
16862                             break
16863                           fi
16864                         done
16865                         if test -z "$haveit"; then
16866                           if test -d "$additional_libdir"; then
16867                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16868                           fi
16869                         fi
16870                         haveit=
16871                         for x in $LDFLAGS $LTLIBICONV; do
16872
16873   acl_save_prefix="$prefix"
16874   prefix="$acl_final_prefix"
16875   acl_save_exec_prefix="$exec_prefix"
16876   exec_prefix="$acl_final_exec_prefix"
16877   eval x=\"$x\"
16878   exec_prefix="$acl_save_exec_prefix"
16879   prefix="$acl_save_prefix"
16880
16881                           if test "X$x" = "X-L$additional_libdir"; then
16882                             haveit=yes
16883                             break
16884                           fi
16885                         done
16886                         if test -z "$haveit"; then
16887                           if test -d "$additional_libdir"; then
16888                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16889                           fi
16890                         fi
16891                       fi
16892                     fi
16893                     ;;
16894                   -R*)
16895                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16896                     if test "$enable_rpath" != no; then
16897                                                                   haveit=
16898                       for x in $rpathdirs; do
16899                         if test "X$x" = "X$dir"; then
16900                           haveit=yes
16901                           break
16902                         fi
16903                       done
16904                       if test -z "$haveit"; then
16905                         rpathdirs="$rpathdirs $dir"
16906                       fi
16907                                                                   haveit=
16908                       for x in $ltrpathdirs; do
16909                         if test "X$x" = "X$dir"; then
16910                           haveit=yes
16911                           break
16912                         fi
16913                       done
16914                       if test -z "$haveit"; then
16915                         ltrpathdirs="$ltrpathdirs $dir"
16916                       fi
16917                     fi
16918                     ;;
16919                   -l*)
16920                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16921                     ;;
16922                   *.la)
16923                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16924                     ;;
16925                   *)
16926                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16927                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16928                     ;;
16929                 esac
16930               done
16931             fi
16932           else
16933                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16934             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16935           fi
16936         fi
16937       fi
16938     done
16939   done
16940   if test "X$rpathdirs" != "X"; then
16941     if test -n "$hardcode_libdir_separator"; then
16942                         alldirs=
16943       for found_dir in $rpathdirs; do
16944         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16945       done
16946             acl_save_libdir="$libdir"
16947       libdir="$alldirs"
16948       eval flag=\"$hardcode_libdir_flag_spec\"
16949       libdir="$acl_save_libdir"
16950       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16951     else
16952             for found_dir in $rpathdirs; do
16953         acl_save_libdir="$libdir"
16954         libdir="$found_dir"
16955         eval flag=\"$hardcode_libdir_flag_spec\"
16956         libdir="$acl_save_libdir"
16957         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16958       done
16959     fi
16960   fi
16961   if test "X$ltrpathdirs" != "X"; then
16962             for found_dir in $ltrpathdirs; do
16963       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16964     done
16965   fi
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16985 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16986 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16987   $as_echo_n "(cached) " >&6
16988 else
16989   gt_save_CPPFLAGS="$CPPFLAGS"
16990      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16991      gt_save_LIBS="$LIBS"
16992      LIBS="$LIBS -framework CoreFoundation"
16993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h.  */
16995 #include <CFPreferences.h>
16996 int
16997 main ()
16998 {
16999 CFPreferencesCopyAppValue(NULL, NULL)
17000   ;
17001   return 0;
17002 }
17003 _ACEOF
17004 if ac_fn_c_try_link "$LINENO"; then :
17005   gt_cv_func_CFPreferencesCopyAppValue=yes
17006 else
17007   gt_cv_func_CFPreferencesCopyAppValue=no
17008 fi
17009 rm -f core conftest.err conftest.$ac_objext \
17010     conftest$ac_exeext conftest.$ac_ext
17011      CPPFLAGS="$gt_save_CPPFLAGS"
17012      LIBS="$gt_save_LIBS"
17013 fi
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17015 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17016   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17017
17018 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17019
17020   fi
17021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17022 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17023 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17024   $as_echo_n "(cached) " >&6
17025 else
17026   gt_save_CPPFLAGS="$CPPFLAGS"
17027      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17028      gt_save_LIBS="$LIBS"
17029      LIBS="$LIBS -framework CoreFoundation"
17030      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h.  */
17032 #include <CFLocale.h>
17033 int
17034 main ()
17035 {
17036 CFLocaleCopyCurrent();
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 if ac_fn_c_try_link "$LINENO"; then :
17042   gt_cv_func_CFLocaleCopyCurrent=yes
17043 else
17044   gt_cv_func_CFLocaleCopyCurrent=no
17045 fi
17046 rm -f core conftest.err conftest.$ac_objext \
17047     conftest$ac_exeext conftest.$ac_ext
17048      CPPFLAGS="$gt_save_CPPFLAGS"
17049      LIBS="$gt_save_LIBS"
17050 fi
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17052 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17053   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17054
17055 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17056
17057   fi
17058   INTL_MACOSX_LIBS=
17059   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17060     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17061   fi
17062
17063
17064
17065
17066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17067 $as_echo_n "checking whether NLS is requested... " >&6; }
17068     # Check whether --enable-nls was given.
17069 if test "${enable_nls+set}" = set; then :
17070   enableval=$enable_nls; USE_NLS=$enableval
17071 else
17072   USE_NLS=yes
17073 fi
17074
17075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17076 $as_echo "$USE_NLS" >&6; }
17077
17078
17079
17080
17081   LIBINTL=
17082   LTLIBINTL=
17083   POSUB=
17084
17085     if test "$USE_NLS" = "yes"; then
17086     gt_use_preinstalled_gnugettext=no
17087
17088
17089
17090
17091
17092
17093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17094 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17095 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17096   $as_echo_n "(cached) " >&6
17097 else
17098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h.  */
17100 #include <libintl.h>
17101 extern int _nl_msg_cat_cntr;
17102 extern int *_nl_domain_bindings;
17103 int
17104 main ()
17105 {
17106 bindtextdomain ("", "");
17107 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17108   ;
17109   return 0;
17110 }
17111 _ACEOF
17112 if ac_fn_c_try_link "$LINENO"; then :
17113   gt_cv_func_gnugettext1_libc=yes
17114 else
17115   gt_cv_func_gnugettext1_libc=no
17116 fi
17117 rm -f core conftest.err conftest.$ac_objext \
17118     conftest$ac_exeext conftest.$ac_ext
17119 fi
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17121 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17122
17123         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17124
17125
17126
17127
17128
17129           am_save_CPPFLAGS="$CPPFLAGS"
17130
17131   for element in $INCICONV; do
17132     haveit=
17133     for x in $CPPFLAGS; do
17134
17135   acl_save_prefix="$prefix"
17136   prefix="$acl_final_prefix"
17137   acl_save_exec_prefix="$exec_prefix"
17138   exec_prefix="$acl_final_exec_prefix"
17139   eval x=\"$x\"
17140   exec_prefix="$acl_save_exec_prefix"
17141   prefix="$acl_save_prefix"
17142
17143       if test "X$x" = "X$element"; then
17144         haveit=yes
17145         break
17146       fi
17147     done
17148     if test -z "$haveit"; then
17149       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17150     fi
17151   done
17152
17153
17154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17155 $as_echo_n "checking for iconv... " >&6; }
17156 if ${am_cv_func_iconv+:} false; then :
17157   $as_echo_n "(cached) " >&6
17158 else
17159
17160     am_cv_func_iconv="no, consider installing GNU libiconv"
17161     am_cv_lib_iconv=no
17162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163 /* end confdefs.h.  */
17164 #include <stdlib.h>
17165 #include <iconv.h>
17166 int
17167 main ()
17168 {
17169 iconv_t cd = iconv_open("","");
17170        iconv(cd,NULL,NULL,NULL,NULL);
17171        iconv_close(cd);
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 if ac_fn_c_try_link "$LINENO"; then :
17177   am_cv_func_iconv=yes
17178 fi
17179 rm -f core conftest.err conftest.$ac_objext \
17180     conftest$ac_exeext conftest.$ac_ext
17181     if test "$am_cv_func_iconv" != yes; then
17182       am_save_LIBS="$LIBS"
17183       LIBS="$LIBS $LIBICONV"
17184       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185 /* end confdefs.h.  */
17186 #include <stdlib.h>
17187 #include <iconv.h>
17188 int
17189 main ()
17190 {
17191 iconv_t cd = iconv_open("","");
17192          iconv(cd,NULL,NULL,NULL,NULL);
17193          iconv_close(cd);
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 if ac_fn_c_try_link "$LINENO"; then :
17199   am_cv_lib_iconv=yes
17200         am_cv_func_iconv=yes
17201 fi
17202 rm -f core conftest.err conftest.$ac_objext \
17203     conftest$ac_exeext conftest.$ac_ext
17204       LIBS="$am_save_LIBS"
17205     fi
17206
17207 fi
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17209 $as_echo "$am_cv_func_iconv" >&6; }
17210   if test "$am_cv_func_iconv" = yes; then
17211
17212 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17213
17214   fi
17215   if test "$am_cv_lib_iconv" = yes; then
17216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17217 $as_echo_n "checking how to link with libiconv... " >&6; }
17218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17219 $as_echo "$LIBICONV" >&6; }
17220   else
17221             CPPFLAGS="$am_save_CPPFLAGS"
17222     LIBICONV=
17223     LTLIBICONV=
17224   fi
17225
17226
17227
17228
17229
17230
17231     use_additional=yes
17232
17233   acl_save_prefix="$prefix"
17234   prefix="$acl_final_prefix"
17235   acl_save_exec_prefix="$exec_prefix"
17236   exec_prefix="$acl_final_exec_prefix"
17237
17238     eval additional_includedir=\"$includedir\"
17239     eval additional_libdir=\"$libdir\"
17240
17241   exec_prefix="$acl_save_exec_prefix"
17242   prefix="$acl_save_prefix"
17243
17244
17245 # Check whether --with-libintl-prefix was given.
17246 if test "${with_libintl_prefix+set}" = set; then :
17247   withval=$with_libintl_prefix;
17248     if test "X$withval" = "Xno"; then
17249       use_additional=no
17250     else
17251       if test "X$withval" = "X"; then
17252
17253   acl_save_prefix="$prefix"
17254   prefix="$acl_final_prefix"
17255   acl_save_exec_prefix="$exec_prefix"
17256   exec_prefix="$acl_final_exec_prefix"
17257
17258           eval additional_includedir=\"$includedir\"
17259           eval additional_libdir=\"$libdir\"
17260
17261   exec_prefix="$acl_save_exec_prefix"
17262   prefix="$acl_save_prefix"
17263
17264       else
17265         additional_includedir="$withval/include"
17266         additional_libdir="$withval/lib"
17267       fi
17268     fi
17269
17270 fi
17271
17272       LIBINTL=
17273   LTLIBINTL=
17274   INCINTL=
17275   rpathdirs=
17276   ltrpathdirs=
17277   names_already_handled=
17278   names_next_round='intl '
17279   while test -n "$names_next_round"; do
17280     names_this_round="$names_next_round"
17281     names_next_round=
17282     for name in $names_this_round; do
17283       already_handled=
17284       for n in $names_already_handled; do
17285         if test "$n" = "$name"; then
17286           already_handled=yes
17287           break
17288         fi
17289       done
17290       if test -z "$already_handled"; then
17291         names_already_handled="$names_already_handled $name"
17292                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17293         eval value=\"\$HAVE_LIB$uppername\"
17294         if test -n "$value"; then
17295           if test "$value" = yes; then
17296             eval value=\"\$LIB$uppername\"
17297             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17298             eval value=\"\$LTLIB$uppername\"
17299             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17300           else
17301                                     :
17302           fi
17303         else
17304                               found_dir=
17305           found_la=
17306           found_so=
17307           found_a=
17308           if test $use_additional = yes; then
17309             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17310               found_dir="$additional_libdir"
17311               found_so="$additional_libdir/lib$name.$shlibext"
17312               if test -f "$additional_libdir/lib$name.la"; then
17313                 found_la="$additional_libdir/lib$name.la"
17314               fi
17315             else
17316               if test -f "$additional_libdir/lib$name.$libext"; then
17317                 found_dir="$additional_libdir"
17318                 found_a="$additional_libdir/lib$name.$libext"
17319                 if test -f "$additional_libdir/lib$name.la"; then
17320                   found_la="$additional_libdir/lib$name.la"
17321                 fi
17322               fi
17323             fi
17324           fi
17325           if test "X$found_dir" = "X"; then
17326             for x in $LDFLAGS $LTLIBINTL; do
17327
17328   acl_save_prefix="$prefix"
17329   prefix="$acl_final_prefix"
17330   acl_save_exec_prefix="$exec_prefix"
17331   exec_prefix="$acl_final_exec_prefix"
17332   eval x=\"$x\"
17333   exec_prefix="$acl_save_exec_prefix"
17334   prefix="$acl_save_prefix"
17335
17336               case "$x" in
17337                 -L*)
17338                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17339                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17340                     found_dir="$dir"
17341                     found_so="$dir/lib$name.$shlibext"
17342                     if test -f "$dir/lib$name.la"; then
17343                       found_la="$dir/lib$name.la"
17344                     fi
17345                   else
17346                     if test -f "$dir/lib$name.$libext"; then
17347                       found_dir="$dir"
17348                       found_a="$dir/lib$name.$libext"
17349                       if test -f "$dir/lib$name.la"; then
17350                         found_la="$dir/lib$name.la"
17351                       fi
17352                     fi
17353                   fi
17354                   ;;
17355               esac
17356               if test "X$found_dir" != "X"; then
17357                 break
17358               fi
17359             done
17360           fi
17361           if test "X$found_dir" != "X"; then
17362                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17363             if test "X$found_so" != "X"; then
17364                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17365                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17366               else
17367                                                                                 haveit=
17368                 for x in $ltrpathdirs; do
17369                   if test "X$x" = "X$found_dir"; then
17370                     haveit=yes
17371                     break
17372                   fi
17373                 done
17374                 if test -z "$haveit"; then
17375                   ltrpathdirs="$ltrpathdirs $found_dir"
17376                 fi
17377                                 if test "$hardcode_direct" = yes; then
17378                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17379                 else
17380                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17381                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17382                                                             haveit=
17383                     for x in $rpathdirs; do
17384                       if test "X$x" = "X$found_dir"; then
17385                         haveit=yes
17386                         break
17387                       fi
17388                     done
17389                     if test -z "$haveit"; then
17390                       rpathdirs="$rpathdirs $found_dir"
17391                     fi
17392                   else
17393                                                                                 haveit=
17394                     for x in $LDFLAGS $LIBINTL; do
17395
17396   acl_save_prefix="$prefix"
17397   prefix="$acl_final_prefix"
17398   acl_save_exec_prefix="$exec_prefix"
17399   exec_prefix="$acl_final_exec_prefix"
17400   eval x=\"$x\"
17401   exec_prefix="$acl_save_exec_prefix"
17402   prefix="$acl_save_prefix"
17403
17404                       if test "X$x" = "X-L$found_dir"; then
17405                         haveit=yes
17406                         break
17407                       fi
17408                     done
17409                     if test -z "$haveit"; then
17410                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17411                     fi
17412                     if test "$hardcode_minus_L" != no; then
17413                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17414                     else
17415                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17416                     fi
17417                   fi
17418                 fi
17419               fi
17420             else
17421               if test "X$found_a" != "X"; then
17422                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17423               else
17424                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17425               fi
17426             fi
17427                         additional_includedir=
17428             case "$found_dir" in
17429               */lib | */lib/)
17430                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17431                 additional_includedir="$basedir/include"
17432                 ;;
17433             esac
17434             if test "X$additional_includedir" != "X"; then
17435                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17436                 haveit=
17437                 if test "X$additional_includedir" = "X/usr/local/include"; then
17438                   if test -n "$GCC"; then
17439                     case $host_os in
17440                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17441                     esac
17442                   fi
17443                 fi
17444                 if test -z "$haveit"; then
17445                   for x in $CPPFLAGS $INCINTL; do
17446
17447   acl_save_prefix="$prefix"
17448   prefix="$acl_final_prefix"
17449   acl_save_exec_prefix="$exec_prefix"
17450   exec_prefix="$acl_final_exec_prefix"
17451   eval x=\"$x\"
17452   exec_prefix="$acl_save_exec_prefix"
17453   prefix="$acl_save_prefix"
17454
17455                     if test "X$x" = "X-I$additional_includedir"; then
17456                       haveit=yes
17457                       break
17458                     fi
17459                   done
17460                   if test -z "$haveit"; then
17461                     if test -d "$additional_includedir"; then
17462                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17463                     fi
17464                   fi
17465                 fi
17466               fi
17467             fi
17468                         if test -n "$found_la"; then
17469                                                         save_libdir="$libdir"
17470               case "$found_la" in
17471                 */* | *\\*) . "$found_la" ;;
17472                 *) . "./$found_la" ;;
17473               esac
17474               libdir="$save_libdir"
17475                             for dep in $dependency_libs; do
17476                 case "$dep" in
17477                   -L*)
17478                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17479                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17480                       haveit=
17481                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17482                         if test -n "$GCC"; then
17483                           case $host_os in
17484                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17485                           esac
17486                         fi
17487                       fi
17488                       if test -z "$haveit"; then
17489                         haveit=
17490                         for x in $LDFLAGS $LIBINTL; do
17491
17492   acl_save_prefix="$prefix"
17493   prefix="$acl_final_prefix"
17494   acl_save_exec_prefix="$exec_prefix"
17495   exec_prefix="$acl_final_exec_prefix"
17496   eval x=\"$x\"
17497   exec_prefix="$acl_save_exec_prefix"
17498   prefix="$acl_save_prefix"
17499
17500                           if test "X$x" = "X-L$additional_libdir"; then
17501                             haveit=yes
17502                             break
17503                           fi
17504                         done
17505                         if test -z "$haveit"; then
17506                           if test -d "$additional_libdir"; then
17507                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17508                           fi
17509                         fi
17510                         haveit=
17511                         for x in $LDFLAGS $LTLIBINTL; do
17512
17513   acl_save_prefix="$prefix"
17514   prefix="$acl_final_prefix"
17515   acl_save_exec_prefix="$exec_prefix"
17516   exec_prefix="$acl_final_exec_prefix"
17517   eval x=\"$x\"
17518   exec_prefix="$acl_save_exec_prefix"
17519   prefix="$acl_save_prefix"
17520
17521                           if test "X$x" = "X-L$additional_libdir"; then
17522                             haveit=yes
17523                             break
17524                           fi
17525                         done
17526                         if test -z "$haveit"; then
17527                           if test -d "$additional_libdir"; then
17528                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17529                           fi
17530                         fi
17531                       fi
17532                     fi
17533                     ;;
17534                   -R*)
17535                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17536                     if test "$enable_rpath" != no; then
17537                                                                   haveit=
17538                       for x in $rpathdirs; do
17539                         if test "X$x" = "X$dir"; then
17540                           haveit=yes
17541                           break
17542                         fi
17543                       done
17544                       if test -z "$haveit"; then
17545                         rpathdirs="$rpathdirs $dir"
17546                       fi
17547                                                                   haveit=
17548                       for x in $ltrpathdirs; do
17549                         if test "X$x" = "X$dir"; then
17550                           haveit=yes
17551                           break
17552                         fi
17553                       done
17554                       if test -z "$haveit"; then
17555                         ltrpathdirs="$ltrpathdirs $dir"
17556                       fi
17557                     fi
17558                     ;;
17559                   -l*)
17560                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17561                     ;;
17562                   *.la)
17563                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17564                     ;;
17565                   *)
17566                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17567                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17568                     ;;
17569                 esac
17570               done
17571             fi
17572           else
17573                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17574             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17575           fi
17576         fi
17577       fi
17578     done
17579   done
17580   if test "X$rpathdirs" != "X"; then
17581     if test -n "$hardcode_libdir_separator"; then
17582                         alldirs=
17583       for found_dir in $rpathdirs; do
17584         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17585       done
17586             acl_save_libdir="$libdir"
17587       libdir="$alldirs"
17588       eval flag=\"$hardcode_libdir_flag_spec\"
17589       libdir="$acl_save_libdir"
17590       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17591     else
17592             for found_dir in $rpathdirs; do
17593         acl_save_libdir="$libdir"
17594         libdir="$found_dir"
17595         eval flag=\"$hardcode_libdir_flag_spec\"
17596         libdir="$acl_save_libdir"
17597         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17598       done
17599     fi
17600   fi
17601   if test "X$ltrpathdirs" != "X"; then
17602             for found_dir in $ltrpathdirs; do
17603       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17604     done
17605   fi
17606
17607           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17608 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17609 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
17610   $as_echo_n "(cached) " >&6
17611 else
17612   gt_save_CPPFLAGS="$CPPFLAGS"
17613             CPPFLAGS="$CPPFLAGS $INCINTL"
17614             gt_save_LIBS="$LIBS"
17615             LIBS="$LIBS $LIBINTL"
17616                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h.  */
17618 #include <libintl.h>
17619 extern int _nl_msg_cat_cntr;
17620 extern
17621 #ifdef __cplusplus
17622 "C"
17623 #endif
17624 const char *_nl_expand_alias (const char *);
17625 int
17626 main ()
17627 {
17628 bindtextdomain ("", "");
17629 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 if ac_fn_c_try_link "$LINENO"; then :
17635   gt_cv_func_gnugettext1_libintl=yes
17636 else
17637   gt_cv_func_gnugettext1_libintl=no
17638 fi
17639 rm -f core conftest.err conftest.$ac_objext \
17640     conftest$ac_exeext conftest.$ac_ext
17641                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17642               LIBS="$LIBS $LIBICONV"
17643               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h.  */
17645 #include <libintl.h>
17646 extern int _nl_msg_cat_cntr;
17647 extern
17648 #ifdef __cplusplus
17649 "C"
17650 #endif
17651 const char *_nl_expand_alias (const char *);
17652 int
17653 main ()
17654 {
17655 bindtextdomain ("", "");
17656 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17657   ;
17658   return 0;
17659 }
17660 _ACEOF
17661 if ac_fn_c_try_link "$LINENO"; then :
17662   LIBINTL="$LIBINTL $LIBICONV"
17663                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17664                 gt_cv_func_gnugettext1_libintl=yes
17665
17666 fi
17667 rm -f core conftest.err conftest.$ac_objext \
17668     conftest$ac_exeext conftest.$ac_ext
17669             fi
17670             CPPFLAGS="$gt_save_CPPFLAGS"
17671             LIBS="$gt_save_LIBS"
17672 fi
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17674 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17675         fi
17676
17677                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17678            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17679                 && test "$PACKAGE" != gettext-runtime \
17680                 && test "$PACKAGE" != gettext-tools; }; then
17681           gt_use_preinstalled_gnugettext=yes
17682         else
17683                     LIBINTL=
17684           LTLIBINTL=
17685           INCINTL=
17686         fi
17687
17688
17689
17690     if test -n "$INTL_MACOSX_LIBS"; then
17691       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17692          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17693                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17694         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17695       fi
17696     fi
17697
17698     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17699        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17700
17701 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17702
17703     else
17704       USE_NLS=no
17705     fi
17706   fi
17707
17708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17709 $as_echo_n "checking whether to use NLS... " >&6; }
17710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17711 $as_echo "$USE_NLS" >&6; }
17712   if test "$USE_NLS" = "yes"; then
17713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17714 $as_echo_n "checking where the gettext function comes from... " >&6; }
17715     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17716       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17717         gt_source="external libintl"
17718       else
17719         gt_source="libc"
17720       fi
17721     else
17722       gt_source="included intl directory"
17723     fi
17724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17725 $as_echo "$gt_source" >&6; }
17726   fi
17727
17728   if test "$USE_NLS" = "yes"; then
17729
17730     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17731       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17732         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17733 $as_echo_n "checking how to link with libintl... " >&6; }
17734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17735 $as_echo "$LIBINTL" >&6; }
17736
17737   for element in $INCINTL; do
17738     haveit=
17739     for x in $CPPFLAGS; do
17740
17741   acl_save_prefix="$prefix"
17742   prefix="$acl_final_prefix"
17743   acl_save_exec_prefix="$exec_prefix"
17744   exec_prefix="$acl_final_exec_prefix"
17745   eval x=\"$x\"
17746   exec_prefix="$acl_save_exec_prefix"
17747   prefix="$acl_save_prefix"
17748
17749       if test "X$x" = "X$element"; then
17750         haveit=yes
17751         break
17752       fi
17753     done
17754     if test -z "$haveit"; then
17755       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17756     fi
17757   done
17758
17759       fi
17760
17761
17762 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17763
17764
17765 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17766
17767     fi
17768
17769         POSUB=po
17770   fi
17771
17772
17773
17774     INTLLIBS="$LIBINTL"
17775
17776
17777
17778
17779
17780
17781
17782 os_name=`uname -s 2>/dev/null`
17783 if test x${prefix} = xNONE ; then
17784    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17785       sysconfdir=/etc/bacula
17786    fi
17787
17788    if test `eval echo ${libdir}` = NONE/lib ; then
17789       case ${os_name} in
17790       Linux)
17791          os_processor=`uname -p 2>/dev/null`
17792          case ${os_processor} in
17793          x86_64)
17794             libdir=/usr/lib64
17795             ;;
17796          *)
17797             libdir=/usr/lib
17798             ;;
17799          esac
17800          ;;
17801       *)
17802          libdir=/usr/lib
17803          ;;
17804       esac
17805    fi
17806
17807    if test `eval echo ${includedir}` = NONE/include ; then
17808       includedir=/usr/include
17809    fi
17810
17811    if test `eval echo ${datarootdir}` = NONE/share ; then
17812       datarootdir=/usr/share
17813    fi
17814    prefix=
17815 fi
17816
17817 if test x${exec_prefix} = xNONE ; then
17818    exec_prefix=${prefix}
17819 fi
17820
17821 sysconfdir=`eval echo ${sysconfdir}`
17822 datarootdir=`eval echo ${datarootdir}`
17823 docdir=`eval echo ${docdir}`
17824 htmldir=`eval echo ${htmldir}`
17825 libdir=`eval echo ${libdir}`
17826 includedir=`eval echo ${includedir}`
17827 localedir=`eval echo ${datarootdir}/locale`
17828 cat >>confdefs.h <<_ACEOF
17829 #define SYSCONFDIR "$sysconfdir"
17830 _ACEOF
17831
17832 cat >>confdefs.h <<_ACEOF
17833 #define LOCALEDIR "$localedir"
17834 _ACEOF
17835
17836
17837 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17838    sbindir=${exec_prefix}/sbin
17839 fi
17840 sbindir=`eval echo ${sbindir}`
17841
17842 if test x$mandir = x'${prefix}/man' ; then
17843    mandir=/usr/share/man
17844 fi
17845
17846 if test x$htmldir = x${docdir} ; then
17847    htmldir=`eval echo ${docdir}bacula/html`
17848 fi
17849
17850 if test x$docdir = x'/usr/share/doc/' ; then
17851    docdir=`eval echo ${docdir}bacula`
17852 fi
17853
17854
17855 for ac_prog in msgfmt
17856 do
17857   # Extract the first word of "$ac_prog", so it can be a program name with args.
17858 set dummy $ac_prog; ac_word=$2
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17860 $as_echo_n "checking for $ac_word... " >&6; }
17861 if ${ac_cv_path_MSGFMT+:} false; then :
17862   $as_echo_n "(cached) " >&6
17863 else
17864   case $MSGFMT in
17865   [\\/]* | ?:[\\/]*)
17866   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17867   ;;
17868   *)
17869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17870 for as_dir in $PATH
17871 do
17872   IFS=$as_save_IFS
17873   test -z "$as_dir" && as_dir=.
17874     for ac_exec_ext in '' $ac_executable_extensions; do
17875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17876     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17878     break 2
17879   fi
17880 done
17881   done
17882 IFS=$as_save_IFS
17883
17884   ;;
17885 esac
17886 fi
17887 MSGFMT=$ac_cv_path_MSGFMT
17888 if test -n "$MSGFMT"; then
17889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17890 $as_echo "$MSGFMT" >&6; }
17891 else
17892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17893 $as_echo "no" >&6; }
17894 fi
17895
17896
17897   test -n "$MSGFMT" && break
17898 done
17899 test -n "$MSGFMT" || MSGFMT="no"
17900
17901 if test "$MSGFMT" = "no"
17902 then
17903    echo 'msgfmt program not found, disabling NLS !'
17904    USE_NLS=no
17905    USE_INCLUDED_LIBINTL=no
17906 #else
17907
17908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17909 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17910 if ${ac_cv_gnu_library_2+:} false; then :
17911   $as_echo_n "(cached) " >&6
17912 else
17913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17914 /* end confdefs.h.  */
17915
17916 #include <features.h>
17917 #ifdef __GNU_LIBRARY__
17918  #if (__GLIBC__ >= 2)
17919   Lucky GNU user
17920  #endif
17921 #endif
17922
17923 _ACEOF
17924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17925   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17926   ac_cv_gnu_library_2=yes
17927 else
17928   ac_cv_gnu_library_2=no
17929 fi
17930 rm -f conftest*
17931
17932
17933
17934 fi
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17936 $as_echo "$ac_cv_gnu_library_2" >&6; }
17937
17938     GLIBC2="$ac_cv_gnu_library_2"
17939
17940
17941 if test -n "$ac_tool_prefix"; then
17942   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17945 $as_echo_n "checking for $ac_word... " >&6; }
17946 if ${ac_cv_prog_RANLIB+:} false; then :
17947   $as_echo_n "(cached) " >&6
17948 else
17949   if test -n "$RANLIB"; then
17950   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17951 else
17952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17953 for as_dir in $PATH
17954 do
17955   IFS=$as_save_IFS
17956   test -z "$as_dir" && as_dir=.
17957     for ac_exec_ext in '' $ac_executable_extensions; do
17958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17959     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17961     break 2
17962   fi
17963 done
17964   done
17965 IFS=$as_save_IFS
17966
17967 fi
17968 fi
17969 RANLIB=$ac_cv_prog_RANLIB
17970 if test -n "$RANLIB"; then
17971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17972 $as_echo "$RANLIB" >&6; }
17973 else
17974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17975 $as_echo "no" >&6; }
17976 fi
17977
17978
17979 fi
17980 if test -z "$ac_cv_prog_RANLIB"; then
17981   ac_ct_RANLIB=$RANLIB
17982   # Extract the first word of "ranlib", so it can be a program name with args.
17983 set dummy ranlib; ac_word=$2
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17985 $as_echo_n "checking for $ac_word... " >&6; }
17986 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17987   $as_echo_n "(cached) " >&6
17988 else
17989   if test -n "$ac_ct_RANLIB"; then
17990   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17991 else
17992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17993 for as_dir in $PATH
17994 do
17995   IFS=$as_save_IFS
17996   test -z "$as_dir" && as_dir=.
17997     for ac_exec_ext in '' $ac_executable_extensions; do
17998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17999     ac_cv_prog_ac_ct_RANLIB="ranlib"
18000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18001     break 2
18002   fi
18003 done
18004   done
18005 IFS=$as_save_IFS
18006
18007 fi
18008 fi
18009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18010 if test -n "$ac_ct_RANLIB"; then
18011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18012 $as_echo "$ac_ct_RANLIB" >&6; }
18013 else
18014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18015 $as_echo "no" >&6; }
18016 fi
18017
18018   if test "x$ac_ct_RANLIB" = x; then
18019     RANLIB=":"
18020   else
18021     case $cross_compiling:$ac_tool_warned in
18022 yes:)
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18025 ac_tool_warned=yes ;;
18026 esac
18027     RANLIB=$ac_ct_RANLIB
18028   fi
18029 else
18030   RANLIB="$ac_cv_prog_RANLIB"
18031 fi
18032
18033
18034         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18035 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18036 if ${ac_cv_lib_cposix_strerror+:} false; then :
18037   $as_echo_n "(cached) " >&6
18038 else
18039   ac_check_lib_save_LIBS=$LIBS
18040 LIBS="-lcposix  $LIBS"
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h.  */
18043
18044 /* Override any GCC internal prototype to avoid an error.
18045    Use char because int might match the return type of a GCC
18046    builtin and then its argument prototype would still apply.  */
18047 #ifdef __cplusplus
18048 extern "C"
18049 #endif
18050 char strerror ();
18051 int
18052 main ()
18053 {
18054 return strerror ();
18055   ;
18056   return 0;
18057 }
18058 _ACEOF
18059 if ac_fn_c_try_link "$LINENO"; then :
18060   ac_cv_lib_cposix_strerror=yes
18061 else
18062   ac_cv_lib_cposix_strerror=no
18063 fi
18064 rm -f core conftest.err conftest.$ac_objext \
18065     conftest$ac_exeext conftest.$ac_ext
18066 LIBS=$ac_check_lib_save_LIBS
18067 fi
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18069 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18070 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18071   LIBS="$LIBS -lcposix"
18072 fi
18073
18074
18075
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18077 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18078 if ${ac_cv_c_const+:} false; then :
18079   $as_echo_n "(cached) " >&6
18080 else
18081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h.  */
18083
18084 int
18085 main ()
18086 {
18087 /* FIXME: Include the comments suggested by Paul. */
18088 #ifndef __cplusplus
18089   /* Ultrix mips cc rejects this.  */
18090   typedef int charset[2];
18091   const charset cs;
18092   /* SunOS 4.1.1 cc rejects this.  */
18093   char const *const *pcpcc;
18094   char **ppc;
18095   /* NEC SVR4.0.2 mips cc rejects this.  */
18096   struct point {int x, y;};
18097   static struct point const zero = {0,0};
18098   /* AIX XL C 1.02.0.0 rejects this.
18099      It does not let you subtract one const X* pointer from another in
18100      an arm of an if-expression whose if-part is not a constant
18101      expression */
18102   const char *g = "string";
18103   pcpcc = &g + (g ? g-g : 0);
18104   /* HPUX 7.0 cc rejects these. */
18105   ++pcpcc;
18106   ppc = (char**) pcpcc;
18107   pcpcc = (char const *const *) ppc;
18108   { /* SCO 3.2v4 cc rejects this.  */
18109     char *t;
18110     char const *s = 0 ? (char *) 0 : (char const *) 0;
18111
18112     *t++ = 0;
18113     if (s) return 0;
18114   }
18115   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18116     int x[] = {25, 17};
18117     const int *foo = &x[0];
18118     ++foo;
18119   }
18120   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18121     typedef const int *iptr;
18122     iptr p = 0;
18123     ++p;
18124   }
18125   { /* AIX XL C 1.02.0.0 rejects this saying
18126        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18127     struct s { int j; const int *ap[3]; };
18128     struct s *b; b->j = 5;
18129   }
18130   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18131     const int foo = 10;
18132     if (!foo) return 0;
18133   }
18134   return !cs[0] && !zero.x;
18135 #endif
18136
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 if ac_fn_c_try_compile "$LINENO"; then :
18142   ac_cv_c_const=yes
18143 else
18144   ac_cv_c_const=no
18145 fi
18146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147 fi
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18149 $as_echo "$ac_cv_c_const" >&6; }
18150 if test $ac_cv_c_const = no; then
18151
18152 $as_echo "#define const /**/" >>confdefs.h
18153
18154 fi
18155
18156
18157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18158 $as_echo_n "checking for signed... " >&6; }
18159 if ${bh_cv_c_signed+:} false; then :
18160   $as_echo_n "(cached) " >&6
18161 else
18162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h.  */
18164
18165 int
18166 main ()
18167 {
18168 signed char x;
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 if ac_fn_c_try_compile "$LINENO"; then :
18174   bh_cv_c_signed=yes
18175 else
18176   bh_cv_c_signed=no
18177 fi
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179 fi
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18181 $as_echo "$bh_cv_c_signed" >&6; }
18182   if test $bh_cv_c_signed = no; then
18183
18184 $as_echo "#define signed /**/" >>confdefs.h
18185
18186   fi
18187
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18189 $as_echo_n "checking for inline... " >&6; }
18190 if ${ac_cv_c_inline+:} false; then :
18191   $as_echo_n "(cached) " >&6
18192 else
18193   ac_cv_c_inline=no
18194 for ac_kw in inline __inline__ __inline; do
18195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h.  */
18197 #ifndef __cplusplus
18198 typedef int foo_t;
18199 static $ac_kw foo_t static_foo () {return 0; }
18200 $ac_kw foo_t foo () {return 0; }
18201 #endif
18202
18203 _ACEOF
18204 if ac_fn_c_try_compile "$LINENO"; then :
18205   ac_cv_c_inline=$ac_kw
18206 fi
18207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18208   test "$ac_cv_c_inline" != no && break
18209 done
18210
18211 fi
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18213 $as_echo "$ac_cv_c_inline" >&6; }
18214
18215 case $ac_cv_c_inline in
18216   inline | yes) ;;
18217   *)
18218     case $ac_cv_c_inline in
18219       no) ac_val=;;
18220       *) ac_val=$ac_cv_c_inline;;
18221     esac
18222     cat >>confdefs.h <<_ACEOF
18223 #ifndef __cplusplus
18224 #define inline $ac_val
18225 #endif
18226 _ACEOF
18227     ;;
18228 esac
18229
18230 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18231 if test "x$ac_cv_type_off_t" = xyes; then :
18232
18233 else
18234
18235 cat >>confdefs.h <<_ACEOF
18236 #define off_t long int
18237 _ACEOF
18238
18239 fi
18240
18241 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18242 if test "x$ac_cv_type_size_t" = xyes; then :
18243
18244 else
18245
18246 cat >>confdefs.h <<_ACEOF
18247 #define size_t unsigned int
18248 _ACEOF
18249
18250 fi
18251
18252
18253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18254 $as_echo_n "checking for long long... " >&6; }
18255 if ${ac_cv_type_long_long+:} false; then :
18256   $as_echo_n "(cached) " >&6
18257 else
18258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h.  */
18260 long long ll = 1LL; int i = 63;
18261 int
18262 main ()
18263 {
18264 long long llmax = (long long) -1;
18265      return ll << i | ll >> i | llmax / ll | llmax % ll;
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 if ac_fn_c_try_link "$LINENO"; then :
18271   ac_cv_type_long_long=yes
18272 else
18273   ac_cv_type_long_long=no
18274 fi
18275 rm -f core conftest.err conftest.$ac_objext \
18276     conftest$ac_exeext conftest.$ac_ext
18277 fi
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18279 $as_echo "$ac_cv_type_long_long" >&6; }
18280   if test $ac_cv_type_long_long = yes; then
18281
18282 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18283
18284   fi
18285
18286
18287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18288 $as_echo_n "checking for long double... " >&6; }
18289 if ${gt_cv_c_long_double+:} false; then :
18290   $as_echo_n "(cached) " >&6
18291 else
18292   if test "$GCC" = yes; then
18293        gt_cv_c_long_double=yes
18294      else
18295        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h.  */
18297
18298          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18299          long double foo = 0.0;
18300          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18301          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18302
18303 int
18304 main ()
18305 {
18306
18307   ;
18308   return 0;
18309 }
18310 _ACEOF
18311 if ac_fn_c_try_compile "$LINENO"; then :
18312   gt_cv_c_long_double=yes
18313 else
18314   gt_cv_c_long_double=no
18315 fi
18316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317      fi
18318 fi
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18320 $as_echo "$gt_cv_c_long_double" >&6; }
18321   if test $gt_cv_c_long_double = yes; then
18322
18323 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18324
18325   fi
18326
18327
18328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18329 $as_echo_n "checking for wchar_t... " >&6; }
18330 if ${gt_cv_c_wchar_t+:} false; then :
18331   $as_echo_n "(cached) " >&6
18332 else
18333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h.  */
18335 #include <stddef.h>
18336        wchar_t foo = (wchar_t)'\0';
18337 int
18338 main ()
18339 {
18340
18341   ;
18342   return 0;
18343 }
18344 _ACEOF
18345 if ac_fn_c_try_compile "$LINENO"; then :
18346   gt_cv_c_wchar_t=yes
18347 else
18348   gt_cv_c_wchar_t=no
18349 fi
18350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18351 fi
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18353 $as_echo "$gt_cv_c_wchar_t" >&6; }
18354   if test $gt_cv_c_wchar_t = yes; then
18355
18356 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18357
18358   fi
18359
18360
18361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18362 $as_echo_n "checking for wint_t... " >&6; }
18363 if ${gt_cv_c_wint_t+:} false; then :
18364   $as_echo_n "(cached) " >&6
18365 else
18366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h.  */
18368 #include <wchar.h>
18369        wint_t foo = (wchar_t)'\0';
18370 int
18371 main ()
18372 {
18373
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 if ac_fn_c_try_compile "$LINENO"; then :
18379   gt_cv_c_wint_t=yes
18380 else
18381   gt_cv_c_wint_t=no
18382 fi
18383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18384 fi
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18386 $as_echo "$gt_cv_c_wint_t" >&6; }
18387   if test $gt_cv_c_wint_t = yes; then
18388
18389 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18390
18391   fi
18392
18393
18394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18395 $as_echo_n "checking for inttypes.h... " >&6; }
18396 if ${gl_cv_header_inttypes_h+:} false; then :
18397   $as_echo_n "(cached) " >&6
18398 else
18399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h.  */
18401 #include <sys/types.h>
18402 #include <inttypes.h>
18403 int
18404 main ()
18405 {
18406 uintmax_t i = (uintmax_t) -1;
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 if ac_fn_c_try_compile "$LINENO"; then :
18412   gl_cv_header_inttypes_h=yes
18413 else
18414   gl_cv_header_inttypes_h=no
18415 fi
18416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18417 fi
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18419 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18420   if test $gl_cv_header_inttypes_h = yes; then
18421
18422 cat >>confdefs.h <<_ACEOF
18423 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18424 _ACEOF
18425
18426   fi
18427
18428
18429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18430 $as_echo_n "checking for stdint.h... " >&6; }
18431 if ${gl_cv_header_stdint_h+:} false; then :
18432   $as_echo_n "(cached) " >&6
18433 else
18434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h.  */
18436 #include <sys/types.h>
18437 #include <stdint.h>
18438 int
18439 main ()
18440 {
18441 uintmax_t i = (uintmax_t) -1;
18442   ;
18443   return 0;
18444 }
18445 _ACEOF
18446 if ac_fn_c_try_compile "$LINENO"; then :
18447   gl_cv_header_stdint_h=yes
18448 else
18449   gl_cv_header_stdint_h=no
18450 fi
18451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18452 fi
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18454 $as_echo "$gl_cv_header_stdint_h" >&6; }
18455   if test $gl_cv_header_stdint_h = yes; then
18456
18457 cat >>confdefs.h <<_ACEOF
18458 #define HAVE_STDINT_H_WITH_UINTMAX 1
18459 _ACEOF
18460
18461   fi
18462
18463
18464
18465
18466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18467 $as_echo_n "checking for intmax_t... " >&6; }
18468 if ${gt_cv_c_intmax_t+:} false; then :
18469   $as_echo_n "(cached) " >&6
18470 else
18471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h.  */
18473
18474 #include <stddef.h>
18475 #include <stdlib.h>
18476 #if HAVE_STDINT_H_WITH_UINTMAX
18477 #include <stdint.h>
18478 #endif
18479 #if HAVE_INTTYPES_H_WITH_UINTMAX
18480 #include <inttypes.h>
18481 #endif
18482
18483 int
18484 main ()
18485 {
18486 intmax_t x = -1;
18487   ;
18488   return 0;
18489 }
18490 _ACEOF
18491 if ac_fn_c_try_compile "$LINENO"; then :
18492   gt_cv_c_intmax_t=yes
18493 else
18494   gt_cv_c_intmax_t=no
18495 fi
18496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497 fi
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18499 $as_echo "$gt_cv_c_intmax_t" >&6; }
18500   if test $gt_cv_c_intmax_t = yes; then
18501
18502 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18503
18504   fi
18505
18506
18507
18508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18509 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18510 if ${gt_cv_func_printf_posix+:} false; then :
18511   $as_echo_n "(cached) " >&6
18512 else
18513
18514       if test "$cross_compiling" = yes; then :
18515
18516         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18517 /* end confdefs.h.  */
18518
18519 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18520   notposix
18521 #endif
18522
18523 _ACEOF
18524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18525   $EGREP "notposix" >/dev/null 2>&1; then :
18526   gt_cv_func_printf_posix="guessing no"
18527 else
18528   gt_cv_func_printf_posix="guessing yes"
18529 fi
18530 rm -f conftest*
18531
18532
18533 else
18534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h.  */
18536
18537 #include <stdio.h>
18538 #include <string.h>
18539 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18540    dollar expansion (possibly an autoconf bug).  */
18541 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18542 static char buf[100];
18543 int main ()
18544 {
18545   sprintf (buf, format, 33, 55);
18546   return (strcmp (buf, "55 33") != 0);
18547 }
18548 _ACEOF
18549 if ac_fn_c_try_run "$LINENO"; then :
18550   gt_cv_func_printf_posix=yes
18551 else
18552   gt_cv_func_printf_posix=no
18553 fi
18554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18555   conftest.$ac_objext conftest.beam conftest.$ac_ext
18556 fi
18557
18558
18559 fi
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18561 $as_echo "$gt_cv_func_printf_posix" >&6; }
18562   case $gt_cv_func_printf_posix in
18563     *yes)
18564
18565 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18566
18567       ;;
18568   esac
18569
18570 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18571 # for constant arguments.  Useless!
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18573 $as_echo_n "checking for working alloca.h... " >&6; }
18574 if ${ac_cv_working_alloca_h+:} false; then :
18575   $as_echo_n "(cached) " >&6
18576 else
18577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h.  */
18579 #include <alloca.h>
18580 int
18581 main ()
18582 {
18583 char *p = (char *) alloca (2 * sizeof (int));
18584                           if (p) return 0;
18585   ;
18586   return 0;
18587 }
18588 _ACEOF
18589 if ac_fn_c_try_link "$LINENO"; then :
18590   ac_cv_working_alloca_h=yes
18591 else
18592   ac_cv_working_alloca_h=no
18593 fi
18594 rm -f core conftest.err conftest.$ac_objext \
18595     conftest$ac_exeext conftest.$ac_ext
18596 fi
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18598 $as_echo "$ac_cv_working_alloca_h" >&6; }
18599 if test $ac_cv_working_alloca_h = yes; then
18600
18601 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18602
18603 fi
18604
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18606 $as_echo_n "checking for alloca... " >&6; }
18607 if ${ac_cv_func_alloca_works+:} false; then :
18608   $as_echo_n "(cached) " >&6
18609 else
18610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h.  */
18612 #ifdef __GNUC__
18613 # define alloca __builtin_alloca
18614 #else
18615 # ifdef _MSC_VER
18616 #  include <malloc.h>
18617 #  define alloca _alloca
18618 # else
18619 #  ifdef HAVE_ALLOCA_H
18620 #   include <alloca.h>
18621 #  else
18622 #   ifdef _AIX
18623  #pragma alloca
18624 #   else
18625 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18626 void *alloca (size_t);
18627 #    endif
18628 #   endif
18629 #  endif
18630 # endif
18631 #endif
18632
18633 int
18634 main ()
18635 {
18636 char *p = (char *) alloca (1);
18637                                     if (p) return 0;
18638   ;
18639   return 0;
18640 }
18641 _ACEOF
18642 if ac_fn_c_try_link "$LINENO"; then :
18643   ac_cv_func_alloca_works=yes
18644 else
18645   ac_cv_func_alloca_works=no
18646 fi
18647 rm -f core conftest.err conftest.$ac_objext \
18648     conftest$ac_exeext conftest.$ac_ext
18649 fi
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18651 $as_echo "$ac_cv_func_alloca_works" >&6; }
18652
18653 if test $ac_cv_func_alloca_works = yes; then
18654
18655 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18656
18657 else
18658   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18659 # that cause trouble.  Some versions do not even contain alloca or
18660 # contain a buggy version.  If you still want to use their alloca,
18661 # use ar to extract alloca.o from them instead of compiling alloca.c.
18662
18663 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18664
18665 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18666
18667
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18669 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18670 if ${ac_cv_os_cray+:} false; then :
18671   $as_echo_n "(cached) " >&6
18672 else
18673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h.  */
18675 #if defined CRAY && ! defined CRAY2
18676 webecray
18677 #else
18678 wenotbecray
18679 #endif
18680
18681 _ACEOF
18682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18683   $EGREP "webecray" >/dev/null 2>&1; then :
18684   ac_cv_os_cray=yes
18685 else
18686   ac_cv_os_cray=no
18687 fi
18688 rm -f conftest*
18689
18690 fi
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18692 $as_echo "$ac_cv_os_cray" >&6; }
18693 if test $ac_cv_os_cray = yes; then
18694   for ac_func in _getb67 GETB67 getb67; do
18695     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18697 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18698
18699 cat >>confdefs.h <<_ACEOF
18700 #define CRAY_STACKSEG_END $ac_func
18701 _ACEOF
18702
18703     break
18704 fi
18705
18706   done
18707 fi
18708
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18710 $as_echo_n "checking stack direction for C alloca... " >&6; }
18711 if ${ac_cv_c_stack_direction+:} false; then :
18712   $as_echo_n "(cached) " >&6
18713 else
18714   if test "$cross_compiling" = yes; then :
18715   ac_cv_c_stack_direction=0
18716 else
18717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18718 /* end confdefs.h.  */
18719 $ac_includes_default
18720 int
18721 find_stack_direction ()
18722 {
18723   static char *addr = 0;
18724   auto char dummy;
18725   if (addr == 0)
18726     {
18727       addr = &dummy;
18728       return find_stack_direction ();
18729     }
18730   else
18731     return (&dummy > addr) ? 1 : -1;
18732 }
18733
18734 int
18735 main ()
18736 {
18737   return find_stack_direction () < 0;
18738 }
18739 _ACEOF
18740 if ac_fn_c_try_run "$LINENO"; then :
18741   ac_cv_c_stack_direction=1
18742 else
18743   ac_cv_c_stack_direction=-1
18744 fi
18745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18746   conftest.$ac_objext conftest.beam conftest.$ac_ext
18747 fi
18748
18749 fi
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18751 $as_echo "$ac_cv_c_stack_direction" >&6; }
18752 cat >>confdefs.h <<_ACEOF
18753 #define STACK_DIRECTION $ac_cv_c_stack_direction
18754 _ACEOF
18755
18756
18757 fi
18758
18759
18760
18761
18762   for ac_header in $ac_header_list
18763 do :
18764   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18765 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18766 "
18767 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18768   cat >>confdefs.h <<_ACEOF
18769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18770 _ACEOF
18771
18772 fi
18773
18774 done
18775
18776
18777
18778
18779
18780
18781
18782
18783 for ac_func in getpagesize
18784 do :
18785   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18786 if test "x$ac_cv_func_getpagesize" = xyes; then :
18787   cat >>confdefs.h <<_ACEOF
18788 #define HAVE_GETPAGESIZE 1
18789 _ACEOF
18790
18791 fi
18792 done
18793
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18795 $as_echo_n "checking for working mmap... " >&6; }
18796 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18797   $as_echo_n "(cached) " >&6
18798 else
18799   if test "$cross_compiling" = yes; then :
18800   ac_cv_func_mmap_fixed_mapped=no
18801 else
18802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h.  */
18804 $ac_includes_default
18805 /* malloc might have been renamed as rpl_malloc. */
18806 #undef malloc
18807
18808 /* Thanks to Mike Haertel and Jim Avera for this test.
18809    Here is a matrix of mmap possibilities:
18810         mmap private not fixed
18811         mmap private fixed at somewhere currently unmapped
18812         mmap private fixed at somewhere already mapped
18813         mmap shared not fixed
18814         mmap shared fixed at somewhere currently unmapped
18815         mmap shared fixed at somewhere already mapped
18816    For private mappings, we should verify that changes cannot be read()
18817    back from the file, nor mmap's back from the file at a different
18818    address.  (There have been systems where private was not correctly
18819    implemented like the infamous i386 svr4.0, and systems where the
18820    VM page cache was not coherent with the file system buffer cache
18821    like early versions of FreeBSD and possibly contemporary NetBSD.)
18822    For shared mappings, we should conversely verify that changes get
18823    propagated back to all the places they're supposed to be.
18824
18825    Grep wants private fixed already mapped.
18826    The main things grep needs to know about mmap are:
18827    * does it exist and is it safe to write into the mmap'd area
18828    * how to use it (BSD variants)  */
18829
18830 #include <fcntl.h>
18831 #include <sys/mman.h>
18832
18833 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18834 char *malloc ();
18835 #endif
18836
18837 /* This mess was copied from the GNU getpagesize.h.  */
18838 #ifndef HAVE_GETPAGESIZE
18839 # ifdef _SC_PAGESIZE
18840 #  define getpagesize() sysconf(_SC_PAGESIZE)
18841 # else /* no _SC_PAGESIZE */
18842 #  ifdef HAVE_SYS_PARAM_H
18843 #   include <sys/param.h>
18844 #   ifdef EXEC_PAGESIZE
18845 #    define getpagesize() EXEC_PAGESIZE
18846 #   else /* no EXEC_PAGESIZE */
18847 #    ifdef NBPG
18848 #     define getpagesize() NBPG * CLSIZE
18849 #     ifndef CLSIZE
18850 #      define CLSIZE 1
18851 #     endif /* no CLSIZE */
18852 #    else /* no NBPG */
18853 #     ifdef NBPC
18854 #      define getpagesize() NBPC
18855 #     else /* no NBPC */
18856 #      ifdef PAGESIZE
18857 #       define getpagesize() PAGESIZE
18858 #      endif /* PAGESIZE */
18859 #     endif /* no NBPC */
18860 #    endif /* no NBPG */
18861 #   endif /* no EXEC_PAGESIZE */
18862 #  else /* no HAVE_SYS_PARAM_H */
18863 #   define getpagesize() 8192   /* punt totally */
18864 #  endif /* no HAVE_SYS_PARAM_H */
18865 # endif /* no _SC_PAGESIZE */
18866
18867 #endif /* no HAVE_GETPAGESIZE */
18868
18869 int
18870 main ()
18871 {
18872   char *data, *data2, *data3;
18873   const char *cdata2;
18874   int i, pagesize;
18875   int fd, fd2;
18876
18877   pagesize = getpagesize ();
18878
18879   /* First, make a file with some known garbage in it. */
18880   data = (char *) malloc (pagesize);
18881   if (!data)
18882     return 1;
18883   for (i = 0; i < pagesize; ++i)
18884     *(data + i) = rand ();
18885   umask (0);
18886   fd = creat ("conftest.mmap", 0600);
18887   if (fd < 0)
18888     return 2;
18889   if (write (fd, data, pagesize) != pagesize)
18890     return 3;
18891   close (fd);
18892
18893   /* Next, check that the tail of a page is zero-filled.  File must have
18894      non-zero length, otherwise we risk SIGBUS for entire page.  */
18895   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18896   if (fd2 < 0)
18897     return 4;
18898   cdata2 = "";
18899   if (write (fd2, cdata2, 1) != 1)
18900     return 5;
18901   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18902   if (data2 == MAP_FAILED)
18903     return 6;
18904   for (i = 0; i < pagesize; ++i)
18905     if (*(data2 + i))
18906       return 7;
18907   close (fd2);
18908   if (munmap (data2, pagesize))
18909     return 8;
18910
18911   /* Next, try to mmap the file at a fixed address which already has
18912      something else allocated at it.  If we can, also make sure that
18913      we see the same garbage.  */
18914   fd = open ("conftest.mmap", O_RDWR);
18915   if (fd < 0)
18916     return 9;
18917   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18918                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18919     return 10;
18920   for (i = 0; i < pagesize; ++i)
18921     if (*(data + i) != *(data2 + i))
18922       return 11;
18923
18924   /* Finally, make sure that changes to the mapped area do not
18925      percolate back to the file as seen by read().  (This is a bug on
18926      some variants of i386 svr4.0.)  */
18927   for (i = 0; i < pagesize; ++i)
18928     *(data2 + i) = *(data2 + i) + 1;
18929   data3 = (char *) malloc (pagesize);
18930   if (!data3)
18931     return 12;
18932   if (read (fd, data3, pagesize) != pagesize)
18933     return 13;
18934   for (i = 0; i < pagesize; ++i)
18935     if (*(data + i) != *(data3 + i))
18936       return 14;
18937   close (fd);
18938   return 0;
18939 }
18940 _ACEOF
18941 if ac_fn_c_try_run "$LINENO"; then :
18942   ac_cv_func_mmap_fixed_mapped=yes
18943 else
18944   ac_cv_func_mmap_fixed_mapped=no
18945 fi
18946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18947   conftest.$ac_objext conftest.beam conftest.$ac_ext
18948 fi
18949
18950 fi
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18952 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18953 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18954
18955 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18956
18957 fi
18958 rm -f conftest.mmap conftest.txt
18959
18960
18961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18962 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18963 if ${ac_cv_gnu_library_2_1+:} false; then :
18964   $as_echo_n "(cached) " >&6
18965 else
18966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h.  */
18968
18969 #include <features.h>
18970 #ifdef __GNU_LIBRARY__
18971  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18972   Lucky GNU user
18973  #endif
18974 #endif
18975
18976 _ACEOF
18977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18978   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18979   ac_cv_gnu_library_2_1=yes
18980 else
18981   ac_cv_gnu_library_2_1=no
18982 fi
18983 rm -f conftest*
18984
18985
18986
18987 fi
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18989 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18990
18991     GLIBC21="$ac_cv_gnu_library_2_1"
18992
18993
18994
18995
18996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18997 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18998 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
18999   $as_echo_n "(cached) " >&6
19000 else
19001
19002       if test "$cross_compiling" = yes; then :
19003
19004           # Guess based on the CPU.
19005           case "$host_cpu" in
19006             alpha* | i3456786 | m68k | s390*)
19007               gt_cv_int_divbyzero_sigfpe="guessing yes";;
19008             *)
19009               gt_cv_int_divbyzero_sigfpe="guessing no";;
19010           esac
19011
19012 else
19013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h.  */
19015
19016 #include <stdlib.h>
19017 #include <signal.h>
19018
19019 static void
19020 #ifdef __cplusplus
19021 sigfpe_handler (int sig)
19022 #else
19023 sigfpe_handler (sig) int sig;
19024 #endif
19025 {
19026   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
19027   exit (sig != SIGFPE);
19028 }
19029
19030 int x = 1;
19031 int y = 0;
19032 int z;
19033 int nan;
19034
19035 int main ()
19036 {
19037   signal (SIGFPE, sigfpe_handler);
19038 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
19039 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19040   signal (SIGTRAP, sigfpe_handler);
19041 #endif
19042 /* Linux/SPARC yields signal SIGILL.  */
19043 #if defined (__sparc__) && defined (__linux__)
19044   signal (SIGILL, sigfpe_handler);
19045 #endif
19046
19047   z = x / y;
19048   nan = y / y;
19049   exit (1);
19050 }
19051
19052 _ACEOF
19053 if ac_fn_c_try_run "$LINENO"; then :
19054   gt_cv_int_divbyzero_sigfpe=yes
19055 else
19056   gt_cv_int_divbyzero_sigfpe=no
19057 fi
19058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19059   conftest.$ac_objext conftest.beam conftest.$ac_ext
19060 fi
19061
19062
19063 fi
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19065 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19066   case "$gt_cv_int_divbyzero_sigfpe" in
19067     *yes) value=1;;
19068     *) value=0;;
19069   esac
19070
19071 cat >>confdefs.h <<_ACEOF
19072 #define INTDIV0_RAISES_SIGFPE $value
19073 _ACEOF
19074
19075
19076
19077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19078 $as_echo_n "checking for unsigned long long... " >&6; }
19079 if ${ac_cv_type_unsigned_long_long+:} false; then :
19080   $as_echo_n "(cached) " >&6
19081 else
19082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h.  */
19084 unsigned long long ull = 1ULL; int i = 63;
19085 int
19086 main ()
19087 {
19088 unsigned long long ullmax = (unsigned long long) -1;
19089      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 if ac_fn_c_try_link "$LINENO"; then :
19095   ac_cv_type_unsigned_long_long=yes
19096 else
19097   ac_cv_type_unsigned_long_long=no
19098 fi
19099 rm -f core conftest.err conftest.$ac_objext \
19100     conftest$ac_exeext conftest.$ac_ext
19101 fi
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19103 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19104   if test $ac_cv_type_unsigned_long_long = yes; then
19105
19106 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19107
19108   fi
19109
19110
19111
19112
19113   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19114
19115     test $ac_cv_type_unsigned_long_long = yes \
19116       && ac_type='unsigned long long' \
19117       || ac_type='unsigned long'
19118
19119 cat >>confdefs.h <<_ACEOF
19120 #define uintmax_t $ac_type
19121 _ACEOF
19122
19123   else
19124
19125 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19126
19127   fi
19128
19129
19130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19131 $as_echo_n "checking for inttypes.h... " >&6; }
19132 if ${gt_cv_header_inttypes_h+:} false; then :
19133   $as_echo_n "(cached) " >&6
19134 else
19135
19136     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19137 /* end confdefs.h.  */
19138 #include <sys/types.h>
19139 #include <inttypes.h>
19140 int
19141 main ()
19142 {
19143
19144   ;
19145   return 0;
19146 }
19147 _ACEOF
19148 if ac_fn_c_try_compile "$LINENO"; then :
19149   gt_cv_header_inttypes_h=yes
19150 else
19151   gt_cv_header_inttypes_h=no
19152 fi
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19154
19155 fi
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19157 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19158   if test $gt_cv_header_inttypes_h = yes; then
19159
19160 cat >>confdefs.h <<_ACEOF
19161 #define HAVE_INTTYPES_H 1
19162 _ACEOF
19163
19164   fi
19165
19166
19167
19168   if test $gt_cv_header_inttypes_h = yes; then
19169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19170 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19171 if ${gt_cv_inttypes_pri_broken+:} false; then :
19172   $as_echo_n "(cached) " >&6
19173 else
19174
19175         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h.  */
19177 #include <inttypes.h>
19178 #ifdef PRId32
19179 char *p = PRId32;
19180 #endif
19181
19182 int
19183 main ()
19184 {
19185
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 if ac_fn_c_try_compile "$LINENO"; then :
19191   gt_cv_inttypes_pri_broken=no
19192 else
19193   gt_cv_inttypes_pri_broken=yes
19194 fi
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196
19197 fi
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19199 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19200   fi
19201   if test "$gt_cv_inttypes_pri_broken" = yes; then
19202
19203 cat >>confdefs.h <<_ACEOF
19204 #define PRI_MACROS_BROKEN 1
19205 _ACEOF
19206
19207   fi
19208
19209
19210   for ac_header in stdint.h
19211 do :
19212   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19213 if test "x$ac_cv_header_stdint_h" = xyes; then :
19214   cat >>confdefs.h <<_ACEOF
19215 #define HAVE_STDINT_H 1
19216 _ACEOF
19217
19218 fi
19219
19220 done
19221
19222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19223 $as_echo_n "checking for SIZE_MAX... " >&6; }
19224   result=
19225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19226 /* end confdefs.h.  */
19227
19228 #include <limits.h>
19229 #if HAVE_STDINT_H
19230 #include <stdint.h>
19231 #endif
19232 #ifdef SIZE_MAX
19233 Found it
19234 #endif
19235
19236 _ACEOF
19237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19238   $EGREP "Found it" >/dev/null 2>&1; then :
19239   result=yes
19240 fi
19241 rm -f conftest*
19242
19243   if test -z "$result"; then
19244                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19245
19246 else
19247   result=?
19248 fi
19249
19250
19251     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19252
19253 else
19254   result=?
19255 fi
19256
19257
19258     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19259
19260 else
19261   result=?
19262 fi
19263
19264
19265     if test "$fits_in_uint" = 1; then
19266                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267 /* end confdefs.h.  */
19268 #include <stddef.h>
19269         extern size_t foo;
19270         extern unsigned long foo;
19271
19272 int
19273 main ()
19274 {
19275
19276   ;
19277   return 0;
19278 }
19279 _ACEOF
19280 if ac_fn_c_try_compile "$LINENO"; then :
19281   fits_in_uint=0
19282 fi
19283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284     fi
19285     if test -z "$result"; then
19286       if test "$fits_in_uint" = 1; then
19287         result="$res_hi$res_lo"U
19288       else
19289         result="$res_hi$res_lo"UL
19290       fi
19291     else
19292             result='~(size_t)0'
19293     fi
19294   fi
19295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19296 $as_echo "$result" >&6; }
19297   if test "$result" != yes; then
19298
19299 cat >>confdefs.h <<_ACEOF
19300 #define SIZE_MAX $result
19301 _ACEOF
19302
19303   fi
19304
19305
19306
19307
19308   for ac_header in stdint.h
19309 do :
19310   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19311 if test "x$ac_cv_header_stdint_h" = xyes; then :
19312   cat >>confdefs.h <<_ACEOF
19313 #define HAVE_STDINT_H 1
19314 _ACEOF
19315
19316 fi
19317
19318 done
19319
19320
19321
19322
19323
19324
19325
19326
19327   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19328 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19329
19330 else
19331
19332 $as_echo "#define ptrdiff_t long" >>confdefs.h
19333
19334
19335 fi
19336
19337   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19338 stdlib.h string.h unistd.h sys/param.h
19339 do :
19340   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19341 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19343   cat >>confdefs.h <<_ACEOF
19344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19345 _ACEOF
19346
19347 fi
19348
19349 done
19350
19351   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19352 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19353 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19354 __fsetlocking
19355 do :
19356   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19358 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19359   cat >>confdefs.h <<_ACEOF
19360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19361 _ACEOF
19362
19363 fi
19364 done
19365
19366
19367
19368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19369 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19370 if ${ac_cv_have_decl__snprintf+:} false; then :
19371   $as_echo_n "(cached) " >&6
19372 else
19373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19374 /* end confdefs.h.  */
19375 #include <stdio.h>
19376 int
19377 main ()
19378 {
19379
19380 #ifndef _snprintf
19381   char *p = (char *) _snprintf;
19382 #endif
19383
19384   ;
19385   return 0;
19386 }
19387 _ACEOF
19388 if ac_fn_c_try_compile "$LINENO"; then :
19389   ac_cv_have_decl__snprintf=yes
19390 else
19391   ac_cv_have_decl__snprintf=no
19392 fi
19393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19394 fi
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19396 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19397   if test $ac_cv_have_decl__snprintf = yes; then
19398     gt_value=1
19399   else
19400     gt_value=0
19401   fi
19402
19403 cat >>confdefs.h <<_ACEOF
19404 #define HAVE_DECL__SNPRINTF $gt_value
19405 _ACEOF
19406
19407
19408
19409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19410 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19411 if ${ac_cv_have_decl__snwprintf+:} false; then :
19412   $as_echo_n "(cached) " >&6
19413 else
19414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h.  */
19416 #include <stdio.h>
19417 int
19418 main ()
19419 {
19420
19421 #ifndef _snwprintf
19422   char *p = (char *) _snwprintf;
19423 #endif
19424
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 if ac_fn_c_try_compile "$LINENO"; then :
19430   ac_cv_have_decl__snwprintf=yes
19431 else
19432   ac_cv_have_decl__snwprintf=no
19433 fi
19434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19435 fi
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19437 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19438   if test $ac_cv_have_decl__snwprintf = yes; then
19439     gt_value=1
19440   else
19441     gt_value=0
19442   fi
19443
19444 cat >>confdefs.h <<_ACEOF
19445 #define HAVE_DECL__SNWPRINTF $gt_value
19446 _ACEOF
19447
19448
19449
19450
19451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19452 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19453 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
19454   $as_echo_n "(cached) " >&6
19455 else
19456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h.  */
19458 #include <stdio.h>
19459 int
19460 main ()
19461 {
19462
19463 #ifndef feof_unlocked
19464   char *p = (char *) feof_unlocked;
19465 #endif
19466
19467   ;
19468   return 0;
19469 }
19470 _ACEOF
19471 if ac_fn_c_try_compile "$LINENO"; then :
19472   ac_cv_have_decl_feof_unlocked=yes
19473 else
19474   ac_cv_have_decl_feof_unlocked=no
19475 fi
19476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477 fi
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19479 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19480   if test $ac_cv_have_decl_feof_unlocked = yes; then
19481     gt_value=1
19482   else
19483     gt_value=0
19484   fi
19485
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19488 _ACEOF
19489
19490
19491
19492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19493 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19494 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
19495   $as_echo_n "(cached) " >&6
19496 else
19497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h.  */
19499 #include <stdio.h>
19500 int
19501 main ()
19502 {
19503
19504 #ifndef fgets_unlocked
19505   char *p = (char *) fgets_unlocked;
19506 #endif
19507
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 if ac_fn_c_try_compile "$LINENO"; then :
19513   ac_cv_have_decl_fgets_unlocked=yes
19514 else
19515   ac_cv_have_decl_fgets_unlocked=no
19516 fi
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518 fi
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19520 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19521   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19522     gt_value=1
19523   else
19524     gt_value=0
19525   fi
19526
19527 cat >>confdefs.h <<_ACEOF
19528 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19529 _ACEOF
19530
19531
19532
19533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19534 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19535 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19536   $as_echo_n "(cached) " >&6
19537 else
19538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19539 /* end confdefs.h.  */
19540 #include <stdio.h>
19541 int
19542 main ()
19543 {
19544
19545 #ifndef getc_unlocked
19546   char *p = (char *) getc_unlocked;
19547 #endif
19548
19549   ;
19550   return 0;
19551 }
19552 _ACEOF
19553 if ac_fn_c_try_compile "$LINENO"; then :
19554   ac_cv_have_decl_getc_unlocked=yes
19555 else
19556   ac_cv_have_decl_getc_unlocked=no
19557 fi
19558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19559 fi
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19561 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19562   if test $ac_cv_have_decl_getc_unlocked = yes; then
19563     gt_value=1
19564   else
19565     gt_value=0
19566   fi
19567
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19570 _ACEOF
19571
19572
19573
19574   case $gt_cv_func_printf_posix in
19575     *yes) HAVE_POSIX_PRINTF=1 ;;
19576     *) HAVE_POSIX_PRINTF=0 ;;
19577   esac
19578
19579   if test "$ac_cv_func_asprintf" = yes; then
19580     HAVE_ASPRINTF=1
19581   else
19582     HAVE_ASPRINTF=0
19583   fi
19584
19585   if test "$ac_cv_func_snprintf" = yes; then
19586     HAVE_SNPRINTF=1
19587   else
19588     HAVE_SNPRINTF=0
19589   fi
19590
19591   if test "$ac_cv_func_wprintf" = yes; then
19592     HAVE_WPRINTF=1
19593   else
19594     HAVE_WPRINTF=0
19595   fi
19596
19597
19598
19599
19600
19601
19602
19603           am_save_CPPFLAGS="$CPPFLAGS"
19604
19605   for element in $INCICONV; do
19606     haveit=
19607     for x in $CPPFLAGS; do
19608
19609   acl_save_prefix="$prefix"
19610   prefix="$acl_final_prefix"
19611   acl_save_exec_prefix="$exec_prefix"
19612   exec_prefix="$acl_final_exec_prefix"
19613   eval x=\"$x\"
19614   exec_prefix="$acl_save_exec_prefix"
19615   prefix="$acl_save_prefix"
19616
19617       if test "X$x" = "X$element"; then
19618         haveit=yes
19619         break
19620       fi
19621     done
19622     if test -z "$haveit"; then
19623       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19624     fi
19625   done
19626
19627
19628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19629 $as_echo_n "checking for iconv... " >&6; }
19630 if ${am_cv_func_iconv+:} false; then :
19631   $as_echo_n "(cached) " >&6
19632 else
19633
19634     am_cv_func_iconv="no, consider installing GNU libiconv"
19635     am_cv_lib_iconv=no
19636     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h.  */
19638 #include <stdlib.h>
19639 #include <iconv.h>
19640 int
19641 main ()
19642 {
19643 iconv_t cd = iconv_open("","");
19644        iconv(cd,NULL,NULL,NULL,NULL);
19645        iconv_close(cd);
19646   ;
19647   return 0;
19648 }
19649 _ACEOF
19650 if ac_fn_c_try_link "$LINENO"; then :
19651   am_cv_func_iconv=yes
19652 fi
19653 rm -f core conftest.err conftest.$ac_objext \
19654     conftest$ac_exeext conftest.$ac_ext
19655     if test "$am_cv_func_iconv" != yes; then
19656       am_save_LIBS="$LIBS"
19657       LIBS="$LIBS $LIBICONV"
19658       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19659 /* end confdefs.h.  */
19660 #include <stdlib.h>
19661 #include <iconv.h>
19662 int
19663 main ()
19664 {
19665 iconv_t cd = iconv_open("","");
19666          iconv(cd,NULL,NULL,NULL,NULL);
19667          iconv_close(cd);
19668   ;
19669   return 0;
19670 }
19671 _ACEOF
19672 if ac_fn_c_try_link "$LINENO"; then :
19673   am_cv_lib_iconv=yes
19674         am_cv_func_iconv=yes
19675 fi
19676 rm -f core conftest.err conftest.$ac_objext \
19677     conftest$ac_exeext conftest.$ac_ext
19678       LIBS="$am_save_LIBS"
19679     fi
19680
19681 fi
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19683 $as_echo "$am_cv_func_iconv" >&6; }
19684   if test "$am_cv_func_iconv" = yes; then
19685
19686 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19687
19688   fi
19689   if test "$am_cv_lib_iconv" = yes; then
19690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19691 $as_echo_n "checking how to link with libiconv... " >&6; }
19692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19693 $as_echo "$LIBICONV" >&6; }
19694   else
19695             CPPFLAGS="$am_save_CPPFLAGS"
19696     LIBICONV=
19697     LTLIBICONV=
19698   fi
19699
19700
19701
19702   if test "$am_cv_func_iconv" = yes; then
19703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19704 $as_echo_n "checking for iconv declaration... " >&6; }
19705     if ${am_cv_proto_iconv+:} false; then :
19706   $as_echo_n "(cached) " >&6
19707 else
19708
19709       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19710 /* end confdefs.h.  */
19711
19712 #include <stdlib.h>
19713 #include <iconv.h>
19714 extern
19715 #ifdef __cplusplus
19716 "C"
19717 #endif
19718 #if defined(__STDC__) || defined(__cplusplus)
19719 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19720 #else
19721 size_t iconv();
19722 #endif
19723
19724 int
19725 main ()
19726 {
19727
19728   ;
19729   return 0;
19730 }
19731 _ACEOF
19732 if ac_fn_c_try_compile "$LINENO"; then :
19733   am_cv_proto_iconv_arg1=""
19734 else
19735   am_cv_proto_iconv_arg1="const"
19736 fi
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738       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);"
19739 fi
19740
19741     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19743          }$am_cv_proto_iconv" >&5
19744 $as_echo "${ac_t:-
19745          }$am_cv_proto_iconv" >&6; }
19746
19747 cat >>confdefs.h <<_ACEOF
19748 #define ICONV_CONST $am_cv_proto_iconv_arg1
19749 _ACEOF
19750
19751   fi
19752
19753
19754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19755 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19756 if ${am_cv_langinfo_codeset+:} false; then :
19757   $as_echo_n "(cached) " >&6
19758 else
19759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19760 /* end confdefs.h.  */
19761 #include <langinfo.h>
19762 int
19763 main ()
19764 {
19765 char* cs = nl_langinfo(CODESET);
19766   ;
19767   return 0;
19768 }
19769 _ACEOF
19770 if ac_fn_c_try_link "$LINENO"; then :
19771   am_cv_langinfo_codeset=yes
19772 else
19773   am_cv_langinfo_codeset=no
19774 fi
19775 rm -f core conftest.err conftest.$ac_objext \
19776     conftest$ac_exeext conftest.$ac_ext
19777
19778 fi
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19780 $as_echo "$am_cv_langinfo_codeset" >&6; }
19781   if test $am_cv_langinfo_codeset = yes; then
19782
19783 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19784
19785   fi
19786
19787   if test $ac_cv_header_locale_h = yes; then
19788
19789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19790 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19791 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19792   $as_echo_n "(cached) " >&6
19793 else
19794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19795 /* end confdefs.h.  */
19796 #include <locale.h>
19797 int
19798 main ()
19799 {
19800 return LC_MESSAGES
19801   ;
19802   return 0;
19803 }
19804 _ACEOF
19805 if ac_fn_c_try_link "$LINENO"; then :
19806   gt_cv_val_LC_MESSAGES=yes
19807 else
19808   gt_cv_val_LC_MESSAGES=no
19809 fi
19810 rm -f core conftest.err conftest.$ac_objext \
19811     conftest$ac_exeext conftest.$ac_ext
19812 fi
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19814 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19815   if test $gt_cv_val_LC_MESSAGES = yes; then
19816
19817 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19818
19819   fi
19820
19821   fi
19822
19823   if test -n "$INTL_MACOSX_LIBS"; then
19824     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19825   fi
19826
19827                       for ac_prog in bison
19828 do
19829   # Extract the first word of "$ac_prog", so it can be a program name with args.
19830 set dummy $ac_prog; ac_word=$2
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19832 $as_echo_n "checking for $ac_word... " >&6; }
19833 if ${ac_cv_prog_INTLBISON+:} false; then :
19834   $as_echo_n "(cached) " >&6
19835 else
19836   if test -n "$INTLBISON"; then
19837   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19838 else
19839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19840 for as_dir in $PATH
19841 do
19842   IFS=$as_save_IFS
19843   test -z "$as_dir" && as_dir=.
19844     for ac_exec_ext in '' $ac_executable_extensions; do
19845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19846     ac_cv_prog_INTLBISON="$ac_prog"
19847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19848     break 2
19849   fi
19850 done
19851   done
19852 IFS=$as_save_IFS
19853
19854 fi
19855 fi
19856 INTLBISON=$ac_cv_prog_INTLBISON
19857 if test -n "$INTLBISON"; then
19858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19859 $as_echo "$INTLBISON" >&6; }
19860 else
19861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19862 $as_echo "no" >&6; }
19863 fi
19864
19865
19866   test -n "$INTLBISON" && break
19867 done
19868
19869   if test -z "$INTLBISON"; then
19870     ac_verc_fail=yes
19871   else
19872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19873 $as_echo_n "checking version of bison... " >&6; }
19874     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19875     case $ac_prog_version in
19876       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19877       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19878          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19879       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19880     esac
19881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19882 $as_echo "$ac_prog_version" >&6; }
19883   fi
19884   if test $ac_verc_fail = yes; then
19885     INTLBISON=:
19886   fi
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19904 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19905 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19906   $as_echo_n "(cached) " >&6
19907 else
19908   gt_save_CPPFLAGS="$CPPFLAGS"
19909      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19910      gt_save_LIBS="$LIBS"
19911      LIBS="$LIBS -framework CoreFoundation"
19912      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19913 /* end confdefs.h.  */
19914 #include <CFPreferences.h>
19915 int
19916 main ()
19917 {
19918 CFPreferencesCopyAppValue(NULL, NULL)
19919   ;
19920   return 0;
19921 }
19922 _ACEOF
19923 if ac_fn_c_try_link "$LINENO"; then :
19924   gt_cv_func_CFPreferencesCopyAppValue=yes
19925 else
19926   gt_cv_func_CFPreferencesCopyAppValue=no
19927 fi
19928 rm -f core conftest.err conftest.$ac_objext \
19929     conftest$ac_exeext conftest.$ac_ext
19930      CPPFLAGS="$gt_save_CPPFLAGS"
19931      LIBS="$gt_save_LIBS"
19932 fi
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19934 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19935   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19936
19937 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19938
19939   fi
19940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19941 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19942 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19943   $as_echo_n "(cached) " >&6
19944 else
19945   gt_save_CPPFLAGS="$CPPFLAGS"
19946      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19947      gt_save_LIBS="$LIBS"
19948      LIBS="$LIBS -framework CoreFoundation"
19949      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19950 /* end confdefs.h.  */
19951 #include <CFLocale.h>
19952 int
19953 main ()
19954 {
19955 CFLocaleCopyCurrent();
19956   ;
19957   return 0;
19958 }
19959 _ACEOF
19960 if ac_fn_c_try_link "$LINENO"; then :
19961   gt_cv_func_CFLocaleCopyCurrent=yes
19962 else
19963   gt_cv_func_CFLocaleCopyCurrent=no
19964 fi
19965 rm -f core conftest.err conftest.$ac_objext \
19966     conftest$ac_exeext conftest.$ac_ext
19967      CPPFLAGS="$gt_save_CPPFLAGS"
19968      LIBS="$gt_save_LIBS"
19969 fi
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19971 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19972   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19973
19974 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19975
19976   fi
19977   INTL_MACOSX_LIBS=
19978   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19979     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19980   fi
19981
19982
19983
19984
19985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19986 $as_echo_n "checking whether NLS is requested... " >&6; }
19987     # Check whether --enable-nls was given.
19988 if test "${enable_nls+set}" = set; then :
19989   enableval=$enable_nls; USE_NLS=$enableval
19990 else
19991   USE_NLS=yes
19992 fi
19993
19994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19995 $as_echo "$USE_NLS" >&6; }
19996
19997
19998
19999
20000     BUILD_INCLUDED_LIBINTL=no
20001     USE_INCLUDED_LIBINTL=no
20002
20003   LIBINTL=
20004   LTLIBINTL=
20005   POSUB=
20006
20007     if test "$USE_NLS" = "yes"; then
20008     gt_use_preinstalled_gnugettext=no
20009
20010       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20011 $as_echo_n "checking whether included gettext is requested... " >&6; }
20012
20013 # Check whether --with-included-gettext was given.
20014 if test "${with_included_gettext+set}" = set; then :
20015   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20016 else
20017   nls_cv_force_use_gnu_gettext=no
20018 fi
20019
20020       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20021 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20022
20023       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20024       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20025
20026
20027
20028
20029
20030
20031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20032 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20033 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20034   $as_echo_n "(cached) " >&6
20035 else
20036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20037 /* end confdefs.h.  */
20038 #include <libintl.h>
20039 extern int _nl_msg_cat_cntr;
20040 extern int *_nl_domain_bindings;
20041 int
20042 main ()
20043 {
20044 bindtextdomain ("", "");
20045 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20046   ;
20047   return 0;
20048 }
20049 _ACEOF
20050 if ac_fn_c_try_link "$LINENO"; then :
20051   gt_cv_func_gnugettext1_libc=yes
20052 else
20053   gt_cv_func_gnugettext1_libc=no
20054 fi
20055 rm -f core conftest.err conftest.$ac_objext \
20056     conftest$ac_exeext conftest.$ac_ext
20057 fi
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20059 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20060
20061         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20062
20063
20064
20065     use_additional=yes
20066
20067   acl_save_prefix="$prefix"
20068   prefix="$acl_final_prefix"
20069   acl_save_exec_prefix="$exec_prefix"
20070   exec_prefix="$acl_final_exec_prefix"
20071
20072     eval additional_includedir=\"$includedir\"
20073     eval additional_libdir=\"$libdir\"
20074
20075   exec_prefix="$acl_save_exec_prefix"
20076   prefix="$acl_save_prefix"
20077
20078
20079 # Check whether --with-libintl-prefix was given.
20080 if test "${with_libintl_prefix+set}" = set; then :
20081   withval=$with_libintl_prefix;
20082     if test "X$withval" = "Xno"; then
20083       use_additional=no
20084     else
20085       if test "X$withval" = "X"; then
20086
20087   acl_save_prefix="$prefix"
20088   prefix="$acl_final_prefix"
20089   acl_save_exec_prefix="$exec_prefix"
20090   exec_prefix="$acl_final_exec_prefix"
20091
20092           eval additional_includedir=\"$includedir\"
20093           eval additional_libdir=\"$libdir\"
20094
20095   exec_prefix="$acl_save_exec_prefix"
20096   prefix="$acl_save_prefix"
20097
20098       else
20099         additional_includedir="$withval/include"
20100         additional_libdir="$withval/lib"
20101       fi
20102     fi
20103
20104 fi
20105
20106       LIBINTL=
20107   LTLIBINTL=
20108   INCINTL=
20109   rpathdirs=
20110   ltrpathdirs=
20111   names_already_handled=
20112   names_next_round='intl '
20113   while test -n "$names_next_round"; do
20114     names_this_round="$names_next_round"
20115     names_next_round=
20116     for name in $names_this_round; do
20117       already_handled=
20118       for n in $names_already_handled; do
20119         if test "$n" = "$name"; then
20120           already_handled=yes
20121           break
20122         fi
20123       done
20124       if test -z "$already_handled"; then
20125         names_already_handled="$names_already_handled $name"
20126                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20127         eval value=\"\$HAVE_LIB$uppername\"
20128         if test -n "$value"; then
20129           if test "$value" = yes; then
20130             eval value=\"\$LIB$uppername\"
20131             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20132             eval value=\"\$LTLIB$uppername\"
20133             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20134           else
20135                                     :
20136           fi
20137         else
20138                               found_dir=
20139           found_la=
20140           found_so=
20141           found_a=
20142           if test $use_additional = yes; then
20143             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20144               found_dir="$additional_libdir"
20145               found_so="$additional_libdir/lib$name.$shlibext"
20146               if test -f "$additional_libdir/lib$name.la"; then
20147                 found_la="$additional_libdir/lib$name.la"
20148               fi
20149             else
20150               if test -f "$additional_libdir/lib$name.$libext"; then
20151                 found_dir="$additional_libdir"
20152                 found_a="$additional_libdir/lib$name.$libext"
20153                 if test -f "$additional_libdir/lib$name.la"; then
20154                   found_la="$additional_libdir/lib$name.la"
20155                 fi
20156               fi
20157             fi
20158           fi
20159           if test "X$found_dir" = "X"; then
20160             for x in $LDFLAGS $LTLIBINTL; do
20161
20162   acl_save_prefix="$prefix"
20163   prefix="$acl_final_prefix"
20164   acl_save_exec_prefix="$exec_prefix"
20165   exec_prefix="$acl_final_exec_prefix"
20166   eval x=\"$x\"
20167   exec_prefix="$acl_save_exec_prefix"
20168   prefix="$acl_save_prefix"
20169
20170               case "$x" in
20171                 -L*)
20172                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20173                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20174                     found_dir="$dir"
20175                     found_so="$dir/lib$name.$shlibext"
20176                     if test -f "$dir/lib$name.la"; then
20177                       found_la="$dir/lib$name.la"
20178                     fi
20179                   else
20180                     if test -f "$dir/lib$name.$libext"; then
20181                       found_dir="$dir"
20182                       found_a="$dir/lib$name.$libext"
20183                       if test -f "$dir/lib$name.la"; then
20184                         found_la="$dir/lib$name.la"
20185                       fi
20186                     fi
20187                   fi
20188                   ;;
20189               esac
20190               if test "X$found_dir" != "X"; then
20191                 break
20192               fi
20193             done
20194           fi
20195           if test "X$found_dir" != "X"; then
20196                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20197             if test "X$found_so" != "X"; then
20198                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20199                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20200               else
20201                                                                                 haveit=
20202                 for x in $ltrpathdirs; do
20203                   if test "X$x" = "X$found_dir"; then
20204                     haveit=yes
20205                     break
20206                   fi
20207                 done
20208                 if test -z "$haveit"; then
20209                   ltrpathdirs="$ltrpathdirs $found_dir"
20210                 fi
20211                                 if test "$hardcode_direct" = yes; then
20212                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20213                 else
20214                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20215                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20216                                                             haveit=
20217                     for x in $rpathdirs; do
20218                       if test "X$x" = "X$found_dir"; then
20219                         haveit=yes
20220                         break
20221                       fi
20222                     done
20223                     if test -z "$haveit"; then
20224                       rpathdirs="$rpathdirs $found_dir"
20225                     fi
20226                   else
20227                                                                                 haveit=
20228                     for x in $LDFLAGS $LIBINTL; do
20229
20230   acl_save_prefix="$prefix"
20231   prefix="$acl_final_prefix"
20232   acl_save_exec_prefix="$exec_prefix"
20233   exec_prefix="$acl_final_exec_prefix"
20234   eval x=\"$x\"
20235   exec_prefix="$acl_save_exec_prefix"
20236   prefix="$acl_save_prefix"
20237
20238                       if test "X$x" = "X-L$found_dir"; then
20239                         haveit=yes
20240                         break
20241                       fi
20242                     done
20243                     if test -z "$haveit"; then
20244                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20245                     fi
20246                     if test "$hardcode_minus_L" != no; then
20247                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20248                     else
20249                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20250                     fi
20251                   fi
20252                 fi
20253               fi
20254             else
20255               if test "X$found_a" != "X"; then
20256                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20257               else
20258                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20259               fi
20260             fi
20261                         additional_includedir=
20262             case "$found_dir" in
20263               */lib | */lib/)
20264                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20265                 additional_includedir="$basedir/include"
20266                 ;;
20267             esac
20268             if test "X$additional_includedir" != "X"; then
20269                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20270                 haveit=
20271                 if test "X$additional_includedir" = "X/usr/local/include"; then
20272                   if test -n "$GCC"; then
20273                     case $host_os in
20274                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20275                     esac
20276                   fi
20277                 fi
20278                 if test -z "$haveit"; then
20279                   for x in $CPPFLAGS $INCINTL; do
20280
20281   acl_save_prefix="$prefix"
20282   prefix="$acl_final_prefix"
20283   acl_save_exec_prefix="$exec_prefix"
20284   exec_prefix="$acl_final_exec_prefix"
20285   eval x=\"$x\"
20286   exec_prefix="$acl_save_exec_prefix"
20287   prefix="$acl_save_prefix"
20288
20289                     if test "X$x" = "X-I$additional_includedir"; then
20290                       haveit=yes
20291                       break
20292                     fi
20293                   done
20294                   if test -z "$haveit"; then
20295                     if test -d "$additional_includedir"; then
20296                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20297                     fi
20298                   fi
20299                 fi
20300               fi
20301             fi
20302                         if test -n "$found_la"; then
20303                                                         save_libdir="$libdir"
20304               case "$found_la" in
20305                 */* | *\\*) . "$found_la" ;;
20306                 *) . "./$found_la" ;;
20307               esac
20308               libdir="$save_libdir"
20309                             for dep in $dependency_libs; do
20310                 case "$dep" in
20311                   -L*)
20312                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20313                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20314                       haveit=
20315                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20316                         if test -n "$GCC"; then
20317                           case $host_os in
20318                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20319                           esac
20320                         fi
20321                       fi
20322                       if test -z "$haveit"; then
20323                         haveit=
20324                         for x in $LDFLAGS $LIBINTL; do
20325
20326   acl_save_prefix="$prefix"
20327   prefix="$acl_final_prefix"
20328   acl_save_exec_prefix="$exec_prefix"
20329   exec_prefix="$acl_final_exec_prefix"
20330   eval x=\"$x\"
20331   exec_prefix="$acl_save_exec_prefix"
20332   prefix="$acl_save_prefix"
20333
20334                           if test "X$x" = "X-L$additional_libdir"; then
20335                             haveit=yes
20336                             break
20337                           fi
20338                         done
20339                         if test -z "$haveit"; then
20340                           if test -d "$additional_libdir"; then
20341                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20342                           fi
20343                         fi
20344                         haveit=
20345                         for x in $LDFLAGS $LTLIBINTL; do
20346
20347   acl_save_prefix="$prefix"
20348   prefix="$acl_final_prefix"
20349   acl_save_exec_prefix="$exec_prefix"
20350   exec_prefix="$acl_final_exec_prefix"
20351   eval x=\"$x\"
20352   exec_prefix="$acl_save_exec_prefix"
20353   prefix="$acl_save_prefix"
20354
20355                           if test "X$x" = "X-L$additional_libdir"; then
20356                             haveit=yes
20357                             break
20358                           fi
20359                         done
20360                         if test -z "$haveit"; then
20361                           if test -d "$additional_libdir"; then
20362                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20363                           fi
20364                         fi
20365                       fi
20366                     fi
20367                     ;;
20368                   -R*)
20369                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20370                     if test "$enable_rpath" != no; then
20371                                                                   haveit=
20372                       for x in $rpathdirs; do
20373                         if test "X$x" = "X$dir"; then
20374                           haveit=yes
20375                           break
20376                         fi
20377                       done
20378                       if test -z "$haveit"; then
20379                         rpathdirs="$rpathdirs $dir"
20380                       fi
20381                                                                   haveit=
20382                       for x in $ltrpathdirs; do
20383                         if test "X$x" = "X$dir"; then
20384                           haveit=yes
20385                           break
20386                         fi
20387                       done
20388                       if test -z "$haveit"; then
20389                         ltrpathdirs="$ltrpathdirs $dir"
20390                       fi
20391                     fi
20392                     ;;
20393                   -l*)
20394                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20395                     ;;
20396                   *.la)
20397                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20398                     ;;
20399                   *)
20400                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20401                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20402                     ;;
20403                 esac
20404               done
20405             fi
20406           else
20407                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20408             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20409           fi
20410         fi
20411       fi
20412     done
20413   done
20414   if test "X$rpathdirs" != "X"; then
20415     if test -n "$hardcode_libdir_separator"; then
20416                         alldirs=
20417       for found_dir in $rpathdirs; do
20418         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20419       done
20420             acl_save_libdir="$libdir"
20421       libdir="$alldirs"
20422       eval flag=\"$hardcode_libdir_flag_spec\"
20423       libdir="$acl_save_libdir"
20424       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20425     else
20426             for found_dir in $rpathdirs; do
20427         acl_save_libdir="$libdir"
20428         libdir="$found_dir"
20429         eval flag=\"$hardcode_libdir_flag_spec\"
20430         libdir="$acl_save_libdir"
20431         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20432       done
20433     fi
20434   fi
20435   if test "X$ltrpathdirs" != "X"; then
20436             for found_dir in $ltrpathdirs; do
20437       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20438     done
20439   fi
20440
20441           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20442 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20443 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
20444   $as_echo_n "(cached) " >&6
20445 else
20446   gt_save_CPPFLAGS="$CPPFLAGS"
20447             CPPFLAGS="$CPPFLAGS $INCINTL"
20448             gt_save_LIBS="$LIBS"
20449             LIBS="$LIBS $LIBINTL"
20450                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451 /* end confdefs.h.  */
20452 #include <libintl.h>
20453 extern int _nl_msg_cat_cntr;
20454 extern
20455 #ifdef __cplusplus
20456 "C"
20457 #endif
20458 const char *_nl_expand_alias (const char *);
20459 int
20460 main ()
20461 {
20462 bindtextdomain ("", "");
20463 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20464   ;
20465   return 0;
20466 }
20467 _ACEOF
20468 if ac_fn_c_try_link "$LINENO"; then :
20469   gt_cv_func_gnugettext1_libintl=yes
20470 else
20471   gt_cv_func_gnugettext1_libintl=no
20472 fi
20473 rm -f core conftest.err conftest.$ac_objext \
20474     conftest$ac_exeext conftest.$ac_ext
20475                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20476               LIBS="$LIBS $LIBICONV"
20477               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h.  */
20479 #include <libintl.h>
20480 extern int _nl_msg_cat_cntr;
20481 extern
20482 #ifdef __cplusplus
20483 "C"
20484 #endif
20485 const char *_nl_expand_alias (const char *);
20486 int
20487 main ()
20488 {
20489 bindtextdomain ("", "");
20490 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20491   ;
20492   return 0;
20493 }
20494 _ACEOF
20495 if ac_fn_c_try_link "$LINENO"; then :
20496   LIBINTL="$LIBINTL $LIBICONV"
20497                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20498                 gt_cv_func_gnugettext1_libintl=yes
20499
20500 fi
20501 rm -f core conftest.err conftest.$ac_objext \
20502     conftest$ac_exeext conftest.$ac_ext
20503             fi
20504             CPPFLAGS="$gt_save_CPPFLAGS"
20505             LIBS="$gt_save_LIBS"
20506 fi
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20508 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20509         fi
20510
20511                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20512            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20513                 && test "$PACKAGE" != gettext-runtime \
20514                 && test "$PACKAGE" != gettext-tools; }; then
20515           gt_use_preinstalled_gnugettext=yes
20516         else
20517                     LIBINTL=
20518           LTLIBINTL=
20519           INCINTL=
20520         fi
20521
20522
20523         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20524                               nls_cv_use_gnu_gettext=yes
20525         fi
20526       fi
20527
20528       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20529                 BUILD_INCLUDED_LIBINTL=yes
20530         USE_INCLUDED_LIBINTL=yes
20531         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20532         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20533         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20534       fi
20535
20536       CATOBJEXT=
20537       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20538          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20539                 CATOBJEXT=.gmo
20540       fi
20541
20542
20543     if test -n "$INTL_MACOSX_LIBS"; then
20544       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20545          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20546                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20547         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20548       fi
20549     fi
20550
20551     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20552        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20553
20554 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20555
20556     else
20557       USE_NLS=no
20558     fi
20559   fi
20560
20561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20562 $as_echo_n "checking whether to use NLS... " >&6; }
20563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20564 $as_echo "$USE_NLS" >&6; }
20565   if test "$USE_NLS" = "yes"; then
20566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20567 $as_echo_n "checking where the gettext function comes from... " >&6; }
20568     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20569       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20570         gt_source="external libintl"
20571       else
20572         gt_source="libc"
20573       fi
20574     else
20575       gt_source="included intl directory"
20576     fi
20577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20578 $as_echo "$gt_source" >&6; }
20579   fi
20580
20581   if test "$USE_NLS" = "yes"; then
20582
20583     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20584       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20586 $as_echo_n "checking how to link with libintl... " >&6; }
20587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20588 $as_echo "$LIBINTL" >&6; }
20589
20590   for element in $INCINTL; do
20591     haveit=
20592     for x in $CPPFLAGS; do
20593
20594   acl_save_prefix="$prefix"
20595   prefix="$acl_final_prefix"
20596   acl_save_exec_prefix="$exec_prefix"
20597   exec_prefix="$acl_final_exec_prefix"
20598   eval x=\"$x\"
20599   exec_prefix="$acl_save_exec_prefix"
20600   prefix="$acl_save_prefix"
20601
20602       if test "X$x" = "X$element"; then
20603         haveit=yes
20604         break
20605       fi
20606     done
20607     if test -z "$haveit"; then
20608       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20609     fi
20610   done
20611
20612       fi
20613
20614
20615 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20616
20617
20618 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20619
20620     fi
20621
20622         POSUB=po
20623   fi
20624
20625
20626             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20627       BUILD_INCLUDED_LIBINTL=yes
20628     fi
20629
20630
20631
20632
20633
20634         nls_cv_header_intl=
20635     nls_cv_header_libgt=
20636
20637         DATADIRNAME=share
20638
20639
20640         INSTOBJEXT=.mo
20641
20642
20643         GENCAT=gencat
20644
20645
20646         INTLOBJS=
20647     if test "$USE_INCLUDED_LIBINTL" = yes; then
20648       INTLOBJS="\$(GETTOBJS)"
20649     fi
20650
20651
20652         INTL_LIBTOOL_SUFFIX_PREFIX=
20653
20654
20655
20656     INTLLIBS="$LIBINTL"
20657
20658
20659
20660
20661
20662
20663 fi
20664
20665 support_smartalloc=yes
20666 support_readline=yes
20667 support_conio=yes
20668 support_gnome=no
20669 support_bat=no
20670 support_wx_console=no
20671 support_tray_monitor=no
20672 support_tls=no
20673 support_crypto=no
20674 gnome_version=
20675 wx_version=
20676 support_static_tools=no
20677 support_static_fd=no
20678 support_static_sd=no
20679 support_static_dir=no
20680 support_static_cons=no
20681 support_python=no
20682 build_client_only=no
20683 build_dird=yes
20684 build_stored=yes
20685 db_backends=""
20686 support_lockmgr=no
20687
20688
20689 # Check whether --enable-gnome was given.
20690 if test "${enable_gnome+set}" = set; then :
20691   enableval=$enable_gnome;
20692        if test x$enableval = xyes; then
20693           support_gnome=yes
20694        fi
20695
20696
20697 fi
20698
20699
20700 GNOME_DIR=
20701 if test x$support_gnome = xyes; then
20702    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20703    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20704 fi
20705 # AC_SUBST(GNOME_DIR)
20706
20707 # Check whether --enable-bat was given.
20708 if test "${enable_bat+set}" = set; then :
20709   enableval=$enable_bat;
20710        if test x$enableval = xyes; then
20711
20712 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20713
20714           support_bat=yes
20715        fi
20716
20717
20718 fi
20719
20720
20721 BAT_DIR=
20722 if test x$support_bat = xyes; then
20723    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20724    pkg=$?
20725    if test $pkg = 0; then
20726       BAT_DIR=src/qt-console
20727    else
20728       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20729    fi
20730 fi
20731
20732 got_qwt=no
20733 QWT_INC=
20734 QWT_LDFLAGS=
20735 QWT_LIB=
20736 QWT=
20737 no_qwt=no
20738
20739
20740
20741
20742
20743
20744
20745
20746 # Check whether --enable-bwx-console was given.
20747 if test "${enable_bwx_console+set}" = set; then :
20748   enableval=$enable_bwx_console;
20749        if test x$enableval = xyes; then
20750           support_wx_console=yes
20751        fi
20752
20753
20754 fi
20755
20756
20757 WX_DIR=
20758 if test x$support_wx_console = xyes; then
20759    abc=`$WXCONFIG $WXFLAGS --cppflags`
20760    pkg=$?
20761    if test $pkg = 0; then
20762       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20763       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20764       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20765
20766
20767
20768       WX_DIR="src/wx-console"
20769    else
20770       echo " "
20771       echo "wx-config program not found. bwx-console disabled."
20772       echo " "
20773       support_wx_console=no
20774    fi
20775 fi
20776
20777
20778 # Check whether --enable-tray-monitor was given.
20779 if test "${enable_tray_monitor+set}" = set; then :
20780   enableval=$enable_tray_monitor;
20781        if test x$enableval = xyes; then
20782           support_tray_monitor=yes
20783        fi
20784
20785
20786 fi
20787
20788
20789 TRAY_MONITOR_DIR=
20790 if test x$support_tray_monitor = xyes; then
20791    abc=`$PKGCONFIG --exists gtk+-2.0`
20792    pkg=$?
20793    if test $pkg = 0; then
20794       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20795       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20796
20797
20798       TRAY_MONITOR_DIR=src/tray-monitor
20799       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20800       pkg=$?
20801       if test $pkg = 0; then
20802
20803 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20804
20805       fi
20806    fi
20807 fi
20808
20809
20810 # Check whether --enable-smartalloc was given.
20811 if test "${enable_smartalloc+set}" = set; then :
20812   enableval=$enable_smartalloc;
20813        if test x$enableval = xno; then
20814           support_smartalloc=no
20815        fi
20816
20817
20818 fi
20819
20820
20821 if test x$support_smartalloc = xyes; then
20822
20823 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20824
20825 fi
20826
20827 # Check whether --enable-lockmgr was given.
20828 if test "${enable_lockmgr+set}" = set; then :
20829   enableval=$enable_lockmgr;
20830        if test x$enableval = xyes; then
20831           support_lockmgr=yes
20832        fi
20833
20834
20835 fi
20836
20837
20838 if test x$support_lockmgr = xyes; then
20839
20840 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20841
20842 fi
20843
20844
20845 # Check whether --enable-static-tools was given.
20846 if test "${enable_static_tools+set}" = set; then :
20847   enableval=$enable_static_tools;
20848        if test x$enableval = xyes; then
20849           if test x$use_libtool = xyes; then
20850              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20851   please rerun configure with --disable-libtool" "$LINENO" 5
20852           fi
20853           support_static_tools=yes
20854        fi
20855
20856
20857 fi
20858
20859
20860 TTOOL_LDFLAGS=
20861 if test x$support_static_tools = xyes; then
20862    TTOOL_LDFLAGS="-static"
20863 fi
20864
20865
20866 # Check whether --enable-static-fd was given.
20867 if test "${enable_static_fd+set}" = set; then :
20868   enableval=$enable_static_fd;
20869        if test x$enableval = xyes; then
20870           if test x$use_libtool = xyes; then
20871              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20872   please rerun configure with --disable-libtool" "$LINENO" 5
20873           fi
20874           support_static_fd=yes
20875        fi
20876
20877
20878 fi
20879
20880
20881 STATIC_FD=
20882 if test x$support_static_fd = xyes; then
20883    STATIC_FD="static-bacula-fd"
20884 fi
20885
20886
20887 # Check whether --enable-static-sd was given.
20888 if test "${enable_static_sd+set}" = set; then :
20889   enableval=$enable_static_sd;
20890        if test x$enableval = xyes; then
20891           if test x$use_libtool = xyes; then
20892              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20893   please rerun configure with --disable-libtool" "$LINENO" 5
20894           fi
20895           support_static_sd=yes
20896        fi
20897
20898
20899 fi
20900
20901
20902 STATIC_SD=
20903 if test x$support_static_sd = xyes; then
20904    STATIC_SD="static-bacula-sd"
20905 fi
20906
20907
20908 # Check whether --enable-static-dir was given.
20909 if test "${enable_static_dir+set}" = set; then :
20910   enableval=$enable_static_dir;
20911        if test x$enableval = xyes; then
20912           if test x$use_libtool = xyes; then
20913              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20914   please rerun configure with --disable-libtool" "$LINENO" 5
20915           fi
20916           support_static_dir=yes
20917        fi
20918
20919
20920 fi
20921
20922
20923 STATIC_DIR=
20924 if test x$support_static_dir = xyes; then
20925    STATIC_DIR="static-bacula-dir"
20926 fi
20927
20928
20929 # Check whether --enable-static-cons was given.
20930 if test "${enable_static_cons+set}" = set; then :
20931   enableval=$enable_static_cons;
20932        if test x$enableval = xyes; then
20933           if test x$use_libtool = xyes; then
20934              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20935   please rerun configure with --disable-libtool" "$LINENO" 5
20936           fi
20937           support_static_cons=yes
20938        fi
20939
20940
20941 fi
20942
20943
20944 STATIC_CONS=
20945 STATIC_GNOME_CONS=
20946 STATIC_WX_CONS=
20947 if test x$support_static_cons = xyes; then
20948    STATIC_CONS="static-bconsole"
20949    STATIC_GNOME_CONS="static-bgnome-console"
20950    STATIC_WX_CONS="static-bwx-console"
20951 fi
20952
20953
20954
20955
20956 # Check whether --enable-client-only was given.
20957 if test "${enable_client_only+set}" = set; then :
20958   enableval=$enable_client_only;
20959        if test x$enableval = xyes; then
20960           build_client_only=yes
20961           db_backends="None"
20962           DB_BACKENDS="none"
20963        fi
20964
20965
20966 fi
20967
20968 if test x$build_client_only = xno; then
20969    ALL_DIRS="subdirs"
20970 else
20971    ALL_DIRS=""
20972 fi
20973
20974
20975 # Check whether --enable-build-dird was given.
20976 if test "${enable_build_dird+set}" = set; then :
20977   enableval=$enable_build_dird;
20978        if test x$enableval = xno; then
20979           build_dird=no
20980        fi
20981
20982
20983 fi
20984
20985 if test x$build_dird = xyes; then
20986    DIRD_DIR="src/dird"
20987    DIR_TOOLS="DIRTOOLS"
20988 else
20989    DIRD_DIR=""
20990    DIR_TOOLS="NODIRTOOLS"
20991 fi
20992
20993
20994
20995 # Check whether --enable-build-stored was given.
20996 if test "${enable_build_stored+set}" = set; then :
20997   enableval=$enable_build_stored;
20998       if test x$enableval = xno; then
20999          build_stored=no
21000       fi
21001
21002
21003 fi
21004
21005 if test x$build_stored = xyes; then
21006    STORED_DIR="src/stored"
21007 else
21008    STORED_DIR=""
21009 fi
21010
21011
21012 # Check whether --enable-conio was given.
21013 if test "${enable_conio+set}" = set; then :
21014   enableval=$enable_conio;
21015        if test x$enableval = xno; then
21016           support_conio=no
21017        fi
21018
21019
21020 fi
21021
21022
21023
21024 support_ipv6=yes
21025 # Check whether --enable-ipv6 was given.
21026 if test "${enable_ipv6+set}" = set; then :
21027   enableval=$enable_ipv6;
21028        if test x$enableval = xno; then
21029           support_ipv6=no
21030        fi
21031
21032
21033 fi
21034
21035
21036 if test x$support_ipv6 = xyes; then
21037     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21038 /* end confdefs.h.  */
21039  #include <sys/types.h>
21040 #include <sys/socket.h>
21041 #include <netinet/in.h>
21042 int
21043 main ()
21044 {
21045 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21046   ;
21047   return 0;
21048 }
21049 _ACEOF
21050 if ac_fn_c_try_link "$LINENO"; then :
21051   support_ipv6=yes
21052 else
21053   support_ipv6=no
21054 fi
21055 rm -f core conftest.err conftest.$ac_objext \
21056     conftest$ac_exeext conftest.$ac_ext
21057 fi
21058
21059 if test x$support_ipv6 = xyes; then
21060
21061 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21062
21063 fi
21064
21065 TERM_LIB=""
21066 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21067 if test "x$ac_cv_header_curses_h" = xyes; then :
21068
21069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21070 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21071 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21072   $as_echo_n "(cached) " >&6
21073 else
21074   ac_check_lib_save_LIBS=$LIBS
21075 LIBS="-ltinfo  $LIBS"
21076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h.  */
21078
21079 /* Override any GCC internal prototype to avoid an error.
21080    Use char because int might match the return type of a GCC
21081    builtin and then its argument prototype would still apply.  */
21082 #ifdef __cplusplus
21083 extern "C"
21084 #endif
21085 char tgetent ();
21086 int
21087 main ()
21088 {
21089 return tgetent ();
21090   ;
21091   return 0;
21092 }
21093 _ACEOF
21094 if ac_fn_c_try_link "$LINENO"; then :
21095   ac_cv_lib_tinfo_tgetent=yes
21096 else
21097   ac_cv_lib_tinfo_tgetent=no
21098 fi
21099 rm -f core conftest.err conftest.$ac_objext \
21100     conftest$ac_exeext conftest.$ac_ext
21101 LIBS=$ac_check_lib_save_LIBS
21102 fi
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21104 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21105 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21106    TERM_LIB="-ltinfo"
21107 else
21108
21109       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21110 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21111 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21112   $as_echo_n "(cached) " >&6
21113 else
21114   ac_check_lib_save_LIBS=$LIBS
21115 LIBS="-lncurses  $LIBS"
21116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21117 /* end confdefs.h.  */
21118
21119 /* Override any GCC internal prototype to avoid an error.
21120    Use char because int might match the return type of a GCC
21121    builtin and then its argument prototype would still apply.  */
21122 #ifdef __cplusplus
21123 extern "C"
21124 #endif
21125 char tgetent ();
21126 int
21127 main ()
21128 {
21129 return tgetent ();
21130   ;
21131   return 0;
21132 }
21133 _ACEOF
21134 if ac_fn_c_try_link "$LINENO"; then :
21135   ac_cv_lib_ncurses_tgetent=yes
21136 else
21137   ac_cv_lib_ncurses_tgetent=no
21138 fi
21139 rm -f core conftest.err conftest.$ac_objext \
21140     conftest$ac_exeext conftest.$ac_ext
21141 LIBS=$ac_check_lib_save_LIBS
21142 fi
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21144 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21145 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21146    TERM_LIB="-lncurses"
21147 else
21148
21149         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21150 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21151 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21152   $as_echo_n "(cached) " >&6
21153 else
21154   ac_check_lib_save_LIBS=$LIBS
21155 LIBS="-ltermcap  $LIBS"
21156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21157 /* end confdefs.h.  */
21158
21159 /* Override any GCC internal prototype to avoid an error.
21160    Use char because int might match the return type of a GCC
21161    builtin and then its argument prototype would still apply.  */
21162 #ifdef __cplusplus
21163 extern "C"
21164 #endif
21165 char tgetent ();
21166 int
21167 main ()
21168 {
21169 return tgetent ();
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 if ac_fn_c_try_link "$LINENO"; then :
21175   ac_cv_lib_termcap_tgetent=yes
21176 else
21177   ac_cv_lib_termcap_tgetent=no
21178 fi
21179 rm -f core conftest.err conftest.$ac_objext \
21180     conftest$ac_exeext conftest.$ac_ext
21181 LIBS=$ac_check_lib_save_LIBS
21182 fi
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21184 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21185 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21186    TERM_LIB="-ltermcap"
21187 fi
21188
21189
21190 fi
21191
21192
21193 fi
21194
21195
21196 else
21197     for ac_header in curses.h
21198 do :
21199   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21200 if test "x$ac_cv_header_curses_h" = xyes; then :
21201   cat >>confdefs.h <<_ACEOF
21202 #define HAVE_CURSES_H 1
21203 _ACEOF
21204
21205 fi
21206
21207 done
21208
21209      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21210 if test "x$ac_cv_header_term_h" = xyes; then :
21211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21212 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21213 if ${ac_cv_lib_curses_tgetent+:} false; then :
21214   $as_echo_n "(cached) " >&6
21215 else
21216   ac_check_lib_save_LIBS=$LIBS
21217 LIBS="-lcurses  $LIBS"
21218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21219 /* end confdefs.h.  */
21220
21221 /* Override any GCC internal prototype to avoid an error.
21222    Use char because int might match the return type of a GCC
21223    builtin and then its argument prototype would still apply.  */
21224 #ifdef __cplusplus
21225 extern "C"
21226 #endif
21227 char tgetent ();
21228 int
21229 main ()
21230 {
21231 return tgetent ();
21232   ;
21233   return 0;
21234 }
21235 _ACEOF
21236 if ac_fn_c_try_link "$LINENO"; then :
21237   ac_cv_lib_curses_tgetent=yes
21238 else
21239   ac_cv_lib_curses_tgetent=no
21240 fi
21241 rm -f core conftest.err conftest.$ac_objext \
21242     conftest$ac_exeext conftest.$ac_ext
21243 LIBS=$ac_check_lib_save_LIBS
21244 fi
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21246 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21247 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21248    TERM_LIB="-lcurses"
21249 fi
21250
21251
21252 fi
21253
21254
21255
21256 fi
21257
21258
21259
21260
21261 got_conio="no"
21262 if test x$support_conio = xyes; then
21263    if test x$TERM_LIB != x; then
21264       CONS_LIBS=$TERM_LIB
21265       CONS_OBJ="conio.o"
21266       CONS_SRC="conio.c"
21267       got_conio="yes"
21268       support_readline=no
21269
21270 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21271
21272    else
21273       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21274    fi
21275 fi
21276
21277
21278 # Check whether --enable-readline was given.
21279 if test "${enable_readline+set}" = set; then :
21280   enableval=$enable_readline;
21281        if test x$enableval = xno; then
21282           support_readline=no
21283        fi
21284
21285
21286 fi
21287
21288 if test x$TERM_LIB = x ; then
21289    support_readline=no
21290 fi
21291
21292 got_readline="no"
21293 READLINE_SRC=
21294 if test x$support_readline = xyes; then
21295
21296 # Check whether --with-readline was given.
21297 if test "${with_readline+set}" = set; then :
21298   withval=$with_readline;
21299           case "$with_readline" in
21300           no)
21301              :
21302              ;;
21303           yes|*)
21304              if test -f ${with_readline}/readline.h; then
21305                 CONS_INC="-I${with_readline}"
21306                 CONS_LDFLAGS="-L$with_readline"
21307              elif test -f ${with_readline}/include/readline/readline.h; then
21308                 CONS_INC="-I${with_readline}/include/readline"
21309                 CONS_LDFLAGS="-L${with_readline}/lib"
21310                 with_readline="${with_readline}/include/readline"
21311              else
21312                 with_readline="/usr/include/readline"
21313              fi
21314
21315              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21316 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21317 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21318
21319
21320 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21321
21322                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21323                     got_readline="yes"
21324
21325 else
21326
21327                     echo " "
21328                     echo "readline.h not found. readline turned off ..."
21329                     echo " "
21330
21331
21332 fi
21333
21334
21335              ;;
21336           esac
21337
21338 else
21339
21340                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21341 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
21342
21343
21344 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21345
21346                 got_readline="yes"
21347                 CONS_INC="-I/usr/include/readline"
21348                 CONS_LIBS="-lreadline $TERM_LIB"
21349
21350 else
21351
21352                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21353 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21354 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21355
21356
21357 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21358
21359                         got_readline="yes"
21360                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21361                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21362                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21363                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21364
21365 else
21366
21367                         echo " "
21368                         echo "readline.h not found. readline turned off ..."
21369                         echo " "
21370
21371
21372 fi
21373
21374
21375
21376
21377 fi
21378
21379
21380
21381
21382 fi
21383
21384 fi
21385
21386
21387
21388
21389
21390
21391
21392
21393 MAKE_SHELL=/bin/sh
21394
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21396 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21397 if ${ac_cv_header_stat_broken+:} false; then :
21398   $as_echo_n "(cached) " >&6
21399 else
21400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401 /* end confdefs.h.  */
21402 #include <sys/types.h>
21403 #include <sys/stat.h>
21404
21405 #if defined S_ISBLK && defined S_IFDIR
21406 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21407 #endif
21408
21409 #if defined S_ISBLK && defined S_IFCHR
21410 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21411 #endif
21412
21413 #if defined S_ISLNK && defined S_IFREG
21414 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21415 #endif
21416
21417 #if defined S_ISSOCK && defined S_IFREG
21418 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21419 #endif
21420
21421 _ACEOF
21422 if ac_fn_c_try_compile "$LINENO"; then :
21423   ac_cv_header_stat_broken=no
21424 else
21425   ac_cv_header_stat_broken=yes
21426 fi
21427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21428 fi
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21430 $as_echo "$ac_cv_header_stat_broken" >&6; }
21431 if test $ac_cv_header_stat_broken = yes; then
21432
21433 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21434
21435 fi
21436
21437 ac_header_dirent=no
21438 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21439   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21441 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21442 if eval \${$as_ac_Header+:} false; then :
21443   $as_echo_n "(cached) " >&6
21444 else
21445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446 /* end confdefs.h.  */
21447 #include <sys/types.h>
21448 #include <$ac_hdr>
21449
21450 int
21451 main ()
21452 {
21453 if ((DIR *) 0)
21454 return 0;
21455   ;
21456   return 0;
21457 }
21458 _ACEOF
21459 if ac_fn_c_try_compile "$LINENO"; then :
21460   eval "$as_ac_Header=yes"
21461 else
21462   eval "$as_ac_Header=no"
21463 fi
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465 fi
21466 eval ac_res=\$$as_ac_Header
21467                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21468 $as_echo "$ac_res" >&6; }
21469 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21470   cat >>confdefs.h <<_ACEOF
21471 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21472 _ACEOF
21473
21474 ac_header_dirent=$ac_hdr; break
21475 fi
21476
21477 done
21478 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21479 if test $ac_header_dirent = dirent.h; then
21480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21481 $as_echo_n "checking for library containing opendir... " >&6; }
21482 if ${ac_cv_search_opendir+:} false; then :
21483   $as_echo_n "(cached) " >&6
21484 else
21485   ac_func_search_save_LIBS=$LIBS
21486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21487 /* end confdefs.h.  */
21488
21489 /* Override any GCC internal prototype to avoid an error.
21490    Use char because int might match the return type of a GCC
21491    builtin and then its argument prototype would still apply.  */
21492 #ifdef __cplusplus
21493 extern "C"
21494 #endif
21495 char opendir ();
21496 int
21497 main ()
21498 {
21499 return opendir ();
21500   ;
21501   return 0;
21502 }
21503 _ACEOF
21504 for ac_lib in '' dir; do
21505   if test -z "$ac_lib"; then
21506     ac_res="none required"
21507   else
21508     ac_res=-l$ac_lib
21509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21510   fi
21511   if ac_fn_c_try_link "$LINENO"; then :
21512   ac_cv_search_opendir=$ac_res
21513 fi
21514 rm -f core conftest.err conftest.$ac_objext \
21515     conftest$ac_exeext
21516   if ${ac_cv_search_opendir+:} false; then :
21517   break
21518 fi
21519 done
21520 if ${ac_cv_search_opendir+:} false; then :
21521
21522 else
21523   ac_cv_search_opendir=no
21524 fi
21525 rm conftest.$ac_ext
21526 LIBS=$ac_func_search_save_LIBS
21527 fi
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21529 $as_echo "$ac_cv_search_opendir" >&6; }
21530 ac_res=$ac_cv_search_opendir
21531 if test "$ac_res" != no; then :
21532   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21533
21534 fi
21535
21536 else
21537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21538 $as_echo_n "checking for library containing opendir... " >&6; }
21539 if ${ac_cv_search_opendir+:} false; then :
21540   $as_echo_n "(cached) " >&6
21541 else
21542   ac_func_search_save_LIBS=$LIBS
21543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21544 /* end confdefs.h.  */
21545
21546 /* Override any GCC internal prototype to avoid an error.
21547    Use char because int might match the return type of a GCC
21548    builtin and then its argument prototype would still apply.  */
21549 #ifdef __cplusplus
21550 extern "C"
21551 #endif
21552 char opendir ();
21553 int
21554 main ()
21555 {
21556 return opendir ();
21557   ;
21558   return 0;
21559 }
21560 _ACEOF
21561 for ac_lib in '' x; do
21562   if test -z "$ac_lib"; then
21563     ac_res="none required"
21564   else
21565     ac_res=-l$ac_lib
21566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21567   fi
21568   if ac_fn_c_try_link "$LINENO"; then :
21569   ac_cv_search_opendir=$ac_res
21570 fi
21571 rm -f core conftest.err conftest.$ac_objext \
21572     conftest$ac_exeext
21573   if ${ac_cv_search_opendir+:} false; then :
21574   break
21575 fi
21576 done
21577 if ${ac_cv_search_opendir+:} false; then :
21578
21579 else
21580   ac_cv_search_opendir=no
21581 fi
21582 rm conftest.$ac_ext
21583 LIBS=$ac_func_search_save_LIBS
21584 fi
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21586 $as_echo "$ac_cv_search_opendir" >&6; }
21587 ac_res=$ac_cv_search_opendir
21588 if test "$ac_res" != no; then :
21589   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21590
21591 fi
21592
21593 fi
21594
21595 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21596 do :
21597   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21600   cat >>confdefs.h <<_ACEOF
21601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21602 _ACEOF
21603
21604 fi
21605 done
21606
21607 for ac_func in nanosleep nl_langinfo
21608 do :
21609   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21612   cat >>confdefs.h <<_ACEOF
21613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21614 _ACEOF
21615
21616 fi
21617 done
21618
21619 for ac_header in varargs.h
21620 do :
21621   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21622 if test "x$ac_cv_header_varargs_h" = xyes; then :
21623   cat >>confdefs.h <<_ACEOF
21624 #define HAVE_VARARGS_H 1
21625 _ACEOF
21626
21627 fi
21628
21629 done
21630
21631
21632
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21634 $as_echo_n "checking for Python support... " >&6; }
21635
21636 # Check whether --with-python was given.
21637 if test "${with_python+set}" = set; then :
21638   withval=$with_python;
21639        PYTHON_INCDIR=
21640        PYTHON_LIBS=
21641        if test "$withval" != "no"; then
21642           if test "$withval" = "yes"; then
21643              if test -e /usr/bin/python-config ; then
21644                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21645                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21646              else
21647                 for python_root in /usr /usr/local /usr/sfw; do
21648                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21649                       if test -f $python_root/include/${ver}/Python.h; then
21650                          PYTHON_INCDIR=-I$python_root/include/${ver}
21651                          if test -d $python_root/lib64/${ver}/config; then
21652                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21653                          else
21654                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21655                          fi
21656                          break
21657                       fi
21658                    done
21659                 done
21660
21661                 if test x$PYTHON_INCDIR = x; then
21662                    if test -f $prefix/include/Python.h; then
21663                       PYTHON_INCDIR=-I$prefix/include
21664                       if test -d $prefix/lib64/config; then
21665                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21666                       else
21667                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21668                       fi
21669                    else
21670                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21672                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21673                    fi
21674                 fi
21675              fi
21676           else
21677              if test -e $withval/bin/python-config ; then
21678                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21679                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21680              elif test -f $withval/Python.h; then
21681                 PYTHON_INCDIR=-I$withval
21682                 PYTHON_LIBS="-L$withval/config -lpython"
21683              elif test -f $withval/include/Python.h; then
21684                 PYTHON_INCDIR=-I$withval/include
21685                 if test -d $withval/lib64/config; then
21686                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21687                 else
21688                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21689                 fi
21690              elif test -f $withval/include/python/Python.h; then
21691                 PYTHON_INCDIR=-I$withval/include/python
21692                 if test -d $withval/lib64/python/config; then
21693                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21694                 else
21695                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21696                 fi
21697              else
21698                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21699 $as_echo "no" >&6; }
21700                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21701              fi
21702           fi
21703
21704           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21705
21706           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21707 $as_echo "yes" >&6; }
21708           support_python=yes
21709           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21710 $as_echo "$as_me: checking for more Python libs" >&6;}
21711           saved_LIBS="$LIBS"; LIBS=
21712           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21713 $as_echo_n "checking for library containing shm_open... " >&6; }
21714 if ${ac_cv_search_shm_open+:} false; then :
21715   $as_echo_n "(cached) " >&6
21716 else
21717   ac_func_search_save_LIBS=$LIBS
21718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h.  */
21720
21721 /* Override any GCC internal prototype to avoid an error.
21722    Use char because int might match the return type of a GCC
21723    builtin and then its argument prototype would still apply.  */
21724 #ifdef __cplusplus
21725 extern "C"
21726 #endif
21727 char shm_open ();
21728 int
21729 main ()
21730 {
21731 return shm_open ();
21732   ;
21733   return 0;
21734 }
21735 _ACEOF
21736 for ac_lib in '' rt; do
21737   if test -z "$ac_lib"; then
21738     ac_res="none required"
21739   else
21740     ac_res=-l$ac_lib
21741     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21742   fi
21743   if ac_fn_c_try_link "$LINENO"; then :
21744   ac_cv_search_shm_open=$ac_res
21745 fi
21746 rm -f core conftest.err conftest.$ac_objext \
21747     conftest$ac_exeext
21748   if ${ac_cv_search_shm_open+:} false; then :
21749   break
21750 fi
21751 done
21752 if ${ac_cv_search_shm_open+:} false; then :
21753
21754 else
21755   ac_cv_search_shm_open=no
21756 fi
21757 rm conftest.$ac_ext
21758 LIBS=$ac_func_search_save_LIBS
21759 fi
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21761 $as_echo "$ac_cv_search_shm_open" >&6; }
21762 ac_res=$ac_cv_search_shm_open
21763 if test "$ac_res" != no; then :
21764   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21765
21766 fi
21767
21768           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21769 $as_echo_n "checking for openpty in -lutil... " >&6; }
21770 if ${ac_cv_lib_util_openpty+:} false; then :
21771   $as_echo_n "(cached) " >&6
21772 else
21773   ac_check_lib_save_LIBS=$LIBS
21774 LIBS="-lutil  $LIBS"
21775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21776 /* end confdefs.h.  */
21777
21778 /* Override any GCC internal prototype to avoid an error.
21779    Use char because int might match the return type of a GCC
21780    builtin and then its argument prototype would still apply.  */
21781 #ifdef __cplusplus
21782 extern "C"
21783 #endif
21784 char openpty ();
21785 int
21786 main ()
21787 {
21788 return openpty ();
21789   ;
21790   return 0;
21791 }
21792 _ACEOF
21793 if ac_fn_c_try_link "$LINENO"; then :
21794   ac_cv_lib_util_openpty=yes
21795 else
21796   ac_cv_lib_util_openpty=no
21797 fi
21798 rm -f core conftest.err conftest.$ac_objext \
21799     conftest$ac_exeext conftest.$ac_ext
21800 LIBS=$ac_check_lib_save_LIBS
21801 fi
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21803 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21804 if test "x$ac_cv_lib_util_openpty" = xyes; then :
21805   cat >>confdefs.h <<_ACEOF
21806 #define HAVE_LIBUTIL 1
21807 _ACEOF
21808
21809   LIBS="-lutil $LIBS"
21810
21811 fi
21812
21813           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21814           LIBS="$saved_LIBS"
21815        else
21816           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21817 $as_echo "no" >&6; }
21818        fi
21819
21820 else
21821
21822        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21823 $as_echo "no" >&6; }
21824
21825
21826 fi
21827
21828
21829
21830
21831 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21832 if test "x$ac_cv_func_socket" = xyes; then :
21833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21834 $as_echo "using libc's socket" >&6; }
21835 else
21836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21837 $as_echo_n "checking for socket in -lxnet... " >&6; }
21838 if ${ac_cv_lib_xnet_socket+:} false; then :
21839   $as_echo_n "(cached) " >&6
21840 else
21841   ac_check_lib_save_LIBS=$LIBS
21842 LIBS="-lxnet  $LIBS"
21843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21844 /* end confdefs.h.  */
21845
21846 /* Override any GCC internal prototype to avoid an error.
21847    Use char because int might match the return type of a GCC
21848    builtin and then its argument prototype would still apply.  */
21849 #ifdef __cplusplus
21850 extern "C"
21851 #endif
21852 char socket ();
21853 int
21854 main ()
21855 {
21856 return socket ();
21857   ;
21858   return 0;
21859 }
21860 _ACEOF
21861 if ac_fn_c_try_link "$LINENO"; then :
21862   ac_cv_lib_xnet_socket=yes
21863 else
21864   ac_cv_lib_xnet_socket=no
21865 fi
21866 rm -f core conftest.err conftest.$ac_objext \
21867     conftest$ac_exeext conftest.$ac_ext
21868 LIBS=$ac_check_lib_save_LIBS
21869 fi
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21871 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21872 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
21873   cat >>confdefs.h <<_ACEOF
21874 #define HAVE_LIBXNET 1
21875 _ACEOF
21876
21877   LIBS="-lxnet $LIBS"
21878
21879 fi
21880
21881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21882 $as_echo_n "checking for socket in -lsocket... " >&6; }
21883 if ${ac_cv_lib_socket_socket+:} false; then :
21884   $as_echo_n "(cached) " >&6
21885 else
21886   ac_check_lib_save_LIBS=$LIBS
21887 LIBS="-lsocket  $LIBS"
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h.  */
21890
21891 /* Override any GCC internal prototype to avoid an error.
21892    Use char because int might match the return type of a GCC
21893    builtin and then its argument prototype would still apply.  */
21894 #ifdef __cplusplus
21895 extern "C"
21896 #endif
21897 char socket ();
21898 int
21899 main ()
21900 {
21901 return socket ();
21902   ;
21903   return 0;
21904 }
21905 _ACEOF
21906 if ac_fn_c_try_link "$LINENO"; then :
21907   ac_cv_lib_socket_socket=yes
21908 else
21909   ac_cv_lib_socket_socket=no
21910 fi
21911 rm -f core conftest.err conftest.$ac_objext \
21912     conftest$ac_exeext conftest.$ac_ext
21913 LIBS=$ac_check_lib_save_LIBS
21914 fi
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21916 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21917 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21918   cat >>confdefs.h <<_ACEOF
21919 #define HAVE_LIBSOCKET 1
21920 _ACEOF
21921
21922   LIBS="-lsocket $LIBS"
21923
21924 fi
21925
21926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21927 $as_echo_n "checking for socket in -linet... " >&6; }
21928 if ${ac_cv_lib_inet_socket+:} false; then :
21929   $as_echo_n "(cached) " >&6
21930 else
21931   ac_check_lib_save_LIBS=$LIBS
21932 LIBS="-linet  $LIBS"
21933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934 /* end confdefs.h.  */
21935
21936 /* Override any GCC internal prototype to avoid an error.
21937    Use char because int might match the return type of a GCC
21938    builtin and then its argument prototype would still apply.  */
21939 #ifdef __cplusplus
21940 extern "C"
21941 #endif
21942 char socket ();
21943 int
21944 main ()
21945 {
21946 return socket ();
21947   ;
21948   return 0;
21949 }
21950 _ACEOF
21951 if ac_fn_c_try_link "$LINENO"; then :
21952   ac_cv_lib_inet_socket=yes
21953 else
21954   ac_cv_lib_inet_socket=no
21955 fi
21956 rm -f core conftest.err conftest.$ac_objext \
21957     conftest$ac_exeext conftest.$ac_ext
21958 LIBS=$ac_check_lib_save_LIBS
21959 fi
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21961 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21962 if test "x$ac_cv_lib_inet_socket" = xyes; then :
21963   cat >>confdefs.h <<_ACEOF
21964 #define HAVE_LIBINET 1
21965 _ACEOF
21966
21967   LIBS="-linet $LIBS"
21968
21969 fi
21970
21971 fi
21972
21973
21974 TCPW_MSG="no"
21975 WRAPLIBS=""
21976
21977 # Check whether --with-tcp-wrappers was given.
21978 if test "${with_tcp_wrappers+set}" = set; then :
21979   withval=$with_tcp_wrappers;
21980        if test "x$withval" != "xno" ; then
21981           saved_LIBS="$LIBS"
21982           LIBS="$saved_LIBS -lwrap"
21983           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21984 $as_echo_n "checking for library containing nanosleep... " >&6; }
21985 if ${ac_cv_search_nanosleep+:} false; then :
21986   $as_echo_n "(cached) " >&6
21987 else
21988   ac_func_search_save_LIBS=$LIBS
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h.  */
21991
21992 /* Override any GCC internal prototype to avoid an error.
21993    Use char because int might match the return type of a GCC
21994    builtin and then its argument prototype would still apply.  */
21995 #ifdef __cplusplus
21996 extern "C"
21997 #endif
21998 char nanosleep ();
21999 int
22000 main ()
22001 {
22002 return nanosleep ();
22003   ;
22004   return 0;
22005 }
22006 _ACEOF
22007 for ac_lib in '' rt; do
22008   if test -z "$ac_lib"; then
22009     ac_res="none required"
22010   else
22011     ac_res=-l$ac_lib
22012     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22013   fi
22014   if ac_fn_c_try_link "$LINENO"; then :
22015   ac_cv_search_nanosleep=$ac_res
22016 fi
22017 rm -f core conftest.err conftest.$ac_objext \
22018     conftest$ac_exeext
22019   if ${ac_cv_search_nanosleep+:} false; then :
22020   break
22021 fi
22022 done
22023 if ${ac_cv_search_nanosleep+:} false; then :
22024
22025 else
22026   ac_cv_search_nanosleep=no
22027 fi
22028 rm conftest.$ac_ext
22029 LIBS=$ac_func_search_save_LIBS
22030 fi
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22032 $as_echo "$ac_cv_search_nanosleep" >&6; }
22033 ac_res=$ac_cv_search_nanosleep
22034 if test "$ac_res" != no; then :
22035   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22036
22037 fi
22038
22039           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22040 $as_echo_n "checking for libwrap... " >&6; }
22041           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h.  */
22043
22044                #include <sys/types.h>
22045                #include <tcpd.h>
22046                int deny_severity = 0;
22047                int allow_severity = 0;
22048                struct request_info *req;
22049
22050 int
22051 main ()
22052 {
22053
22054                 hosts_access(req);
22055
22056   ;
22057   return 0;
22058 }
22059 _ACEOF
22060 if ac_fn_c_try_link "$LINENO"; then :
22061
22062                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22063 $as_echo "yes" >&6; }
22064
22065 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22066
22067                  TCPW_MSG="yes"
22068                  LIBS="$saved_LIBS"
22069                  WRAPLIBS="-lwrap"
22070
22071 else
22072
22073                  LIBS="$saved_LIBS -lwrap -lnsl"
22074                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22075                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076 /* end confdefs.h.  */
22077
22078                        #include <sys/types.h>
22079                        #include <tcpd.h>
22080                        int deny_severity = 0;
22081                        int allow_severity = 0;
22082                        struct request_info *req;
22083
22084 int
22085 main ()
22086 {
22087
22088                        hosts_access(req);
22089
22090   ;
22091   return 0;
22092 }
22093 _ACEOF
22094 if ac_fn_c_try_link "$LINENO"; then :
22095
22096                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22097 $as_echo "yes" >&6; }
22098
22099 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22100
22101                       TCPW_MSG="yes"
22102                       LIBS="$saved_LIBS"
22103                       WRAPLIBS="-lwrap"
22104
22105 else
22106
22107                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22108
22109
22110 fi
22111 rm -f core conftest.err conftest.$ac_objext \
22112     conftest$ac_exeext conftest.$ac_ext
22113
22114
22115 fi
22116 rm -f core conftest.err conftest.$ac_objext \
22117     conftest$ac_exeext conftest.$ac_ext
22118        fi
22119
22120
22121 fi
22122
22123
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22125 $as_echo_n "checking for OpenSSL... " >&6; }
22126
22127 # Check whether --with-openssl was given.
22128 if test "${with_openssl+set}" = set; then :
22129   withval=$with_openssl;
22130         with_openssl_directory=${withval}
22131
22132
22133 fi
22134
22135
22136 if test "x$with_openssl_directory" != "xno"; then
22137    OPENSSL_LIBS="-lssl -lcrypto"
22138    OPENSSL_INC=""
22139
22140    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22141       #
22142       # Make sure the $with_openssl_directory also makes sense
22143       #
22144       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22145          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22146          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22147       fi
22148    fi
22149
22150    saved_LIBS="${LIBS}"
22151    saved_CFLAGS="${CFLAGS}"
22152    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22153    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22154
22155    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22156 /* end confdefs.h.  */
22157
22158           #include <openssl/ssl.h>
22159
22160 int
22161 main ()
22162 {
22163
22164            CRYPTO_set_id_callback(NULL);
22165
22166   ;
22167   return 0;
22168 }
22169 _ACEOF
22170 if ac_fn_c_try_link "$LINENO"; then :
22171
22172           support_tls="yes"
22173           support_crypto="yes"
22174
22175 else
22176
22177           support_tls="no"
22178           support_crypto="no"
22179
22180
22181 fi
22182 rm -f core conftest.err conftest.$ac_objext \
22183     conftest$ac_exeext conftest.$ac_ext
22184
22185    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186 /* end confdefs.h.  */
22187
22188           #include <openssl/evp.h>
22189
22190 int
22191 main ()
22192 {
22193
22194           EVP_sha512();
22195
22196   ;
22197   return 0;
22198 }
22199 _ACEOF
22200 if ac_fn_c_try_link "$LINENO"; then :
22201
22202           ac_cv_openssl_sha2="yes"
22203
22204 else
22205
22206           ac_cv_openssl_sha2="no"
22207
22208
22209 fi
22210 rm -f core conftest.err conftest.$ac_objext \
22211     conftest$ac_exeext conftest.$ac_ext
22212
22213                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h.  */
22215
22216           #include <openssl/evp.h>
22217
22218 int
22219 main ()
22220 {
22221
22222           EVP_aes_192_cbc();
22223
22224   ;
22225   return 0;
22226 }
22227 _ACEOF
22228 if ac_fn_c_try_link "$LINENO"; then :
22229
22230           ac_cv_openssl_export="no"
22231
22232 else
22233
22234           ac_cv_openssl_export="yes"
22235
22236
22237 fi
22238 rm -f core conftest.err conftest.$ac_objext \
22239     conftest$ac_exeext conftest.$ac_ext
22240
22241    if test "$support_tls" = "yes"; then
22242
22243 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22244
22245
22246 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22247
22248
22249 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22250
22251    fi
22252
22253    if test "$ac_cv_openssl_sha2" = "yes"; then
22254
22255 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22256
22257    fi
22258
22259    if test "$ac_cv_openssl_export" = "yes"; then
22260
22261 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22262
22263    fi
22264
22265    if test "$support_crypto" = "yes"; then
22266       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22267 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22268 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
22269   $as_echo_n "(cached) " >&6
22270 else
22271   ac_check_lib_save_LIBS=$LIBS
22272 LIBS="-lcrypto  $LIBS"
22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h.  */
22275
22276 /* Override any GCC internal prototype to avoid an error.
22277    Use char because int might match the return type of a GCC
22278    builtin and then its argument prototype would still apply.  */
22279 #ifdef __cplusplus
22280 extern "C"
22281 #endif
22282 char EVP_PKEY_encrypt_old ();
22283 int
22284 main ()
22285 {
22286 return EVP_PKEY_encrypt_old ();
22287   ;
22288   return 0;
22289 }
22290 _ACEOF
22291 if ac_fn_c_try_link "$LINENO"; then :
22292   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22293 else
22294   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22295 fi
22296 rm -f core conftest.err conftest.$ac_objext \
22297     conftest$ac_exeext conftest.$ac_ext
22298 LIBS=$ac_check_lib_save_LIBS
22299 fi
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22301 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22302 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
22303
22304 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22305
22306 fi
22307
22308    fi
22309
22310    LIBS="${saved_LIBS}"
22311    CFLAGS="${saved_CFLAGS}"
22312 else
22313    support_tls="no"
22314    support_crypto="no"
22315    OPENSSL_LIBS=""
22316    OPENSSL_INC=""
22317 fi
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22319 $as_echo "$support_tls" >&6; }
22320
22321 if test "$support_tls" = "no"; then
22322    OPENSSL_LIBS=""
22323    OPENSSL_INC=""
22324 fi
22325 if test "$support_crypto" = "no"; then
22326    OPENSSL_LIBS=""
22327    OPENSSL_INC=""
22328 fi
22329
22330
22331
22332
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22334 $as_echo_n "checking for library containing dlopen... " >&6; }
22335 if ${ac_cv_search_dlopen+:} false; then :
22336   $as_echo_n "(cached) " >&6
22337 else
22338   ac_func_search_save_LIBS=$LIBS
22339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h.  */
22341
22342 /* Override any GCC internal prototype to avoid an error.
22343    Use char because int might match the return type of a GCC
22344    builtin and then its argument prototype would still apply.  */
22345 #ifdef __cplusplus
22346 extern "C"
22347 #endif
22348 char dlopen ();
22349 int
22350 main ()
22351 {
22352 return dlopen ();
22353   ;
22354   return 0;
22355 }
22356 _ACEOF
22357 for ac_lib in '' dl; do
22358   if test -z "$ac_lib"; then
22359     ac_res="none required"
22360   else
22361     ac_res=-l$ac_lib
22362     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22363   fi
22364   if ac_fn_c_try_link "$LINENO"; then :
22365   ac_cv_search_dlopen=$ac_res
22366 fi
22367 rm -f core conftest.err conftest.$ac_objext \
22368     conftest$ac_exeext
22369   if ${ac_cv_search_dlopen+:} false; then :
22370   break
22371 fi
22372 done
22373 if ${ac_cv_search_dlopen+:} false; then :
22374
22375 else
22376   ac_cv_search_dlopen=no
22377 fi
22378 rm conftest.$ac_ext
22379 LIBS=$ac_func_search_save_LIBS
22380 fi
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22382 $as_echo "$ac_cv_search_dlopen" >&6; }
22383 ac_res=$ac_cv_search_dlopen
22384 if test "$ac_res" != no; then :
22385   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22386
22387 fi
22388
22389
22390 working_dir=`eval echo ${prefix}/var/bacula/working`
22391
22392 # Check whether --with-working-dir was given.
22393 if test "${with_working_dir+set}" = set; then :
22394   withval=$with_working_dir;
22395        if test "x$withval" != "xno" ; then
22396          working_dir=$withval
22397        fi
22398
22399
22400 fi
22401
22402
22403
22404
22405 archivedir=/tmp
22406
22407 # Check whether --with-archivedir was given.
22408 if test "${with_archivedir+set}" = set; then :
22409   withval=$with_archivedir;
22410        if test "x$withval" != "xno" ; then
22411           archivedir=$withval
22412        fi
22413
22414
22415 fi
22416
22417
22418
22419
22420 basename=`hostname`
22421
22422 # Check whether --with-basename was given.
22423 if test "${with_basename+set}" = set; then :
22424   withval=$with_basename;
22425        if test "x$withval" != "xno" ; then
22426           basename=$withval
22427        fi
22428
22429
22430 fi
22431
22432
22433
22434
22435 hostname=`uname -n | cut -d '.' -f 1`
22436 if test x${hostname} = x ; then
22437   hostname="localhost"
22438 fi
22439
22440 # Check whether --with-hostname was given.
22441 if test "${with_hostname+set}" = set; then :
22442   withval=$with_hostname;
22443        if test "x$withval" != "xno" ; then
22444          hostname=$withval
22445        fi
22446
22447
22448 fi
22449
22450
22451
22452
22453
22454 scriptdir=`eval echo ${sysconfdir}`
22455
22456 # Check whether --with-scriptdir was given.
22457 if test "${with_scriptdir+set}" = set; then :
22458   withval=$with_scriptdir;
22459        if test "x$withval" != "xno" ; then
22460           scriptdir=$withval
22461        fi
22462
22463
22464 fi
22465
22466
22467
22468
22469
22470 bsrdir=/tmp
22471
22472 # Check whether --with-bsrdir was given.
22473 if test "${with_bsrdir+set}" = set; then :
22474   withval=$with_bsrdir;
22475        if test "x$withval" != "xno" ; then
22476           bsrdir=$withval
22477        fi
22478
22479
22480 fi
22481
22482
22483
22484
22485 logdir=/tmp
22486
22487 # Check whether --with-logdir was given.
22488 if test "${with_logdir+set}" = set; then :
22489   withval=$with_logdir;
22490        if test "x$withval" != "xno" ; then
22491           logdir=$withval
22492        fi
22493
22494
22495 fi
22496
22497
22498
22499
22500
22501 # ------------------------------------------
22502 # Where to place plugindir (plugin files)
22503 # ------------------------------------------
22504 plugindir=`eval echo ${libdir}`
22505
22506 # Check whether --with-plugindir was given.
22507 if test "${with_plugindir+set}" = set; then :
22508   withval=$with_plugindir;
22509        if test "x$withval" != "xno" ; then
22510           plugindir=$withval
22511        fi
22512
22513
22514 fi
22515
22516
22517
22518
22519 dump_email=root@localhost
22520
22521 # Check whether --with-dump-email was given.
22522 if test "${with_dump_email+set}" = set; then :
22523   withval=$with_dump_email;
22524        if test "x$withval" != "xno" ; then
22525           dump_email=$withval
22526        fi
22527
22528
22529 fi
22530
22531
22532
22533
22534 job_email=root@localhost
22535
22536 # Check whether --with-job-email was given.
22537 if test "${with_job_email+set}" = set; then :
22538   withval=$with_job_email;
22539        if test "x$withval" != "xno" ; then
22540           job_email=$withval
22541        fi
22542
22543
22544 fi
22545
22546
22547
22548
22549 smtp_host=localhost
22550
22551 # Check whether --with-smtp_host was given.
22552 if test "${with_smtp_host+set}" = set; then :
22553   withval=$with_smtp_host;
22554        if test "x$withval" != "xno" ; then
22555           smtp_host=$withval
22556        fi
22557
22558
22559 fi
22560
22561
22562
22563
22564 piddir=/var/run
22565
22566 # Check whether --with-pid-dir was given.
22567 if test "${with_pid_dir+set}" = set; then :
22568   withval=$with_pid_dir;
22569        if test "x$withval" != "xno" ; then
22570           piddir=$withval
22571        fi
22572
22573
22574 fi
22575
22576
22577 cat >>confdefs.h <<_ACEOF
22578 #define _PATH_BACULA_PIDDIR "$piddir"
22579 _ACEOF
22580
22581
22582
22583 subsysdir=/var/run/subsys
22584 if test -d /var/run/subsys; then
22585    subsysdir=/var/run/subsys
22586 elif test -d /var/lock/subsys; then
22587    subsysdir=/var/lock/subsys
22588 else
22589    subsysdir=/var/run/subsys
22590 fi
22591
22592 # Check whether --with-subsys-dir was given.
22593 if test "${with_subsys_dir+set}" = set; then :
22594   withval=$with_subsys_dir;
22595        if test "x$withval" != "xno" ; then
22596           subsysdir=$withval
22597        fi
22598
22599
22600 fi
22601
22602
22603
22604
22605 baseport=9101
22606
22607 # Check whether --with-baseport was given.
22608 if test "${with_baseport+set}" = set; then :
22609   withval=$with_baseport;
22610        if test "x$withval" != "xno" ; then
22611           baseport=$withval
22612        fi
22613
22614
22615 fi
22616
22617
22618
22619 dir_port=`expr $baseport`
22620 fd_port=`expr $baseport + 1`
22621 sd_port=`expr $fd_port + 1`
22622
22623
22624
22625
22626
22627 dir_password=
22628
22629 # Check whether --with-dir-password was given.
22630 if test "${with_dir_password+set}" = set; then :
22631   withval=$with_dir_password;
22632        if test "x$withval" != "xno" ; then
22633           dir_password=$withval
22634        fi
22635
22636
22637 fi
22638
22639
22640 if test "x$dir_password" = "x" ; then
22641    if test "x$OPENSSL" = "xnone" ; then
22642       key=`autoconf/randpass 33`
22643    else
22644       key=`openssl rand -base64 33`
22645    fi
22646    dir_password=$key
22647 fi
22648
22649 fd_password=
22650
22651 # Check whether --with-fd-password was given.
22652 if test "${with_fd_password+set}" = set; then :
22653   withval=$with_fd_password;
22654        if test "x$withval" != "xno" ; then
22655           fd_password=$withval
22656        fi
22657
22658
22659 fi
22660
22661
22662 if test "x$fd_password" = "x" ; then
22663    if test "x$OPENSSL" = "xnone" ; then
22664       key=`autoconf/randpass 37`
22665    else
22666       key=`openssl rand -base64 33`
22667    fi
22668    fd_password=$key
22669 fi
22670
22671 sd_password=
22672
22673 # Check whether --with-sd-password was given.
22674 if test "${with_sd_password+set}" = set; then :
22675   withval=$with_sd_password;
22676        if test "x$withval" != "xno" ; then
22677           sd_password=$withval
22678        fi
22679
22680
22681 fi
22682
22683
22684 if test "x$sd_password" = "x" ; then
22685    if test "x$OPENSSL" = "xnone" ; then
22686       key=`autoconf/randpass 41`
22687    else
22688       key=`openssl rand -base64 33`
22689    fi
22690    sd_password=$key
22691 fi
22692
22693 mon_dir_password=
22694
22695 # Check whether --with-mon-dir-password was given.
22696 if test "${with_mon_dir_password+set}" = set; then :
22697   withval=$with_mon_dir_password;
22698        if test "x$withval" != "xno" ; then
22699           mon_dir_password=$withval
22700        fi
22701
22702
22703 fi
22704
22705
22706 if test "x$mon_dir_password" = "x" ; then
22707    if test "x$OPENSSL" = "xnone" ; then
22708       key=`autoconf/randpass 33`
22709    else
22710       key=`openssl rand -base64 33`
22711    fi
22712    mon_dir_password=$key
22713 fi
22714
22715 mon_fd_password=
22716
22717 # Check whether --with-mon-fd-password was given.
22718 if test "${with_mon_fd_password+set}" = set; then :
22719   withval=$with_mon_fd_password;
22720        if test "x$withval" != "xno" ; then
22721           mon_fd_password=$withval
22722        fi
22723
22724
22725 fi
22726
22727
22728 if test "x$mon_fd_password" = "x" ; then
22729    if test "x$OPENSSL" = "xnone" ; then
22730       key=`autoconf/randpass 37`
22731    else
22732       key=`openssl rand -base64 33`
22733    fi
22734    mon_fd_password=$key
22735 fi
22736
22737 mon_sd_password=
22738
22739 # Check whether --with-mon-sd-password was given.
22740 if test "${with_mon_sd_password+set}" = set; then :
22741   withval=$with_mon_sd_password;
22742        if test "x$withval" != "xno" ; then
22743           mon_sd_password=$withval
22744        fi
22745
22746
22747 fi
22748
22749
22750 if test "x$mon_sd_password" = "x" ; then
22751    if test "x$OPENSSL" = "xnone" ; then
22752       key=`autoconf/randpass 41`
22753    else
22754       key=`openssl rand -base64 33`
22755    fi
22756    mon_sd_password=$key
22757 fi
22758
22759
22760
22761
22762
22763
22764
22765
22766 db_name=bacula
22767
22768 # Check whether --with-db_name was given.
22769 if test "${with_db_name+set}" = set; then :
22770   withval=$with_db_name;
22771        if test "x$withval" != "x" ; then
22772           db_name=$withval
22773        fi
22774
22775
22776 fi
22777
22778
22779
22780 db_user=bacula
22781
22782 # Check whether --with-db_user was given.
22783 if test "${with_db_user+set}" = set; then :
22784   withval=$with_db_user;
22785        if test "x$withval" != "x" ; then
22786           db_user=$withval
22787        fi
22788
22789
22790 fi
22791
22792
22793
22794 db_password=
22795
22796 # Check whether --with-db_password was given.
22797 if test "${with_db_password+set}" = set; then :
22798   withval=$with_db_password;
22799        if test "x$withval" != "x" ; then
22800           db_password=$withval
22801        fi
22802
22803
22804 fi
22805
22806
22807
22808 db_port=" "
22809
22810 # Check whether --with-db_port was given.
22811 if test "${with_db_port+set}" = set; then :
22812   withval=$with_db_port;
22813        if test "x$withval" != "x" ; then
22814           db_port=$withval
22815        fi
22816
22817
22818 fi
22819
22820
22821
22822 #
22823 # Handle users and groups for each daemon
22824 #
22825 dir_user=
22826
22827 # Check whether --with-dir_user was given.
22828 if test "${with_dir_user+set}" = set; then :
22829   withval=$with_dir_user;
22830        if test "x$withval" != "x" ; then
22831            dir_user=$withval
22832        fi
22833
22834
22835 fi
22836
22837
22838 dir_group=
22839
22840 # Check whether --with-dir_group was given.
22841 if test "${with_dir_group+set}" = set; then :
22842   withval=$with_dir_group;
22843        if test "x$withval" != "x" ; then
22844           dir_group=$withval
22845        fi
22846
22847
22848 fi
22849
22850
22851 sd_user=
22852
22853 # Check whether --with-sd_user was given.
22854 if test "${with_sd_user+set}" = set; then :
22855   withval=$with_sd_user;
22856        if test "x$withval" != "x" ; then
22857           sd_user=$withval
22858        fi
22859
22860
22861 fi
22862
22863
22864 sd_group=
22865
22866 # Check whether --with-sd_group was given.
22867 if test "${with_sd_group+set}" = set; then :
22868   withval=$with_sd_group;
22869        if test "x$withval" != "x" ; then
22870           sd_group=$withval
22871        fi
22872
22873
22874 fi
22875
22876
22877 fd_user=
22878
22879 # Check whether --with-fd_user was given.
22880 if test "${with_fd_user+set}" = set; then :
22881   withval=$with_fd_user;
22882        if test "x$withval" != "x" ; then
22883           fd_user=$withval
22884        fi
22885
22886
22887 fi
22888
22889
22890 fd_group=
22891
22892 # Check whether --with-fd_group was given.
22893 if test "${with_fd_group+set}" = set; then :
22894   withval=$with_fd_group;
22895        if test "x$withval" != "x" ; then
22896           fd_group=$withval
22897        fi
22898
22899
22900 fi
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910 SBINPERM=0750
22911
22912 # Check whether --with-sbin-perm was given.
22913 if test "${with_sbin_perm+set}" = set; then :
22914   withval=$with_sbin_perm;
22915        if test "x$withval" != "x" ; then
22916           SBINPERM=$withval
22917        fi
22918
22919
22920 fi
22921
22922
22923
22924
22925
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22927 $as_echo_n "checking for PostgreSQL support... " >&6; }
22928
22929 # Check whether --with-postgresql was given.
22930 if test "${with_postgresql+set}" = set; then :
22931   withval=$with_postgresql;
22932   if test "$withval" != "no"; then
22933       if test "$withval" = "yes"; then
22934           PG_CONFIG=`which pg_config`
22935           if test -n "$PG_CONFIG"; then
22936               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22937               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22938               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22939           elif test -f /usr/local/include/libpq-fe.h; then
22940               POSTGRESQL_INCDIR=/usr/local/include
22941               if test -d /usr/local/lib64; then
22942                  POSTGRESQL_LIBDIR=/usr/local/lib64
22943               else
22944                  POSTGRESQL_LIBDIR=/usr/local/lib
22945               fi
22946               POSTGRESQL_BINDIR=/usr/local/bin
22947           elif test -f /usr/include/libpq-fe.h; then
22948               POSTGRESQL_INCDIR=/usr/include
22949               if test -d /usr/lib64; then
22950                  POSTGRESQL_LIBDIR=/usr/lib64
22951               else
22952                  POSTGRESQL_LIBDIR=/usr/lib
22953               fi
22954               POSTGRESQL_BINDIR=/usr/bin
22955           elif test -f /usr/include/pgsql/libpq-fe.h; then
22956               POSTGRESQL_INCDIR=/usr/include/pgsql
22957               if test -d /usr/lib64/pgsql; then
22958                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22959               else
22960                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22961               fi
22962               POSTGRESQL_BINDIR=/usr/bin
22963           elif test -f /usr/include/postgresql/libpq-fe.h; then
22964               POSTGRESQL_INCDIR=/usr/include/postgresql
22965               if test -d /usr/lib64/postgresql; then
22966                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22967               else
22968                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22969               fi
22970               POSTGRESQL_BINDIR=/usr/bin
22971           else
22972               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22973 $as_echo "no" >&6; }
22974               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22975           fi
22976       elif test -f $withval/include/libpq-fe.h; then
22977           POSTGRESQL_INCDIR=$withval/include
22978           POSTGRESQL_LIBDIR=$withval/lib
22979           POSTGRESQL_BINDIR=$withval/bin
22980       elif test -f $withval/include/postgresql/libpq-fe.h; then
22981           POSTGRESQL_INCDIR=$withval/include/postgresql
22982           if test -d $withval/lib64; then
22983               POSTGRESQL_LIBDIR=$withval/lib64
22984           else
22985               POSTGRESQL_LIBDIR=$withval/lib
22986           fi
22987           POSTGRESQL_BINDIR=$withval/bin
22988       else
22989           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22990 $as_echo "no" >&6; }
22991           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22992       fi
22993
22994 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22995
22996      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22997 $as_echo "yes" >&6; }
22998
22999      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23000      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23001      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23002 if test "x$ac_cv_func_crypt" = xyes; then :
23003
23004 else
23005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23006 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23007 if ${ac_cv_lib_crypt_crypt+:} false; then :
23008   $as_echo_n "(cached) " >&6
23009 else
23010   ac_check_lib_save_LIBS=$LIBS
23011 LIBS="-lcrypt  $LIBS"
23012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23013 /* end confdefs.h.  */
23014
23015 /* Override any GCC internal prototype to avoid an error.
23016    Use char because int might match the return type of a GCC
23017    builtin and then its argument prototype would still apply.  */
23018 #ifdef __cplusplus
23019 extern "C"
23020 #endif
23021 char crypt ();
23022 int
23023 main ()
23024 {
23025 return crypt ();
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 if ac_fn_c_try_link "$LINENO"; then :
23031   ac_cv_lib_crypt_crypt=yes
23032 else
23033   ac_cv_lib_crypt_crypt=no
23034 fi
23035 rm -f core conftest.err conftest.$ac_objext \
23036     conftest$ac_exeext conftest.$ac_ext
23037 LIBS=$ac_check_lib_save_LIBS
23038 fi
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23040 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23041 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23042   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23043 fi
23044
23045 fi
23046
23047      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23048      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23049
23050      if test -z "${db_backends}"; then
23051          db_backends="PostgreSQL"
23052      else
23053          db_backends="${db_backends} PostgreSQL"
23054      fi
23055      if test -z "${DB_BACKENDS}"; then
23056          DB_BACKENDS="postgresql"
23057      else
23058          DB_BACKENDS="${DB_BACKENDS} postgresql"
23059      fi
23060   else
23061      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23062 $as_echo "no" >&6; }
23063   fi
23064
23065 else
23066
23067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23068 $as_echo "no" >&6; }
23069
23070 fi
23071
23072
23073
23074
23075
23076
23077
23078
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23080 $as_echo_n "checking for MySQL support... " >&6; }
23081
23082 # Check whether --with-mysql was given.
23083 if test "${with_mysql+set}" = set; then :
23084   withval=$with_mysql;
23085   if test "$withval" != "no"; then
23086         if test "$withval" = "yes"; then
23087            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23088                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23089                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23090                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23091                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23092                    else
23093                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23094                    fi
23095                    MYSQL_BINDIR=/usr/local/mysql/bin
23096            elif test -f /usr/include/mysql/mysql.h; then
23097                    MYSQL_INCDIR=/usr/include/mysql
23098                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23099                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23100                            MYSQL_LIBDIR=/usr/lib64/mysql
23101                    elif test -f /usr/lib64/libmysqlclient_r.a \
23102                         -o -f /usr/lib64/libmysqlclient_r.so; then
23103                            MYSQL_LIBDIR=/usr/lib64
23104                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23105                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23106                            MYSQL_LIBDIR=/usr/lib/mysql
23107                    else
23108                            MYSQL_LIBDIR=/usr/lib
23109                    fi
23110                    MYSQL_BINDIR=/usr/bin
23111            elif test -f /usr/include/mysql.h; then
23112                    MYSQL_INCDIR=/usr/include
23113                    if test -f /usr/lib64/libmysqlclient_r.a \
23114                         -o -f /usr/lib64/libmysqlclient_r.so; then
23115                            MYSQL_LIBDIR=/usr/lib64
23116                    else
23117                            MYSQL_LIBDIR=/usr/lib
23118                    fi
23119                    MYSQL_BINDIR=/usr/bin
23120            elif test -f /usr/local/include/mysql/mysql.h; then
23121                    MYSQL_INCDIR=/usr/local/include/mysql
23122                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23123                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23124                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23125                    else
23126                            MYSQL_LIBDIR=/usr/local/lib/mysql
23127                    fi
23128                    MYSQL_BINDIR=/usr/local/bin
23129            elif test -f /usr/local/include/mysql.h; then
23130                    MYSQL_INCDIR=/usr/local/include
23131                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23132                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23133                            MYSQL_LIBDIR=/usr/local/lib64
23134                    else
23135                            MYSQL_LIBDIR=/usr/local/lib
23136                    fi
23137                    MYSQL_BINDIR=/usr/local/bin
23138            else
23139               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23140 $as_echo "no" >&6; }
23141               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23142            fi
23143         else
23144            if test -f $withval/include/mysql/mysql.h; then
23145               MYSQL_INCDIR=$withval/include/mysql
23146               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23147                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23148                  MYSQL_LIBDIR=$withval/lib64/mysql
23149               elif test -f $withval/lib64/libmysqlclient_r.a \
23150                    -o -f $withval/lib64/libmysqlclient_r.so; then
23151                  MYSQL_LIBDIR=$withval/lib64
23152               elif test -f $withval/lib/libmysqlclient_r.a \
23153                    -o -f $withval/lib/libmysqlclient_r.so; then
23154                  MYSQL_LIBDIR=$withval/lib
23155               else
23156                  MYSQL_LIBDIR=$withval/lib/mysql
23157               fi
23158               MYSQL_BINDIR=$withval/bin
23159            elif test -f $withval/include/mysql.h; then
23160               MYSQL_INCDIR=$withval/include
23161               if test -f $withval/lib64/libmysqlclient_r.a \
23162                    -o -f $withval/lib64/libmysqlclient_r.so; then
23163                  MYSQL_LIBDIR=$withval/lib64
23164               else
23165                  MYSQL_LIBDIR=$withval/lib
23166               fi
23167               MYSQL_BINDIR=$withval/bin
23168            else
23169               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23170 $as_echo "no" >&6; }
23171               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23172            fi
23173         fi
23174      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23175      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23176           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23177         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23178
23179 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23180
23181         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23182      fi
23183      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23184
23185
23186 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23187
23188      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23189 $as_echo "yes" >&6; }
23190
23191      if test -z "${db_backends}" ; then
23192          db_backends="MySQL"
23193      else
23194          db_backends="${db_backends} MySQL"
23195      fi
23196      if test -z "${DB_BACKENDS}" ; then
23197          DB_BACKENDS="mysql"
23198      else
23199          DB_BACKENDS="${DB_BACKENDS} mysql"
23200      fi
23201   else
23202      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23203 $as_echo "no" >&6; }
23204   fi
23205
23206
23207 fi
23208
23209
23210
23211 # Check whether --with-embedded-mysql was given.
23212 if test "${with_embedded_mysql+set}" = set; then :
23213   withval=$with_embedded_mysql;
23214   if test "$withval" != "no"; then
23215         if test "$withval" = "yes"; then
23216                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23217                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23218                         if test -d /usr/local/mysql/lib64/mysql; then
23219                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23220                         else
23221                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23222                         fi
23223                         MYSQL_BINDIR=/usr/local/mysql/bin
23224                 elif test -f /usr/include/mysql/mysql.h; then
23225                         MYSQL_INCDIR=/usr/include/mysql
23226                         if test -d /usr/lib64/mysql; then
23227                                 MYSQL_LIBDIR=/usr/lib64/mysql
23228                         else
23229                                 MYSQL_LIBDIR=/usr/lib/mysql
23230                         fi
23231                         MYSQL_BINDIR=/usr/bin
23232                 elif test -f /usr/include/mysql.h; then
23233                         MYSQL_INCDIR=/usr/include
23234                         if test -d /usr/lib64; then
23235                                 MYSQL_LIBDIR=/usr/lib64
23236                         else
23237                                 MYSQL_LIBDIR=/usr/lib
23238                         fi
23239                         MYSQL_BINDIR=/usr/bin
23240                 elif test -f /usr/local/include/mysql/mysql.h; then
23241                         MYSQL_INCDIR=/usr/local/include/mysql
23242                         if test -d /usr/local/lib64/mysql; then
23243                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23244                         else
23245                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23246                         fi
23247                         MYSQL_BINDIR=/usr/local/bin
23248                 elif test -f /usr/local/include/mysql.h; then
23249                         MYSQL_INCDIR=/usr/local/include
23250                         if test -d /usr/local/lib64; then
23251                                 MYSQL_LIBDIR=/usr/local/lib64
23252                         else
23253                                 MYSQL_LIBDIR=/usr/local/lib
23254                         fi
23255                         MYSQL_BINDIR=/usr/local/bin
23256                 else
23257                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23258 $as_echo "no" >&6; }
23259                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23260                 fi
23261         else
23262                 if test -f $withval/include/mysql/mysql.h; then
23263                         MYSQL_INCDIR=$withval/include/mysql
23264                         if test -d $withval/lib64/mysql; then
23265                                 MYSQL_LIBDIR=$withval/lib64/mysql
23266                         else
23267                                 MYSQL_LIBDIR=$withval/lib/mysql
23268                         fi
23269                         MYSQL_BINDIR=$withval/bin
23270                 elif test -f $withval/include/mysql.h; then
23271                         MYSQL_INCDIR=$withval/include
23272                         if test -d $withval/lib64; then
23273                                 MYSQL_LIBDIR=$withval/lib64
23274                         else
23275                                 MYSQL_LIBDIR=$withval/lib
23276                         fi
23277                         MYSQL_BINDIR=$withval/bin
23278                 else
23279                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23280 $as_echo "no" >&6; }
23281                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23282                 fi
23283         fi
23284      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23285      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23286      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23287      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23288
23289
23290 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23291
23292
23293 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23294
23295      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23296 $as_echo "yes" >&6; }
23297
23298      if test -z "${db_backends}"; then
23299          db_backends="MySQL"
23300      else
23301          db_backends="${db_backends} MySQL"
23302      fi
23303      if test -z "${DB_BACKENDS}"; then
23304          DB_BACKENDS="mysql"
23305      else
23306          DB_BACKENDS="${DB_BACKENDS} mysql"
23307      fi
23308   else
23309      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23310 $as_echo "no" >&6; }
23311   fi
23312
23313
23314 fi
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23325 $as_echo_n "checking for SQLite3 support... " >&6; }
23326
23327 # Check whether --with-sqlite3 was given.
23328 if test "${with_sqlite3+set}" = set; then :
23329   withval=$with_sqlite3;
23330   if test "$withval" != "no"; then
23331      if test "$withval" = "yes"; then
23332         if test -f /usr/local/include/sqlite3.h; then
23333            SQLITE_INCDIR=/usr/local/include
23334            if test -d /usr/local/lib64; then
23335               SQLITE_LIBDIR=/usr/local/lib64
23336            else
23337               SQLITE_LIBDIR=/usr/local/lib
23338            fi
23339            SQLITE_BINDIR=/usr/local/bin
23340         elif test -f /usr/include/sqlite3.h; then
23341            SQLITE_INCDIR=/usr/include
23342            if test -d /usr/lib64; then
23343               SQLITE_LIBDIR=/usr/lib64
23344            else
23345               SQLITE_LIBDIR=/usr/lib
23346            fi
23347            SQLITE_BINDIR=/usr/bin
23348         elif test -f $prefix/include/sqlite3.h; then
23349            SQLITE_INCDIR=$prefix/include
23350            if test -d $prefix/lib64; then
23351               SQLITE_LIBDIR=$prefix/lib64
23352            else
23353               SQLITE_LIBDIR=$prefix/lib
23354            fi
23355            SQLITE_BINDIR=$prefix/bin
23356         else
23357            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23358 $as_echo "no" >&6; }
23359            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23360         fi
23361      else
23362         if test -f $withval/sqlite3.h; then
23363            SQLITE_INCDIR=$withval
23364            SQLITE_LIBDIR=$withval
23365            SQLITE_BINDIR=$withval
23366         elif test -f $withval/include/sqlite3.h; then
23367            SQLITE_INCDIR=$withval/include
23368            if test -d $withval/lib64; then
23369               SQLITE_LIBDIR=$withval/lib64
23370            else
23371               SQLITE_LIBDIR=$withval/lib
23372            fi
23373            SQLITE_BINDIR=$withval/bin
23374         else
23375            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23376 $as_echo "no" >&6; }
23377            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23378         fi
23379      fi
23380      SQLITE_INCLUDE=-I$SQLITE_INCDIR
23381      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23382      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23383      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23384
23385
23386 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23387
23388      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23389 $as_echo "yes" >&6; }
23390
23391      if test -z "${db_backends}"; then
23392          db_backends="SQLite3"
23393      else
23394          db_backends="${db_backends} SQLite3"
23395      fi
23396      if test -z "${DB_BACKENDS}"; then
23397          DB_BACKENDS="sqlite3"
23398      else
23399          DB_BACKENDS="${DB_BACKENDS} sqlite3"
23400      fi
23401   else
23402      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23403 $as_echo "no" >&6; }
23404   fi
23405
23406 else
23407
23408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23409 $as_echo "no" >&6; }
23410
23411 fi
23412
23413
23414
23415
23416
23417
23418
23419 #BA_CHECK_INGRES_DB
23420
23421 #BA_CHECK_DBI_DB
23422
23423 #BA_CHECK_DBI_DRIVER
23424
23425 if test "x${db_backends}" = "x" ; then
23426    echo " "
23427    echo " "
23428    echo "You have not specified either --enable-client-only or one of the"
23429    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23430    echo "This is not permitted. Please reconfigure."
23431    echo " "
23432    echo "Aborting the configuration ..."
23433    echo " "
23434    echo " "
23435    exit 1
23436 fi
23437
23438 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23439    1)
23440       DEFAULT_DB_TYPE="${DB_BACKENDS}"
23441       if test x$use_libtool = xno; then
23442          SHARED_CATALOG_TARGETS=""
23443       else
23444          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23445       fi
23446       ;;
23447    *)
23448                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23449
23450                         if test x$use_libtool = xno; then
23451          echo " "
23452          echo " "
23453          echo "You have specified two or more of the"
23454          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23455          echo "This is not permitted when not using libtool Please reconfigure."
23456          echo " "
23457          echo "Aborting the configuration ..."
23458          echo " "
23459          echo " "
23460          exit 1
23461       fi
23462
23463       SHARED_CATALOG_TARGETS=""
23464       for db_type in ${DB_BACKENDS}
23465       do
23466          if test -z "${SHARED_CATALOG_TARGETS}"; then
23467             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23468          else
23469             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23470          fi
23471       done
23472       ;;
23473 esac
23474
23475 if test x$use_libtool = xyes; then
23476    DB_LIBS=""
23477 fi
23478
23479
23480
23481
23482
23483
23484 support_batch_insert=yes
23485 # Check whether --enable-batch-insert was given.
23486 if test "${enable_batch_insert+set}" = set; then :
23487   enableval=$enable_batch_insert;
23488        if test x$enableval = xno; then
23489           support_batch_insert=no
23490        fi
23491
23492
23493 fi
23494
23495
23496 if test x$support_batch_insert = xyes; then
23497
23498 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23499
23500 fi
23501
23502 if test ! -z "$MYSQL_LIB"; then
23503    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23504 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23505 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
23506   $as_echo_n "(cached) " >&6
23507 else
23508   ac_check_lib_save_LIBS=$LIBS
23509 LIBS="-lmysql_r  $LIBS"
23510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23511 /* end confdefs.h.  */
23512
23513 /* Override any GCC internal prototype to avoid an error.
23514    Use char because int might match the return type of a GCC
23515    builtin and then its argument prototype would still apply.  */
23516 #ifdef __cplusplus
23517 extern "C"
23518 #endif
23519 char mysql_thread_safe ();
23520 int
23521 main ()
23522 {
23523 return mysql_thread_safe ();
23524   ;
23525   return 0;
23526 }
23527 _ACEOF
23528 if ac_fn_c_try_link "$LINENO"; then :
23529   ac_cv_lib_mysql_r_mysql_thread_safe=yes
23530 else
23531   ac_cv_lib_mysql_r_mysql_thread_safe=no
23532 fi
23533 rm -f core conftest.err conftest.$ac_objext \
23534     conftest$ac_exeext conftest.$ac_ext
23535 LIBS=$ac_check_lib_save_LIBS
23536 fi
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23538 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23539 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
23540
23541 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23542
23543 fi
23544
23545 fi
23546
23547 if test ! -z "SQLITE_LIB"; then
23548    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23549 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23550 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
23551   $as_echo_n "(cached) " >&6
23552 else
23553   ac_check_lib_save_LIBS=$LIBS
23554 LIBS="-lsqlite3  $LIBS"
23555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23556 /* end confdefs.h.  */
23557
23558 /* Override any GCC internal prototype to avoid an error.
23559    Use char because int might match the return type of a GCC
23560    builtin and then its argument prototype would still apply.  */
23561 #ifdef __cplusplus
23562 extern "C"
23563 #endif
23564 char sqlite3_threadsafe ();
23565 int
23566 main ()
23567 {
23568 return sqlite3_threadsafe ();
23569   ;
23570   return 0;
23571 }
23572 _ACEOF
23573 if ac_fn_c_try_link "$LINENO"; then :
23574   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23575 else
23576   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23577 fi
23578 rm -f core conftest.err conftest.$ac_objext \
23579     conftest$ac_exeext conftest.$ac_ext
23580 LIBS=$ac_check_lib_save_LIBS
23581 fi
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23583 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23584 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
23585
23586 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23587
23588 fi
23589
23590 fi
23591
23592 if test ! -z "$POSTGRESQL_LIB"; then
23593       saved_LIBS="${LIBS}"
23594    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23595
23596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23597 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23598 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23599   $as_echo_n "(cached) " >&6
23600 else
23601   ac_check_lib_save_LIBS=$LIBS
23602 LIBS="-lpq  $LIBS"
23603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23604 /* end confdefs.h.  */
23605
23606 /* Override any GCC internal prototype to avoid an error.
23607    Use char because int might match the return type of a GCC
23608    builtin and then its argument prototype would still apply.  */
23609 #ifdef __cplusplus
23610 extern "C"
23611 #endif
23612 char PQisthreadsafe ();
23613 int
23614 main ()
23615 {
23616 return PQisthreadsafe ();
23617   ;
23618   return 0;
23619 }
23620 _ACEOF
23621 if ac_fn_c_try_link "$LINENO"; then :
23622   ac_cv_lib_pq_PQisthreadsafe=yes
23623 else
23624   ac_cv_lib_pq_PQisthreadsafe=no
23625 fi
23626 rm -f core conftest.err conftest.$ac_objext \
23627     conftest$ac_exeext conftest.$ac_ext
23628 LIBS=$ac_check_lib_save_LIBS
23629 fi
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23631 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23632 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23633
23634 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23635
23636 fi
23637
23638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23639 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23640 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23641   $as_echo_n "(cached) " >&6
23642 else
23643   ac_check_lib_save_LIBS=$LIBS
23644 LIBS="-lpq  $LIBS"
23645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h.  */
23647
23648 /* Override any GCC internal prototype to avoid an error.
23649    Use char because int might match the return type of a GCC
23650    builtin and then its argument prototype would still apply.  */
23651 #ifdef __cplusplus
23652 extern "C"
23653 #endif
23654 char PQputCopyData ();
23655 int
23656 main ()
23657 {
23658 return PQputCopyData ();
23659   ;
23660   return 0;
23661 }
23662 _ACEOF
23663 if ac_fn_c_try_link "$LINENO"; then :
23664   ac_cv_lib_pq_PQputCopyData=yes
23665 else
23666   ac_cv_lib_pq_PQputCopyData=no
23667 fi
23668 rm -f core conftest.err conftest.$ac_objext \
23669     conftest$ac_exeext conftest.$ac_ext
23670 LIBS=$ac_check_lib_save_LIBS
23671 fi
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23673 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23674 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23675
23676 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23677
23678 fi
23679
23680    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23681       if test $support_batch_insert = yes ; then
23682
23683 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23684
23685       fi
23686    fi
23687
23688    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23689    then
23690       echo "WARNING: Your PostgreSQL client library is too old to detect "
23691       echo "if it was compiled with --enable-thread-safety, consider to "
23692       echo "upgrade it in order to avoid problems with Batch insert mode"
23693       echo
23694    fi
23695
23696       LIBS="${saved_LIBS}"
23697 fi
23698
23699 if test ! -z "$DBI_LIBS"; then
23700             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23701
23702             if test $DB_PROG = postgresql; then
23703       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23704 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23705 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23706   $as_echo_n "(cached) " >&6
23707 else
23708   ac_check_lib_save_LIBS=$LIBS
23709 LIBS="-lpq  $LIBS"
23710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23711 /* end confdefs.h.  */
23712
23713 /* Override any GCC internal prototype to avoid an error.
23714    Use char because int might match the return type of a GCC
23715    builtin and then its argument prototype would still apply.  */
23716 #ifdef __cplusplus
23717 extern "C"
23718 #endif
23719 char PQisthreadsafe ();
23720 int
23721 main ()
23722 {
23723 return PQisthreadsafe ();
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 if ac_fn_c_try_link "$LINENO"; then :
23729   ac_cv_lib_pq_PQisthreadsafe=yes
23730 else
23731   ac_cv_lib_pq_PQisthreadsafe=no
23732 fi
23733 rm -f core conftest.err conftest.$ac_objext \
23734     conftest$ac_exeext conftest.$ac_ext
23735 LIBS=$ac_check_lib_save_LIBS
23736 fi
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23738 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23739 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23740   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23741
23742 fi
23743
23744       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23745 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23746 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23747   $as_echo_n "(cached) " >&6
23748 else
23749   ac_check_lib_save_LIBS=$LIBS
23750 LIBS="-lpq  $LIBS"
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h.  */
23753
23754 /* Override any GCC internal prototype to avoid an error.
23755    Use char because int might match the return type of a GCC
23756    builtin and then its argument prototype would still apply.  */
23757 #ifdef __cplusplus
23758 extern "C"
23759 #endif
23760 char PQputCopyData ();
23761 int
23762 main ()
23763 {
23764 return PQputCopyData ();
23765   ;
23766   return 0;
23767 }
23768 _ACEOF
23769 if ac_fn_c_try_link "$LINENO"; then :
23770   ac_cv_lib_pq_PQputCopyData=yes
23771 else
23772   ac_cv_lib_pq_PQputCopyData=no
23773 fi
23774 rm -f core conftest.err conftest.$ac_objext \
23775     conftest$ac_exeext conftest.$ac_ext
23776 LIBS=$ac_check_lib_save_LIBS
23777 fi
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23779 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23780 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23781   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23782
23783 fi
23784
23785       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
23786       pkg=$?
23787       if test $pkg = 0; then
23788          if test $support_batch_insert = yes ; then
23789
23790 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
23791
23792          fi
23793       fi
23794    fi
23795 else
23796             uncomment_dbi="#"
23797 fi
23798
23799
23800
23801 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23802
23803
23804 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23805    if test -z "$CCOPTS"; then
23806       CCOPTS='-g -O2 -Wall'
23807    fi
23808    CFLAGS="$CCOPTS"
23809 fi
23810
23811
23812
23813 largefile_support="no"
23814
23815    # Check whether --enable-largefile was given.
23816 if test "${enable_largefile+set}" = set; then :
23817   enableval=$enable_largefile;
23818 fi
23819
23820    if test "$enable_largefile" != no; then
23821      if test -n "$ac_tool_prefix"; then
23822   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23823 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23825 $as_echo_n "checking for $ac_word... " >&6; }
23826 if ${ac_cv_prog_GETCONF+:} false; then :
23827   $as_echo_n "(cached) " >&6
23828 else
23829   if test -n "$GETCONF"; then
23830   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23831 else
23832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23833 for as_dir in $PATH
23834 do
23835   IFS=$as_save_IFS
23836   test -z "$as_dir" && as_dir=.
23837     for ac_exec_ext in '' $ac_executable_extensions; do
23838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23839     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23841     break 2
23842   fi
23843 done
23844   done
23845 IFS=$as_save_IFS
23846
23847 fi
23848 fi
23849 GETCONF=$ac_cv_prog_GETCONF
23850 if test -n "$GETCONF"; then
23851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23852 $as_echo "$GETCONF" >&6; }
23853 else
23854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23855 $as_echo "no" >&6; }
23856 fi
23857
23858
23859 fi
23860 if test -z "$ac_cv_prog_GETCONF"; then
23861   ac_ct_GETCONF=$GETCONF
23862   # Extract the first word of "getconf", so it can be a program name with args.
23863 set dummy getconf; ac_word=$2
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23865 $as_echo_n "checking for $ac_word... " >&6; }
23866 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
23867   $as_echo_n "(cached) " >&6
23868 else
23869   if test -n "$ac_ct_GETCONF"; then
23870   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23871 else
23872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23873 for as_dir in $PATH
23874 do
23875   IFS=$as_save_IFS
23876   test -z "$as_dir" && as_dir=.
23877     for ac_exec_ext in '' $ac_executable_extensions; do
23878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23879     ac_cv_prog_ac_ct_GETCONF="getconf"
23880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23881     break 2
23882   fi
23883 done
23884   done
23885 IFS=$as_save_IFS
23886
23887 fi
23888 fi
23889 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23890 if test -n "$ac_ct_GETCONF"; then
23891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23892 $as_echo "$ac_ct_GETCONF" >&6; }
23893 else
23894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23895 $as_echo "no" >&6; }
23896 fi
23897
23898   if test "x$ac_ct_GETCONF" = x; then
23899     GETCONF=""
23900   else
23901     case $cross_compiling:$ac_tool_warned in
23902 yes:)
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23905 ac_tool_warned=yes ;;
23906 esac
23907     GETCONF=$ac_ct_GETCONF
23908   fi
23909 else
23910   GETCONF="$ac_cv_prog_GETCONF"
23911 fi
23912
23913      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
23914 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
23915 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
23916   $as_echo_n "(cached) " >&6
23917 else
23918   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
23919         ac_cv_sys_largefile_CFLAGS=no
23920         case "$host_os" in
23921            # IRIX 6.2 and later require cc -n32.
23922            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
23923              if test "$GCC" != yes; then
23924                ac_cv_sys_largefile_CFLAGS=-n32
23925              fi
23926              ac_save_CC="$CC"
23927              CC="$CC $ac_cv_sys_largefile_CFLAGS"
23928              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23929 /* end confdefs.h.  */
23930
23931 int
23932 main ()
23933 {
23934
23935   ;
23936   return 0;
23937 }
23938 _ACEOF
23939 if ac_fn_c_try_link "$LINENO"; then :
23940
23941 else
23942   ac_cv_sys_largefile_CFLAGS=no
23943 fi
23944 rm -f core conftest.err conftest.$ac_objext \
23945     conftest$ac_exeext conftest.$ac_ext
23946              CC="$ac_save_CC"
23947            esac
23948       }
23949 fi
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
23951 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
23952      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
23953 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
23954 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
23955   $as_echo_n "(cached) " >&6
23956 else
23957   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
23958         ac_cv_sys_largefile_LDFLAGS=no
23959
23960       }
23961 fi
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
23963 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
23964      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
23965 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
23966 if ${ac_cv_sys_largefile_LIBS+:} false; then :
23967   $as_echo_n "(cached) " >&6
23968 else
23969   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
23970         ac_cv_sys_largefile_LIBS=no
23971
23972       }
23973 fi
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
23975 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
23976
23977      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
23978        case "$ac_flag" in
23979        no) ;;
23980        -D_FILE_OFFSET_BITS=*) ;;
23981        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
23982        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
23983        -D?* | -I?*)
23984          case "$ac_flag" in
23985    no) ;;
23986    ?*)
23987      case "$CPPFLAGS" in
23988      '') CPPFLAGS="$ac_flag" ;;
23989      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
23990      esac ;;
23991    esac ;;
23992        *)
23993          case "$ac_flag" in
23994    no) ;;
23995    ?*)
23996      case "$CFLAGS" in
23997      '') CFLAGS="$ac_flag" ;;
23998      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
23999      esac ;;
24000    esac ;;
24001        esac
24002      done
24003      case "$ac_cv_sys_largefile_LDFLAGS" in
24004    no) ;;
24005    ?*)
24006      case "$LDFLAGS" in
24007      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24008      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24009      esac ;;
24010    esac
24011      case "$ac_cv_sys_largefile_LIBS" in
24012    no) ;;
24013    ?*)
24014      case "$LIBS" in
24015      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24016      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24017      esac ;;
24018    esac
24019      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24020 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24021 if ${ac_cv_sys_file_offset_bits+:} false; then :
24022   $as_echo_n "(cached) " >&6
24023 else
24024   ac_cv_sys_file_offset_bits=no
24025       ac_cv_sys_file_offset_bits=64
24026       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24027         case "$ac_flag" in
24028         -D_FILE_OFFSET_BITS)
24029           ac_cv_sys_file_offset_bits=1 ;;
24030         -D_FILE_OFFSET_BITS=*)
24031           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24032         esac
24033       done
24034
24035 fi
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24037 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24038    if test "$ac_cv_sys_file_offset_bits" != no; then
24039
24040 cat >>confdefs.h <<_ACEOF
24041 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24042 _ACEOF
24043
24044    fi
24045      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24046 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24047 if ${ac_cv_sys_largefile_source+:} false; then :
24048   $as_echo_n "(cached) " >&6
24049 else
24050   ac_cv_sys_largefile_source=no
24051       ac_cv_sys_largefile_source=1
24052       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24053         case "$ac_flag" in
24054         -D_LARGEFILE_SOURCE)
24055           ac_cv_sys_largefile_source=1 ;;
24056         -D_LARGEFILE_SOURCE=*)
24057           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24058         esac
24059       done
24060
24061 fi
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24063 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24064    if test "$ac_cv_sys_largefile_source" != no; then
24065
24066 cat >>confdefs.h <<_ACEOF
24067 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24068 _ACEOF
24069
24070    fi
24071      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24072 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24073 if ${ac_cv_sys_large_files+:} false; then :
24074   $as_echo_n "(cached) " >&6
24075 else
24076   ac_cv_sys_large_files=no
24077       ac_cv_sys_large_files=1
24078       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24079         case "$ac_flag" in
24080         -D_LARGE_FILES)
24081           ac_cv_sys_large_files=1 ;;
24082         -D_LARGE_FILES=*)
24083           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24084         esac
24085       done
24086
24087 fi
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24089 $as_echo "$ac_cv_sys_large_files" >&6; }
24090    if test "$ac_cv_sys_large_files" != no; then
24091
24092 cat >>confdefs.h <<_ACEOF
24093 #define _LARGE_FILES $ac_cv_sys_large_files
24094 _ACEOF
24095
24096    fi
24097    fi
24098
24099
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24101 $as_echo_n "checking for X... " >&6; }
24102
24103
24104 # Check whether --with-x was given.
24105 if test "${with_x+set}" = set; then :
24106   withval=$with_x;
24107 fi
24108
24109 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24110 if test "x$with_x" = xno; then
24111   # The user explicitly disabled X.
24112   have_x=disabled
24113 else
24114   case $x_includes,$x_libraries in #(
24115     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24116     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24117   $as_echo_n "(cached) " >&6
24118 else
24119   # One or both of the vars are not set, and there is no cached value.
24120 ac_x_includes=no ac_x_libraries=no
24121 rm -f -r conftest.dir
24122 if mkdir conftest.dir; then
24123   cd conftest.dir
24124   cat >Imakefile <<'_ACEOF'
24125 incroot:
24126         @echo incroot='${INCROOT}'
24127 usrlibdir:
24128         @echo usrlibdir='${USRLIBDIR}'
24129 libdir:
24130         @echo libdir='${LIBDIR}'
24131 _ACEOF
24132   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24133     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24134     for ac_var in incroot usrlibdir libdir; do
24135       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24136     done
24137     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24138     for ac_extension in a so sl dylib la dll; do
24139       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24140          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24141         ac_im_usrlibdir=$ac_im_libdir; break
24142       fi
24143     done
24144     # Screen out bogus values from the imake configuration.  They are
24145     # bogus both because they are the default anyway, and because
24146     # using them would break gcc on systems where it needs fixed includes.
24147     case $ac_im_incroot in
24148         /usr/include) ac_x_includes= ;;
24149         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24150     esac
24151     case $ac_im_usrlibdir in
24152         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24153         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24154     esac
24155   fi
24156   cd ..
24157   rm -f -r conftest.dir
24158 fi
24159
24160 # Standard set of common directories for X headers.
24161 # Check X11 before X11Rn because it is often a symlink to the current release.
24162 ac_x_header_dirs='
24163 /usr/X11/include
24164 /usr/X11R7/include
24165 /usr/X11R6/include
24166 /usr/X11R5/include
24167 /usr/X11R4/include
24168
24169 /usr/include/X11
24170 /usr/include/X11R7
24171 /usr/include/X11R6
24172 /usr/include/X11R5
24173 /usr/include/X11R4
24174
24175 /usr/local/X11/include
24176 /usr/local/X11R7/include
24177 /usr/local/X11R6/include
24178 /usr/local/X11R5/include
24179 /usr/local/X11R4/include
24180
24181 /usr/local/include/X11
24182 /usr/local/include/X11R7
24183 /usr/local/include/X11R6
24184 /usr/local/include/X11R5
24185 /usr/local/include/X11R4
24186
24187 /usr/X386/include
24188 /usr/x386/include
24189 /usr/XFree86/include/X11
24190
24191 /usr/include
24192 /usr/local/include
24193 /usr/unsupported/include
24194 /usr/athena/include
24195 /usr/local/x11r5/include
24196 /usr/lpp/Xamples/include
24197
24198 /usr/openwin/include
24199 /usr/openwin/share/include'
24200
24201 if test "$ac_x_includes" = no; then
24202   # Guess where to find include files, by looking for Xlib.h.
24203   # First, try using that file with no special directory specified.
24204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24205 /* end confdefs.h.  */
24206 #include <X11/Xlib.h>
24207 _ACEOF
24208 if ac_fn_c_try_cpp "$LINENO"; then :
24209   # We can compile using X headers with no special include directory.
24210 ac_x_includes=
24211 else
24212   for ac_dir in $ac_x_header_dirs; do
24213   if test -r "$ac_dir/X11/Xlib.h"; then
24214     ac_x_includes=$ac_dir
24215     break
24216   fi
24217 done
24218 fi
24219 rm -f conftest.err conftest.i conftest.$ac_ext
24220 fi # $ac_x_includes = no
24221
24222 if test "$ac_x_libraries" = no; then
24223   # Check for the libraries.
24224   # See if we find them without any special options.
24225   # Don't add to $LIBS permanently.
24226   ac_save_LIBS=$LIBS
24227   LIBS="-lX11 $LIBS"
24228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24229 /* end confdefs.h.  */
24230 #include <X11/Xlib.h>
24231 int
24232 main ()
24233 {
24234 XrmInitialize ()
24235   ;
24236   return 0;
24237 }
24238 _ACEOF
24239 if ac_fn_c_try_link "$LINENO"; then :
24240   LIBS=$ac_save_LIBS
24241 # We can link X programs with no special library path.
24242 ac_x_libraries=
24243 else
24244   LIBS=$ac_save_LIBS
24245 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24246 do
24247   # Don't even attempt the hair of trying to link an X program!
24248   for ac_extension in a so sl dylib la dll; do
24249     if test -r "$ac_dir/libX11.$ac_extension"; then
24250       ac_x_libraries=$ac_dir
24251       break 2
24252     fi
24253   done
24254 done
24255 fi
24256 rm -f core conftest.err conftest.$ac_objext \
24257     conftest$ac_exeext conftest.$ac_ext
24258 fi # $ac_x_libraries = no
24259
24260 case $ac_x_includes,$ac_x_libraries in #(
24261   no,* | *,no | *\'*)
24262     # Didn't find X, or a directory has "'" in its name.
24263     ac_cv_have_x="have_x=no";; #(
24264   *)
24265     # Record where we found X for the cache.
24266     ac_cv_have_x="have_x=yes\
24267         ac_x_includes='$ac_x_includes'\
24268         ac_x_libraries='$ac_x_libraries'"
24269 esac
24270 fi
24271 ;; #(
24272     *) have_x=yes;;
24273   esac
24274   eval "$ac_cv_have_x"
24275 fi # $with_x != no
24276
24277 if test "$have_x" != yes; then
24278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24279 $as_echo "$have_x" >&6; }
24280   no_x=yes
24281 else
24282   # If each of the values was on the command line, it overrides each guess.
24283   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24284   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24285   # Update the cache value to reflect the command line values.
24286   ac_cv_have_x="have_x=yes\
24287         ac_x_includes='$x_includes'\
24288         ac_x_libraries='$x_libraries'"
24289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24290 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24291 fi
24292
24293 if test "$no_x" = yes; then
24294   # Not all programs may use this symbol, but it does not hurt to define it.
24295
24296 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24297
24298   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24299 else
24300   if test -n "$x_includes"; then
24301     X_CFLAGS="$X_CFLAGS -I$x_includes"
24302   fi
24303
24304   # It would also be nice to do this for all -L options, not just this one.
24305   if test -n "$x_libraries"; then
24306     X_LIBS="$X_LIBS -L$x_libraries"
24307     # For Solaris; some versions of Sun CC require a space after -R and
24308     # others require no space.  Words are not sufficient . . . .
24309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24310 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24311     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24312     ac_xsave_c_werror_flag=$ac_c_werror_flag
24313     ac_c_werror_flag=yes
24314     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24315 /* end confdefs.h.  */
24316
24317 int
24318 main ()
24319 {
24320
24321   ;
24322   return 0;
24323 }
24324 _ACEOF
24325 if ac_fn_c_try_link "$LINENO"; then :
24326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24327 $as_echo "no" >&6; }
24328        X_LIBS="$X_LIBS -R$x_libraries"
24329 else
24330   LIBS="$ac_xsave_LIBS -R $x_libraries"
24331        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24332 /* end confdefs.h.  */
24333
24334 int
24335 main ()
24336 {
24337
24338   ;
24339   return 0;
24340 }
24341 _ACEOF
24342 if ac_fn_c_try_link "$LINENO"; then :
24343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24344 $as_echo "yes" >&6; }
24345           X_LIBS="$X_LIBS -R $x_libraries"
24346 else
24347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24348 $as_echo "neither works" >&6; }
24349 fi
24350 rm -f core conftest.err conftest.$ac_objext \
24351     conftest$ac_exeext conftest.$ac_ext
24352 fi
24353 rm -f core conftest.err conftest.$ac_objext \
24354     conftest$ac_exeext conftest.$ac_ext
24355     ac_c_werror_flag=$ac_xsave_c_werror_flag
24356     LIBS=$ac_xsave_LIBS
24357   fi
24358
24359   # Check for system-dependent libraries X programs must link with.
24360   # Do this before checking for the system-independent R6 libraries
24361   # (-lICE), since we may need -lsocket or whatever for X linking.
24362
24363   if test "$ISC" = yes; then
24364     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24365   else
24366     # Martyn Johnson says this is needed for Ultrix, if the X
24367     # libraries were built with DECnet support.  And Karl Berry says
24368     # the Alpha needs dnet_stub (dnet does not exist).
24369     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24370     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24371 /* end confdefs.h.  */
24372
24373 /* Override any GCC internal prototype to avoid an error.
24374    Use char because int might match the return type of a GCC
24375    builtin and then its argument prototype would still apply.  */
24376 #ifdef __cplusplus
24377 extern "C"
24378 #endif
24379 char XOpenDisplay ();
24380 int
24381 main ()
24382 {
24383 return XOpenDisplay ();
24384   ;
24385   return 0;
24386 }
24387 _ACEOF
24388 if ac_fn_c_try_link "$LINENO"; then :
24389
24390 else
24391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24392 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24393 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
24394   $as_echo_n "(cached) " >&6
24395 else
24396   ac_check_lib_save_LIBS=$LIBS
24397 LIBS="-ldnet  $LIBS"
24398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24399 /* end confdefs.h.  */
24400
24401 /* Override any GCC internal prototype to avoid an error.
24402    Use char because int might match the return type of a GCC
24403    builtin and then its argument prototype would still apply.  */
24404 #ifdef __cplusplus
24405 extern "C"
24406 #endif
24407 char dnet_ntoa ();
24408 int
24409 main ()
24410 {
24411 return dnet_ntoa ();
24412   ;
24413   return 0;
24414 }
24415 _ACEOF
24416 if ac_fn_c_try_link "$LINENO"; then :
24417   ac_cv_lib_dnet_dnet_ntoa=yes
24418 else
24419   ac_cv_lib_dnet_dnet_ntoa=no
24420 fi
24421 rm -f core conftest.err conftest.$ac_objext \
24422     conftest$ac_exeext conftest.$ac_ext
24423 LIBS=$ac_check_lib_save_LIBS
24424 fi
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24426 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24427 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
24428   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24429 fi
24430
24431     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24432       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24433 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24434 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
24435   $as_echo_n "(cached) " >&6
24436 else
24437   ac_check_lib_save_LIBS=$LIBS
24438 LIBS="-ldnet_stub  $LIBS"
24439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24440 /* end confdefs.h.  */
24441
24442 /* Override any GCC internal prototype to avoid an error.
24443    Use char because int might match the return type of a GCC
24444    builtin and then its argument prototype would still apply.  */
24445 #ifdef __cplusplus
24446 extern "C"
24447 #endif
24448 char dnet_ntoa ();
24449 int
24450 main ()
24451 {
24452 return dnet_ntoa ();
24453   ;
24454   return 0;
24455 }
24456 _ACEOF
24457 if ac_fn_c_try_link "$LINENO"; then :
24458   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24459 else
24460   ac_cv_lib_dnet_stub_dnet_ntoa=no
24461 fi
24462 rm -f core conftest.err conftest.$ac_objext \
24463     conftest$ac_exeext conftest.$ac_ext
24464 LIBS=$ac_check_lib_save_LIBS
24465 fi
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24467 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24468 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
24469   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24470 fi
24471
24472     fi
24473 fi
24474 rm -f core conftest.err conftest.$ac_objext \
24475     conftest$ac_exeext conftest.$ac_ext
24476     LIBS="$ac_xsave_LIBS"
24477
24478     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24479     # to get the SysV transport functions.
24480     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24481     # needs -lnsl.
24482     # The nsl library prevents programs from opening the X display
24483     # on Irix 5.2, according to T.E. Dickey.
24484     # The functions gethostbyname, getservbyname, and inet_addr are
24485     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24486     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24487 if test "x$ac_cv_func_gethostbyname" = xyes; then :
24488
24489 fi
24490
24491     if test $ac_cv_func_gethostbyname = no; then
24492       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24493 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24494 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24495   $as_echo_n "(cached) " >&6
24496 else
24497   ac_check_lib_save_LIBS=$LIBS
24498 LIBS="-lnsl  $LIBS"
24499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24500 /* end confdefs.h.  */
24501
24502 /* Override any GCC internal prototype to avoid an error.
24503    Use char because int might match the return type of a GCC
24504    builtin and then its argument prototype would still apply.  */
24505 #ifdef __cplusplus
24506 extern "C"
24507 #endif
24508 char gethostbyname ();
24509 int
24510 main ()
24511 {
24512 return gethostbyname ();
24513   ;
24514   return 0;
24515 }
24516 _ACEOF
24517 if ac_fn_c_try_link "$LINENO"; then :
24518   ac_cv_lib_nsl_gethostbyname=yes
24519 else
24520   ac_cv_lib_nsl_gethostbyname=no
24521 fi
24522 rm -f core conftest.err conftest.$ac_objext \
24523     conftest$ac_exeext conftest.$ac_ext
24524 LIBS=$ac_check_lib_save_LIBS
24525 fi
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24527 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24528 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24529   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24530 fi
24531
24532       if test $ac_cv_lib_nsl_gethostbyname = no; then
24533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24534 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24535 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
24536   $as_echo_n "(cached) " >&6
24537 else
24538   ac_check_lib_save_LIBS=$LIBS
24539 LIBS="-lbsd  $LIBS"
24540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24541 /* end confdefs.h.  */
24542
24543 /* Override any GCC internal prototype to avoid an error.
24544    Use char because int might match the return type of a GCC
24545    builtin and then its argument prototype would still apply.  */
24546 #ifdef __cplusplus
24547 extern "C"
24548 #endif
24549 char gethostbyname ();
24550 int
24551 main ()
24552 {
24553 return gethostbyname ();
24554   ;
24555   return 0;
24556 }
24557 _ACEOF
24558 if ac_fn_c_try_link "$LINENO"; then :
24559   ac_cv_lib_bsd_gethostbyname=yes
24560 else
24561   ac_cv_lib_bsd_gethostbyname=no
24562 fi
24563 rm -f core conftest.err conftest.$ac_objext \
24564     conftest$ac_exeext conftest.$ac_ext
24565 LIBS=$ac_check_lib_save_LIBS
24566 fi
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24568 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24569 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
24570   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24571 fi
24572
24573       fi
24574     fi
24575
24576     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24577     # socket/setsockopt and other routines are undefined under SCO ODT
24578     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24579     # on later versions), says Simon Leinen: it contains gethostby*
24580     # variants that don't use the name server (or something).  -lsocket
24581     # must be given before -lnsl if both are needed.  We assume that
24582     # if connect needs -lnsl, so does gethostbyname.
24583     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24584 if test "x$ac_cv_func_connect" = xyes; then :
24585
24586 fi
24587
24588     if test $ac_cv_func_connect = no; then
24589       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24590 $as_echo_n "checking for connect in -lsocket... " >&6; }
24591 if ${ac_cv_lib_socket_connect+:} false; then :
24592   $as_echo_n "(cached) " >&6
24593 else
24594   ac_check_lib_save_LIBS=$LIBS
24595 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24597 /* end confdefs.h.  */
24598
24599 /* Override any GCC internal prototype to avoid an error.
24600    Use char because int might match the return type of a GCC
24601    builtin and then its argument prototype would still apply.  */
24602 #ifdef __cplusplus
24603 extern "C"
24604 #endif
24605 char connect ();
24606 int
24607 main ()
24608 {
24609 return connect ();
24610   ;
24611   return 0;
24612 }
24613 _ACEOF
24614 if ac_fn_c_try_link "$LINENO"; then :
24615   ac_cv_lib_socket_connect=yes
24616 else
24617   ac_cv_lib_socket_connect=no
24618 fi
24619 rm -f core conftest.err conftest.$ac_objext \
24620     conftest$ac_exeext conftest.$ac_ext
24621 LIBS=$ac_check_lib_save_LIBS
24622 fi
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24624 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24625 if test "x$ac_cv_lib_socket_connect" = xyes; then :
24626   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24627 fi
24628
24629     fi
24630
24631     # Guillermo Gomez says -lposix is necessary on A/UX.
24632     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24633 if test "x$ac_cv_func_remove" = xyes; then :
24634
24635 fi
24636
24637     if test $ac_cv_func_remove = no; then
24638       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24639 $as_echo_n "checking for remove in -lposix... " >&6; }
24640 if ${ac_cv_lib_posix_remove+:} false; then :
24641   $as_echo_n "(cached) " >&6
24642 else
24643   ac_check_lib_save_LIBS=$LIBS
24644 LIBS="-lposix  $LIBS"
24645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24646 /* end confdefs.h.  */
24647
24648 /* Override any GCC internal prototype to avoid an error.
24649    Use char because int might match the return type of a GCC
24650    builtin and then its argument prototype would still apply.  */
24651 #ifdef __cplusplus
24652 extern "C"
24653 #endif
24654 char remove ();
24655 int
24656 main ()
24657 {
24658 return remove ();
24659   ;
24660   return 0;
24661 }
24662 _ACEOF
24663 if ac_fn_c_try_link "$LINENO"; then :
24664   ac_cv_lib_posix_remove=yes
24665 else
24666   ac_cv_lib_posix_remove=no
24667 fi
24668 rm -f core conftest.err conftest.$ac_objext \
24669     conftest$ac_exeext conftest.$ac_ext
24670 LIBS=$ac_check_lib_save_LIBS
24671 fi
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24673 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24674 if test "x$ac_cv_lib_posix_remove" = xyes; then :
24675   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24676 fi
24677
24678     fi
24679
24680     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24681     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24682 if test "x$ac_cv_func_shmat" = xyes; then :
24683
24684 fi
24685
24686     if test $ac_cv_func_shmat = no; then
24687       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24688 $as_echo_n "checking for shmat in -lipc... " >&6; }
24689 if ${ac_cv_lib_ipc_shmat+:} false; then :
24690   $as_echo_n "(cached) " >&6
24691 else
24692   ac_check_lib_save_LIBS=$LIBS
24693 LIBS="-lipc  $LIBS"
24694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24695 /* end confdefs.h.  */
24696
24697 /* Override any GCC internal prototype to avoid an error.
24698    Use char because int might match the return type of a GCC
24699    builtin and then its argument prototype would still apply.  */
24700 #ifdef __cplusplus
24701 extern "C"
24702 #endif
24703 char shmat ();
24704 int
24705 main ()
24706 {
24707 return shmat ();
24708   ;
24709   return 0;
24710 }
24711 _ACEOF
24712 if ac_fn_c_try_link "$LINENO"; then :
24713   ac_cv_lib_ipc_shmat=yes
24714 else
24715   ac_cv_lib_ipc_shmat=no
24716 fi
24717 rm -f core conftest.err conftest.$ac_objext \
24718     conftest$ac_exeext conftest.$ac_ext
24719 LIBS=$ac_check_lib_save_LIBS
24720 fi
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24722 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24723 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
24724   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24725 fi
24726
24727     fi
24728   fi
24729
24730   # Check for libraries that X11R6 Xt/Xaw programs need.
24731   ac_save_LDFLAGS=$LDFLAGS
24732   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24733   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24734   # check for ICE first), but we must link in the order -lSM -lICE or
24735   # we get undefined symbols.  So assume we have SM if we have ICE.
24736   # These have to be linked with before -lX11, unlike the other
24737   # libraries we check for below, so use a different variable.
24738   # John Interrante, Karl Berry
24739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24740 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24741 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
24742   $as_echo_n "(cached) " >&6
24743 else
24744   ac_check_lib_save_LIBS=$LIBS
24745 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h.  */
24748
24749 /* Override any GCC internal prototype to avoid an error.
24750    Use char because int might match the return type of a GCC
24751    builtin and then its argument prototype would still apply.  */
24752 #ifdef __cplusplus
24753 extern "C"
24754 #endif
24755 char IceConnectionNumber ();
24756 int
24757 main ()
24758 {
24759 return IceConnectionNumber ();
24760   ;
24761   return 0;
24762 }
24763 _ACEOF
24764 if ac_fn_c_try_link "$LINENO"; then :
24765   ac_cv_lib_ICE_IceConnectionNumber=yes
24766 else
24767   ac_cv_lib_ICE_IceConnectionNumber=no
24768 fi
24769 rm -f core conftest.err conftest.$ac_objext \
24770     conftest$ac_exeext conftest.$ac_ext
24771 LIBS=$ac_check_lib_save_LIBS
24772 fi
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24774 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24775 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
24776   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24777 fi
24778
24779   LDFLAGS=$ac_save_LDFLAGS
24780
24781 fi
24782
24783
24784 for ac_header in \
24785    assert.h \
24786    fcntl.h \
24787    grp.h \
24788    pwd.h \
24789    libc.h \
24790    limits.h \
24791    stdarg.h \
24792    stdlib.h \
24793    stdint.h \
24794    string.h \
24795    strings.h \
24796    termios.h \
24797    termcap.h \
24798    term.h \
24799    unistd.h \
24800    sys/bitypes.h \
24801    sys/byteorder.h \
24802    sys/ioctl.h \
24803    sys/select.h \
24804    sys/socket.h \
24805    sys/sockio.h \
24806    sys/stat.h \
24807    sys/time.h \
24808    sys/types.h \
24809    arpa/nameser.h \
24810    mtio.h \
24811    sys/mtio.h \
24812    sys/tape.h \
24813    regex.h \
24814
24815 do :
24816   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24817 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24818 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24819   cat >>confdefs.h <<_ACEOF
24820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24821 _ACEOF
24822
24823 fi
24824
24825 done
24826
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24828 $as_echo_n "checking for ANSI C header files... " >&6; }
24829 if ${ac_cv_header_stdc+:} false; then :
24830   $as_echo_n "(cached) " >&6
24831 else
24832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24833 /* end confdefs.h.  */
24834 #include <stdlib.h>
24835 #include <stdarg.h>
24836 #include <string.h>
24837 #include <float.h>
24838
24839 int
24840 main ()
24841 {
24842
24843   ;
24844   return 0;
24845 }
24846 _ACEOF
24847 if ac_fn_c_try_compile "$LINENO"; then :
24848   ac_cv_header_stdc=yes
24849 else
24850   ac_cv_header_stdc=no
24851 fi
24852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24853
24854 if test $ac_cv_header_stdc = yes; then
24855   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24857 /* end confdefs.h.  */
24858 #include <string.h>
24859
24860 _ACEOF
24861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24862   $EGREP "memchr" >/dev/null 2>&1; then :
24863
24864 else
24865   ac_cv_header_stdc=no
24866 fi
24867 rm -f conftest*
24868
24869 fi
24870
24871 if test $ac_cv_header_stdc = yes; then
24872   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24874 /* end confdefs.h.  */
24875 #include <stdlib.h>
24876
24877 _ACEOF
24878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24879   $EGREP "free" >/dev/null 2>&1; then :
24880
24881 else
24882   ac_cv_header_stdc=no
24883 fi
24884 rm -f conftest*
24885
24886 fi
24887
24888 if test $ac_cv_header_stdc = yes; then
24889   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24890   if test "$cross_compiling" = yes; then :
24891   :
24892 else
24893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24894 /* end confdefs.h.  */
24895 #include <ctype.h>
24896 #include <stdlib.h>
24897 #if ((' ' & 0x0FF) == 0x020)
24898 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24899 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24900 #else
24901 # define ISLOWER(c) \
24902                    (('a' <= (c) && (c) <= 'i') \
24903                      || ('j' <= (c) && (c) <= 'r') \
24904                      || ('s' <= (c) && (c) <= 'z'))
24905 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24906 #endif
24907
24908 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24909 int
24910 main ()
24911 {
24912   int i;
24913   for (i = 0; i < 256; i++)
24914     if (XOR (islower (i), ISLOWER (i))
24915         || toupper (i) != TOUPPER (i))
24916       return 2;
24917   return 0;
24918 }
24919 _ACEOF
24920 if ac_fn_c_try_run "$LINENO"; then :
24921
24922 else
24923   ac_cv_header_stdc=no
24924 fi
24925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24926   conftest.$ac_objext conftest.beam conftest.$ac_ext
24927 fi
24928
24929 fi
24930 fi
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24932 $as_echo "$ac_cv_header_stdc" >&6; }
24933 if test $ac_cv_header_stdc = yes; then
24934
24935 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24936
24937 fi
24938
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
24940 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24941 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
24942   $as_echo_n "(cached) " >&6
24943 else
24944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24945 /* end confdefs.h.  */
24946 #include <sys/types.h>
24947 int
24948 main ()
24949 {
24950 return makedev(0, 0);
24951   ;
24952   return 0;
24953 }
24954 _ACEOF
24955 if ac_fn_c_try_link "$LINENO"; then :
24956   ac_cv_header_sys_types_h_makedev=yes
24957 else
24958   ac_cv_header_sys_types_h_makedev=no
24959 fi
24960 rm -f core conftest.err conftest.$ac_objext \
24961     conftest$ac_exeext conftest.$ac_ext
24962
24963 fi
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
24965 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24966
24967 if test $ac_cv_header_sys_types_h_makedev = no; then
24968 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
24969 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
24970
24971 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
24972
24973 fi
24974
24975
24976
24977   if test $ac_cv_header_sys_mkdev_h = no; then
24978     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
24979 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
24980
24981 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
24982
24983 fi
24984
24985
24986   fi
24987 fi
24988
24989 ac_header_dirent=no
24990 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24991   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24993 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
24994 if eval \${$as_ac_Header+:} false; then :
24995   $as_echo_n "(cached) " >&6
24996 else
24997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24998 /* end confdefs.h.  */
24999 #include <sys/types.h>
25000 #include <$ac_hdr>
25001
25002 int
25003 main ()
25004 {
25005 if ((DIR *) 0)
25006 return 0;
25007   ;
25008   return 0;
25009 }
25010 _ACEOF
25011 if ac_fn_c_try_compile "$LINENO"; then :
25012   eval "$as_ac_Header=yes"
25013 else
25014   eval "$as_ac_Header=no"
25015 fi
25016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25017 fi
25018 eval ac_res=\$$as_ac_Header
25019                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25020 $as_echo "$ac_res" >&6; }
25021 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25022   cat >>confdefs.h <<_ACEOF
25023 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25024 _ACEOF
25025
25026 ac_header_dirent=$ac_hdr; break
25027 fi
25028
25029 done
25030 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25031 if test $ac_header_dirent = dirent.h; then
25032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25033 $as_echo_n "checking for library containing opendir... " >&6; }
25034 if ${ac_cv_search_opendir+:} false; then :
25035   $as_echo_n "(cached) " >&6
25036 else
25037   ac_func_search_save_LIBS=$LIBS
25038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25039 /* end confdefs.h.  */
25040
25041 /* Override any GCC internal prototype to avoid an error.
25042    Use char because int might match the return type of a GCC
25043    builtin and then its argument prototype would still apply.  */
25044 #ifdef __cplusplus
25045 extern "C"
25046 #endif
25047 char opendir ();
25048 int
25049 main ()
25050 {
25051 return opendir ();
25052   ;
25053   return 0;
25054 }
25055 _ACEOF
25056 for ac_lib in '' dir; do
25057   if test -z "$ac_lib"; then
25058     ac_res="none required"
25059   else
25060     ac_res=-l$ac_lib
25061     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25062   fi
25063   if ac_fn_c_try_link "$LINENO"; then :
25064   ac_cv_search_opendir=$ac_res
25065 fi
25066 rm -f core conftest.err conftest.$ac_objext \
25067     conftest$ac_exeext
25068   if ${ac_cv_search_opendir+:} false; then :
25069   break
25070 fi
25071 done
25072 if ${ac_cv_search_opendir+:} false; then :
25073
25074 else
25075   ac_cv_search_opendir=no
25076 fi
25077 rm conftest.$ac_ext
25078 LIBS=$ac_func_search_save_LIBS
25079 fi
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25081 $as_echo "$ac_cv_search_opendir" >&6; }
25082 ac_res=$ac_cv_search_opendir
25083 if test "$ac_res" != no; then :
25084   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25085
25086 fi
25087
25088 else
25089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25090 $as_echo_n "checking for library containing opendir... " >&6; }
25091 if ${ac_cv_search_opendir+:} false; then :
25092   $as_echo_n "(cached) " >&6
25093 else
25094   ac_func_search_save_LIBS=$LIBS
25095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25096 /* end confdefs.h.  */
25097
25098 /* Override any GCC internal prototype to avoid an error.
25099    Use char because int might match the return type of a GCC
25100    builtin and then its argument prototype would still apply.  */
25101 #ifdef __cplusplus
25102 extern "C"
25103 #endif
25104 char opendir ();
25105 int
25106 main ()
25107 {
25108 return opendir ();
25109   ;
25110   return 0;
25111 }
25112 _ACEOF
25113 for ac_lib in '' x; do
25114   if test -z "$ac_lib"; then
25115     ac_res="none required"
25116   else
25117     ac_res=-l$ac_lib
25118     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25119   fi
25120   if ac_fn_c_try_link "$LINENO"; then :
25121   ac_cv_search_opendir=$ac_res
25122 fi
25123 rm -f core conftest.err conftest.$ac_objext \
25124     conftest$ac_exeext
25125   if ${ac_cv_search_opendir+:} false; then :
25126   break
25127 fi
25128 done
25129 if ${ac_cv_search_opendir+:} false; then :
25130
25131 else
25132   ac_cv_search_opendir=no
25133 fi
25134 rm conftest.$ac_ext
25135 LIBS=$ac_func_search_save_LIBS
25136 fi
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25138 $as_echo "$ac_cv_search_opendir" >&6; }
25139 ac_res=$ac_cv_search_opendir
25140 if test "$ac_res" != no; then :
25141   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25142
25143 fi
25144
25145 fi
25146
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25148 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25149 if ${ac_cv_header_stat_broken+:} false; then :
25150   $as_echo_n "(cached) " >&6
25151 else
25152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25153 /* end confdefs.h.  */
25154 #include <sys/types.h>
25155 #include <sys/stat.h>
25156
25157 #if defined S_ISBLK && defined S_IFDIR
25158 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25159 #endif
25160
25161 #if defined S_ISBLK && defined S_IFCHR
25162 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25163 #endif
25164
25165 #if defined S_ISLNK && defined S_IFREG
25166 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25167 #endif
25168
25169 #if defined S_ISSOCK && defined S_IFREG
25170 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25171 #endif
25172
25173 _ACEOF
25174 if ac_fn_c_try_compile "$LINENO"; then :
25175   ac_cv_header_stat_broken=no
25176 else
25177   ac_cv_header_stat_broken=yes
25178 fi
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 fi
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25182 $as_echo "$ac_cv_header_stat_broken" >&6; }
25183 if test $ac_cv_header_stat_broken = yes; then
25184
25185 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25186
25187 fi
25188
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25190 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25191 if ${ac_cv_header_sys_wait_h+:} false; then :
25192   $as_echo_n "(cached) " >&6
25193 else
25194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h.  */
25196 #include <sys/types.h>
25197 #include <sys/wait.h>
25198 #ifndef WEXITSTATUS
25199 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25200 #endif
25201 #ifndef WIFEXITED
25202 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25203 #endif
25204
25205 int
25206 main ()
25207 {
25208   int s;
25209   wait (&s);
25210   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25211   ;
25212   return 0;
25213 }
25214 _ACEOF
25215 if ac_fn_c_try_compile "$LINENO"; then :
25216   ac_cv_header_sys_wait_h=yes
25217 else
25218   ac_cv_header_sys_wait_h=no
25219 fi
25220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25221 fi
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25223 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25224 if test $ac_cv_header_sys_wait_h = yes; then
25225
25226 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25227
25228 fi
25229
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25231 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25232 if ${ac_cv_header_time+:} false; then :
25233   $as_echo_n "(cached) " >&6
25234 else
25235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25236 /* end confdefs.h.  */
25237 #include <sys/types.h>
25238 #include <sys/time.h>
25239 #include <time.h>
25240
25241 int
25242 main ()
25243 {
25244 if ((struct tm *) 0)
25245 return 0;
25246   ;
25247   return 0;
25248 }
25249 _ACEOF
25250 if ac_fn_c_try_compile "$LINENO"; then :
25251   ac_cv_header_time=yes
25252 else
25253   ac_cv_header_time=no
25254 fi
25255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25256 fi
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25258 $as_echo "$ac_cv_header_time" >&6; }
25259 if test $ac_cv_header_time = yes; then
25260
25261 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25262
25263 fi
25264
25265 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25266 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25267
25268 cat >>confdefs.h <<_ACEOF
25269 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25270 _ACEOF
25271
25272
25273 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25274
25275 fi
25276
25277
25278 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25279 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25280
25281 cat >>confdefs.h <<_ACEOF
25282 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25283 _ACEOF
25284
25285
25286 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25287
25288 else
25289   case " $LIBOBJS " in
25290   *" fileblocks.$ac_objext "* ) ;;
25291   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25292  ;;
25293 esac
25294
25295 fi
25296
25297
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25299 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25300 if ${ac_cv_struct_tm+:} false; then :
25301   $as_echo_n "(cached) " >&6
25302 else
25303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25304 /* end confdefs.h.  */
25305 #include <sys/types.h>
25306 #include <time.h>
25307
25308 int
25309 main ()
25310 {
25311 struct tm tm;
25312                                      int *p = &tm.tm_sec;
25313                                      return !p;
25314   ;
25315   return 0;
25316 }
25317 _ACEOF
25318 if ac_fn_c_try_compile "$LINENO"; then :
25319   ac_cv_struct_tm=time.h
25320 else
25321   ac_cv_struct_tm=sys/time.h
25322 fi
25323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25324 fi
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25326 $as_echo "$ac_cv_struct_tm" >&6; }
25327 if test $ac_cv_struct_tm = sys/time.h; then
25328
25329 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25330
25331 fi
25332
25333 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25334 #include <$ac_cv_struct_tm>
25335
25336 "
25337 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25338
25339 cat >>confdefs.h <<_ACEOF
25340 #define HAVE_STRUCT_TM_TM_ZONE 1
25341 _ACEOF
25342
25343
25344 fi
25345
25346 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25347
25348 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25349
25350 else
25351   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25352 "
25353 if test "x$ac_cv_have_decl_tzname" = xyes; then :
25354   ac_have_decl=1
25355 else
25356   ac_have_decl=0
25357 fi
25358
25359 cat >>confdefs.h <<_ACEOF
25360 #define HAVE_DECL_TZNAME $ac_have_decl
25361 _ACEOF
25362
25363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25364 $as_echo_n "checking for tzname... " >&6; }
25365 if ${ac_cv_var_tzname+:} false; then :
25366   $as_echo_n "(cached) " >&6
25367 else
25368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h.  */
25370 #include <time.h>
25371 #if !HAVE_DECL_TZNAME
25372 extern char *tzname[];
25373 #endif
25374
25375 int
25376 main ()
25377 {
25378 return tzname[0][0];
25379   ;
25380   return 0;
25381 }
25382 _ACEOF
25383 if ac_fn_c_try_link "$LINENO"; then :
25384   ac_cv_var_tzname=yes
25385 else
25386   ac_cv_var_tzname=no
25387 fi
25388 rm -f core conftest.err conftest.$ac_objext \
25389     conftest$ac_exeext conftest.$ac_ext
25390 fi
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25392 $as_echo "$ac_cv_var_tzname" >&6; }
25393   if test $ac_cv_var_tzname = yes; then
25394
25395 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25396
25397   fi
25398 fi
25399
25400
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25402 $as_echo_n "checking for utime.h... " >&6; }
25403 if ${ba_cv_header_utime_h+:} false; then :
25404   $as_echo_n "(cached) " >&6
25405 else
25406
25407        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25408 /* end confdefs.h.  */
25409
25410               #include <sys/types.h>
25411               #include <utime.h>
25412
25413 int
25414 main ()
25415 {
25416
25417               struct utimbuf foo
25418
25419   ;
25420   return 0;
25421 }
25422 _ACEOF
25423 if ac_fn_c_try_compile "$LINENO"; then :
25424
25425               ba_cv_header_utime_h=yes
25426
25427 else
25428
25429               ba_cv_header_utime_h=no
25430
25431
25432 fi
25433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25434
25435
25436 fi
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25438 $as_echo "$ba_cv_header_utime_h" >&6; }
25439 test $ba_cv_header_utime_h = yes &&
25440 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25441
25442
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25444 $as_echo_n "checking for socklen_t... " >&6; }
25445 if ${ba_cv_header_socklen_t+:} false; then :
25446   $as_echo_n "(cached) " >&6
25447 else
25448
25449        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25450 /* end confdefs.h.  */
25451
25452               #include <sys/types.h>
25453               #include <sys/socket.h>
25454
25455 int
25456 main ()
25457 {
25458
25459               socklen_t x
25460
25461   ;
25462   return 0;
25463 }
25464 _ACEOF
25465 if ac_fn_c_try_compile "$LINENO"; then :
25466
25467              ba_cv_header_socklen_t=yes
25468
25469 else
25470
25471              ba_cv_header_socklen_t=no
25472
25473
25474 fi
25475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25476
25477
25478 fi
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25480 $as_echo "$ba_cv_header_socklen_t" >&6; }
25481 test $ba_cv_header_socklen_t = yes &&
25482 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25483
25484
25485 ac_ext=cpp
25486 ac_cpp='$CXXCPP $CPPFLAGS'
25487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25490
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25492 $as_echo_n "checking for ioctl_req_t... " >&6; }
25493 if ${ba_cv_header_ioctl_req_t+:} false; then :
25494   $as_echo_n "(cached) " >&6
25495 else
25496
25497        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h.  */
25499
25500               #include <unistd.h>
25501               #include <sys/types.h>
25502               #include <sys/ioctl.h>
25503
25504 int
25505 main ()
25506 {
25507
25508               int (*d_ioctl)(int fd, unsigned long int request, ...);
25509               d_ioctl = ::ioctl;
25510
25511   ;
25512   return 0;
25513 }
25514 _ACEOF
25515 if ac_fn_cxx_try_compile "$LINENO"; then :
25516
25517              ba_cv_header_ioctl_req_t=yes
25518
25519 else
25520
25521              ba_cv_header_ioctl_req_t=no
25522
25523
25524 fi
25525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25526
25527
25528 fi
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25530 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25531 test $ba_cv_header_ioctl_req_t = yes &&
25532 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25533
25534
25535 ac_ext=c
25536 ac_cpp='$CPP $CPPFLAGS'
25537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25540
25541
25542 ac_ext=cpp
25543 ac_cpp='$CXXCPP $CPPFLAGS'
25544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25547
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25549 $as_echo_n "checking for typeof... " >&6; }
25550 if ${ba_cv_have_typeof+:} false; then :
25551   $as_echo_n "(cached) " >&6
25552 else
25553
25554        if test "$cross_compiling" = yes; then :
25555
25556               ba_cv_have_typeof=no
25557
25558
25559 else
25560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25561 /* end confdefs.h.  */
25562
25563               main(){char *a = 0; a = (typeof a)a;}
25564
25565 _ACEOF
25566 if ac_fn_cxx_try_run "$LINENO"; then :
25567
25568               ba_cv_have_typeof=yes
25569
25570 else
25571
25572               ba_cv_have_typeof=no
25573
25574 fi
25575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25576   conftest.$ac_objext conftest.beam conftest.$ac_ext
25577 fi
25578
25579
25580
25581 fi
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25583 $as_echo "$ba_cv_have_typeof" >&6; }
25584 test $ba_cv_have_typeof = yes &&
25585 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25586
25587 ac_ext=c
25588 ac_cpp='$CPP $CPPFLAGS'
25589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25592
25593
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25595 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25596 if ${ac_cv_c_const+:} false; then :
25597   $as_echo_n "(cached) " >&6
25598 else
25599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25600 /* end confdefs.h.  */
25601
25602 int
25603 main ()
25604 {
25605 /* FIXME: Include the comments suggested by Paul. */
25606 #ifndef __cplusplus
25607   /* Ultrix mips cc rejects this.  */
25608   typedef int charset[2];
25609   const charset cs;
25610   /* SunOS 4.1.1 cc rejects this.  */
25611   char const *const *pcpcc;
25612   char **ppc;
25613   /* NEC SVR4.0.2 mips cc rejects this.  */
25614   struct point {int x, y;};
25615   static struct point const zero = {0,0};
25616   /* AIX XL C 1.02.0.0 rejects this.
25617      It does not let you subtract one const X* pointer from another in
25618      an arm of an if-expression whose if-part is not a constant
25619      expression */
25620   const char *g = "string";
25621   pcpcc = &g + (g ? g-g : 0);
25622   /* HPUX 7.0 cc rejects these. */
25623   ++pcpcc;
25624   ppc = (char**) pcpcc;
25625   pcpcc = (char const *const *) ppc;
25626   { /* SCO 3.2v4 cc rejects this.  */
25627     char *t;
25628     char const *s = 0 ? (char *) 0 : (char const *) 0;
25629
25630     *t++ = 0;
25631     if (s) return 0;
25632   }
25633   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25634     int x[] = {25, 17};
25635     const int *foo = &x[0];
25636     ++foo;
25637   }
25638   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25639     typedef const int *iptr;
25640     iptr p = 0;
25641     ++p;
25642   }
25643   { /* AIX XL C 1.02.0.0 rejects this saying
25644        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25645     struct s { int j; const int *ap[3]; };
25646     struct s *b; b->j = 5;
25647   }
25648   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25649     const int foo = 10;
25650     if (!foo) return 0;
25651   }
25652   return !cs[0] && !zero.x;
25653 #endif
25654
25655   ;
25656   return 0;
25657 }
25658 _ACEOF
25659 if ac_fn_c_try_compile "$LINENO"; then :
25660   ac_cv_c_const=yes
25661 else
25662   ac_cv_c_const=no
25663 fi
25664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25665 fi
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25667 $as_echo "$ac_cv_c_const" >&6; }
25668 if test $ac_cv_c_const = no; then
25669
25670 $as_echo "#define const /**/" >>confdefs.h
25671
25672 fi
25673
25674
25675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25676 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25677 if ${ac_cv_c_bigendian+:} false; then :
25678   $as_echo_n "(cached) " >&6
25679 else
25680   ac_cv_c_bigendian=unknown
25681     # See if we're dealing with a universal compiler.
25682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25683 /* end confdefs.h.  */
25684 #ifndef __APPLE_CC__
25685                not a universal capable compiler
25686              #endif
25687              typedef int dummy;
25688
25689 _ACEOF
25690 if ac_fn_c_try_compile "$LINENO"; then :
25691
25692         # Check for potential -arch flags.  It is not universal unless
25693         # there are at least two -arch flags with different values.
25694         ac_arch=
25695         ac_prev=
25696         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25697          if test -n "$ac_prev"; then
25698            case $ac_word in
25699              i?86 | x86_64 | ppc | ppc64)
25700                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25701                  ac_arch=$ac_word
25702                else
25703                  ac_cv_c_bigendian=universal
25704                  break
25705                fi
25706                ;;
25707            esac
25708            ac_prev=
25709          elif test "x$ac_word" = "x-arch"; then
25710            ac_prev=arch
25711          fi
25712        done
25713 fi
25714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715     if test $ac_cv_c_bigendian = unknown; then
25716       # See if sys/param.h defines the BYTE_ORDER macro.
25717       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718 /* end confdefs.h.  */
25719 #include <sys/types.h>
25720              #include <sys/param.h>
25721
25722 int
25723 main ()
25724 {
25725 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25726                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25727                      && LITTLE_ENDIAN)
25728               bogus endian macros
25729              #endif
25730
25731   ;
25732   return 0;
25733 }
25734 _ACEOF
25735 if ac_fn_c_try_compile "$LINENO"; then :
25736   # It does; now see whether it defined to BIG_ENDIAN or not.
25737          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25738 /* end confdefs.h.  */
25739 #include <sys/types.h>
25740                 #include <sys/param.h>
25741
25742 int
25743 main ()
25744 {
25745 #if BYTE_ORDER != BIG_ENDIAN
25746                  not big endian
25747                 #endif
25748
25749   ;
25750   return 0;
25751 }
25752 _ACEOF
25753 if ac_fn_c_try_compile "$LINENO"; then :
25754   ac_cv_c_bigendian=yes
25755 else
25756   ac_cv_c_bigendian=no
25757 fi
25758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25759 fi
25760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25761     fi
25762     if test $ac_cv_c_bigendian = unknown; then
25763       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25764       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25765 /* end confdefs.h.  */
25766 #include <limits.h>
25767
25768 int
25769 main ()
25770 {
25771 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25772               bogus endian macros
25773              #endif
25774
25775   ;
25776   return 0;
25777 }
25778 _ACEOF
25779 if ac_fn_c_try_compile "$LINENO"; then :
25780   # It does; now see whether it defined to _BIG_ENDIAN or not.
25781          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25782 /* end confdefs.h.  */
25783 #include <limits.h>
25784
25785 int
25786 main ()
25787 {
25788 #ifndef _BIG_ENDIAN
25789                  not big endian
25790                 #endif
25791
25792   ;
25793   return 0;
25794 }
25795 _ACEOF
25796 if ac_fn_c_try_compile "$LINENO"; then :
25797   ac_cv_c_bigendian=yes
25798 else
25799   ac_cv_c_bigendian=no
25800 fi
25801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25802 fi
25803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25804     fi
25805     if test $ac_cv_c_bigendian = unknown; then
25806       # Compile a test program.
25807       if test "$cross_compiling" = yes; then :
25808   # Try to guess by grepping values from an object file.
25809          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25810 /* end confdefs.h.  */
25811 short int ascii_mm[] =
25812                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25813                 short int ascii_ii[] =
25814                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25815                 int use_ascii (int i) {
25816                   return ascii_mm[i] + ascii_ii[i];
25817                 }
25818                 short int ebcdic_ii[] =
25819                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25820                 short int ebcdic_mm[] =
25821                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25822                 int use_ebcdic (int i) {
25823                   return ebcdic_mm[i] + ebcdic_ii[i];
25824                 }
25825                 extern int foo;
25826
25827 int
25828 main ()
25829 {
25830 return use_ascii (foo) == use_ebcdic (foo);
25831   ;
25832   return 0;
25833 }
25834 _ACEOF
25835 if ac_fn_c_try_compile "$LINENO"; then :
25836   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25837               ac_cv_c_bigendian=yes
25838             fi
25839             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25840               if test "$ac_cv_c_bigendian" = unknown; then
25841                 ac_cv_c_bigendian=no
25842               else
25843                 # finding both strings is unlikely to happen, but who knows?
25844                 ac_cv_c_bigendian=unknown
25845               fi
25846             fi
25847 fi
25848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25849 else
25850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h.  */
25852 $ac_includes_default
25853 int
25854 main ()
25855 {
25856
25857              /* Are we little or big endian?  From Harbison&Steele.  */
25858              union
25859              {
25860                long int l;
25861                char c[sizeof (long int)];
25862              } u;
25863              u.l = 1;
25864              return u.c[sizeof (long int) - 1] == 1;
25865
25866   ;
25867   return 0;
25868 }
25869 _ACEOF
25870 if ac_fn_c_try_run "$LINENO"; then :
25871   ac_cv_c_bigendian=no
25872 else
25873   ac_cv_c_bigendian=yes
25874 fi
25875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25876   conftest.$ac_objext conftest.beam conftest.$ac_ext
25877 fi
25878
25879     fi
25880 fi
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25882 $as_echo "$ac_cv_c_bigendian" >&6; }
25883  case $ac_cv_c_bigendian in #(
25884    yes)
25885
25886 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
25887 ;; #(
25888    no)
25889
25890 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
25891  ;; #(
25892    universal)
25893
25894 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25895
25896      ;; #(
25897    *)
25898      as_fn_error $? "unknown endianness
25899  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25900  esac
25901
25902
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25904 $as_echo_n "checking how to get filesystem type... " >&6; }
25905 fstype=no
25906 # The order of these tests is important.
25907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25908 /* end confdefs.h.  */
25909
25910        #include <sys/statvfs.h>
25911        #include <sys/fstyp.h>
25912
25913 _ACEOF
25914 if ac_fn_c_try_cpp "$LINENO"; then :
25915   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25916  fstype=SVR4
25917
25918 fi
25919 rm -f conftest.err conftest.i conftest.$ac_ext
25920 if test $fstype = no; then
25921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25922 /* end confdefs.h.  */
25923
25924           #include <sys/statfs.h>
25925           #include <sys/fstyp.h>
25926
25927 _ACEOF
25928 if ac_fn_c_try_cpp "$LINENO"; then :
25929   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25930  fstype=SVR3
25931
25932 fi
25933 rm -f conftest.err conftest.i conftest.$ac_ext
25934 fi
25935 if test $fstype = no; then
25936    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25937 /* end confdefs.h.  */
25938
25939           #include <sys/statfs.h>
25940           #include <sys/vmount.h>
25941
25942 _ACEOF
25943 if ac_fn_c_try_cpp "$LINENO"; then :
25944   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25945  fstype=AIX
25946
25947 fi
25948 rm -f conftest.err conftest.i conftest.$ac_ext
25949 fi
25950 if test $fstype = no; then
25951    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25952 /* end confdefs.h.  */
25953
25954           #include <mntent.h>
25955
25956 _ACEOF
25957 if ac_fn_c_try_cpp "$LINENO"; then :
25958   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25959  fstype=4.3BSD
25960
25961 fi
25962 rm -f conftest.err conftest.i conftest.$ac_ext
25963 fi
25964 if test $fstype = no; then
25965    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h.  */
25967 #include <sys/mount.h>
25968
25969 _ACEOF
25970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25971   $EGREP "f_type;" >/dev/null 2>&1; then :
25972   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25973  fstype=4.4BSD/OSF1
25974 fi
25975 rm -f conftest*
25976
25977 fi
25978 if test $fstype = no; then
25979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h.  */
25981
25982           #include <sys/mount.h>
25983           #include <sys/fs_types.h>
25984
25985 _ACEOF
25986 if ac_fn_c_try_cpp "$LINENO"; then :
25987   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25988  fstype=Ultrix
25989
25990 fi
25991 rm -f conftest.err conftest.i conftest.$ac_ext
25992 fi
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25994 $as_echo "$fstype" >&6; }
25995
25996 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25997 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
25998
25999 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26000
26001 fi
26002
26003
26004
26005 ac_ext=cpp
26006 ac_cpp='$CXXCPP $CPPFLAGS'
26007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26010
26011
26012 for ac_header in cxxabi.h execinfo.h
26013 do :
26014   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26015 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26016 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26017   cat >>confdefs.h <<_ACEOF
26018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26019 _ACEOF
26020
26021 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26022
26023 fi
26024
26025 done
26026
26027 ac_ext=c
26028 ac_cpp='$CPP $CPPFLAGS'
26029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26032
26033
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26035 $as_echo_n "checking return type of signal handlers... " >&6; }
26036 if ${ac_cv_type_signal+:} false; then :
26037   $as_echo_n "(cached) " >&6
26038 else
26039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26040 /* end confdefs.h.  */
26041 #include <sys/types.h>
26042 #include <signal.h>
26043
26044 int
26045 main ()
26046 {
26047 return *(signal (0, 0)) (0) == 1;
26048   ;
26049   return 0;
26050 }
26051 _ACEOF
26052 if ac_fn_c_try_compile "$LINENO"; then :
26053   ac_cv_type_signal=int
26054 else
26055   ac_cv_type_signal=void
26056 fi
26057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26058 fi
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26060 $as_echo "$ac_cv_type_signal" >&6; }
26061
26062 cat >>confdefs.h <<_ACEOF
26063 #define RETSIGTYPE $ac_cv_type_signal
26064 _ACEOF
26065
26066
26067
26068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26069 $as_echo_n "checking for type of signal functions... " >&6; }
26070   if ${bash_cv_signal_vintage+:} false; then :
26071   $as_echo_n "(cached) " >&6
26072 else
26073
26074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26075 /* end confdefs.h.  */
26076 #include <signal.h>
26077 int
26078 main ()
26079 {
26080
26081       sigset_t ss;
26082       struct sigaction sa;
26083       sigemptyset(&ss); sigsuspend(&ss);
26084       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26085       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26086
26087   ;
26088   return 0;
26089 }
26090 _ACEOF
26091 if ac_fn_c_try_link "$LINENO"; then :
26092   bash_cv_signal_vintage="posix"
26093 else
26094
26095       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26096 /* end confdefs.h.  */
26097 #include <signal.h>
26098 int
26099 main ()
26100 {
26101
26102           int mask = sigmask(SIGINT);
26103           sigsetmask(mask); sigblock(mask); sigpause(mask);
26104
26105   ;
26106   return 0;
26107 }
26108 _ACEOF
26109 if ac_fn_c_try_link "$LINENO"; then :
26110   bash_cv_signal_vintage="4.2bsd"
26111 else
26112
26113         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26114 /* end confdefs.h.  */
26115
26116           #include <signal.h>
26117           RETSIGTYPE foo() { }
26118 int
26119 main ()
26120 {
26121
26122                   int mask = sigmask(SIGINT);
26123                   sigset(SIGINT, foo); sigrelse(SIGINT);
26124                   sighold(SIGINT); sigpause(SIGINT);
26125
26126   ;
26127   return 0;
26128 }
26129 _ACEOF
26130 if ac_fn_c_try_link "$LINENO"; then :
26131   bash_cv_signal_vintage="svr3"
26132 else
26133   bash_cv_signal_vintage="v7"
26134
26135 fi
26136 rm -f core conftest.err conftest.$ac_objext \
26137     conftest$ac_exeext conftest.$ac_ext
26138
26139 fi
26140 rm -f core conftest.err conftest.$ac_objext \
26141     conftest$ac_exeext conftest.$ac_ext
26142
26143 fi
26144 rm -f core conftest.err conftest.$ac_objext \
26145     conftest$ac_exeext conftest.$ac_ext
26146
26147 fi
26148
26149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26150 $as_echo "$bash_cv_signal_vintage" >&6; }
26151   if test "$bash_cv_signal_vintage" = "posix"; then
26152     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26153
26154   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26155     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26156
26157   elif test "$bash_cv_signal_vintage" = "svr3"; then
26158     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26159
26160   fi
26161
26162 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26163 if test "x$ac_cv_type_mode_t" = xyes; then :
26164
26165 else
26166
26167 cat >>confdefs.h <<_ACEOF
26168 #define mode_t int
26169 _ACEOF
26170
26171 fi
26172
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26174 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26175 if ${ac_cv_type_uid_t+:} false; then :
26176   $as_echo_n "(cached) " >&6
26177 else
26178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26179 /* end confdefs.h.  */
26180 #include <sys/types.h>
26181
26182 _ACEOF
26183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26184   $EGREP "uid_t" >/dev/null 2>&1; then :
26185   ac_cv_type_uid_t=yes
26186 else
26187   ac_cv_type_uid_t=no
26188 fi
26189 rm -f conftest*
26190
26191 fi
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26193 $as_echo "$ac_cv_type_uid_t" >&6; }
26194 if test $ac_cv_type_uid_t = no; then
26195
26196 $as_echo "#define uid_t int" >>confdefs.h
26197
26198
26199 $as_echo "#define gid_t int" >>confdefs.h
26200
26201 fi
26202
26203 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26204 if test "x$ac_cv_type_size_t" = xyes; then :
26205
26206 else
26207
26208 cat >>confdefs.h <<_ACEOF
26209 #define size_t unsigned int
26210 _ACEOF
26211
26212 fi
26213
26214 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26215 if test "x$ac_cv_type_pid_t" = xyes; then :
26216
26217 else
26218
26219 cat >>confdefs.h <<_ACEOF
26220 #define pid_t int
26221 _ACEOF
26222
26223 fi
26224
26225 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26226 if test "x$ac_cv_type_off_t" = xyes; then :
26227
26228 else
26229
26230 cat >>confdefs.h <<_ACEOF
26231 #define off_t long int
26232 _ACEOF
26233
26234 fi
26235
26236
26237   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26238 if test "x$ac_cv_type_intptr_t" = xyes; then :
26239
26240 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26241
26242 else
26243   for ac_type in 'int' 'long int' 'long long int'; do
26244        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26245 /* end confdefs.h.  */
26246 $ac_includes_default
26247 int
26248 main ()
26249 {
26250 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26251 test_array [0] = 0
26252
26253   ;
26254   return 0;
26255 }
26256 _ACEOF
26257 if ac_fn_c_try_compile "$LINENO"; then :
26258
26259 cat >>confdefs.h <<_ACEOF
26260 #define intptr_t $ac_type
26261 _ACEOF
26262
26263           ac_type=
26264 fi
26265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266        test -z "$ac_type" && break
26267      done
26268 fi
26269
26270
26271
26272   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26273 if test "x$ac_cv_type_uintptr_t" = xyes; then :
26274
26275 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26276
26277 else
26278   for ac_type in 'unsigned int' 'unsigned long int' \
26279         'unsigned long long int'; do
26280        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26281 /* end confdefs.h.  */
26282 $ac_includes_default
26283 int
26284 main ()
26285 {
26286 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26287 test_array [0] = 0
26288
26289   ;
26290   return 0;
26291 }
26292 _ACEOF
26293 if ac_fn_c_try_compile "$LINENO"; then :
26294
26295 cat >>confdefs.h <<_ACEOF
26296 #define uintptr_t $ac_type
26297 _ACEOF
26298
26299           ac_type=
26300 fi
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302        test -z "$ac_type" && break
26303      done
26304 fi
26305
26306
26307 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26308 if test "x$ac_cv_type_ino_t" = xyes; then :
26309
26310 else
26311
26312 cat >>confdefs.h <<_ACEOF
26313 #define ino_t unsigned long
26314 _ACEOF
26315
26316 fi
26317
26318 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26319 if test "x$ac_cv_type_dev_t" = xyes; then :
26320
26321 else
26322
26323 cat >>confdefs.h <<_ACEOF
26324 #define dev_t unsigned long
26325 _ACEOF
26326
26327 fi
26328
26329 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26330 if test "x$ac_cv_type_daddr_t" = xyes; then :
26331
26332 else
26333
26334 cat >>confdefs.h <<_ACEOF
26335 #define daddr_t long
26336 _ACEOF
26337
26338 fi
26339
26340 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26341 if test "x$ac_cv_type_major_t" = xyes; then :
26342
26343 else
26344
26345 cat >>confdefs.h <<_ACEOF
26346 #define major_t int
26347 _ACEOF
26348
26349 fi
26350
26351 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26352 if test "x$ac_cv_type_minor_t" = xyes; then :
26353
26354 else
26355
26356 cat >>confdefs.h <<_ACEOF
26357 #define minor_t int
26358 _ACEOF
26359
26360 fi
26361
26362 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26363 if test "x$ac_cv_type_ssize_t" = xyes; then :
26364
26365 else
26366
26367 cat >>confdefs.h <<_ACEOF
26368 #define ssize_t int
26369 _ACEOF
26370
26371 fi
26372
26373 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26374 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26375
26376 cat >>confdefs.h <<_ACEOF
26377 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26378 _ACEOF
26379
26380
26381 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26382
26383 else
26384   case " $LIBOBJS " in
26385   *" fileblocks.$ac_objext "* ) ;;
26386   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26387  ;;
26388 esac
26389
26390 fi
26391
26392
26393 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26394 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
26395
26396 cat >>confdefs.h <<_ACEOF
26397 #define HAVE_STRUCT_STAT_ST_RDEV 1
26398 _ACEOF
26399
26400
26401 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26402
26403 fi
26404
26405
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26407 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26408 if ${ac_cv_struct_tm+:} false; then :
26409   $as_echo_n "(cached) " >&6
26410 else
26411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26412 /* end confdefs.h.  */
26413 #include <sys/types.h>
26414 #include <time.h>
26415
26416 int
26417 main ()
26418 {
26419 struct tm tm;
26420                                      int *p = &tm.tm_sec;
26421                                      return !p;
26422   ;
26423   return 0;
26424 }
26425 _ACEOF
26426 if ac_fn_c_try_compile "$LINENO"; then :
26427   ac_cv_struct_tm=time.h
26428 else
26429   ac_cv_struct_tm=sys/time.h
26430 fi
26431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432 fi
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26434 $as_echo "$ac_cv_struct_tm" >&6; }
26435 if test $ac_cv_struct_tm = sys/time.h; then
26436
26437 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26438
26439 fi
26440
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26442 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26443 if ${ac_cv_c_const+:} false; then :
26444   $as_echo_n "(cached) " >&6
26445 else
26446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26447 /* end confdefs.h.  */
26448
26449 int
26450 main ()
26451 {
26452 /* FIXME: Include the comments suggested by Paul. */
26453 #ifndef __cplusplus
26454   /* Ultrix mips cc rejects this.  */
26455   typedef int charset[2];
26456   const charset cs;
26457   /* SunOS 4.1.1 cc rejects this.  */
26458   char const *const *pcpcc;
26459   char **ppc;
26460   /* NEC SVR4.0.2 mips cc rejects this.  */
26461   struct point {int x, y;};
26462   static struct point const zero = {0,0};
26463   /* AIX XL C 1.02.0.0 rejects this.
26464      It does not let you subtract one const X* pointer from another in
26465      an arm of an if-expression whose if-part is not a constant
26466      expression */
26467   const char *g = "string";
26468   pcpcc = &g + (g ? g-g : 0);
26469   /* HPUX 7.0 cc rejects these. */
26470   ++pcpcc;
26471   ppc = (char**) pcpcc;
26472   pcpcc = (char const *const *) ppc;
26473   { /* SCO 3.2v4 cc rejects this.  */
26474     char *t;
26475     char const *s = 0 ? (char *) 0 : (char const *) 0;
26476
26477     *t++ = 0;
26478     if (s) return 0;
26479   }
26480   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26481     int x[] = {25, 17};
26482     const int *foo = &x[0];
26483     ++foo;
26484   }
26485   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26486     typedef const int *iptr;
26487     iptr p = 0;
26488     ++p;
26489   }
26490   { /* AIX XL C 1.02.0.0 rejects this saying
26491        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26492     struct s { int j; const int *ap[3]; };
26493     struct s *b; b->j = 5;
26494   }
26495   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26496     const int foo = 10;
26497     if (!foo) return 0;
26498   }
26499   return !cs[0] && !zero.x;
26500 #endif
26501
26502   ;
26503   return 0;
26504 }
26505 _ACEOF
26506 if ac_fn_c_try_compile "$LINENO"; then :
26507   ac_cv_c_const=yes
26508 else
26509   ac_cv_c_const=no
26510 fi
26511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26512 fi
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26514 $as_echo "$ac_cv_c_const" >&6; }
26515 if test $ac_cv_c_const = no; then
26516
26517 $as_echo "#define const /**/" >>confdefs.h
26518
26519 fi
26520
26521
26522 # The cast to long int works around a bug in the HP C Compiler
26523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26525 # This bug is HP SR number 8606223364.
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26527 $as_echo_n "checking size of char... " >&6; }
26528 if ${ac_cv_sizeof_char+:} false; then :
26529   $as_echo_n "(cached) " >&6
26530 else
26531   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26532
26533 else
26534   if test "$ac_cv_type_char" = yes; then
26535      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26537 as_fn_error 77 "cannot compute sizeof (char)
26538 See \`config.log' for more details" "$LINENO" 5; }
26539    else
26540      ac_cv_sizeof_char=0
26541    fi
26542 fi
26543
26544 fi
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26546 $as_echo "$ac_cv_sizeof_char" >&6; }
26547
26548
26549
26550 cat >>confdefs.h <<_ACEOF
26551 #define SIZEOF_CHAR $ac_cv_sizeof_char
26552 _ACEOF
26553
26554
26555 # The cast to long int works around a bug in the HP C Compiler
26556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26558 # This bug is HP SR number 8606223364.
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26560 $as_echo_n "checking size of short int... " >&6; }
26561 if ${ac_cv_sizeof_short_int+:} false; then :
26562   $as_echo_n "(cached) " >&6
26563 else
26564   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26565
26566 else
26567   if test "$ac_cv_type_short_int" = yes; then
26568      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26570 as_fn_error 77 "cannot compute sizeof (short int)
26571 See \`config.log' for more details" "$LINENO" 5; }
26572    else
26573      ac_cv_sizeof_short_int=0
26574    fi
26575 fi
26576
26577 fi
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26579 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26580
26581
26582
26583 cat >>confdefs.h <<_ACEOF
26584 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26585 _ACEOF
26586
26587
26588 # The cast to long int works around a bug in the HP C Compiler
26589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26591 # This bug is HP SR number 8606223364.
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26593 $as_echo_n "checking size of int... " >&6; }
26594 if ${ac_cv_sizeof_int+:} false; then :
26595   $as_echo_n "(cached) " >&6
26596 else
26597   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26598
26599 else
26600   if test "$ac_cv_type_int" = yes; then
26601      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26603 as_fn_error 77 "cannot compute sizeof (int)
26604 See \`config.log' for more details" "$LINENO" 5; }
26605    else
26606      ac_cv_sizeof_int=0
26607    fi
26608 fi
26609
26610 fi
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26612 $as_echo "$ac_cv_sizeof_int" >&6; }
26613
26614
26615
26616 cat >>confdefs.h <<_ACEOF
26617 #define SIZEOF_INT $ac_cv_sizeof_int
26618 _ACEOF
26619
26620
26621 # The cast to long int works around a bug in the HP C Compiler
26622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26624 # This bug is HP SR number 8606223364.
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26626 $as_echo_n "checking size of long int... " >&6; }
26627 if ${ac_cv_sizeof_long_int+:} false; then :
26628   $as_echo_n "(cached) " >&6
26629 else
26630   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26631
26632 else
26633   if test "$ac_cv_type_long_int" = yes; then
26634      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26636 as_fn_error 77 "cannot compute sizeof (long int)
26637 See \`config.log' for more details" "$LINENO" 5; }
26638    else
26639      ac_cv_sizeof_long_int=0
26640    fi
26641 fi
26642
26643 fi
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26645 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26646
26647
26648
26649 cat >>confdefs.h <<_ACEOF
26650 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26651 _ACEOF
26652
26653
26654 # The cast to long int works around a bug in the HP C Compiler
26655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26657 # This bug is HP SR number 8606223364.
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26659 $as_echo_n "checking size of long long int... " >&6; }
26660 if ${ac_cv_sizeof_long_long_int+:} false; then :
26661   $as_echo_n "(cached) " >&6
26662 else
26663   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26664
26665 else
26666   if test "$ac_cv_type_long_long_int" = yes; then
26667      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26669 as_fn_error 77 "cannot compute sizeof (long long int)
26670 See \`config.log' for more details" "$LINENO" 5; }
26671    else
26672      ac_cv_sizeof_long_long_int=0
26673    fi
26674 fi
26675
26676 fi
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26678 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26679
26680
26681
26682 cat >>confdefs.h <<_ACEOF
26683 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26684 _ACEOF
26685
26686
26687 # The cast to long int works around a bug in the HP C Compiler
26688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26690 # This bug is HP SR number 8606223364.
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26692 $as_echo_n "checking size of int *... " >&6; }
26693 if ${ac_cv_sizeof_int_p+:} false; then :
26694   $as_echo_n "(cached) " >&6
26695 else
26696   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26697
26698 else
26699   if test "$ac_cv_type_int_p" = yes; then
26700      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26702 as_fn_error 77 "cannot compute sizeof (int *)
26703 See \`config.log' for more details" "$LINENO" 5; }
26704    else
26705      ac_cv_sizeof_int_p=0
26706    fi
26707 fi
26708
26709 fi
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26711 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26712
26713
26714
26715 cat >>confdefs.h <<_ACEOF
26716 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26717 _ACEOF
26718
26719
26720
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26722 $as_echo_n "checking for u_int type... " >&6; }
26723 if ${ac_cv_have_u_int+:} false; then :
26724   $as_echo_n "(cached) " >&6
26725 else
26726
26727        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26728 /* end confdefs.h.  */
26729
26730               #include <sys/types.h>
26731
26732 int
26733 main ()
26734 {
26735
26736               u_int a; a = 1;
26737
26738   ;
26739   return 0;
26740 }
26741 _ACEOF
26742 if ac_fn_c_try_compile "$LINENO"; then :
26743
26744               ac_cv_have_u_int="yes"
26745
26746 else
26747
26748               ac_cv_have_u_int="no"
26749
26750
26751 fi
26752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26753
26754
26755 fi
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26757 $as_echo "$ac_cv_have_u_int" >&6; }
26758 if test "x$ac_cv_have_u_int" = "xyes" ; then
26759    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26760
26761    have_u_int=1
26762 fi
26763
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26765 $as_echo_n "checking for intmax_t type... " >&6; }
26766 if ${ac_cv_have_intmax_t+:} false; then :
26767   $as_echo_n "(cached) " >&6
26768 else
26769
26770        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26771 /* end confdefs.h.  */
26772
26773               #include <sys/types.h>
26774
26775 int
26776 main ()
26777 {
26778
26779               intmax_t a; a = 1;
26780
26781   ;
26782   return 0;
26783 }
26784 _ACEOF
26785 if ac_fn_c_try_compile "$LINENO"; then :
26786
26787               ac_cv_have_intmax_t="yes"
26788
26789 else
26790
26791               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26792 /* end confdefs.h.  */
26793
26794                      #include <stdint.h>
26795
26796 int
26797 main ()
26798 {
26799
26800                      intmax_t a; a = 1;
26801
26802   ;
26803   return 0;
26804 }
26805 _ACEOF
26806 if ac_fn_c_try_compile "$LINENO"; then :
26807
26808                      ac_cv_have_intmax_t="yes"
26809
26810 else
26811
26812                      ac_cv_have_intmax_t="no"
26813
26814
26815 fi
26816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26817
26818
26819 fi
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821
26822
26823 fi
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26825 $as_echo "$ac_cv_have_intmax_t" >&6; }
26826 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26827    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26828
26829    have_intmax_t=1
26830 fi
26831
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26833 $as_echo_n "checking for u_intmax_t type... " >&6; }
26834 if ${ac_cv_have_u_intmax_t+:} false; then :
26835   $as_echo_n "(cached) " >&6
26836 else
26837
26838        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26839 /* end confdefs.h.  */
26840
26841               #include <sys/types.h>
26842
26843 int
26844 main ()
26845 {
26846
26847               u_intmax_t a; a = 1;
26848
26849   ;
26850   return 0;
26851 }
26852 _ACEOF
26853 if ac_fn_c_try_compile "$LINENO"; then :
26854
26855               ac_cv_have_u_intmax_t="yes"
26856
26857 else
26858
26859               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26860 /* end confdefs.h.  */
26861
26862                      #include <stdint.h>
26863
26864 int
26865 main ()
26866 {
26867
26868                     u_intmax_t a; a = 1;
26869
26870   ;
26871   return 0;
26872 }
26873 _ACEOF
26874 if ac_fn_c_try_compile "$LINENO"; then :
26875
26876                     ac_cv_have_u_intmax_t="yes"
26877
26878 else
26879
26880                     ac_cv_have_u_intmax_t="no"
26881
26882
26883 fi
26884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26885
26886
26887 fi
26888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26889
26890
26891 fi
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26893 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26894 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26895    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26896
26897    have_u_intmax_t=1
26898 fi
26899
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26901 $as_echo_n "checking for intXX_t types... " >&6; }
26902 if ${ac_cv_have_intxx_t+:} false; then :
26903   $as_echo_n "(cached) " >&6
26904 else
26905
26906        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26907 /* end confdefs.h.  */
26908
26909               #include <sys/types.h>
26910
26911 int
26912 main ()
26913 {
26914
26915               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26916
26917   ;
26918   return 0;
26919 }
26920 _ACEOF
26921 if ac_fn_c_try_compile "$LINENO"; then :
26922
26923               ac_cv_have_intxx_t="yes"
26924
26925 else
26926
26927               ac_cv_have_intxx_t="no"
26928
26929
26930 fi
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26932
26933
26934 fi
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26936 $as_echo "$ac_cv_have_intxx_t" >&6; }
26937 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26938    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26939
26940    have_intxx_t=1
26941 fi
26942
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26944 $as_echo_n "checking for int64_t type... " >&6; }
26945 if ${ac_cv_have_int64_t+:} false; then :
26946   $as_echo_n "(cached) " >&6
26947 else
26948
26949        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26950 /* end confdefs.h.  */
26951
26952               #include <sys/types.h>
26953
26954 int
26955 main ()
26956 {
26957
26958               int64_t a; a = 1;
26959
26960   ;
26961   return 0;
26962 }
26963 _ACEOF
26964 if ac_fn_c_try_compile "$LINENO"; then :
26965
26966               ac_cv_have_int64_t="yes"
26967
26968 else
26969
26970               ac_cv_have_int64_t="no"
26971
26972
26973 fi
26974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26975
26976
26977 fi
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26979 $as_echo "$ac_cv_have_int64_t" >&6; }
26980 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26981    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26982
26983    have_int64_t=1
26984 fi
26985
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26987 $as_echo_n "checking for u_intXX_t types... " >&6; }
26988 if ${ac_cv_have_u_intxx_t+:} false; then :
26989   $as_echo_n "(cached) " >&6
26990 else
26991
26992        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26993 /* end confdefs.h.  */
26994
26995               #include <sys/types.h>
26996
26997 int
26998 main ()
26999 {
27000
27001               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27002
27003   ;
27004   return 0;
27005 }
27006 _ACEOF
27007 if ac_fn_c_try_compile "$LINENO"; then :
27008
27009              ac_cv_have_u_intxx_t="yes"
27010
27011 else
27012
27013              ac_cv_have_u_intxx_t="no"
27014
27015
27016 fi
27017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27018
27019
27020 fi
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27022 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27023 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27024    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27025
27026    have_u_intxx_t=1
27027 fi
27028
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27030 $as_echo_n "checking for u_int64_t types... " >&6; }
27031 if ${ac_cv_have_u_int64_t+:} false; then :
27032   $as_echo_n "(cached) " >&6
27033 else
27034
27035        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036 /* end confdefs.h.  */
27037
27038               #include <sys/types.h>
27039
27040 int
27041 main ()
27042 {
27043
27044               u_int64_t a; a = 1;
27045
27046   ;
27047   return 0;
27048 }
27049 _ACEOF
27050 if ac_fn_c_try_compile "$LINENO"; then :
27051
27052              ac_cv_have_u_int64_t="yes"
27053
27054 else
27055
27056              ac_cv_have_u_int64_t="no"
27057
27058
27059 fi
27060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27061
27062
27063 fi
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27065 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27066 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27067    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27068
27069    have_u_int64_t=1
27070 fi
27071
27072 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27073     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27074 then
27075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27076 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h.  */
27079
27080           #include <sys/bitypes.h>
27081
27082 int
27083 main ()
27084 {
27085
27086           int8_t a; int16_t b; int32_t c;
27087           u_int8_t e; u_int16_t f; u_int32_t g;
27088           a = b = c = e = f = g = 1;
27089
27090   ;
27091   return 0;
27092 }
27093 _ACEOF
27094 if ac_fn_c_try_compile "$LINENO"; then :
27095
27096           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27097
27098           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27099
27100           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27101
27102           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27103 $as_echo "yes" >&6; }
27104
27105 else
27106
27107           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27108 $as_echo "no" >&6; }
27109
27110
27111 fi
27112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27113 fi
27114
27115 if test -z "$have_u_intxx_t" ; then
27116    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27117 $as_echo_n "checking for uintXX_t types... " >&6; }
27118 if ${ac_cv_have_uintxx_t+:} false; then :
27119   $as_echo_n "(cached) " >&6
27120 else
27121
27122           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27123 /* end confdefs.h.  */
27124
27125                  #include <sys/types.h>
27126
27127 int
27128 main ()
27129 {
27130
27131                  uint8_t a; uint16_t b;
27132                  uint32_t c; a = b = c = 1;
27133
27134   ;
27135   return 0;
27136 }
27137 _ACEOF
27138 if ac_fn_c_try_compile "$LINENO"; then :
27139
27140                 ac_cv_have_uintxx_t="yes"
27141
27142 else
27143
27144                 ac_cv_have_uintxx_t="no"
27145
27146
27147 fi
27148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27149
27150
27151 fi
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27153 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27154    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27155       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27156
27157    fi
27158 fi
27159
27160 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27161     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27162 then
27163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27164 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27166 /* end confdefs.h.  */
27167
27168           #include <sys/bitypes.h>
27169
27170 int
27171 main ()
27172 {
27173
27174           int64_t a; u_int64_t b;
27175           a = b = 1;
27176
27177   ;
27178   return 0;
27179 }
27180 _ACEOF
27181 if ac_fn_c_try_compile "$LINENO"; then :
27182
27183           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27184
27185           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27186
27187           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27188 $as_echo "yes" >&6; }
27189
27190 else
27191
27192           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27193 $as_echo "no" >&6; }
27194
27195
27196 fi
27197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27198 fi
27199
27200 if (test -z "$have_uintxx_t" && \
27201     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27202 then
27203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27204 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27205    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206 /* end confdefs.h.  */
27207
27208           #include <sys/bitypes.h>
27209
27210 int
27211 main ()
27212 {
27213
27214           uint8_t a; uint16_t b;
27215           uint32_t c; a = b = c = 1;
27216
27217   ;
27218   return 0;
27219 }
27220 _ACEOF
27221 if ac_fn_c_try_compile "$LINENO"; then :
27222
27223           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27224
27225           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27226 $as_echo "yes" >&6; }
27227
27228 else
27229
27230           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27231 $as_echo "no" >&6; }
27232
27233
27234 fi
27235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27236 fi
27237
27238 for ac_func in \
27239    fork \
27240    getcwd \
27241    gethostname \
27242    getpid \
27243    gettimeofday \
27244    setpgid \
27245    setpgrp \
27246    setsid \
27247    signal \
27248    strerror \
27249    strncmp \
27250    strncpy \
27251    vfprintf \
27252
27253 do :
27254   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27256 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27257   cat >>confdefs.h <<_ACEOF
27258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27259 _ACEOF
27260
27261 else
27262   echo 'configure: cannot find needed function.'; exit 1
27263
27264 fi
27265 done
27266
27267
27268 for ac_func in getpagesize
27269 do :
27270   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27271 if test "x$ac_cv_func_getpagesize" = xyes; then :
27272   cat >>confdefs.h <<_ACEOF
27273 #define HAVE_GETPAGESIZE 1
27274 _ACEOF
27275
27276 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27277
27278 fi
27279 done
27280
27281 for ac_func in malloc_trim
27282 do :
27283   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27284 if test "x$ac_cv_func_malloc_trim" = xyes; then :
27285   cat >>confdefs.h <<_ACEOF
27286 #define HAVE_MALLOC_TRIM 1
27287 _ACEOF
27288
27289 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27290
27291 fi
27292 done
27293
27294
27295 for ac_func in fchdir
27296 do :
27297   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27298 if test "x$ac_cv_func_fchdir" = xyes; then :
27299   cat >>confdefs.h <<_ACEOF
27300 #define HAVE_FCHDIR 1
27301 _ACEOF
27302  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27303
27304 fi
27305 done
27306
27307 for ac_func in strtoll
27308 do :
27309   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27310 if test "x$ac_cv_func_strtoll" = xyes; then :
27311   cat >>confdefs.h <<_ACEOF
27312 #define HAVE_STRTOLL 1
27313 _ACEOF
27314  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27315
27316 fi
27317 done
27318
27319 for ac_func in posix_fadvise
27320 do :
27321   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27322 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
27323   cat >>confdefs.h <<_ACEOF
27324 #define HAVE_POSIX_FADVISE 1
27325 _ACEOF
27326
27327 fi
27328 done
27329
27330 for ac_func in fdatasync
27331 do :
27332   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27333 if test "x$ac_cv_func_fdatasync" = xyes; then :
27334   cat >>confdefs.h <<_ACEOF
27335 #define HAVE_FDATASYNC 1
27336 _ACEOF
27337
27338 fi
27339 done
27340
27341
27342 for ac_func in chflags
27343 do :
27344   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27345 if test "x$ac_cv_func_chflags" = xyes; then :
27346   cat >>confdefs.h <<_ACEOF
27347 #define HAVE_CHFLAGS 1
27348 _ACEOF
27349
27350 fi
27351 done
27352
27353
27354 for ac_func in snprintf vsnprintf gethostid fseeko
27355 do :
27356   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27358 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27359   cat >>confdefs.h <<_ACEOF
27360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27361 _ACEOF
27362
27363 fi
27364 done
27365
27366
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27368 $as_echo_n "checking for va_copy... " >&6; }
27369 if ${ba_cv_va_copy+:} false; then :
27370   $as_echo_n "(cached) " >&6
27371 else
27372
27373        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h.  */
27375
27376               #include <stdarg.h>
27377               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27378               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27379
27380 int
27381 main ()
27382 {
27383
27384               call_use_va_copy(1,2,3)
27385
27386   ;
27387   return 0;
27388 }
27389 _ACEOF
27390 if ac_fn_c_try_link "$LINENO"; then :
27391
27392               ba_cv_va_copy=yes,
27393
27394 else
27395
27396               ba_cv_va_copy=no
27397
27398
27399 fi
27400 rm -f core conftest.err conftest.$ac_objext \
27401     conftest$ac_exeext conftest.$ac_ext
27402
27403
27404 fi
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27406 $as_echo "$ba_cv_va_copy" >&6; }
27407 test $ba_cv_va_copy = yes &&
27408 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27409
27410
27411 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27412 do :
27413   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27415 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27416   cat >>confdefs.h <<_ACEOF
27417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27418 _ACEOF
27419
27420 fi
27421 done
27422
27423
27424 # If resolver functions are not in libc check for -lnsl or -lresolv.
27425 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27426 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27428 $as_echo "using libc's resolver" >&6; }
27429 else
27430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27431 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27432 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
27433   $as_echo_n "(cached) " >&6
27434 else
27435   ac_check_lib_save_LIBS=$LIBS
27436 LIBS="-lnsl  $LIBS"
27437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27438 /* end confdefs.h.  */
27439
27440 /* Override any GCC internal prototype to avoid an error.
27441    Use char because int might match the return type of a GCC
27442    builtin and then its argument prototype would still apply.  */
27443 #ifdef __cplusplus
27444 extern "C"
27445 #endif
27446 char gethostbyname_r ();
27447 int
27448 main ()
27449 {
27450 return gethostbyname_r ();
27451   ;
27452   return 0;
27453 }
27454 _ACEOF
27455 if ac_fn_c_try_link "$LINENO"; then :
27456   ac_cv_lib_nsl_gethostbyname_r=yes
27457 else
27458   ac_cv_lib_nsl_gethostbyname_r=no
27459 fi
27460 rm -f core conftest.err conftest.$ac_objext \
27461     conftest$ac_exeext conftest.$ac_ext
27462 LIBS=$ac_check_lib_save_LIBS
27463 fi
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27465 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27466 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
27467   cat >>confdefs.h <<_ACEOF
27468 #define HAVE_LIBNSL 1
27469 _ACEOF
27470
27471   LIBS="-lnsl $LIBS"
27472
27473 fi
27474
27475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27476 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27477 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
27478   $as_echo_n "(cached) " >&6
27479 else
27480   ac_check_lib_save_LIBS=$LIBS
27481 LIBS="-lresolv  $LIBS"
27482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27483 /* end confdefs.h.  */
27484
27485 /* Override any GCC internal prototype to avoid an error.
27486    Use char because int might match the return type of a GCC
27487    builtin and then its argument prototype would still apply.  */
27488 #ifdef __cplusplus
27489 extern "C"
27490 #endif
27491 char gethostbyname_r ();
27492 int
27493 main ()
27494 {
27495 return gethostbyname_r ();
27496   ;
27497   return 0;
27498 }
27499 _ACEOF
27500 if ac_fn_c_try_link "$LINENO"; then :
27501   ac_cv_lib_resolv_gethostbyname_r=yes
27502 else
27503   ac_cv_lib_resolv_gethostbyname_r=no
27504 fi
27505 rm -f core conftest.err conftest.$ac_objext \
27506     conftest$ac_exeext conftest.$ac_ext
27507 LIBS=$ac_check_lib_save_LIBS
27508 fi
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27510 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27511 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
27512   cat >>confdefs.h <<_ACEOF
27513 #define HAVE_LIBRESOLV 1
27514 _ACEOF
27515
27516   LIBS="-lresolv $LIBS"
27517
27518 fi
27519
27520 fi
27521
27522
27523 for ac_func in inet_pton
27524 do :
27525   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27526 if test "x$ac_cv_func_inet_pton" = xyes; then :
27527   cat >>confdefs.h <<_ACEOF
27528 #define HAVE_INET_PTON 1
27529 _ACEOF
27530  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27531
27532 fi
27533 done
27534
27535 for ac_func in inet_ntop
27536 do :
27537   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27538 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27539   cat >>confdefs.h <<_ACEOF
27540 #define HAVE_INET_NTOP 1
27541 _ACEOF
27542  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27543
27544 fi
27545 done
27546
27547 for ac_func in gethostbyname2
27548 do :
27549   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27550 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
27551   cat >>confdefs.h <<_ACEOF
27552 #define HAVE_GETHOSTBYNAME2 1
27553 _ACEOF
27554  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27555
27556 fi
27557 done
27558
27559
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27561 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27562 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
27563   $as_echo_n "(cached) " >&6
27564 else
27565
27566        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27567 /* end confdefs.h.  */
27568
27569               #include <sys/socket.h>
27570
27571 int
27572 main ()
27573 {
27574
27575               struct sockaddr s; s.sa_len;
27576
27577   ;
27578   return 0;
27579 }
27580 _ACEOF
27581 if ac_fn_c_try_compile "$LINENO"; then :
27582
27583              ac_cv_struct_sockaddr_sa_len=yes
27584
27585 else
27586   ac_cv_struct_sockaddr_sa_len=no
27587
27588
27589 fi
27590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27591
27592
27593 fi
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27595 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27596
27597 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27598
27599 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27600
27601 fi
27602
27603 for ac_func in strftime
27604 do :
27605   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27606 if test "x$ac_cv_func_strftime" = xyes; then :
27607   cat >>confdefs.h <<_ACEOF
27608 #define HAVE_STRFTIME 1
27609 _ACEOF
27610
27611 else
27612   # strftime is in -lintl on SCO UNIX.
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27614 $as_echo_n "checking for strftime in -lintl... " >&6; }
27615 if ${ac_cv_lib_intl_strftime+:} false; then :
27616   $as_echo_n "(cached) " >&6
27617 else
27618   ac_check_lib_save_LIBS=$LIBS
27619 LIBS="-lintl  $LIBS"
27620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27621 /* end confdefs.h.  */
27622
27623 /* Override any GCC internal prototype to avoid an error.
27624    Use char because int might match the return type of a GCC
27625    builtin and then its argument prototype would still apply.  */
27626 #ifdef __cplusplus
27627 extern "C"
27628 #endif
27629 char strftime ();
27630 int
27631 main ()
27632 {
27633 return strftime ();
27634   ;
27635   return 0;
27636 }
27637 _ACEOF
27638 if ac_fn_c_try_link "$LINENO"; then :
27639   ac_cv_lib_intl_strftime=yes
27640 else
27641   ac_cv_lib_intl_strftime=no
27642 fi
27643 rm -f core conftest.err conftest.$ac_objext \
27644     conftest$ac_exeext conftest.$ac_ext
27645 LIBS=$ac_check_lib_save_LIBS
27646 fi
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27648 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27649 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
27650   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27651
27652 LIBS="-lintl $LIBS"
27653 fi
27654
27655 fi
27656 done
27657
27658 for ac_func in vprintf
27659 do :
27660   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27661 if test "x$ac_cv_func_vprintf" = xyes; then :
27662   cat >>confdefs.h <<_ACEOF
27663 #define HAVE_VPRINTF 1
27664 _ACEOF
27665
27666 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27667 if test "x$ac_cv_func__doprnt" = xyes; then :
27668
27669 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27670
27671 fi
27672
27673 fi
27674 done
27675
27676
27677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27678 # for constant arguments.  Useless!
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27680 $as_echo_n "checking for working alloca.h... " >&6; }
27681 if ${ac_cv_working_alloca_h+:} false; then :
27682   $as_echo_n "(cached) " >&6
27683 else
27684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27685 /* end confdefs.h.  */
27686 #include <alloca.h>
27687 int
27688 main ()
27689 {
27690 char *p = (char *) alloca (2 * sizeof (int));
27691                           if (p) return 0;
27692   ;
27693   return 0;
27694 }
27695 _ACEOF
27696 if ac_fn_c_try_link "$LINENO"; then :
27697   ac_cv_working_alloca_h=yes
27698 else
27699   ac_cv_working_alloca_h=no
27700 fi
27701 rm -f core conftest.err conftest.$ac_objext \
27702     conftest$ac_exeext conftest.$ac_ext
27703 fi
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27705 $as_echo "$ac_cv_working_alloca_h" >&6; }
27706 if test $ac_cv_working_alloca_h = yes; then
27707
27708 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27709
27710 fi
27711
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27713 $as_echo_n "checking for alloca... " >&6; }
27714 if ${ac_cv_func_alloca_works+:} false; then :
27715   $as_echo_n "(cached) " >&6
27716 else
27717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27718 /* end confdefs.h.  */
27719 #ifdef __GNUC__
27720 # define alloca __builtin_alloca
27721 #else
27722 # ifdef _MSC_VER
27723 #  include <malloc.h>
27724 #  define alloca _alloca
27725 # else
27726 #  ifdef HAVE_ALLOCA_H
27727 #   include <alloca.h>
27728 #  else
27729 #   ifdef _AIX
27730  #pragma alloca
27731 #   else
27732 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27733 void *alloca (size_t);
27734 #    endif
27735 #   endif
27736 #  endif
27737 # endif
27738 #endif
27739
27740 int
27741 main ()
27742 {
27743 char *p = (char *) alloca (1);
27744                                     if (p) return 0;
27745   ;
27746   return 0;
27747 }
27748 _ACEOF
27749 if ac_fn_c_try_link "$LINENO"; then :
27750   ac_cv_func_alloca_works=yes
27751 else
27752   ac_cv_func_alloca_works=no
27753 fi
27754 rm -f core conftest.err conftest.$ac_objext \
27755     conftest$ac_exeext conftest.$ac_ext
27756 fi
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27758 $as_echo "$ac_cv_func_alloca_works" >&6; }
27759
27760 if test $ac_cv_func_alloca_works = yes; then
27761
27762 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27763
27764 else
27765   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27766 # that cause trouble.  Some versions do not even contain alloca or
27767 # contain a buggy version.  If you still want to use their alloca,
27768 # use ar to extract alloca.o from them instead of compiling alloca.c.
27769
27770 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27771
27772 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27773
27774
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27776 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27777 if ${ac_cv_os_cray+:} false; then :
27778   $as_echo_n "(cached) " >&6
27779 else
27780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27781 /* end confdefs.h.  */
27782 #if defined CRAY && ! defined CRAY2
27783 webecray
27784 #else
27785 wenotbecray
27786 #endif
27787
27788 _ACEOF
27789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27790   $EGREP "webecray" >/dev/null 2>&1; then :
27791   ac_cv_os_cray=yes
27792 else
27793   ac_cv_os_cray=no
27794 fi
27795 rm -f conftest*
27796
27797 fi
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27799 $as_echo "$ac_cv_os_cray" >&6; }
27800 if test $ac_cv_os_cray = yes; then
27801   for ac_func in _getb67 GETB67 getb67; do
27802     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27804 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27805
27806 cat >>confdefs.h <<_ACEOF
27807 #define CRAY_STACKSEG_END $ac_func
27808 _ACEOF
27809
27810     break
27811 fi
27812
27813   done
27814 fi
27815
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27817 $as_echo_n "checking stack direction for C alloca... " >&6; }
27818 if ${ac_cv_c_stack_direction+:} false; then :
27819   $as_echo_n "(cached) " >&6
27820 else
27821   if test "$cross_compiling" = yes; then :
27822   ac_cv_c_stack_direction=0
27823 else
27824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27825 /* end confdefs.h.  */
27826 $ac_includes_default
27827 int
27828 find_stack_direction ()
27829 {
27830   static char *addr = 0;
27831   auto char dummy;
27832   if (addr == 0)
27833     {
27834       addr = &dummy;
27835       return find_stack_direction ();
27836     }
27837   else
27838     return (&dummy > addr) ? 1 : -1;
27839 }
27840
27841 int
27842 main ()
27843 {
27844   return find_stack_direction () < 0;
27845 }
27846 _ACEOF
27847 if ac_fn_c_try_run "$LINENO"; then :
27848   ac_cv_c_stack_direction=1
27849 else
27850   ac_cv_c_stack_direction=-1
27851 fi
27852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27853   conftest.$ac_objext conftest.beam conftest.$ac_ext
27854 fi
27855
27856 fi
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27858 $as_echo "$ac_cv_c_stack_direction" >&6; }
27859 cat >>confdefs.h <<_ACEOF
27860 #define STACK_DIRECTION $ac_cv_c_stack_direction
27861 _ACEOF
27862
27863
27864 fi
27865
27866 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27867 # -lseq on Dynix/PTX, -lgen on Unixware.
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27869 $as_echo_n "checking for library containing getmntent... " >&6; }
27870 if ${ac_cv_search_getmntent+:} false; then :
27871   $as_echo_n "(cached) " >&6
27872 else
27873   ac_func_search_save_LIBS=$LIBS
27874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27875 /* end confdefs.h.  */
27876
27877 /* Override any GCC internal prototype to avoid an error.
27878    Use char because int might match the return type of a GCC
27879    builtin and then its argument prototype would still apply.  */
27880 #ifdef __cplusplus
27881 extern "C"
27882 #endif
27883 char getmntent ();
27884 int
27885 main ()
27886 {
27887 return getmntent ();
27888   ;
27889   return 0;
27890 }
27891 _ACEOF
27892 for ac_lib in '' sun seq gen; do
27893   if test -z "$ac_lib"; then
27894     ac_res="none required"
27895   else
27896     ac_res=-l$ac_lib
27897     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27898   fi
27899   if ac_fn_c_try_link "$LINENO"; then :
27900   ac_cv_search_getmntent=$ac_res
27901 fi
27902 rm -f core conftest.err conftest.$ac_objext \
27903     conftest$ac_exeext
27904   if ${ac_cv_search_getmntent+:} false; then :
27905   break
27906 fi
27907 done
27908 if ${ac_cv_search_getmntent+:} false; then :
27909
27910 else
27911   ac_cv_search_getmntent=no
27912 fi
27913 rm conftest.$ac_ext
27914 LIBS=$ac_func_search_save_LIBS
27915 fi
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27917 $as_echo "$ac_cv_search_getmntent" >&6; }
27918 ac_res=$ac_cv_search_getmntent
27919 if test "$ac_res" != no; then :
27920   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27921   ac_cv_func_getmntent=yes
27922
27923 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27924
27925 else
27926   ac_cv_func_getmntent=no
27927 fi
27928
27929
27930 for ac_func in getmntinfo
27931 do :
27932   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27933 if test "x$ac_cv_func_getmntinfo" = xyes; then :
27934   cat >>confdefs.h <<_ACEOF
27935 #define HAVE_GETMNTINFO 1
27936 _ACEOF
27937  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27938
27939 fi
27940 done
27941
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27943 $as_echo_n "checking whether closedir returns void... " >&6; }
27944 if ${ac_cv_func_closedir_void+:} false; then :
27945   $as_echo_n "(cached) " >&6
27946 else
27947   if test "$cross_compiling" = yes; then :
27948   ac_cv_func_closedir_void=yes
27949 else
27950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27951 /* end confdefs.h.  */
27952 $ac_includes_default
27953 #include <$ac_header_dirent>
27954 #ifndef __cplusplus
27955 int closedir ();
27956 #endif
27957
27958 int
27959 main ()
27960 {
27961 return closedir (opendir (".")) != 0;
27962   ;
27963   return 0;
27964 }
27965 _ACEOF
27966 if ac_fn_c_try_run "$LINENO"; then :
27967   ac_cv_func_closedir_void=no
27968 else
27969   ac_cv_func_closedir_void=yes
27970 fi
27971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27972   conftest.$ac_objext conftest.beam conftest.$ac_ext
27973 fi
27974
27975 fi
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27977 $as_echo "$ac_cv_func_closedir_void" >&6; }
27978 if test $ac_cv_func_closedir_void = yes; then
27979
27980 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27981
27982 fi
27983
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27985 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27986 if ${ac_cv_func_setpgrp_void+:} false; then :
27987   $as_echo_n "(cached) " >&6
27988 else
27989   if test "$cross_compiling" = yes; then :
27990   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27991 else
27992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27993 /* end confdefs.h.  */
27994 $ac_includes_default
27995 int
27996 main ()
27997 {
27998 /* If this system has a BSD-style setpgrp which takes arguments,
27999   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28000   exit successfully. */
28001   return setpgrp (1,1) != -1;
28002   ;
28003   return 0;
28004 }
28005 _ACEOF
28006 if ac_fn_c_try_run "$LINENO"; then :
28007   ac_cv_func_setpgrp_void=no
28008 else
28009   ac_cv_func_setpgrp_void=yes
28010 fi
28011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28012   conftest.$ac_objext conftest.beam conftest.$ac_ext
28013 fi
28014
28015 fi
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28017 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28018 if test $ac_cv_func_setpgrp_void = yes; then
28019
28020 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28021
28022 fi
28023             # AC_FUNC_FNMATCH    dnl use local version
28024
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28026 $as_echo_n "checking for gettext in -lintl... " >&6; }
28027 if ${ac_cv_lib_intl_gettext+:} false; then :
28028   $as_echo_n "(cached) " >&6
28029 else
28030   ac_check_lib_save_LIBS=$LIBS
28031 LIBS="-lintl  $LIBS"
28032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28033 /* end confdefs.h.  */
28034
28035 /* Override any GCC internal prototype to avoid an error.
28036    Use char because int might match the return type of a GCC
28037    builtin and then its argument prototype would still apply.  */
28038 #ifdef __cplusplus
28039 extern "C"
28040 #endif
28041 char gettext ();
28042 int
28043 main ()
28044 {
28045 return gettext ();
28046   ;
28047   return 0;
28048 }
28049 _ACEOF
28050 if ac_fn_c_try_link "$LINENO"; then :
28051   ac_cv_lib_intl_gettext=yes
28052 else
28053   ac_cv_lib_intl_gettext=no
28054 fi
28055 rm -f core conftest.err conftest.$ac_objext \
28056     conftest$ac_exeext conftest.$ac_ext
28057 LIBS=$ac_check_lib_save_LIBS
28058 fi
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28060 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28061 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28062   LIBS="$LIBS -lintl"
28063 fi
28064
28065
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28067 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28068 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28069   $as_echo_n "(cached) " >&6
28070 else
28071   ac_check_lib_save_LIBS=$LIBS
28072 LIBS="-lsun  $LIBS"
28073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28074 /* end confdefs.h.  */
28075
28076 /* Override any GCC internal prototype to avoid an error.
28077    Use char because int might match the return type of a GCC
28078    builtin and then its argument prototype would still apply.  */
28079 #ifdef __cplusplus
28080 extern "C"
28081 #endif
28082 char getpwnam ();
28083 int
28084 main ()
28085 {
28086 return getpwnam ();
28087   ;
28088   return 0;
28089 }
28090 _ACEOF
28091 if ac_fn_c_try_link "$LINENO"; then :
28092   ac_cv_lib_sun_getpwnam=yes
28093 else
28094   ac_cv_lib_sun_getpwnam=no
28095 fi
28096 rm -f core conftest.err conftest.$ac_objext \
28097     conftest$ac_exeext conftest.$ac_ext
28098 LIBS=$ac_check_lib_save_LIBS
28099 fi
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28101 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28102 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28103   cat >>confdefs.h <<_ACEOF
28104 #define HAVE_LIBSUN 1
28105 _ACEOF
28106
28107   LIBS="-lsun $LIBS"
28108
28109 fi
28110
28111
28112 for ac_header in zlib.h
28113 do :
28114   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28115 if test "x$ac_cv_header_zlib_h" = xyes; then :
28116   cat >>confdefs.h <<_ACEOF
28117 #define HAVE_ZLIB_H 1
28118 _ACEOF
28119
28120 fi
28121
28122 done
28123
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28125 $as_echo_n "checking for deflate in -lz... " >&6; }
28126 if ${ac_cv_lib_z_deflate+:} false; then :
28127   $as_echo_n "(cached) " >&6
28128 else
28129   ac_check_lib_save_LIBS=$LIBS
28130 LIBS="-lz  $LIBS"
28131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28132 /* end confdefs.h.  */
28133
28134 /* Override any GCC internal prototype to avoid an error.
28135    Use char because int might match the return type of a GCC
28136    builtin and then its argument prototype would still apply.  */
28137 #ifdef __cplusplus
28138 extern "C"
28139 #endif
28140 char deflate ();
28141 int
28142 main ()
28143 {
28144 return deflate ();
28145   ;
28146   return 0;
28147 }
28148 _ACEOF
28149 if ac_fn_c_try_link "$LINENO"; then :
28150   ac_cv_lib_z_deflate=yes
28151 else
28152   ac_cv_lib_z_deflate=no
28153 fi
28154 rm -f core conftest.err conftest.$ac_objext \
28155     conftest$ac_exeext conftest.$ac_ext
28156 LIBS=$ac_check_lib_save_LIBS
28157 fi
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28159 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28160 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28161   ZLIBS="-lz"
28162 fi
28163
28164 have_zlib=no
28165 if test x$ZLIBS = x-lz; then
28166    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28167
28168    have_zlib=yes
28169 fi
28170
28171
28172 support_acl=auto
28173 # Check whether --enable-acl was given.
28174 if test "${enable_acl+set}" = set; then :
28175   enableval=$enable_acl;
28176        if test x$enableval = xyes; then
28177           support_acl=yes
28178        elif test x$enableval = xno; then
28179           support_acl=no
28180        fi
28181
28182
28183 fi
28184
28185
28186 have_acl=no
28187 have_extended_acl=no
28188 if test x$support_acl = xyes -o x$support_acl = xauto; then
28189    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28190 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
28191
28192 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28193
28194 fi
28195
28196
28197
28198             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28199 if test "x$ac_cv_func_acl_get_file" = xyes; then :
28200
28201           have_acl=yes
28202
28203
28204 fi
28205
28206
28207             if test $have_acl = no; then
28208       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28209 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28210 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
28211   $as_echo_n "(cached) " >&6
28212 else
28213   ac_check_lib_save_LIBS=$LIBS
28214 LIBS="-lacl  $LIBS"
28215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28216 /* end confdefs.h.  */
28217
28218 /* Override any GCC internal prototype to avoid an error.
28219    Use char because int might match the return type of a GCC
28220    builtin and then its argument prototype would still apply.  */
28221 #ifdef __cplusplus
28222 extern "C"
28223 #endif
28224 char acl_get_file ();
28225 int
28226 main ()
28227 {
28228 return acl_get_file ();
28229   ;
28230   return 0;
28231 }
28232 _ACEOF
28233 if ac_fn_c_try_link "$LINENO"; then :
28234   ac_cv_lib_acl_acl_get_file=yes
28235 else
28236   ac_cv_lib_acl_acl_get_file=no
28237 fi
28238 rm -f core conftest.err conftest.$ac_objext \
28239     conftest$ac_exeext conftest.$ac_ext
28240 LIBS=$ac_check_lib_save_LIBS
28241 fi
28242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28243 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28244 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
28245
28246              have_acl=yes
28247              if test $have_afs = yes; then
28248                                                                 if test -d /usr/lib64/; then
28249                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28250                 else
28251                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
28252                 fi
28253              else
28254                 FDLIBS="-lacl $FDLIBS"
28255              fi
28256
28257
28258 fi
28259
28260    fi
28261
28262                if test $have_acl = no -a \
28263            x${HAVE_OSF1_OS_TRUE} = x; then
28264       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28265 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28266 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
28267   $as_echo_n "(cached) " >&6
28268 else
28269   ac_check_lib_save_LIBS=$LIBS
28270 LIBS="-lpacl  $LIBS"
28271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28272 /* end confdefs.h.  */
28273
28274 /* Override any GCC internal prototype to avoid an error.
28275    Use char because int might match the return type of a GCC
28276    builtin and then its argument prototype would still apply.  */
28277 #ifdef __cplusplus
28278 extern "C"
28279 #endif
28280 char acl_get_file ();
28281 int
28282 main ()
28283 {
28284 return acl_get_file ();
28285   ;
28286   return 0;
28287 }
28288 _ACEOF
28289 if ac_fn_c_try_link "$LINENO"; then :
28290   ac_cv_lib_pacl_acl_get_file=yes
28291 else
28292   ac_cv_lib_pacl_acl_get_file=no
28293 fi
28294 rm -f core conftest.err conftest.$ac_objext \
28295     conftest$ac_exeext conftest.$ac_ext
28296 LIBS=$ac_check_lib_save_LIBS
28297 fi
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28299 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28300 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
28301
28302              have_acl=yes
28303              FDLIBS="-lpacl $FDLIBS"
28304
28305
28306 fi
28307
28308
28309       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
28310 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
28311       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
28312       if test $? = 0; then
28313
28314 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
28315
28316          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28317 $as_echo "yes" >&6; }
28318       else
28319          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28320 $as_echo "no" >&6; }
28321       fi
28322    fi
28323
28324             if test $have_acl = yes -a \
28325            x${HAVE_DARWIN_OS_TRUE} = x; then
28326       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
28327 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
28328       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
28329       if test $? = 0; then
28330
28331 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
28332
28333          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28334 $as_echo "yes" >&6; }
28335       else
28336          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28337 $as_echo "no" >&6; }
28338       fi
28339    fi
28340
28341             if test $have_acl = yes -a \
28342            x${HAVE_FREEBSD_OS_TRUE} = x; then
28343       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
28344 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
28345       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
28346       if test $? = 0; then
28347
28348 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
28349
28350          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28351 $as_echo "yes" >&6; }
28352       else
28353          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28354 $as_echo "no" >&6; }
28355       fi
28356    fi
28357
28358             if test $have_acl = no -a \
28359            x${HAVE_SUN_OS_TRUE} = x; then
28360       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28361 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28362 if ${ac_cv_lib_sec_acltotext+:} false; then :
28363   $as_echo_n "(cached) " >&6
28364 else
28365   ac_check_lib_save_LIBS=$LIBS
28366 LIBS="-lsec  $LIBS"
28367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28368 /* end confdefs.h.  */
28369
28370 /* Override any GCC internal prototype to avoid an error.
28371    Use char because int might match the return type of a GCC
28372    builtin and then its argument prototype would still apply.  */
28373 #ifdef __cplusplus
28374 extern "C"
28375 #endif
28376 char acltotext ();
28377 int
28378 main ()
28379 {
28380 return acltotext ();
28381   ;
28382   return 0;
28383 }
28384 _ACEOF
28385 if ac_fn_c_try_link "$LINENO"; then :
28386   ac_cv_lib_sec_acltotext=yes
28387 else
28388   ac_cv_lib_sec_acltotext=no
28389 fi
28390 rm -f core conftest.err conftest.$ac_objext \
28391     conftest$ac_exeext conftest.$ac_ext
28392 LIBS=$ac_check_lib_save_LIBS
28393 fi
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28395 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28396 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
28397
28398              have_acl=yes
28399              FDLIBS="-lsec $FDLIBS"
28400
28401              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28402 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28403 if ${ac_cv_lib_sec_acl_totext+:} false; then :
28404   $as_echo_n "(cached) " >&6
28405 else
28406   ac_check_lib_save_LIBS=$LIBS
28407 LIBS="-lsec  $LIBS"
28408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409 /* end confdefs.h.  */
28410
28411 /* Override any GCC internal prototype to avoid an error.
28412    Use char because int might match the return type of a GCC
28413    builtin and then its argument prototype would still apply.  */
28414 #ifdef __cplusplus
28415 extern "C"
28416 #endif
28417 char acl_totext ();
28418 int
28419 main ()
28420 {
28421 return acl_totext ();
28422   ;
28423   return 0;
28424 }
28425 _ACEOF
28426 if ac_fn_c_try_link "$LINENO"; then :
28427   ac_cv_lib_sec_acl_totext=yes
28428 else
28429   ac_cv_lib_sec_acl_totext=no
28430 fi
28431 rm -f core conftest.err conftest.$ac_objext \
28432     conftest$ac_exeext conftest.$ac_ext
28433 LIBS=$ac_check_lib_save_LIBS
28434 fi
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28436 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28437 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
28438
28439                     have_extended_acl=yes
28440
28441
28442 fi
28443
28444
28445
28446 fi
28447
28448    fi
28449
28450             if test $have_acl = no -a \
28451            x${HAVE_AIX_OS_TRUE} = x; then
28452       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28453 if test "x$ac_cv_func_acl_get" = xyes; then :
28454
28455              have_acl=yes
28456
28457              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28458 if test "x$ac_cv_func_aclx_get" = xyes; then :
28459
28460                     have_extended_acl=yes
28461
28462
28463 fi
28464
28465
28466
28467 fi
28468
28469    fi
28470
28471    if test x$support_acl = xyes -a $have_acl != yes; then
28472       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28473   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28474    else
28475       if test $have_acl = yes; then
28476
28477 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28478
28479       fi
28480
28481       if test $have_extended_acl = yes; then
28482
28483 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28484
28485       fi
28486    fi
28487 fi
28488
28489 support_xattr=auto
28490 # Check whether --enable-xattr was given.
28491 if test "${enable_xattr+set}" = set; then :
28492   enableval=$enable_xattr;
28493        if test x$enableval = xyes; then
28494           support_xattr=yes
28495        elif test x$enableval = xno; then
28496           support_xattr=no
28497        fi
28498
28499
28500 fi
28501
28502
28503 have_xattr=no
28504 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28505                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28506            x${HAVE_NETBSD_OS_TRUE} = x -o \
28507            x${HAVE_OPENBSD_OS_TRUE} = x; then
28508       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28509 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
28510
28511 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28512
28513 fi
28514
28515
28516       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28517 if test "x$ac_cv_header_libutil_h" = xyes; then :
28518
28519 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28520
28521 fi
28522
28523
28524       for ac_func in extattr_get_link extattr_set_link extattr_list_link
28525 do :
28526   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28527 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28528 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28529   cat >>confdefs.h <<_ACEOF
28530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28531 _ACEOF
28532
28533              have_xattr=yes
28534
28535 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28536
28537
28538 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28539
28540
28541 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28542
28543
28544
28545 fi
28546 done
28547
28548
28549       if test $have_xattr = no; then
28550          for ac_func in extattr_get_file extattr_set_file extattr_list_file
28551 do :
28552   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28553 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28554 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28555   cat >>confdefs.h <<_ACEOF
28556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28557 _ACEOF
28558
28559                 have_xattr=yes
28560
28561 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28562
28563
28564 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28565
28566
28567 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28568
28569
28570
28571 fi
28572 done
28573
28574       fi
28575
28576       if test $have_xattr = yes; then
28577          have_extattr_string_in_libc=no
28578          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28579 do :
28580   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28581 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28582 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28583   cat >>confdefs.h <<_ACEOF
28584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28585 _ACEOF
28586
28587                 have_extattr_string_in_libc=yes
28588
28589 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28590
28591
28592 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28593
28594
28595
28596 fi
28597 done
28598
28599
28600                                  if test $have_extattr_string_in_libc = no; then
28601             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28602 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28603 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
28604   $as_echo_n "(cached) " >&6
28605 else
28606   ac_check_lib_save_LIBS=$LIBS
28607 LIBS="-lutil  $LIBS"
28608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28609 /* end confdefs.h.  */
28610
28611 /* Override any GCC internal prototype to avoid an error.
28612    Use char because int might match the return type of a GCC
28613    builtin and then its argument prototype would still apply.  */
28614 #ifdef __cplusplus
28615 extern "C"
28616 #endif
28617 char extattr_namespace_to_string extattr_string_to_namespace ();
28618 int
28619 main ()
28620 {
28621 return extattr_namespace_to_string extattr_string_to_namespace ();
28622   ;
28623   return 0;
28624 }
28625 _ACEOF
28626 if ac_fn_c_try_link "$LINENO"; then :
28627   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28628 else
28629   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28630 fi
28631 rm -f core conftest.err conftest.$ac_objext \
28632     conftest$ac_exeext conftest.$ac_ext
28633 LIBS=$ac_check_lib_save_LIBS
28634 fi
28635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28636 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28637 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
28638
28639
28640 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28641
28642
28643 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28644
28645                    FDLIBS="-lutil $FDLIBS"
28646
28647
28648 fi
28649
28650          fi
28651       fi
28652    fi
28653
28654                if test $have_xattr = no -a \
28655            x${HAVE_AIX_OS_TRUE} = x; then
28656       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28657 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
28658
28659 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28660
28661 fi
28662
28663
28664       for ac_func in llistea lgetea lsetea
28665 do :
28666   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28667 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28668 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28669   cat >>confdefs.h <<_ACEOF
28670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28671 _ACEOF
28672
28673              have_xattr=yes
28674
28675 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28676
28677
28678 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28679
28680
28681 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28682
28683
28684
28685 fi
28686 done
28687
28688
28689       if test $have_xattr = no; then
28690          for ac_func in listea getea setea
28691 do :
28692   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28693 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28694 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28695   cat >>confdefs.h <<_ACEOF
28696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28697 _ACEOF
28698
28699                 have_xattr=yes
28700
28701 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28702
28703
28704 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28705
28706
28707 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28708
28709
28710
28711 fi
28712 done
28713
28714       fi
28715    fi
28716
28717                if test $have_xattr = no -a \
28718            x${HAVE_OSF1_OS_TRUE} = x; then
28719       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28720 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
28721
28722 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28723
28724 fi
28725
28726
28727       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28728 do :
28729   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28730 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28731 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28732   cat >>confdefs.h <<_ACEOF
28733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28734 _ACEOF
28735
28736              have_xattr=yes
28737
28738 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
28739
28740
28741 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
28742
28743
28744 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
28745
28746
28747 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
28748
28749
28750 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
28751
28752
28753
28754 fi
28755 done
28756
28757    fi
28758
28759                if test $have_xattr = no -a \
28760            x${HAVE_SUN_OS_TRUE} = x; then
28761       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28762 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
28763
28764 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28765
28766 fi
28767
28768
28769       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28770 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
28771
28772 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28773
28774 fi
28775
28776
28777       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28778 if test "x$ac_cv_header_attr_h" = xyes; then :
28779
28780 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28781
28782 fi
28783
28784
28785
28786       for ac_func in openat fstatat unlinkat fchownat futimesat
28787 do :
28788   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28789 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28790 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28791   cat >>confdefs.h <<_ACEOF
28792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28793 _ACEOF
28794
28795              have_xattr=yes
28796
28797 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28798
28799
28800 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28801
28802
28803 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28804
28805
28806 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28807
28808
28809 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28810
28811
28812
28813 fi
28814 done
28815
28816
28817       if test $have_xattr = yes; then
28818          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28819 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28820 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
28821   $as_echo_n "(cached) " >&6
28822 else
28823   ac_check_lib_save_LIBS=$LIBS
28824 LIBS="-lnvpair  $LIBS"
28825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28826 /* end confdefs.h.  */
28827
28828 /* Override any GCC internal prototype to avoid an error.
28829    Use char because int might match the return type of a GCC
28830    builtin and then its argument prototype would still apply.  */
28831 #ifdef __cplusplus
28832 extern "C"
28833 #endif
28834 char nvlist_next_nvpair ();
28835 int
28836 main ()
28837 {
28838 return nvlist_next_nvpair ();
28839   ;
28840   return 0;
28841 }
28842 _ACEOF
28843 if ac_fn_c_try_link "$LINENO"; then :
28844   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28845 else
28846   ac_cv_lib_nvpair_nvlist_next_nvpair=no
28847 fi
28848 rm -f core conftest.err conftest.$ac_objext \
28849     conftest$ac_exeext conftest.$ac_ext
28850 LIBS=$ac_check_lib_save_LIBS
28851 fi
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28853 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28854 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
28855
28856
28857 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28858
28859                 FDLIBS="-lnvpair $FDLIBS"
28860
28861
28862 fi
28863
28864       fi
28865    fi
28866
28867             if test $have_xattr = no; then
28868       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28869 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
28870
28871 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28872
28873 fi
28874
28875
28876       for ac_func in llistxattr lgetxattr lsetxattr
28877 do :
28878   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28879 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28880 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28881   cat >>confdefs.h <<_ACEOF
28882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28883 _ACEOF
28884
28885              have_xattr=yes
28886
28887 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28888
28889
28890 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28891
28892
28893 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28894
28895
28896
28897 fi
28898 done
28899
28900
28901       if test $have_xattr = no; then
28902          for ac_func in listxattr getxattr setxattr
28903 do :
28904   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28905 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28906 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28907   cat >>confdefs.h <<_ACEOF
28908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28909 _ACEOF
28910
28911                 have_xattr=yes
28912
28913 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28914
28915
28916 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28917
28918
28919 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28920
28921
28922
28923 fi
28924 done
28925
28926       fi
28927    fi
28928
28929    if test x$support_xattr = xyes -a $have_xattr != yes; then
28930       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
28931   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28932    else
28933       if test $have_xattr = yes; then
28934
28935 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28936
28937       fi
28938    fi
28939 fi
28940
28941 PTHREAD_LIB=""
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28943 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28944 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
28945   $as_echo_n "(cached) " >&6
28946 else
28947   ac_check_lib_save_LIBS=$LIBS
28948 LIBS="-lpthread  $LIBS"
28949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28950 /* end confdefs.h.  */
28951
28952 /* Override any GCC internal prototype to avoid an error.
28953    Use char because int might match the return type of a GCC
28954    builtin and then its argument prototype would still apply.  */
28955 #ifdef __cplusplus
28956 extern "C"
28957 #endif
28958 char pthread_create ();
28959 int
28960 main ()
28961 {
28962 return pthread_create ();
28963   ;
28964   return 0;
28965 }
28966 _ACEOF
28967 if ac_fn_c_try_link "$LINENO"; then :
28968   ac_cv_lib_pthread_pthread_create=yes
28969 else
28970   ac_cv_lib_pthread_pthread_create=no
28971 fi
28972 rm -f core conftest.err conftest.$ac_objext \
28973     conftest$ac_exeext conftest.$ac_ext
28974 LIBS=$ac_check_lib_save_LIBS
28975 fi
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28977 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28978 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
28979   PTHREAD_LIB="-lpthread"
28980 else
28981
28982        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28983 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28984 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
28985   $as_echo_n "(cached) " >&6
28986 else
28987   ac_check_lib_save_LIBS=$LIBS
28988 LIBS="-lpthreads  $LIBS"
28989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28990 /* end confdefs.h.  */
28991
28992 /* Override any GCC internal prototype to avoid an error.
28993    Use char because int might match the return type of a GCC
28994    builtin and then its argument prototype would still apply.  */
28995 #ifdef __cplusplus
28996 extern "C"
28997 #endif
28998 char pthread_create ();
28999 int
29000 main ()
29001 {
29002 return pthread_create ();
29003   ;
29004   return 0;
29005 }
29006 _ACEOF
29007 if ac_fn_c_try_link "$LINENO"; then :
29008   ac_cv_lib_pthreads_pthread_create=yes
29009 else
29010   ac_cv_lib_pthreads_pthread_create=no
29011 fi
29012 rm -f core conftest.err conftest.$ac_objext \
29013     conftest$ac_exeext conftest.$ac_ext
29014 LIBS=$ac_check_lib_save_LIBS
29015 fi
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29017 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29018 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29019   PTHREAD_LIB="-lpthreads"
29020 else
29021
29022               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29023 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29024 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29025   $as_echo_n "(cached) " >&6
29026 else
29027   ac_check_lib_save_LIBS=$LIBS
29028 LIBS="-lc_r  $LIBS"
29029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29030 /* end confdefs.h.  */
29031
29032 /* Override any GCC internal prototype to avoid an error.
29033    Use char because int might match the return type of a GCC
29034    builtin and then its argument prototype would still apply.  */
29035 #ifdef __cplusplus
29036 extern "C"
29037 #endif
29038 char pthread_create ();
29039 int
29040 main ()
29041 {
29042 return pthread_create ();
29043   ;
29044   return 0;
29045 }
29046 _ACEOF
29047 if ac_fn_c_try_link "$LINENO"; then :
29048   ac_cv_lib_c_r_pthread_create=yes
29049 else
29050   ac_cv_lib_c_r_pthread_create=no
29051 fi
29052 rm -f core conftest.err conftest.$ac_objext \
29053     conftest$ac_exeext conftest.$ac_ext
29054 LIBS=$ac_check_lib_save_LIBS
29055 fi
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29057 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29058 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29059   PTHREAD_LIB="-lc_r"
29060 else
29061
29062                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29063 if test "x$ac_cv_func_pthread_create" = xyes; then :
29064
29065 fi
29066
29067
29068
29069 fi
29070
29071
29072
29073 fi
29074
29075
29076
29077 fi
29078
29079
29080 for ac_header in sys/prctl.h sys/capability.h
29081 do :
29082   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29083 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29084 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29085   cat >>confdefs.h <<_ACEOF
29086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29087 _ACEOF
29088
29089 fi
29090
29091 done
29092
29093 for ac_func in prctl setreuid
29094 do :
29095   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29097 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29098   cat >>confdefs.h <<_ACEOF
29099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29100 _ACEOF
29101
29102 fi
29103 done
29104
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29106 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29107 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29108   $as_echo_n "(cached) " >&6
29109 else
29110   ac_check_lib_save_LIBS=$LIBS
29111 LIBS="-lcap  $LIBS"
29112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29113 /* end confdefs.h.  */
29114
29115 /* Override any GCC internal prototype to avoid an error.
29116    Use char because int might match the return type of a GCC
29117    builtin and then its argument prototype would still apply.  */
29118 #ifdef __cplusplus
29119 extern "C"
29120 #endif
29121 char cap_set_proc ();
29122 int
29123 main ()
29124 {
29125 return cap_set_proc ();
29126   ;
29127   return 0;
29128 }
29129 _ACEOF
29130 if ac_fn_c_try_link "$LINENO"; then :
29131   ac_cv_lib_cap_cap_set_proc=yes
29132 else
29133   ac_cv_lib_cap_cap_set_proc=no
29134 fi
29135 rm -f core conftest.err conftest.$ac_objext \
29136     conftest$ac_exeext conftest.$ac_ext
29137 LIBS=$ac_check_lib_save_LIBS
29138 fi
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29140 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29141 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29142   CAP_LIBS="-lcap"
29143 else
29144   CAP_LIBS=
29145 fi
29146
29147 if test x$CAP_LIBS = x-lcap; then
29148
29149 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29150
29151 fi
29152
29153
29154
29155 $as_echo "#define FDLIBS 1" >>confdefs.h
29156
29157
29158 CFLAGS=${CFLAGS--O}
29159
29160 if test x$have_gcc = xyes ; then
29161    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29162    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29163 fi
29164 LDFLAGS=${LDFLAGS--O}
29165 CPPFLAGS="$CPPFLAGS"
29166 CFLAGS="$CFLAGS"
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182 OBJLIST=
29183
29184
29185 lld="lld"
29186 llu="llu"
29187
29188 WCFLAGS=
29189 WLDFLAGS=
29190
29191 PFILES="platforms/Makefile"
29192 PSCMD="ps -e"
29193 WIN32=
29194 MACOSX=
29195
29196 hostname=`uname -n | cut -d '.' -f 1`
29197 if test x${hostname} = x ; then
29198    hostname="localhost"
29199 fi
29200 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29201 if test ! $? = 0; then
29202   hostname="localhost"
29203 fi
29204
29205 case "$DISTNAME" in
29206 aix)
29207    DISTVER=`uname -r`
29208    PSCMD="ps -e -o pid,comm"
29209    PFILES="${PFILES} \
29210       platforms/aix/Makefile"
29211    TAPEDRIVE="/dev/rmt0.1"
29212   ;;
29213 alpha)
29214    DISTVER=`uname -r`
29215    PTHREAD_LIB="-lpthread -lexc"
29216    if test "${CC}" = "gcc" ; then
29217       lld="lld"
29218       llu="llu"
29219    else
29220       lld="ld"
29221       llu="lu"
29222    fi
29223    TAPEDRIVE="/dev/nrmt0"
29224   ;;
29225 bsdi)
29226    DISTVER=`uname -a |awk '{print $3}'`
29227    TAPEDRIVE="/dev/nrmt0"
29228    PTHREAD_LIB="-pthread"
29229    CFLAGS="${CFLAGS} -pthread"
29230    PSCMD="ps -ax -o pid,command"
29231    lld="qd"
29232    llu="qu"
29233    PFILES="${PFILES} \
29234        platforms/bsdi/Makefile \
29235        platforms/bsdi/bacula-fd \
29236        platforms/bsdi/bacula-sd \
29237        platforms/bsdi/bacula-dir"
29238    largefile_support="yes"
29239   ;;
29240 cygwin)
29241    DISTVER=`uname -a |awk '{print $3}'`
29242    TAPEDRIVE="/dev/nrst0"
29243    WIN32=win32
29244    WCFLAGS="-mwindows"
29245    WLDFLAGS="-mwindows"
29246   ;;
29247 darwin)
29248    DISTVER=`uname -r`
29249    TAPEDRIVE="/dev/nst0"
29250    PSCMD="ps -e -o pid,command"
29251    MACOSX=macosx
29252    PFILES="${PFILES} \
29253       platforms/darwin/Makefile"
29254   ;;
29255 osx)
29256    DISTVER=`uname -r`
29257    TAPEDRIVE="/dev/nst0"
29258    PSCMD="ps -e -o pid,command"
29259    MACOSX=macosx
29260    PFILES="${PFILES} \
29261       platforms/osx/Makefile"
29262   ;;
29263 debian)
29264    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29265       DISTNAME="ubuntu"
29266    fi
29267    DISTVER=`cat /etc/debian_version`
29268    if test -f /etc/lsb-release ; then
29269       . /etc/lsb-release
29270       if test "x$DISTRIB_ID" != "x" ; then
29271          DISTNAME=$DISTRIB_ID
29272       fi
29273       if test "x$DISTRIB_RELEASE" != "x" ; then
29274          DISTVER=$DISTRIB_RELEASE
29275       fi
29276    fi
29277    if test "$DISTNAME" = "Ubuntu" ; then
29278       DISTNAME="ubuntu"
29279    fi
29280    TAPEDRIVE="/dev/nst0"
29281    PSCMD="ps -e -o pid,command"
29282    if test "$DISTNAME" = "ubuntu" ; then
29283       PFILES="${PFILES} \
29284          platforms/ubuntu/Makefile \
29285          platforms/ubuntu/bacula-fd \
29286          platforms/ubuntu/bacula-sd \
29287          platforms/ubuntu/bacula-dir"
29288    else
29289       PFILES="${PFILES} \
29290          platforms/debian/Makefile \
29291          platforms/debian/bacula-fd \
29292          platforms/debian/bacula-sd \
29293          platforms/debian/bacula-dir"
29294    fi
29295   ;;
29296 freebsd)
29297    DISTVER=`uname -a |awk '{print $3}'`
29298    VER=`echo $DISTVER | cut -c 1`
29299    if test x$VER = x4 ; then
29300       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29301       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29302    fi
29303    lld="qd"
29304    llu="qu"
29305    TAPEDRIVE="/dev/nrsa0"
29306    PSCMD="ps -ax -o pid,command"
29307    PFILES="${PFILES} \
29308        platforms/freebsd/Makefile \
29309        platforms/freebsd/bacula-fd \
29310        platforms/freebsd/bacula-sd \
29311        platforms/freebsd/bacula-dir"
29312    largefile_support="yes"
29313   ;;
29314 hpux)
29315    PSCMD="UNIX95=1; ps -e -o pid,comm"
29316    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29317    DISTVER=`uname -r`
29318    TAPEDRIVE="/dev/rmt/0hnb"
29319    PTHREAD_LIB="-lpthread"
29320    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29321
29322   ;;
29323 irix)
29324    DISTVER=`uname -r`
29325    TAPEDRIVE="/dev/rmt/0cbn"
29326    PSCMD="ps -e -o pid,comm"
29327    PFILES="${PFILES} \
29328        platforms/irix/Makefile \
29329        platforms/irix/bacula-fd \
29330        platforms/irix/bacula-sd \
29331        platforms/irix/bacula-dir"
29332   ;;
29333 netbsd)
29334    DISTVER=`uname -a |awk '{print $3}'`
29335    lld="qd"
29336    llu="qu"
29337    TAPEDRIVE="/dev/nrst0"
29338    PSCMD="ps -ax -o pid,command"
29339    PTHREAD_LIB="-pthread"
29340    CFLAGS="${CFLAGS} -pthread"
29341   ;;
29342 openbsd)
29343    DISTVER=`uname -a |awk '{print $3}'`
29344    lld="qd"
29345    llu="qu"
29346    TAPEDRIVE="/dev/nrst0"
29347    PSCMD="ps -ax -o pid,command"
29348    PTHREAD_LIB="-pthread"
29349    CFLAGS="${CFLAGS} -pthread"
29350    PFILES="${PFILES} \
29351        platforms/openbsd/Makefile \
29352        platforms/openbsd/bacula-fd \
29353        platforms/openbsd/bacula-sd \
29354        platforms/openbsd/bacula-dir"
29355   ;;
29356 redhat)
29357    if test -f /etc/whitebox-release ; then
29358       f=/etc/whitebox-release
29359    else
29360       f=/etc/redhat-release
29361    fi
29362    if test `cat $f | grep release |\
29363          cut -f 3 -d ' '`x = "Enterprise"x ; then
29364       DISTVER="Enterprise "`cat $f | grep release |\
29365           cut -f 6 -d ' '`
29366    else
29367        DISTVER=`cat /etc/redhat-release | grep release |\
29368            cut -f 5 -d ' '`
29369    fi
29370    TAPEDRIVE="/dev/nst0"
29371    PSCMD="ps -e -o pid,command"
29372    PFILES="${PFILES} \
29373        platforms/redhat/Makefile \
29374        platforms/redhat/bacula-fd \
29375        platforms/redhat/bacula-sd \
29376        platforms/redhat/bacula-dir
29377        "
29378   ;;
29379 mandrake)
29380    DISTVER=`cat /etc/mandrake-release | grep release |\
29381       cut -f 5 -d ' '`
29382    TAPEDRIVE="/dev/nst0"
29383    PSCMD="ps -e -o pid,command"
29384    PFILES="${PFILES} \
29385        platforms/mandrake/Makefile \
29386        platforms/mandrake/bacula-fd \
29387        platforms/mandrake/bacula-sd \
29388        platforms/mandrake/bacula-dir \
29389        "
29390   ;;
29391 gentoo)
29392    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29393    TAPEDRIVE="/dev/nst0"
29394    PSCMD="ps -e -o pid,command"
29395    PFILES="${PFILES} \
29396        platforms/gentoo/Makefile \
29397     platforms/gentoo/bacula-init \
29398        platforms/gentoo/bacula-fd \
29399        platforms/gentoo/bacula-sd \
29400        platforms/gentoo/bacula-dir"
29401   ;;
29402 slackware)
29403    DISTVER=`cat /etc/slackware-version`
29404    TAPEDRIVE="/dev/nst0"
29405    PSCMD="ps -e -o pid,command"
29406    PFILES="${PFILES} \
29407        platforms/slackware/Makefile \
29408        platforms/slackware/rc.bacula-fd \
29409        platforms/slackware/rc.bacula-sd \
29410        platforms/slackware/rc.bacula-dir\
29411        platforms/slackware/functions.bacula"
29412   ;;
29413 solaris)
29414    DISTVER=`uname -r`
29415    TAPEDRIVE="/dev/rmt/0cbn"
29416    PSCMD="ps -e -o pid,comm"
29417    PFILES="${PFILES} \
29418        platforms/solaris/Makefile \
29419        platforms/solaris/bacula-fd \
29420        platforms/solaris/bacula-sd \
29421        platforms/solaris/bacula-dir"
29422    case ${DISTVER} in
29423    5.5|5.6)
29424       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29425
29426       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29427
29428       ;;
29429    5.7|5.8)
29430       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29431
29432       ;;
29433    *)
29434       ;;
29435    esac
29436    LIBS="$LIBS -lresolv -lrt"
29437   ;;
29438 suse)
29439    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29440        cut -f 3 -d ' '`
29441    TAPEDRIVE="/dev/nst0"
29442    PSCMD="ps -e -o pid,command"
29443    PFILES="${PFILES} \
29444        platforms/suse/Makefile \
29445        platforms/suse/bacula-fd \
29446        platforms/suse/bacula-sd \
29447        platforms/suse/bacula-dir \
29448        platforms/suse/bacula"
29449   ;;
29450 suse5)
29451    DISTNAME=suse
29452    DISTVER=5.x
29453    TAPEDRIVE="/dev/nst0"
29454    PSCMD="ps -e -o pid,command"
29455    PFILES="${PFILES} \
29456        platforms/suse/Makefile \
29457        platforms/suse/bacula-fd \
29458        platforms/suse/bacula-sd \
29459        platforms/suse/bacula-dir"
29460   ;;
29461 unknown)
29462    DISTVER=unknown
29463    TAPEDRIVE="/dev/nst0"
29464   ;;
29465 *)
29466   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29467   ;;
29468 esac
29469
29470
29471
29472 LIBS="$PTHREAD_LIB $LIBS"
29473
29474 cat >>confdefs.h <<_ACEOF
29475 #define lld "$lld"
29476 _ACEOF
29477
29478 cat >>confdefs.h <<_ACEOF
29479 #define llu "$llu"
29480 _ACEOF
29481
29482
29483
29484
29485
29486
29487
29488
29489 MCOMMON=./autoconf/Make.common
29490
29491
29492 if test "x${subsysdir}" = "x${sbindir}" ; then
29493    echo " "
29494    echo " "
29495    echo "You have set both --sbindir and --with-subsys-dir"
29496    echo "  equal to: ${subsysdir} "
29497    echo "This is not permitted. Please reconfigure."
29498    echo " "
29499    echo "Aborting configuration ..."
29500    echo " "
29501    echo " "
29502    exit 1
29503 fi
29504
29505 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
29506
29507 ac_config_commands="$ac_config_commands default"
29508
29509 cat >confcache <<\_ACEOF
29510 # This file is a shell script that caches the results of configure
29511 # tests run on this system so they can be shared between configure
29512 # scripts and configure runs, see configure's option --config-cache.
29513 # It is not useful on other systems.  If it contains results you don't
29514 # want to keep, you may remove or edit it.
29515 #
29516 # config.status only pays attention to the cache file if you give it
29517 # the --recheck option to rerun configure.
29518 #
29519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29521 # following values.
29522
29523 _ACEOF
29524
29525 # The following way of writing the cache mishandles newlines in values,
29526 # but we know of no workaround that is simple, portable, and efficient.
29527 # So, we kill variables containing newlines.
29528 # Ultrix sh set writes to stderr and can't be redirected directly,
29529 # and sets the high bit in the cache file unless we assign to the vars.
29530 (
29531   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29532     eval ac_val=\$$ac_var
29533     case $ac_val in #(
29534     *${as_nl}*)
29535       case $ac_var in #(
29536       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29538       esac
29539       case $ac_var in #(
29540       _ | IFS | as_nl) ;; #(
29541       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29542       *) { eval $ac_var=; unset $ac_var;} ;;
29543       esac ;;
29544     esac
29545   done
29546
29547   (set) 2>&1 |
29548     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29549     *${as_nl}ac_space=\ *)
29550       # `set' does not quote correctly, so add quotes: double-quote
29551       # substitution turns \\\\ into \\, and sed turns \\ into \.
29552       sed -n \
29553         "s/'/'\\\\''/g;
29554           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29555       ;; #(
29556     *)
29557       # `set' quotes correctly as required by POSIX, so do not add quotes.
29558       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29559       ;;
29560     esac |
29561     sort
29562 ) |
29563   sed '
29564      /^ac_cv_env_/b end
29565      t clear
29566      :clear
29567      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29568      t end
29569      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29570      :end' >>confcache
29571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29572   if test -w "$cache_file"; then
29573     if test "x$cache_file" != "x/dev/null"; then
29574       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29575 $as_echo "$as_me: updating cache $cache_file" >&6;}
29576       if test ! -f "$cache_file" || test -h "$cache_file"; then
29577         cat confcache >"$cache_file"
29578       else
29579         case $cache_file in #(
29580         */* | ?:*)
29581           mv -f confcache "$cache_file"$$ &&
29582           mv -f "$cache_file"$$ "$cache_file" ;; #(
29583         *)
29584           mv -f confcache "$cache_file" ;;
29585         esac
29586       fi
29587     fi
29588   else
29589     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29590 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29591   fi
29592 fi
29593 rm -f confcache
29594
29595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29596 # Let make expand exec_prefix.
29597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29598
29599 DEFS=-DHAVE_CONFIG_H
29600
29601 ac_libobjs=
29602 ac_ltlibobjs=
29603 U=
29604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29605   # 1. Remove the extension, and $U if already installed.
29606   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29607   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29608   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29609   #    will be set to the directory where LIBOBJS objects are built.
29610   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29611   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29612 done
29613 LIBOBJS=$ac_libobjs
29614
29615 LTLIBOBJS=$ac_ltlibobjs
29616
29617
29618
29619
29620 : "${CONFIG_STATUS=./config.status}"
29621 ac_write_fail=0
29622 ac_clean_files_save=$ac_clean_files
29623 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29625 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29626 as_write_fail=0
29627 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29628 #! $SHELL
29629 # Generated by $as_me.
29630 # Run this file to recreate the current configuration.
29631 # Compiler output produced by configure, useful for debugging
29632 # configure, is in config.log if it exists.
29633
29634 debug=false
29635 ac_cs_recheck=false
29636 ac_cs_silent=false
29637
29638 SHELL=\${CONFIG_SHELL-$SHELL}
29639 export SHELL
29640 _ASEOF
29641 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29642 ## -------------------- ##
29643 ## M4sh Initialization. ##
29644 ## -------------------- ##
29645
29646 # Be more Bourne compatible
29647 DUALCASE=1; export DUALCASE # for MKS sh
29648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29649   emulate sh
29650   NULLCMD=:
29651   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29652   # is contrary to our usage.  Disable this feature.
29653   alias -g '${1+"$@"}'='"$@"'
29654   setopt NO_GLOB_SUBST
29655 else
29656   case `(set -o) 2>/dev/null` in #(
29657   *posix*) :
29658     set -o posix ;; #(
29659   *) :
29660      ;;
29661 esac
29662 fi
29663
29664
29665 as_nl='
29666 '
29667 export as_nl
29668 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29669 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29672 # Prefer a ksh shell builtin over an external printf program on Solaris,
29673 # but without wasting forks for bash or zsh.
29674 if test -z "$BASH_VERSION$ZSH_VERSION" \
29675     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29676   as_echo='print -r --'
29677   as_echo_n='print -rn --'
29678 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29679   as_echo='printf %s\n'
29680   as_echo_n='printf %s'
29681 else
29682   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29683     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29684     as_echo_n='/usr/ucb/echo -n'
29685   else
29686     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29687     as_echo_n_body='eval
29688       arg=$1;
29689       case $arg in #(
29690       *"$as_nl"*)
29691         expr "X$arg" : "X\\(.*\\)$as_nl";
29692         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29693       esac;
29694       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29695     '
29696     export as_echo_n_body
29697     as_echo_n='sh -c $as_echo_n_body as_echo'
29698   fi
29699   export as_echo_body
29700   as_echo='sh -c $as_echo_body as_echo'
29701 fi
29702
29703 # The user is always right.
29704 if test "${PATH_SEPARATOR+set}" != set; then
29705   PATH_SEPARATOR=:
29706   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29707     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29708       PATH_SEPARATOR=';'
29709   }
29710 fi
29711
29712
29713 # IFS
29714 # We need space, tab and new line, in precisely that order.  Quoting is
29715 # there to prevent editors from complaining about space-tab.
29716 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29717 # splitting by setting IFS to empty value.)
29718 IFS=" ""        $as_nl"
29719
29720 # Find who we are.  Look in the path if we contain no directory separator.
29721 as_myself=
29722 case $0 in #((
29723   *[\\/]* ) as_myself=$0 ;;
29724   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29725 for as_dir in $PATH
29726 do
29727   IFS=$as_save_IFS
29728   test -z "$as_dir" && as_dir=.
29729     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29730   done
29731 IFS=$as_save_IFS
29732
29733      ;;
29734 esac
29735 # We did not find ourselves, most probably we were run as `sh COMMAND'
29736 # in which case we are not to be found in the path.
29737 if test "x$as_myself" = x; then
29738   as_myself=$0
29739 fi
29740 if test ! -f "$as_myself"; then
29741   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29742   exit 1
29743 fi
29744
29745 # Unset variables that we do not need and which cause bugs (e.g. in
29746 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29747 # suppresses any "Segmentation fault" message there.  '((' could
29748 # trigger a bug in pdksh 5.2.14.
29749 for as_var in BASH_ENV ENV MAIL MAILPATH
29750 do eval test x\${$as_var+set} = xset \
29751   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29752 done
29753 PS1='$ '
29754 PS2='> '
29755 PS4='+ '
29756
29757 # NLS nuisances.
29758 LC_ALL=C
29759 export LC_ALL
29760 LANGUAGE=C
29761 export LANGUAGE
29762
29763 # CDPATH.
29764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29765
29766
29767 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29768 # ----------------------------------------
29769 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29770 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29771 # script with STATUS, using 1 if that was 0.
29772 as_fn_error ()
29773 {
29774   as_status=$1; test $as_status -eq 0 && as_status=1
29775   if test "$4"; then
29776     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29777     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29778   fi
29779   $as_echo "$as_me: error: $2" >&2
29780   as_fn_exit $as_status
29781 } # as_fn_error
29782
29783
29784 # as_fn_set_status STATUS
29785 # -----------------------
29786 # Set $? to STATUS, without forking.
29787 as_fn_set_status ()
29788 {
29789   return $1
29790 } # as_fn_set_status
29791
29792 # as_fn_exit STATUS
29793 # -----------------
29794 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29795 as_fn_exit ()
29796 {
29797   set +e
29798   as_fn_set_status $1
29799   exit $1
29800 } # as_fn_exit
29801
29802 # as_fn_unset VAR
29803 # ---------------
29804 # Portably unset VAR.
29805 as_fn_unset ()
29806 {
29807   { eval $1=; unset $1;}
29808 }
29809 as_unset=as_fn_unset
29810 # as_fn_append VAR VALUE
29811 # ----------------------
29812 # Append the text in VALUE to the end of the definition contained in VAR. Take
29813 # advantage of any shell optimizations that allow amortized linear growth over
29814 # repeated appends, instead of the typical quadratic growth present in naive
29815 # implementations.
29816 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29817   eval 'as_fn_append ()
29818   {
29819     eval $1+=\$2
29820   }'
29821 else
29822   as_fn_append ()
29823   {
29824     eval $1=\$$1\$2
29825   }
29826 fi # as_fn_append
29827
29828 # as_fn_arith ARG...
29829 # ------------------
29830 # Perform arithmetic evaluation on the ARGs, and store the result in the
29831 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29832 # must be portable across $(()) and expr.
29833 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29834   eval 'as_fn_arith ()
29835   {
29836     as_val=$(( $* ))
29837   }'
29838 else
29839   as_fn_arith ()
29840   {
29841     as_val=`expr "$@" || test $? -eq 1`
29842   }
29843 fi # as_fn_arith
29844
29845
29846 if expr a : '\(a\)' >/dev/null 2>&1 &&
29847    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29848   as_expr=expr
29849 else
29850   as_expr=false
29851 fi
29852
29853 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29854   as_basename=basename
29855 else
29856   as_basename=false
29857 fi
29858
29859 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29860   as_dirname=dirname
29861 else
29862   as_dirname=false
29863 fi
29864
29865 as_me=`$as_basename -- "$0" ||
29866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29867          X"$0" : 'X\(//\)$' \| \
29868          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29869 $as_echo X/"$0" |
29870     sed '/^.*\/\([^/][^/]*\)\/*$/{
29871             s//\1/
29872             q
29873           }
29874           /^X\/\(\/\/\)$/{
29875             s//\1/
29876             q
29877           }
29878           /^X\/\(\/\).*/{
29879             s//\1/
29880             q
29881           }
29882           s/.*/./; q'`
29883
29884 # Avoid depending upon Character Ranges.
29885 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29886 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29887 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29888 as_cr_digits='0123456789'
29889 as_cr_alnum=$as_cr_Letters$as_cr_digits
29890
29891 ECHO_C= ECHO_N= ECHO_T=
29892 case `echo -n x` in #(((((
29893 -n*)
29894   case `echo 'xy\c'` in
29895   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29896   xy)  ECHO_C='\c';;
29897   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29898        ECHO_T=' ';;
29899   esac;;
29900 *)
29901   ECHO_N='-n';;
29902 esac
29903
29904 rm -f conf$$ conf$$.exe conf$$.file
29905 if test -d conf$$.dir; then
29906   rm -f conf$$.dir/conf$$.file
29907 else
29908   rm -f conf$$.dir
29909   mkdir conf$$.dir 2>/dev/null
29910 fi
29911 if (echo >conf$$.file) 2>/dev/null; then
29912   if ln -s conf$$.file conf$$ 2>/dev/null; then
29913     as_ln_s='ln -s'
29914     # ... but there are two gotchas:
29915     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29916     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29917     # In both cases, we have to default to `cp -p'.
29918     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29919       as_ln_s='cp -p'
29920   elif ln conf$$.file conf$$ 2>/dev/null; then
29921     as_ln_s=ln
29922   else
29923     as_ln_s='cp -p'
29924   fi
29925 else
29926   as_ln_s='cp -p'
29927 fi
29928 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29929 rmdir conf$$.dir 2>/dev/null
29930
29931
29932 # as_fn_mkdir_p
29933 # -------------
29934 # Create "$as_dir" as a directory, including parents if necessary.
29935 as_fn_mkdir_p ()
29936 {
29937
29938   case $as_dir in #(
29939   -*) as_dir=./$as_dir;;
29940   esac
29941   test -d "$as_dir" || eval $as_mkdir_p || {
29942     as_dirs=
29943     while :; do
29944       case $as_dir in #(
29945       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29946       *) as_qdir=$as_dir;;
29947       esac
29948       as_dirs="'$as_qdir' $as_dirs"
29949       as_dir=`$as_dirname -- "$as_dir" ||
29950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29951          X"$as_dir" : 'X\(//\)[^/]' \| \
29952          X"$as_dir" : 'X\(//\)$' \| \
29953          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29954 $as_echo X"$as_dir" |
29955     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29956             s//\1/
29957             q
29958           }
29959           /^X\(\/\/\)[^/].*/{
29960             s//\1/
29961             q
29962           }
29963           /^X\(\/\/\)$/{
29964             s//\1/
29965             q
29966           }
29967           /^X\(\/\).*/{
29968             s//\1/
29969             q
29970           }
29971           s/.*/./; q'`
29972       test -d "$as_dir" && break
29973     done
29974     test -z "$as_dirs" || eval "mkdir $as_dirs"
29975   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29976
29977
29978 } # as_fn_mkdir_p
29979 if mkdir -p . 2>/dev/null; then
29980   as_mkdir_p='mkdir -p "$as_dir"'
29981 else
29982   test -d ./-p && rmdir ./-p
29983   as_mkdir_p=false
29984 fi
29985
29986 if test -x / >/dev/null 2>&1; then
29987   as_test_x='test -x'
29988 else
29989   if ls -dL / >/dev/null 2>&1; then
29990     as_ls_L_option=L
29991   else
29992     as_ls_L_option=
29993   fi
29994   as_test_x='
29995     eval sh -c '\''
29996       if test -d "$1"; then
29997         test -d "$1/.";
29998       else
29999         case $1 in #(
30000         -*)set "./$1";;
30001         esac;
30002         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30003         ???[sx]*):;;*)false;;esac;fi
30004     '\'' sh
30005   '
30006 fi
30007 as_executable_p=$as_test_x
30008
30009 # Sed expression to map a string onto a valid CPP name.
30010 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30011
30012 # Sed expression to map a string onto a valid variable name.
30013 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30014
30015
30016 exec 6>&1
30017 ## ----------------------------------- ##
30018 ## Main body of $CONFIG_STATUS script. ##
30019 ## ----------------------------------- ##
30020 _ASEOF
30021 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30022
30023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30024 # Save the log message, to keep $0 and so on meaningful, and to
30025 # report actual input values of CONFIG_FILES etc. instead of their
30026 # values after options handling.
30027 ac_log="
30028 This file was extended by bacula $as_me 5.1.14, which was
30029 generated by GNU Autoconf 2.68.  Invocation command line was
30030
30031   CONFIG_FILES    = $CONFIG_FILES
30032   CONFIG_HEADERS  = $CONFIG_HEADERS
30033   CONFIG_LINKS    = $CONFIG_LINKS
30034   CONFIG_COMMANDS = $CONFIG_COMMANDS
30035   $ $0 $@
30036
30037 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30038 "
30039
30040 _ACEOF
30041
30042 case $ac_config_files in *"
30043 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30044 esac
30045
30046 case $ac_config_headers in *"
30047 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30048 esac
30049
30050
30051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30052 # Files that config.status was made for.
30053 config_files="$ac_config_files"
30054 config_headers="$ac_config_headers"
30055 config_commands="$ac_config_commands"
30056
30057 _ACEOF
30058
30059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30060 ac_cs_usage="\
30061 \`$as_me' instantiates files and other configuration actions
30062 from templates according to the current configuration.  Unless the files
30063 and actions are specified as TAGs, all are instantiated by default.
30064
30065 Usage: $0 [OPTION]... [TAG]...
30066
30067   -h, --help       print this help, then exit
30068   -V, --version    print version number and configuration settings, then exit
30069       --config     print configuration, then exit
30070   -q, --quiet, --silent
30071                    do not print progress messages
30072   -d, --debug      don't remove temporary files
30073       --recheck    update $as_me by reconfiguring in the same conditions
30074       --file=FILE[:TEMPLATE]
30075                    instantiate the configuration file FILE
30076       --header=FILE[:TEMPLATE]
30077                    instantiate the configuration header FILE
30078
30079 Configuration files:
30080 $config_files
30081
30082 Configuration headers:
30083 $config_headers
30084
30085 Configuration commands:
30086 $config_commands
30087
30088 Report bugs to the package provider."
30089
30090 _ACEOF
30091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30092 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30093 ac_cs_version="\\
30094 bacula config.status 5.1.14
30095 configured by $0, generated by GNU Autoconf 2.68,
30096   with options \\"\$ac_cs_config\\"
30097
30098 Copyright (C) 2010 Free Software Foundation, Inc.
30099 This config.status script is free software; the Free Software Foundation
30100 gives unlimited permission to copy, distribute and modify it."
30101
30102 ac_pwd='$ac_pwd'
30103 srcdir='$srcdir'
30104 INSTALL='$INSTALL'
30105 AWK='$AWK'
30106 test -n "\$AWK" || AWK=awk
30107 _ACEOF
30108
30109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30110 # The default lists apply if the user does not specify any file.
30111 ac_need_defaults=:
30112 while test $# != 0
30113 do
30114   case $1 in
30115   --*=?*)
30116     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30117     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30118     ac_shift=:
30119     ;;
30120   --*=)
30121     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30122     ac_optarg=
30123     ac_shift=:
30124     ;;
30125   *)
30126     ac_option=$1
30127     ac_optarg=$2
30128     ac_shift=shift
30129     ;;
30130   esac
30131
30132   case $ac_option in
30133   # Handling of the options.
30134   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30135     ac_cs_recheck=: ;;
30136   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30137     $as_echo "$ac_cs_version"; exit ;;
30138   --config | --confi | --conf | --con | --co | --c )
30139     $as_echo "$ac_cs_config"; exit ;;
30140   --debug | --debu | --deb | --de | --d | -d )
30141     debug=: ;;
30142   --file | --fil | --fi | --f )
30143     $ac_shift
30144     case $ac_optarg in
30145     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30146     '') as_fn_error $? "missing file argument" ;;
30147     esac
30148     as_fn_append CONFIG_FILES " '$ac_optarg'"
30149     ac_need_defaults=false;;
30150   --header | --heade | --head | --hea )
30151     $ac_shift
30152     case $ac_optarg in
30153     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30154     esac
30155     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30156     ac_need_defaults=false;;
30157   --he | --h)
30158     # Conflict between --help and --header
30159     as_fn_error $? "ambiguous option: \`$1'
30160 Try \`$0 --help' for more information.";;
30161   --help | --hel | -h )
30162     $as_echo "$ac_cs_usage"; exit ;;
30163   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30164   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30165     ac_cs_silent=: ;;
30166
30167   # This is an error.
30168   -*) as_fn_error $? "unrecognized option: \`$1'
30169 Try \`$0 --help' for more information." ;;
30170
30171   *) as_fn_append ac_config_targets " $1"
30172      ac_need_defaults=false ;;
30173
30174   esac
30175   shift
30176 done
30177
30178 ac_configure_extra_args=
30179
30180 if $ac_cs_silent; then
30181   exec 6>/dev/null
30182   ac_configure_extra_args="$ac_configure_extra_args --silent"
30183 fi
30184
30185 _ACEOF
30186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30187 if \$ac_cs_recheck; then
30188   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30189   shift
30190   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30191   CONFIG_SHELL='$SHELL'
30192   export CONFIG_SHELL
30193   exec "\$@"
30194 fi
30195
30196 _ACEOF
30197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30198 exec 5>>config.log
30199 {
30200   echo
30201   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30202 ## Running $as_me. ##
30203 _ASBOX
30204   $as_echo "$ac_log"
30205 } >&5
30206
30207 _ACEOF
30208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30209 #
30210 # INIT-COMMANDS
30211 #
30212
30213
30214 # The HP-UX ksh and POSIX shell print the target directory to stdout
30215 # if CDPATH is set.
30216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30217
30218 sed_quote_subst='$sed_quote_subst'
30219 double_quote_subst='$double_quote_subst'
30220 delay_variable_subst='$delay_variable_subst'
30221 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30222 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30223 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30224 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30225 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30226 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30227 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30228 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30229 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30230 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30231 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30232 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30233 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30234 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30235 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30236 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30237 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30238 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30239 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30240 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30241 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30242 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30243 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30244 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30245 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30246 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30247 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30248 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30249 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30250 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30251 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30252 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30253 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30254 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30255 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30256 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30257 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30258 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30259 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30260 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30261 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30262 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30263 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30264 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30265 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
30266 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30267 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30268 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30269 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30270 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30271 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30272 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30273 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30274 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30275 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30276 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30277 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30278 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30279 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30280 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30281 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30282 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30283 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30284 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30285 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30286 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30287 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30288 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30289 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30290 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30291 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30292 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30293 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30294 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30295 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30296 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30297 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30298 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30299 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30300 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30301 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30302 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30303 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30304 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30305 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30306 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30307 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30308 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30309 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30310 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30311 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30312 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30313 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30314 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30315 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30316 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30317 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30318 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30319 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30320 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30321 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30322 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30323 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30324 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30325 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30326 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30327 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30328 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30329 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30330 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30331 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30332 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30333 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30334 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30335 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30336 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30337 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30338 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30339 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30340 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30341 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30342 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30343 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30344 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30345 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30346 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30347 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30348 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30349 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30350 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30351 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30352 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30353 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30354 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30355 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30356 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30357 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30358 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30359 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30360 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30361 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30362 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30363 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30364 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30365 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30366 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30367 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30368 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30369 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30370 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30371 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30372 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30373 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30374 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30375 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30376 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30377 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30378 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30379 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30380 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30381 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30382 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30383 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30384 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30385 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30386 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30387 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30388 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30389 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30390 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30391 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30392
30393 LTCC='$LTCC'
30394 LTCFLAGS='$LTCFLAGS'
30395 compiler='$compiler_DEFAULT'
30396
30397 # Quote evaled strings.
30398 for var in SED \
30399 GREP \
30400 EGREP \
30401 FGREP \
30402 LD \
30403 NM \
30404 LN_S \
30405 lt_SP2NL \
30406 lt_NL2SP \
30407 reload_flag \
30408 OBJDUMP \
30409 deplibs_check_method \
30410 file_magic_cmd \
30411 AR \
30412 AR_FLAGS \
30413 STRIP \
30414 RANLIB \
30415 CC \
30416 CFLAGS \
30417 compiler \
30418 lt_cv_sys_global_symbol_pipe \
30419 lt_cv_sys_global_symbol_to_cdecl \
30420 lt_cv_sys_global_symbol_to_c_name_address \
30421 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30422 SHELL \
30423 ECHO \
30424 lt_prog_compiler_no_builtin_flag \
30425 lt_prog_compiler_wl \
30426 lt_prog_compiler_pic \
30427 lt_prog_compiler_static \
30428 lt_cv_prog_compiler_c_o \
30429 need_locks \
30430 DSYMUTIL \
30431 NMEDIT \
30432 LIPO \
30433 OTOOL \
30434 OTOOL64 \
30435 shrext_cmds \
30436 export_dynamic_flag_spec \
30437 whole_archive_flag_spec \
30438 compiler_needs_object \
30439 with_gnu_ld \
30440 allow_undefined_flag \
30441 no_undefined_flag \
30442 hardcode_libdir_flag_spec \
30443 hardcode_libdir_flag_spec_ld \
30444 hardcode_libdir_separator \
30445 fix_srcfile_path \
30446 exclude_expsyms \
30447 include_expsyms \
30448 file_list_spec \
30449 variables_saved_for_relink \
30450 libname_spec \
30451 library_names_spec \
30452 soname_spec \
30453 finish_eval \
30454 old_striplib \
30455 striplib \
30456 compiler_lib_search_dirs \
30457 predep_objects \
30458 postdep_objects \
30459 predeps \
30460 postdeps \
30461 compiler_lib_search_path \
30462 LD_CXX \
30463 compiler_CXX \
30464 lt_prog_compiler_no_builtin_flag_CXX \
30465 lt_prog_compiler_wl_CXX \
30466 lt_prog_compiler_pic_CXX \
30467 lt_prog_compiler_static_CXX \
30468 lt_cv_prog_compiler_c_o_CXX \
30469 export_dynamic_flag_spec_CXX \
30470 whole_archive_flag_spec_CXX \
30471 compiler_needs_object_CXX \
30472 with_gnu_ld_CXX \
30473 allow_undefined_flag_CXX \
30474 no_undefined_flag_CXX \
30475 hardcode_libdir_flag_spec_CXX \
30476 hardcode_libdir_flag_spec_ld_CXX \
30477 hardcode_libdir_separator_CXX \
30478 fix_srcfile_path_CXX \
30479 exclude_expsyms_CXX \
30480 include_expsyms_CXX \
30481 file_list_spec_CXX \
30482 compiler_lib_search_dirs_CXX \
30483 predep_objects_CXX \
30484 postdep_objects_CXX \
30485 predeps_CXX \
30486 postdeps_CXX \
30487 compiler_lib_search_path_CXX; do
30488     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30489     *[\\\\\\\`\\"\\\$]*)
30490       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30491       ;;
30492     *)
30493       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30494       ;;
30495     esac
30496 done
30497
30498 # Double-quote double-evaled strings.
30499 for var in reload_cmds \
30500 old_postinstall_cmds \
30501 old_postuninstall_cmds \
30502 old_archive_cmds \
30503 extract_expsyms_cmds \
30504 old_archive_from_new_cmds \
30505 old_archive_from_expsyms_cmds \
30506 archive_cmds \
30507 archive_expsym_cmds \
30508 module_cmds \
30509 module_expsym_cmds \
30510 export_symbols_cmds \
30511 prelink_cmds \
30512 postinstall_cmds \
30513 postuninstall_cmds \
30514 finish_cmds \
30515 sys_lib_search_path_spec \
30516 sys_lib_dlsearch_path_spec \
30517 old_archive_cmds_CXX \
30518 old_archive_from_new_cmds_CXX \
30519 old_archive_from_expsyms_cmds_CXX \
30520 archive_cmds_CXX \
30521 archive_expsym_cmds_CXX \
30522 module_cmds_CXX \
30523 module_expsym_cmds_CXX \
30524 export_symbols_cmds_CXX \
30525 prelink_cmds_CXX; do
30526     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30527     *[\\\\\\\`\\"\\\$]*)
30528       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30529       ;;
30530     *)
30531       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30532       ;;
30533     esac
30534 done
30535
30536 # Fix-up fallback echo if it was mangled by the above quoting rules.
30537 case \$lt_ECHO in
30538 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30539   ;;
30540 esac
30541
30542 ac_aux_dir='$ac_aux_dir'
30543 xsi_shell='$xsi_shell'
30544 lt_shell_append='$lt_shell_append'
30545
30546 # See if we are running on zsh, and set the options which allow our
30547 # commands through without removal of \ escapes INIT.
30548 if test -n "\${ZSH_VERSION+set}" ; then
30549    setopt NO_GLOB_SUBST
30550 fi
30551
30552
30553     PACKAGE='$PACKAGE'
30554     VERSION='$VERSION'
30555     TIMESTAMP='$TIMESTAMP'
30556     RM='$RM'
30557     ofile='$ofile'
30558
30559
30560
30561
30562
30563 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30564     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30565     # from automake.
30566     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30567     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30568     LINGUAS="${LINGUAS-%UNSET%}"
30569
30570
30571 _ACEOF
30572
30573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30574
30575 # Handling of arguments.
30576 for ac_config_target in $ac_config_targets
30577 do
30578   case $ac_config_target in
30579     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30580     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30581     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30582     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30583     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30584     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30585     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30586     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30587     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30588     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30589     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30590     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30591     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30592     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30593     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30594     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30595     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30596     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30597     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30598     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30599     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30600     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30601     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30602     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30603     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30604     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30605     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30606     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30607     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30608     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30609     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30610     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30611     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30612     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30613     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30614     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30615     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30616     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30617     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30618     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30619     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30620     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30621     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30622     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30623     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30624     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30625     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30626     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30627     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30628     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30629     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30630     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30631     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30632     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30633     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30634     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30635     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30636     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30637     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30638     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30639     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30640     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30641     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30642     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30643     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30644     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30645     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30646     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30647     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30648     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30649     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30650     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30651     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30652     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30653     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30654     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30655     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30656     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30657     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30658     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30659     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30660     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30661     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30662     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30663     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30664     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30665     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30666     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30667     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30668     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30669     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30670     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30671     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30672     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30673     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30674     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30675     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30676     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30677     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30678     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30679     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30680     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30681     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30682     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30683     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30684     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30685
30686   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30687   esac
30688 done
30689
30690
30691 # If the user did not use the arguments to specify the items to instantiate,
30692 # then the envvar interface is used.  Set only those that are not.
30693 # We use the long form for the default assignment because of an extremely
30694 # bizarre bug on SunOS 4.1.3.
30695 if $ac_need_defaults; then
30696   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30697   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30698   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30699 fi
30700
30701 # Have a temporary directory for convenience.  Make it in the build tree
30702 # simply because there is no reason against having it here, and in addition,
30703 # creating and moving files from /tmp can sometimes cause problems.
30704 # Hook for its removal unless debugging.
30705 # Note that there is a small window in which the directory will not be cleaned:
30706 # after its creation but before its name has been assigned to `$tmp'.
30707 $debug ||
30708 {
30709   tmp= ac_tmp=
30710   trap 'exit_status=$?
30711   : "${ac_tmp:=$tmp}"
30712   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30713 ' 0
30714   trap 'as_fn_exit 1' 1 2 13 15
30715 }
30716 # Create a (secure) tmp directory for tmp files.
30717
30718 {
30719   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30720   test -d "$tmp"
30721 }  ||
30722 {
30723   tmp=./conf$$-$RANDOM
30724   (umask 077 && mkdir "$tmp")
30725 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30726 ac_tmp=$tmp
30727
30728 # Set up the scripts for CONFIG_FILES section.
30729 # No need to generate them if there are no CONFIG_FILES.
30730 # This happens for instance with `./config.status config.h'.
30731 if test -n "$CONFIG_FILES"; then
30732
30733 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30734   ac_cs_awk_getline=:
30735   ac_cs_awk_pipe_init=
30736   ac_cs_awk_read_file='
30737       while ((getline aline < (F[key])) > 0)
30738         print(aline)
30739       close(F[key])'
30740   ac_cs_awk_pipe_fini=
30741 else
30742   ac_cs_awk_getline=false
30743   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30744   ac_cs_awk_read_file='
30745       print "|#_!!_#|"
30746       print "cat " F[key] " &&"
30747       '$ac_cs_awk_pipe_init
30748   # The final `:' finishes the AND list.
30749   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30750 fi
30751 ac_cr=`echo X | tr X '\015'`
30752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30753 # But we know of no other shell where ac_cr would be empty at this
30754 # point, so we can use a bashism as a fallback.
30755 if test "x$ac_cr" = x; then
30756   eval ac_cr=\$\'\\r\'
30757 fi
30758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30760   ac_cs_awk_cr='\\r'
30761 else
30762   ac_cs_awk_cr=$ac_cr
30763 fi
30764
30765 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30766 _ACEOF
30767
30768 # Create commands to substitute file output variables.
30769 {
30770   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30771   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
30772   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30773   echo "_ACAWK" &&
30774   echo "_ACEOF"
30775 } >conf$$files.sh &&
30776 . ./conf$$files.sh ||
30777   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30778 rm -f conf$$files.sh
30779
30780 {
30781   echo "cat >conf$$subs.awk <<_ACEOF" &&
30782   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30783   echo "_ACEOF"
30784 } >conf$$subs.sh ||
30785   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30786 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30787 ac_delim='%!_!# '
30788 for ac_last_try in false false false false false :; do
30789   . ./conf$$subs.sh ||
30790     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30791
30792   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30793   if test $ac_delim_n = $ac_delim_num; then
30794     break
30795   elif $ac_last_try; then
30796     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30797   else
30798     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30799   fi
30800 done
30801 rm -f conf$$subs.sh
30802
30803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30804 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30805 _ACEOF
30806 sed -n '
30807 h
30808 s/^/S["/; s/!.*/"]=/
30809 p
30810 g
30811 s/^[^!]*!//
30812 :repl
30813 t repl
30814 s/'"$ac_delim"'$//
30815 t delim
30816 :nl
30817 h
30818 s/\(.\{148\}\)..*/\1/
30819 t more1
30820 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30821 p
30822 n
30823 b repl
30824 :more1
30825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30826 p
30827 g
30828 s/.\{148\}//
30829 t nl
30830 :delim
30831 h
30832 s/\(.\{148\}\)..*/\1/
30833 t more2
30834 s/["\\]/\\&/g; s/^/"/; s/$/"/
30835 p
30836 b
30837 :more2
30838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30839 p
30840 g
30841 s/.\{148\}//
30842 t delim
30843 ' <conf$$subs.awk | sed '
30844 /^[^""]/{
30845   N
30846   s/\n//
30847 }
30848 ' >>$CONFIG_STATUS || ac_write_fail=1
30849 rm -f conf$$subs.awk
30850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30851 _ACAWK
30852 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30853   for (key in S) S_is_set[key] = 1
30854   FS = "\a"
30855   \$ac_cs_awk_pipe_init
30856 }
30857 {
30858   line = $ 0
30859   nfields = split(line, field, "@")
30860   substed = 0
30861   len = length(field[1])
30862   for (i = 2; i < nfields; i++) {
30863     key = field[i]
30864     keylen = length(key)
30865     if (S_is_set[key]) {
30866       value = S[key]
30867       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30868       len += length(value) + length(field[++i])
30869       substed = 1
30870     } else
30871       len += 1 + keylen
30872   }
30873   if (nfields == 3 && !substed) {
30874     key = field[2]
30875     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30876       \$ac_cs_awk_read_file
30877       next
30878     }
30879   }
30880   print line
30881 }
30882 \$ac_cs_awk_pipe_fini
30883 _ACAWK
30884 _ACEOF
30885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30886 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30887   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30888 else
30889   cat
30890 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30891   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30892 _ACEOF
30893
30894 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30895 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30896 # trailing colons and then remove the whole line if VPATH becomes empty
30897 # (actually we leave an empty line to preserve line numbers).
30898 if test "x$srcdir" = x.; then
30899   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
30900 h
30901 s///
30902 s/^/:/
30903 s/[      ]*$/:/
30904 s/:\$(srcdir):/:/g
30905 s/:\${srcdir}:/:/g
30906 s/:@srcdir@:/:/g
30907 s/^:*//
30908 s/:*$//
30909 x
30910 s/\(=[   ]*\).*/\1/
30911 G
30912 s/\n//
30913 s/^[^=]*=[       ]*$//
30914 }'
30915 fi
30916
30917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30918 fi # test -n "$CONFIG_FILES"
30919
30920 # Set up the scripts for CONFIG_HEADERS section.
30921 # No need to generate them if there are no CONFIG_HEADERS.
30922 # This happens for instance with `./config.status Makefile'.
30923 if test -n "$CONFIG_HEADERS"; then
30924 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30925 BEGIN {
30926 _ACEOF
30927
30928 # Transform confdefs.h into an awk script `defines.awk', embedded as
30929 # here-document in config.status, that substitutes the proper values into
30930 # config.h.in to produce config.h.
30931
30932 # Create a delimiter string that does not exist in confdefs.h, to ease
30933 # handling of long lines.
30934 ac_delim='%!_!# '
30935 for ac_last_try in false false :; do
30936   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30937   if test -z "$ac_tt"; then
30938     break
30939   elif $ac_last_try; then
30940     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30941   else
30942     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30943   fi
30944 done
30945
30946 # For the awk script, D is an array of macro values keyed by name,
30947 # likewise P contains macro parameters if any.  Preserve backslash
30948 # newline sequences.
30949
30950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30951 sed -n '
30952 s/.\{148\}/&'"$ac_delim"'/g
30953 t rset
30954 :rset
30955 s/^[     ]*#[    ]*define[       ][      ]*/ /
30956 t def
30957 d
30958 :def
30959 s/\\$//
30960 t bsnl
30961 s/["\\]/\\&/g
30962 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30963 D["\1"]=" \3"/p
30964 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30965 d
30966 :bsnl
30967 s/["\\]/\\&/g
30968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30969 D["\1"]=" \3\\\\\\n"\\/p
30970 t cont
30971 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30972 t cont
30973 d
30974 :cont
30975 n
30976 s/.\{148\}/&'"$ac_delim"'/g
30977 t clear
30978 :clear
30979 s/\\$//
30980 t bsnlc
30981 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30982 d
30983 :bsnlc
30984 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30985 b cont
30986 ' <confdefs.h | sed '
30987 s/'"$ac_delim"'/"\\\
30988 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30989
30990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30991   for (key in D) D_is_set[key] = 1
30992   FS = "\a"
30993 }
30994 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30995   line = \$ 0
30996   split(line, arg, " ")
30997   if (arg[1] == "#") {
30998     defundef = arg[2]
30999     mac1 = arg[3]
31000   } else {
31001     defundef = substr(arg[1], 2)
31002     mac1 = arg[2]
31003   }
31004   split(mac1, mac2, "(") #)
31005   macro = mac2[1]
31006   prefix = substr(line, 1, index(line, defundef) - 1)
31007   if (D_is_set[macro]) {
31008     # Preserve the white space surrounding the "#".
31009     print prefix "define", macro P[macro] D[macro]
31010     next
31011   } else {
31012     # Replace #undef with comments.  This is necessary, for example,
31013     # in the case of _POSIX_SOURCE, which is predefined and required
31014     # on some systems where configure will not decide to define it.
31015     if (defundef == "undef") {
31016       print "/*", prefix defundef, macro, "*/"
31017       next
31018     }
31019   }
31020 }
31021 { print }
31022 _ACAWK
31023 _ACEOF
31024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31025   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31026 fi # test -n "$CONFIG_HEADERS"
31027
31028
31029 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31030 shift
31031 for ac_tag
31032 do
31033   case $ac_tag in
31034   :[FHLC]) ac_mode=$ac_tag; continue;;
31035   esac
31036   case $ac_mode$ac_tag in
31037   :[FHL]*:*);;
31038   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31039   :[FH]-) ac_tag=-:-;;
31040   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31041   esac
31042   ac_save_IFS=$IFS
31043   IFS=:
31044   set x $ac_tag
31045   IFS=$ac_save_IFS
31046   shift
31047   ac_file=$1
31048   shift
31049
31050   case $ac_mode in
31051   :L) ac_source=$1;;
31052   :[FH])
31053     ac_file_inputs=
31054     for ac_f
31055     do
31056       case $ac_f in
31057       -) ac_f="$ac_tmp/stdin";;
31058       *) # Look for the file first in the build tree, then in the source tree
31059          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31060          # because $ac_f cannot contain `:'.
31061          test -f "$ac_f" ||
31062            case $ac_f in
31063            [\\/$]*) false;;
31064            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31065            esac ||
31066            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31067       esac
31068       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31069       as_fn_append ac_file_inputs " '$ac_f'"
31070     done
31071
31072     # Let's still pretend it is `configure' which instantiates (i.e., don't
31073     # use $as_me), people would be surprised to read:
31074     #    /* config.h.  Generated by config.status.  */
31075     configure_input='Generated from '`
31076           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31077         `' by configure.'
31078     if test x"$ac_file" != x-; then
31079       configure_input="$ac_file.  $configure_input"
31080       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31081 $as_echo "$as_me: creating $ac_file" >&6;}
31082     fi
31083     # Neutralize special characters interpreted by sed in replacement strings.
31084     case $configure_input in #(
31085     *\&* | *\|* | *\\* )
31086        ac_sed_conf_input=`$as_echo "$configure_input" |
31087        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31088     *) ac_sed_conf_input=$configure_input;;
31089     esac
31090
31091     case $ac_tag in
31092     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31093       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31094     esac
31095     ;;
31096   esac
31097
31098   ac_dir=`$as_dirname -- "$ac_file" ||
31099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31100          X"$ac_file" : 'X\(//\)[^/]' \| \
31101          X"$ac_file" : 'X\(//\)$' \| \
31102          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31103 $as_echo X"$ac_file" |
31104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31105             s//\1/
31106             q
31107           }
31108           /^X\(\/\/\)[^/].*/{
31109             s//\1/
31110             q
31111           }
31112           /^X\(\/\/\)$/{
31113             s//\1/
31114             q
31115           }
31116           /^X\(\/\).*/{
31117             s//\1/
31118             q
31119           }
31120           s/.*/./; q'`
31121   as_dir="$ac_dir"; as_fn_mkdir_p
31122   ac_builddir=.
31123
31124 case "$ac_dir" in
31125 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31126 *)
31127   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31128   # A ".." for each directory in $ac_dir_suffix.
31129   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31130   case $ac_top_builddir_sub in
31131   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31132   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31133   esac ;;
31134 esac
31135 ac_abs_top_builddir=$ac_pwd
31136 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31137 # for backward compatibility:
31138 ac_top_builddir=$ac_top_build_prefix
31139
31140 case $srcdir in
31141   .)  # We are building in place.
31142     ac_srcdir=.
31143     ac_top_srcdir=$ac_top_builddir_sub
31144     ac_abs_top_srcdir=$ac_pwd ;;
31145   [\\/]* | ?:[\\/]* )  # Absolute name.
31146     ac_srcdir=$srcdir$ac_dir_suffix;
31147     ac_top_srcdir=$srcdir
31148     ac_abs_top_srcdir=$srcdir ;;
31149   *) # Relative name.
31150     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31151     ac_top_srcdir=$ac_top_build_prefix$srcdir
31152     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31153 esac
31154 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31155
31156
31157   case $ac_mode in
31158   :F)
31159   #
31160   # CONFIG_FILE
31161   #
31162
31163   case $INSTALL in
31164   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31165   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31166   esac
31167 _ACEOF
31168
31169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31170 # If the template does not know about datarootdir, expand it.
31171 # FIXME: This hack should be removed a few years after 2.60.
31172 ac_datarootdir_hack=; ac_datarootdir_seen=
31173 ac_sed_dataroot='
31174 /datarootdir/ {
31175   p
31176   q
31177 }
31178 /@datadir@/p
31179 /@docdir@/p
31180 /@infodir@/p
31181 /@localedir@/p
31182 /@mandir@/p'
31183 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31184 *datarootdir*) ac_datarootdir_seen=yes;;
31185 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31186   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31187 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31188 _ACEOF
31189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31190   ac_datarootdir_hack='
31191   s&@datadir@&$datadir&g
31192   s&@docdir@&$docdir&g
31193   s&@infodir@&$infodir&g
31194   s&@localedir@&$localedir&g
31195   s&@mandir@&$mandir&g
31196   s&\\\${datarootdir}&$datarootdir&g' ;;
31197 esac
31198 _ACEOF
31199
31200 # Neutralize VPATH when `$srcdir' = `.'.
31201 # Shell code in configure.ac might set extrasub.
31202 # FIXME: do we really want to maintain this feature?
31203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31204 ac_sed_extra="$ac_vpsub
31205 $extrasub
31206 _ACEOF
31207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31208 :t
31209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31210 s|@configure_input@|$ac_sed_conf_input|;t t
31211 s&@top_builddir@&$ac_top_builddir_sub&;t t
31212 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31213 s&@srcdir@&$ac_srcdir&;t t
31214 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31215 s&@top_srcdir@&$ac_top_srcdir&;t t
31216 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31217 s&@builddir@&$ac_builddir&;t t
31218 s&@abs_builddir@&$ac_abs_builddir&;t t
31219 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31220 s&@INSTALL@&$ac_INSTALL&;t t
31221 $ac_datarootdir_hack
31222 "
31223 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31224 if $ac_cs_awk_getline; then
31225   $AWK -f "$ac_tmp/subs.awk"
31226 else
31227   $AWK -f "$ac_tmp/subs.awk" | $SHELL
31228 fi \
31229   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31230
31231 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31232   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31233   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
31234       "$ac_tmp/out"`; test -z "$ac_out"; } &&
31235   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31236 which seems to be undefined.  Please make sure it is defined" >&5
31237 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31238 which seems to be undefined.  Please make sure it is defined" >&2;}
31239
31240   rm -f "$ac_tmp/stdin"
31241   case $ac_file in
31242   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31243   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31244   esac \
31245   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31246  ;;
31247   :H)
31248   #
31249   # CONFIG_HEADER
31250   #
31251   if test x"$ac_file" != x-; then
31252     {
31253       $as_echo "/* $configure_input  */" \
31254       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31255     } >"$ac_tmp/config.h" \
31256       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31257     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31258       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31259 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31260     else
31261       rm -f "$ac_file"
31262       mv "$ac_tmp/config.h" "$ac_file" \
31263         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31264     fi
31265   else
31266     $as_echo "/* $configure_input  */" \
31267       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31268       || as_fn_error $? "could not create -" "$LINENO" 5
31269   fi
31270  ;;
31271
31272   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31273 $as_echo "$as_me: executing $ac_file commands" >&6;}
31274  ;;
31275   esac
31276
31277
31278   case $ac_file$ac_mode in
31279     "libtool":C)
31280
31281     # See if we are running on zsh, and set the options which allow our
31282     # commands through without removal of \ escapes.
31283     if test -n "${ZSH_VERSION+set}" ; then
31284       setopt NO_GLOB_SUBST
31285     fi
31286
31287     cfgfile="${ofile}T"
31288     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31289     $RM "$cfgfile"
31290
31291     cat <<_LT_EOF >> "$cfgfile"
31292 #! $SHELL
31293
31294 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31295 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31297 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31298 #
31299 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31300 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31301 #   Written by Gordon Matzigkeit, 1996
31302 #
31303 #   This file is part of GNU Libtool.
31304 #
31305 # GNU Libtool is free software; you can redistribute it and/or
31306 # modify it under the terms of the GNU General Public License as
31307 # published by the Free Software Foundation; either version 2 of
31308 # the License, or (at your option) any later version.
31309 #
31310 # As a special exception to the GNU General Public License,
31311 # if you distribute this file as part of a program or library that
31312 # is built using GNU Libtool, you may include this file under the
31313 # same distribution terms that you use for the rest of that program.
31314 #
31315 # GNU Libtool is distributed in the hope that it will be useful,
31316 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31317 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31318 # GNU General Public License for more details.
31319 #
31320 # You should have received a copy of the GNU General Public License
31321 # along with GNU Libtool; see the file COPYING.  If not, a copy
31322 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31323 # obtained by writing to the Free Software Foundation, Inc.,
31324 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31325
31326
31327 # The names of the tagged configurations supported by this script.
31328 available_tags="CXX "
31329
31330 # ### BEGIN LIBTOOL CONFIG
31331
31332 # Which release of libtool.m4 was used?
31333 macro_version=$macro_version
31334 macro_revision=$macro_revision
31335
31336 # Whether or not to build shared libraries.
31337 build_libtool_libs=$enable_shared
31338
31339 # Whether or not to build static libraries.
31340 build_old_libs=$enable_static
31341
31342 # What type of objects to build.
31343 pic_mode=$pic_mode
31344
31345 # Whether or not to optimize for fast installation.
31346 fast_install=$enable_fast_install
31347
31348 # The host system.
31349 host_alias=$host_alias
31350 host=$host
31351 host_os=$host_os
31352
31353 # The build system.
31354 build_alias=$build_alias
31355 build=$build
31356 build_os=$build_os
31357
31358 # A sed program that does not truncate output.
31359 SED=$lt_SED
31360
31361 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31362 Xsed="\$SED -e 1s/^X//"
31363
31364 # A grep program that handles long lines.
31365 GREP=$lt_GREP
31366
31367 # An ERE matcher.
31368 EGREP=$lt_EGREP
31369
31370 # A literal string matcher.
31371 FGREP=$lt_FGREP
31372
31373 # A BSD- or MS-compatible name lister.
31374 NM=$lt_NM
31375
31376 # Whether we need soft or hard links.
31377 LN_S=$lt_LN_S
31378
31379 # What is the maximum length of a command?
31380 max_cmd_len=$max_cmd_len
31381
31382 # Object file suffix (normally "o").
31383 objext=$ac_objext
31384
31385 # Executable file suffix (normally "").
31386 exeext=$exeext
31387
31388 # whether the shell understands "unset".
31389 lt_unset=$lt_unset
31390
31391 # turn spaces into newlines.
31392 SP2NL=$lt_lt_SP2NL
31393
31394 # turn newlines into spaces.
31395 NL2SP=$lt_lt_NL2SP
31396
31397 # How to create reloadable object files.
31398 reload_flag=$lt_reload_flag
31399 reload_cmds=$lt_reload_cmds
31400
31401 # An object symbol dumper.
31402 OBJDUMP=$lt_OBJDUMP
31403
31404 # Method to check whether dependent libraries are shared objects.
31405 deplibs_check_method=$lt_deplibs_check_method
31406
31407 # Command to use when deplibs_check_method == "file_magic".
31408 file_magic_cmd=$lt_file_magic_cmd
31409
31410 # The archiver.
31411 AR=$lt_AR
31412 AR_FLAGS=$lt_AR_FLAGS
31413
31414 # A symbol stripping program.
31415 STRIP=$lt_STRIP
31416
31417 # Commands used to install an old-style archive.
31418 RANLIB=$lt_RANLIB
31419 old_postinstall_cmds=$lt_old_postinstall_cmds
31420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31421
31422 # A C compiler.
31423 LTCC=$lt_CC
31424
31425 # LTCC compiler flags.
31426 LTCFLAGS=$lt_CFLAGS
31427
31428 # Take the output of nm and produce a listing of raw symbols and C names.
31429 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31430
31431 # Transform the output of nm in a proper C declaration.
31432 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31433
31434 # Transform the output of nm in a C name address pair.
31435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31436
31437 # Transform the output of nm in a C name address pair when lib prefix is needed.
31438 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31439
31440 # The name of the directory that contains temporary libtool files.
31441 objdir=$objdir
31442
31443 # Shell to use when invoking shell scripts.
31444 SHELL=$lt_SHELL
31445
31446 # An echo program that does not interpret backslashes.
31447 ECHO=$lt_ECHO
31448
31449 # Used to examine libraries when file_magic_cmd begins with "file".
31450 MAGIC_CMD=$MAGIC_CMD
31451
31452 # Must we lock files when doing compilation?
31453 need_locks=$lt_need_locks
31454
31455 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31456 DSYMUTIL=$lt_DSYMUTIL
31457
31458 # Tool to change global to local symbols on Mac OS X.
31459 NMEDIT=$lt_NMEDIT
31460
31461 # Tool to manipulate fat objects and archives on Mac OS X.
31462 LIPO=$lt_LIPO
31463
31464 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31465 OTOOL=$lt_OTOOL
31466
31467 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31468 OTOOL64=$lt_OTOOL64
31469
31470 # Old archive suffix (normally "a").
31471 libext=$libext
31472
31473 # Shared library suffix (normally ".so").
31474 shrext_cmds=$lt_shrext_cmds
31475
31476 # The commands to extract the exported symbol list from a shared archive.
31477 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31478
31479 # Variables whose values should be saved in libtool wrapper scripts and
31480 # restored at link time.
31481 variables_saved_for_relink=$lt_variables_saved_for_relink
31482
31483 # Do we need the "lib" prefix for modules?
31484 need_lib_prefix=$need_lib_prefix
31485
31486 # Do we need a version for libraries?
31487 need_version=$need_version
31488
31489 # Library versioning type.
31490 version_type=$version_type
31491
31492 # Shared library runtime path variable.
31493 runpath_var=$runpath_var
31494
31495 # Shared library path variable.
31496 shlibpath_var=$shlibpath_var
31497
31498 # Is shlibpath searched before the hard-coded library search path?
31499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31500
31501 # Format of library name prefix.
31502 libname_spec=$lt_libname_spec
31503
31504 # List of archive names.  First name is the real one, the rest are links.
31505 # The last name is the one that the linker finds with -lNAME
31506 library_names_spec=$lt_library_names_spec
31507
31508 # The coded name of the library, if different from the real name.
31509 soname_spec=$lt_soname_spec
31510
31511 # Command to use after installation of a shared archive.
31512 postinstall_cmds=$lt_postinstall_cmds
31513
31514 # Command to use after uninstallation of a shared archive.
31515 postuninstall_cmds=$lt_postuninstall_cmds
31516
31517 # Commands used to finish a libtool library installation in a directory.
31518 finish_cmds=$lt_finish_cmds
31519
31520 # As "finish_cmds", except a single script fragment to be evaled but
31521 # not shown.
31522 finish_eval=$lt_finish_eval
31523
31524 # Whether we should hardcode library paths into libraries.
31525 hardcode_into_libs=$hardcode_into_libs
31526
31527 # Compile-time system search path for libraries.
31528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31529
31530 # Run-time system search path for libraries.
31531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31532
31533 # Whether dlopen is supported.
31534 dlopen_support=$enable_dlopen
31535
31536 # Whether dlopen of programs is supported.
31537 dlopen_self=$enable_dlopen_self
31538
31539 # Whether dlopen of statically linked programs is supported.
31540 dlopen_self_static=$enable_dlopen_self_static
31541
31542 # Commands to strip libraries.
31543 old_striplib=$lt_old_striplib
31544 striplib=$lt_striplib
31545
31546
31547 # The linker used to build libraries.
31548 LD=$lt_LD
31549
31550 # Commands used to build an old-style archive.
31551 old_archive_cmds=$lt_old_archive_cmds
31552
31553 # A language specific compiler.
31554 CC=$lt_compiler
31555
31556 # Is the compiler the GNU compiler?
31557 with_gcc=$GCC
31558
31559 # Compiler flag to turn off builtin functions.
31560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31561
31562 # How to pass a linker flag through the compiler.
31563 wl=$lt_lt_prog_compiler_wl
31564
31565 # Additional compiler flags for building library objects.
31566 pic_flag=$lt_lt_prog_compiler_pic
31567
31568 # Compiler flag to prevent dynamic linking.
31569 link_static_flag=$lt_lt_prog_compiler_static
31570
31571 # Does compiler simultaneously support -c and -o options?
31572 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31573
31574 # Whether or not to add -lc for building shared libraries.
31575 build_libtool_need_lc=$archive_cmds_need_lc
31576
31577 # Whether or not to disallow shared libs when runtime libs are static.
31578 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31579
31580 # Compiler flag to allow reflexive dlopens.
31581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31582
31583 # Compiler flag to generate shared objects directly from archives.
31584 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31585
31586 # Whether the compiler copes with passing no objects directly.
31587 compiler_needs_object=$lt_compiler_needs_object
31588
31589 # Create an old-style archive from a shared archive.
31590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31591
31592 # Create a temporary old-style archive to link instead of a shared archive.
31593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31594
31595 # Commands used to build a shared archive.
31596 archive_cmds=$lt_archive_cmds
31597 archive_expsym_cmds=$lt_archive_expsym_cmds
31598
31599 # Commands used to build a loadable module if different from building
31600 # a shared archive.
31601 module_cmds=$lt_module_cmds
31602 module_expsym_cmds=$lt_module_expsym_cmds
31603
31604 # Whether we are building with GNU ld or not.
31605 with_gnu_ld=$lt_with_gnu_ld
31606
31607 # Flag that allows shared libraries with undefined symbols to be built.
31608 allow_undefined_flag=$lt_allow_undefined_flag
31609
31610 # Flag that enforces no undefined symbols.
31611 no_undefined_flag=$lt_no_undefined_flag
31612
31613 # Flag to hardcode \$libdir into a binary during linking.
31614 # This must work even if \$libdir does not exist
31615 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31616
31617 # If ld is used when linking, flag to hardcode \$libdir into a binary
31618 # during linking.  This must work even if \$libdir does not exist.
31619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31620
31621 # Whether we need a single "-rpath" flag with a separated argument.
31622 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31623
31624 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31625 # DIR into the resulting binary.
31626 hardcode_direct=$hardcode_direct
31627
31628 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31629 # DIR into the resulting binary and the resulting library dependency is
31630 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31631 # library is relocated.
31632 hardcode_direct_absolute=$hardcode_direct_absolute
31633
31634 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31635 # into the resulting binary.
31636 hardcode_minus_L=$hardcode_minus_L
31637
31638 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31639 # into the resulting binary.
31640 hardcode_shlibpath_var=$hardcode_shlibpath_var
31641
31642 # Set to "yes" if building a shared library automatically hardcodes DIR
31643 # into the library and all subsequent libraries and executables linked
31644 # against it.
31645 hardcode_automatic=$hardcode_automatic
31646
31647 # Set to yes if linker adds runtime paths of dependent libraries
31648 # to runtime path list.
31649 inherit_rpath=$inherit_rpath
31650
31651 # Whether libtool must link a program against all its dependency libraries.
31652 link_all_deplibs=$link_all_deplibs
31653
31654 # Fix the shell variable \$srcfile for the compiler.
31655 fix_srcfile_path=$lt_fix_srcfile_path
31656
31657 # Set to "yes" if exported symbols are required.
31658 always_export_symbols=$always_export_symbols
31659
31660 # The commands to list exported symbols.
31661 export_symbols_cmds=$lt_export_symbols_cmds
31662
31663 # Symbols that should not be listed in the preloaded symbols.
31664 exclude_expsyms=$lt_exclude_expsyms
31665
31666 # Symbols that must always be exported.
31667 include_expsyms=$lt_include_expsyms
31668
31669 # Commands necessary for linking programs (against libraries) with templates.
31670 prelink_cmds=$lt_prelink_cmds
31671
31672 # Specify filename containing input files.
31673 file_list_spec=$lt_file_list_spec
31674
31675 # How to hardcode a shared library path into an executable.
31676 hardcode_action=$hardcode_action
31677
31678 # The directories searched by this compiler when creating a shared library.
31679 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31680
31681 # Dependencies to place before and after the objects being linked to
31682 # create a shared library.
31683 predep_objects=$lt_predep_objects
31684 postdep_objects=$lt_postdep_objects
31685 predeps=$lt_predeps
31686 postdeps=$lt_postdeps
31687
31688 # The library search path used internally by the compiler when linking
31689 # a shared library.
31690 compiler_lib_search_path=$lt_compiler_lib_search_path
31691
31692 # ### END LIBTOOL CONFIG
31693
31694 _LT_EOF
31695
31696   case $host_os in
31697   aix3*)
31698     cat <<\_LT_EOF >> "$cfgfile"
31699 # AIX sometimes has problems with the GCC collect2 program.  For some
31700 # reason, if we set the COLLECT_NAMES environment variable, the problems
31701 # vanish in a puff of smoke.
31702 if test "X${COLLECT_NAMES+set}" != Xset; then
31703   COLLECT_NAMES=
31704   export COLLECT_NAMES
31705 fi
31706 _LT_EOF
31707     ;;
31708   esac
31709
31710
31711 ltmain="$ac_aux_dir/ltmain.sh"
31712
31713
31714   # We use sed instead of cat because bash on DJGPP gets confused if
31715   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31716   # text mode, it properly converts lines to CR/LF.  This bash problem
31717   # is reportedly fixed, but why not run on old versions too?
31718   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31719     || (rm -f "$cfgfile"; exit 1)
31720
31721   case $xsi_shell in
31722   yes)
31723     cat << \_LT_EOF >> "$cfgfile"
31724
31725 # func_dirname file append nondir_replacement
31726 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31727 # otherwise set result to NONDIR_REPLACEMENT.
31728 func_dirname ()
31729 {
31730   case ${1} in
31731     */*) func_dirname_result="${1%/*}${2}" ;;
31732     *  ) func_dirname_result="${3}" ;;
31733   esac
31734 }
31735
31736 # func_basename file
31737 func_basename ()
31738 {
31739   func_basename_result="${1##*/}"
31740 }
31741
31742 # func_dirname_and_basename file append nondir_replacement
31743 # perform func_basename and func_dirname in a single function
31744 # call:
31745 #   dirname:  Compute the dirname of FILE.  If nonempty,
31746 #             add APPEND to the result, otherwise set result
31747 #             to NONDIR_REPLACEMENT.
31748 #             value returned in "$func_dirname_result"
31749 #   basename: Compute filename of FILE.
31750 #             value retuned in "$func_basename_result"
31751 # Implementation must be kept synchronized with func_dirname
31752 # and func_basename. For efficiency, we do not delegate to
31753 # those functions but instead duplicate the functionality here.
31754 func_dirname_and_basename ()
31755 {
31756   case ${1} in
31757     */*) func_dirname_result="${1%/*}${2}" ;;
31758     *  ) func_dirname_result="${3}" ;;
31759   esac
31760   func_basename_result="${1##*/}"
31761 }
31762
31763 # func_stripname prefix suffix name
31764 # strip PREFIX and SUFFIX off of NAME.
31765 # PREFIX and SUFFIX must not contain globbing or regex special
31766 # characters, hashes, percent signs, but SUFFIX may contain a leading
31767 # dot (in which case that matches only a dot).
31768 func_stripname ()
31769 {
31770   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31771   # positional parameters, so assign one to ordinary parameter first.
31772   func_stripname_result=${3}
31773   func_stripname_result=${func_stripname_result#"${1}"}
31774   func_stripname_result=${func_stripname_result%"${2}"}
31775 }
31776
31777 # func_opt_split
31778 func_opt_split ()
31779 {
31780   func_opt_split_opt=${1%%=*}
31781   func_opt_split_arg=${1#*=}
31782 }
31783
31784 # func_lo2o object
31785 func_lo2o ()
31786 {
31787   case ${1} in
31788     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31789     *)    func_lo2o_result=${1} ;;
31790   esac
31791 }
31792
31793 # func_xform libobj-or-source
31794 func_xform ()
31795 {
31796   func_xform_result=${1%.*}.lo
31797 }
31798
31799 # func_arith arithmetic-term...
31800 func_arith ()
31801 {
31802   func_arith_result=$(( $* ))
31803 }
31804
31805 # func_len string
31806 # STRING may not start with a hyphen.
31807 func_len ()
31808 {
31809   func_len_result=${#1}
31810 }
31811
31812 _LT_EOF
31813     ;;
31814   *) # Bourne compatible functions.
31815     cat << \_LT_EOF >> "$cfgfile"
31816
31817 # func_dirname file append nondir_replacement
31818 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31819 # otherwise set result to NONDIR_REPLACEMENT.
31820 func_dirname ()
31821 {
31822   # Extract subdirectory from the argument.
31823   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31824   if test "X$func_dirname_result" = "X${1}"; then
31825     func_dirname_result="${3}"
31826   else
31827     func_dirname_result="$func_dirname_result${2}"
31828   fi
31829 }
31830
31831 # func_basename file
31832 func_basename ()
31833 {
31834   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31835 }
31836
31837
31838 # func_stripname prefix suffix name
31839 # strip PREFIX and SUFFIX off of NAME.
31840 # PREFIX and SUFFIX must not contain globbing or regex special
31841 # characters, hashes, percent signs, but SUFFIX may contain a leading
31842 # dot (in which case that matches only a dot).
31843 # func_strip_suffix prefix name
31844 func_stripname ()
31845 {
31846   case ${2} in
31847     .*) func_stripname_result=`$ECHO "X${3}" \
31848            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31849     *)  func_stripname_result=`$ECHO "X${3}" \
31850            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31851   esac
31852 }
31853
31854 # sed scripts:
31855 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31856 my_sed_long_arg='1s/^-[^=]*=//'
31857
31858 # func_opt_split
31859 func_opt_split ()
31860 {
31861   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31862   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31863 }
31864
31865 # func_lo2o object
31866 func_lo2o ()
31867 {
31868   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31869 }
31870
31871 # func_xform libobj-or-source
31872 func_xform ()
31873 {
31874   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31875 }
31876
31877 # func_arith arithmetic-term...
31878 func_arith ()
31879 {
31880   func_arith_result=`expr "$@"`
31881 }
31882
31883 # func_len string
31884 # STRING may not start with a hyphen.
31885 func_len ()
31886 {
31887   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31888 }
31889
31890 _LT_EOF
31891 esac
31892
31893 case $lt_shell_append in
31894   yes)
31895     cat << \_LT_EOF >> "$cfgfile"
31896
31897 # func_append var value
31898 # Append VALUE to the end of shell variable VAR.
31899 func_append ()
31900 {
31901   eval "$1+=\$2"
31902 }
31903 _LT_EOF
31904     ;;
31905   *)
31906     cat << \_LT_EOF >> "$cfgfile"
31907
31908 # func_append var value
31909 # Append VALUE to the end of shell variable VAR.
31910 func_append ()
31911 {
31912   eval "$1=\$$1\$2"
31913 }
31914
31915 _LT_EOF
31916     ;;
31917   esac
31918
31919
31920   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31921     || (rm -f "$cfgfile"; exit 1)
31922
31923   mv -f "$cfgfile" "$ofile" ||
31924     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31925   chmod +x "$ofile"
31926
31927
31928     cat <<_LT_EOF >> "$ofile"
31929
31930 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31931
31932 # The linker used to build libraries.
31933 LD=$lt_LD_CXX
31934
31935 # Commands used to build an old-style archive.
31936 old_archive_cmds=$lt_old_archive_cmds_CXX
31937
31938 # A language specific compiler.
31939 CC=$lt_compiler_CXX
31940
31941 # Is the compiler the GNU compiler?
31942 with_gcc=$GCC_CXX
31943
31944 # Compiler flag to turn off builtin functions.
31945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31946
31947 # How to pass a linker flag through the compiler.
31948 wl=$lt_lt_prog_compiler_wl_CXX
31949
31950 # Additional compiler flags for building library objects.
31951 pic_flag=$lt_lt_prog_compiler_pic_CXX
31952
31953 # Compiler flag to prevent dynamic linking.
31954 link_static_flag=$lt_lt_prog_compiler_static_CXX
31955
31956 # Does compiler simultaneously support -c and -o options?
31957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31958
31959 # Whether or not to add -lc for building shared libraries.
31960 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31961
31962 # Whether or not to disallow shared libs when runtime libs are static.
31963 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31964
31965 # Compiler flag to allow reflexive dlopens.
31966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31967
31968 # Compiler flag to generate shared objects directly from archives.
31969 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31970
31971 # Whether the compiler copes with passing no objects directly.
31972 compiler_needs_object=$lt_compiler_needs_object_CXX
31973
31974 # Create an old-style archive from a shared archive.
31975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31976
31977 # Create a temporary old-style archive to link instead of a shared archive.
31978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31979
31980 # Commands used to build a shared archive.
31981 archive_cmds=$lt_archive_cmds_CXX
31982 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31983
31984 # Commands used to build a loadable module if different from building
31985 # a shared archive.
31986 module_cmds=$lt_module_cmds_CXX
31987 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31988
31989 # Whether we are building with GNU ld or not.
31990 with_gnu_ld=$lt_with_gnu_ld_CXX
31991
31992 # Flag that allows shared libraries with undefined symbols to be built.
31993 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31994
31995 # Flag that enforces no undefined symbols.
31996 no_undefined_flag=$lt_no_undefined_flag_CXX
31997
31998 # Flag to hardcode \$libdir into a binary during linking.
31999 # This must work even if \$libdir does not exist
32000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32001
32002 # If ld is used when linking, flag to hardcode \$libdir into a binary
32003 # during linking.  This must work even if \$libdir does not exist.
32004 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32005
32006 # Whether we need a single "-rpath" flag with a separated argument.
32007 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32008
32009 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32010 # DIR into the resulting binary.
32011 hardcode_direct=$hardcode_direct_CXX
32012
32013 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32014 # DIR into the resulting binary and the resulting library dependency is
32015 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32016 # library is relocated.
32017 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32018
32019 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32020 # into the resulting binary.
32021 hardcode_minus_L=$hardcode_minus_L_CXX
32022
32023 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32024 # into the resulting binary.
32025 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32026
32027 # Set to "yes" if building a shared library automatically hardcodes DIR
32028 # into the library and all subsequent libraries and executables linked
32029 # against it.
32030 hardcode_automatic=$hardcode_automatic_CXX
32031
32032 # Set to yes if linker adds runtime paths of dependent libraries
32033 # to runtime path list.
32034 inherit_rpath=$inherit_rpath_CXX
32035
32036 # Whether libtool must link a program against all its dependency libraries.
32037 link_all_deplibs=$link_all_deplibs_CXX
32038
32039 # Fix the shell variable \$srcfile for the compiler.
32040 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32041
32042 # Set to "yes" if exported symbols are required.
32043 always_export_symbols=$always_export_symbols_CXX
32044
32045 # The commands to list exported symbols.
32046 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32047
32048 # Symbols that should not be listed in the preloaded symbols.
32049 exclude_expsyms=$lt_exclude_expsyms_CXX
32050
32051 # Symbols that must always be exported.
32052 include_expsyms=$lt_include_expsyms_CXX
32053
32054 # Commands necessary for linking programs (against libraries) with templates.
32055 prelink_cmds=$lt_prelink_cmds_CXX
32056
32057 # Specify filename containing input files.
32058 file_list_spec=$lt_file_list_spec_CXX
32059
32060 # How to hardcode a shared library path into an executable.
32061 hardcode_action=$hardcode_action_CXX
32062
32063 # The directories searched by this compiler when creating a shared library.
32064 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32065
32066 # Dependencies to place before and after the objects being linked to
32067 # create a shared library.
32068 predep_objects=$lt_predep_objects_CXX
32069 postdep_objects=$lt_postdep_objects_CXX
32070 predeps=$lt_predeps_CXX
32071 postdeps=$lt_postdeps_CXX
32072
32073 # The library search path used internally by the compiler when linking
32074 # a shared library.
32075 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32076
32077 # ### END LIBTOOL TAG CONFIG: CXX
32078 _LT_EOF
32079
32080  ;;
32081     "default-1":C)
32082     for ac_file in $CONFIG_FILES; do
32083       # Support "outfile[:infile[:infile...]]"
32084       case "$ac_file" in
32085         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32086       esac
32087       # PO directories have a Makefile.in generated from Makefile.in.in.
32088       case "$ac_file" in */Makefile.in)
32089         # Adjust a relative srcdir.
32090         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32091         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32092         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32093         # In autoconf-2.13 it is called $ac_given_srcdir.
32094         # In autoconf-2.50 it is called $srcdir.
32095         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32096         case "$ac_given_srcdir" in
32097           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32098           /*) top_srcdir="$ac_given_srcdir" ;;
32099           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32100         esac
32101         # Treat a directory as a PO directory if and only if it has a
32102         # POTFILES.in file. This allows packages to have multiple PO
32103         # directories under different names or in different locations.
32104         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32105           rm -f "$ac_dir/POTFILES"
32106           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32107           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32108           POMAKEFILEDEPS="POTFILES.in"
32109           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32110           # on $ac_dir but don't depend on user-specified configuration
32111           # parameters.
32112           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32113             # The LINGUAS file contains the set of available languages.
32114             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32115               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32116             fi
32117             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32118             # Hide the ALL_LINGUAS assigment from automake.
32119             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32120             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32121           else
32122             # The set of available languages was given in configure.in.
32123             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32124           fi
32125           # Compute POFILES
32126           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32127           # Compute UPDATEPOFILES
32128           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32129           # Compute DUMMYPOFILES
32130           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32131           # Compute GMOFILES
32132           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32133           case "$ac_given_srcdir" in
32134             .) srcdirpre= ;;
32135             *) srcdirpre='$(srcdir)/' ;;
32136           esac
32137           POFILES=
32138           UPDATEPOFILES=
32139           DUMMYPOFILES=
32140           GMOFILES=
32141           for lang in $ALL_LINGUAS; do
32142             POFILES="$POFILES $srcdirpre$lang.po"
32143             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32144             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32145             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32146           done
32147           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32148           # environment variable.
32149           INST_LINGUAS=
32150           if test -n "$ALL_LINGUAS"; then
32151             for presentlang in $ALL_LINGUAS; do
32152               useit=no
32153               if test "%UNSET%" != "$LINGUAS"; then
32154                 desiredlanguages="$LINGUAS"
32155               else
32156                 desiredlanguages="$ALL_LINGUAS"
32157               fi
32158               for desiredlang in $desiredlanguages; do
32159                 # Use the presentlang catalog if desiredlang is
32160                 #   a. equal to presentlang, or
32161                 #   b. a variant of presentlang (because in this case,
32162                 #      presentlang can be used as a fallback for messages
32163                 #      which are not translated in the desiredlang catalog).
32164                 case "$desiredlang" in
32165                   "$presentlang"*) useit=yes;;
32166                 esac
32167               done
32168               if test $useit = yes; then
32169                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32170               fi
32171             done
32172           fi
32173           CATALOGS=
32174           if test -n "$INST_LINGUAS"; then
32175             for lang in $INST_LINGUAS; do
32176               CATALOGS="$CATALOGS $lang.gmo"
32177             done
32178           fi
32179           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32180           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"
32181           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32182             if test -f "$f"; then
32183               case "$f" in
32184                 *.orig | *.bak | *~) ;;
32185                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32186               esac
32187             fi
32188           done
32189         fi
32190         ;;
32191       esac
32192     done ;;
32193     "default":C)
32194  ;;
32195
32196   esac
32197 done # for ac_tag
32198
32199
32200 as_fn_exit 0
32201 _ACEOF
32202 ac_clean_files=$ac_clean_files_save
32203
32204 test $ac_write_fail = 0 ||
32205   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32206
32207
32208 # configure is writing to config.log, and then calls config.status.
32209 # config.status does its own redirection, appending to config.log.
32210 # Unfortunately, on DOS this fails, as config.log is still kept open
32211 # by configure, so config.status won't be able to write to it; its
32212 # output is simply discarded.  So we exec the FD to /dev/null,
32213 # effectively closing config.log, so it can be properly (re)opened and
32214 # appended to by config.status.  When coming back to configure, we
32215 # need to make the FD available again.
32216 if test "$no_create" != yes; then
32217   ac_cs_success=:
32218   ac_config_status_args=
32219   test "$silent" = yes &&
32220     ac_config_status_args="$ac_config_status_args --quiet"
32221   exec 5>/dev/null
32222   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32223   exec 5>>config.log
32224   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32225   # would make configure fail if this is the last instruction.
32226   $ac_cs_success || as_fn_exit 1
32227 fi
32228 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32229   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32230 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32231 fi
32232
32233
32234 if test "${support_bat}" = "yes" ; then
32235    if test "x$QMAKE" = "xnone"; then
32236       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32237    fi
32238
32239    cd src/qt-console
32240    echo "Creating bat Makefile"
32241    touch bat
32242    chmod 755 bat
32243    rm -f Makefile
32244    $QMAKE
32245    ${MAKE:-make} clean
32246    cd ${BUILD_DIR}
32247 fi
32248
32249 if test X"$GCC" = "Xyes" ; then
32250   echo "Doing make of dependencies"
32251   ${MAKE:-make} depend
32252 fi
32253
32254 cd src/qt-console
32255 chmod 755 install_conf_file build-depkgs-qt-console
32256 cd ${BUILD_DIR}
32257
32258 cd scripts
32259 chmod 755 bacula btraceback mtx-changer
32260 chmod 755 dvd-handler dvd-simulator
32261 chmod 755 bconsole mtx-changer devel_bacula logrotate
32262 cd ..
32263
32264 c=updatedb
32265 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32266 chmod 755 $c/update_postgresql_tables_10_to_11
32267 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
32268 chmod 755 $c/update_postgresql_tables_11_to_12
32269
32270
32271 c=src/cats
32272
32273 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32274 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32275
32276 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32277 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32278
32279 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32280 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32281
32282 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32283 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32284
32285 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32286 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32287
32288
32289 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32290 chmod 755 $c/sqlite
32291 chmod 755 $c/mysql
32292
32293 chmod 755 src/win32/build-depkgs-mingw32
32294
32295 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32296    largefile_support="yes"
32297 fi
32298
32299 if test X"$GCC" = "Xyes" ; then
32300                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32301    if test "x${CCVERSION}" = "x" ; then
32302       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32303    fi
32304    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32305    if test x"${CXXVERSION}" = x ; then
32306       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32307    fi
32308 fi
32309
32310 # clean up any old junk
32311 echo " "
32312 echo "Cleaning up"
32313 echo " "
32314 ${MAKE:-make} clean
32315
32316 echo "
32317 Configuration on `date`:
32318
32319    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32320    Bacula version:           ${BACULA} ${VERSION} (${DATE})
32321    Source code location:     ${srcdir}
32322    Install binaries:         ${sbindir}
32323    Install libraries:        ${libdir}
32324    Install config files:     ${sysconfdir}
32325    Scripts directory:        ${scriptdir}
32326    Archive directory:        ${archivedir}
32327    Working directory:        ${working_dir}
32328    PID directory:            ${piddir}
32329    Subsys directory:         ${subsysdir}
32330    Man directory:            ${mandir}
32331    Data directory:           ${datarootdir}
32332    Plugin directory:         ${plugindir}
32333    C Compiler:               ${CC} ${CCVERSION}
32334    C++ Compiler:             ${CXX} ${CXXVERSION}
32335    Compiler flags:           ${WCFLAGS} ${CFLAGS}
32336    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
32337    Libraries:                ${LIBS}
32338    Statically Linked Tools:  ${support_static_tools}
32339    Statically Linked FD:     ${support_static_fd}
32340    Statically Linked SD:     ${support_static_sd}
32341    Statically Linked DIR:    ${support_static_dir}
32342    Statically Linked CONS:   ${support_static_cons}
32343    Database backends:        ${db_backends}
32344    Database port:            ${db_port}
32345    Database name:            ${db_name}
32346    Database user:            ${db_user}
32347
32348    Job Output Email:         ${job_email}
32349    Traceback Email:          ${dump_email}
32350    SMTP Host Address:        ${smtp_host}
32351
32352    Director Port:            ${dir_port}
32353    File daemon Port:         ${fd_port}
32354    Storage daemon Port:      ${sd_port}
32355
32356    Director User:            ${dir_user}
32357    Director Group:           ${dir_group}
32358    Storage Daemon User:      ${sd_user}
32359    Storage DaemonGroup:      ${sd_group}
32360    File Daemon User:         ${fd_user}
32361    File Daemon Group:        ${fd_group}
32362
32363    Large file support:      $largefile_support
32364    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32365    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32366    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32367    TLS support:             ${support_tls}
32368    Encryption support:      ${support_crypto}
32369    ZLIB support:            ${have_zlib}
32370    enable-smartalloc:       ${support_smartalloc}
32371    enable-lockmgr:          ${support_lockmgr}
32372    bat support:             ${support_bat}
32373    enable-gnome:            ${support_gnome} ${gnome_version}
32374    enable-bwx-console:      ${support_wx_console} ${wx_version}
32375    enable-tray-monitor:     ${support_tray_monitor}
32376    client-only:             ${build_client_only}
32377    build-dird:              ${build_dird}
32378    build-stored:            ${build_stored}
32379    Plugin support:          ${have_plugins}
32380    AFS support:             ${have_afs}
32381    ACL support:             ${have_acl}
32382    XATTR support:           ${have_xattr}
32383    Python support:          ${support_python} ${PYTHON_LIBS}
32384    Batch insert enabled:    ${support_batch_insert}
32385
32386   " > config.out
32387
32388 # create a small shell script useful for support with
32389 # configure options and config.out info
32390 cat > scripts/bacula_config << EOF
32391 #!/bin/sh
32392 cat << __EOC__
32393 $ $0 $ac_configure_args
32394 EOF
32395 cat config.out >> scripts/bacula_config
32396 echo __EOC__ >> scripts/bacula_config
32397 chmod 755 scripts/bacula_config
32398
32399 cat config.out