]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Update configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.1.15.
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.15'
710 PACKAGE_STRING='bacula 5.1.15'
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 COMPRESS_MANPAGES
754 DISTVER
755 DISTNAME
756 MACOSX
757 WIN32
758 PSCMD
759 TAPEDRIVE
760 OBJLIST
761 WRAPLIBS
762 WLDFLAGS
763 WCFLAGS
764 DLIB
765 DINCLUDE
766 DEBUG
767 FDLIBS
768 CAP_LIBS
769 LZOLIBS
770 ZLIBS
771 LIBOBJS
772 X_EXTRA_LIBS
773 X_LIBS
774 X_PRE_LIBS
775 X_CFLAGS
776 XMKMF
777 GETCONF
778 uncomment_dbi
779 SHARED_CATALOG_TARGETS
780 DEFAULT_DB_TYPE
781 DB_LIBS
782 DB_BACKENDS
783 SQLITE_BINDIR
784 SQLITE_INCLUDE
785 SQLITE_LIBS
786 MYSQL_BINDIR
787 MYSQL_INCLUDE
788 MYSQL_LIBS
789 POSTGRESQL_BINDIR
790 POSTGRESQL_INCLUDE
791 POSTGRESQL_LIBS
792 SBINPERM
793 fd_group
794 fd_user
795 sd_group
796 sd_user
797 dir_group
798 dir_user
799 db_port
800 db_password
801 db_user
802 db_name
803 mon_sd_password
804 mon_fd_password
805 mon_dir_password
806 sd_password
807 fd_password
808 dir_password
809 sd_port
810 fd_port
811 dir_port
812 baseport
813 subsysdir
814 piddir
815 smtp_host
816 job_email
817 dump_email
818 plugindir
819 logdir
820 bsrdir
821 scriptdir
822 hostname
823 basename
824 archivedir
825 working_dir
826 OPENSSL_INC
827 OPENSSL_LIBS
828 PYTHON_INCDIR
829 PYTHON_LIBS
830 READLINE_SRC
831 CONS_LDFLAGS
832 CONS_LIBS
833 CONS_SRC
834 CONS_OBJ
835 CONS_INC
836 STORED_DIR
837 DIR_TOOLS
838 DIRD_DIR
839 ALL_DIRS
840 STATIC_WX_CONS
841 STATIC_GNOME_CONS
842 STATIC_CONS
843 STATIC_DIR
844 STATIC_SD
845 STATIC_FD
846 TTOOL_LDFLAGS
847 TRAY_MONITOR_DIR
848 TRAY_MONITOR_LDFLAGS
849 TRAY_MONITOR_CPPFLAGS
850 WX_DIR
851 WXCONS_LDFLAGS
852 WXCONS_CPPFLAGS
853 QWT
854 QWT_LIB
855 QWT_LDFLAGS
856 QWT_INC
857 BAT_DIR
858 INTL_LIBTOOL_SUFFIX_PREFIX
859 INTLOBJS
860 GENCAT
861 INSTOBJEXT
862 DATADIRNAME
863 CATOBJEXT
864 USE_INCLUDED_LIBINTL
865 BUILD_INCLUDED_LIBINTL
866 INTLBISON
867 HAVE_WPRINTF
868 HAVE_SNPRINTF
869 HAVE_ASPRINTF
870 HAVE_POSIX_PRINTF
871 GLIBC21
872 ALLOCA
873 GLIBC2
874 POSUB
875 LTLIBINTL
876 LIBINTL
877 INTLLIBS
878 LTLIBICONV
879 LIBICONV
880 INTL_MACOSX_LIBS
881 MSGMERGE
882 XGETTEXT
883 GMSGFMT
884 MSGFMT
885 USE_NLS
886 MKINSTALLDIRS
887 SET_MAKE
888 HAVE_DARWIN_OS_FALSE
889 HAVE_DARWIN_OS_TRUE
890 HAVE_IRIX_OS_FALSE
891 HAVE_IRIX_OS_TRUE
892 HAVE_SGI_OS_FALSE
893 HAVE_SGI_OS_TRUE
894 HAVE_BSDI_OS_FALSE
895 HAVE_BSDI_OS_TRUE
896 HAVE_OPENBSD_OS_FALSE
897 HAVE_OPENBSD_OS_TRUE
898 HAVE_NETBSD_OS_FALSE
899 HAVE_NETBSD_OS_TRUE
900 HAVE_FREEBSD_OS_FALSE
901 HAVE_FREEBSD_OS_TRUE
902 HAVE_LINUX_OS_FALSE
903 HAVE_LINUX_OS_TRUE
904 HAVE_HPUX_OS_FALSE
905 HAVE_HPUX_OS_TRUE
906 HAVE_AIX_OS_FALSE
907 HAVE_AIX_OS_TRUE
908 HAVE_OSF1_OS_FALSE
909 HAVE_OSF1_OS_TRUE
910 HAVE_SUN_OS_FALSE
911 HAVE_SUN_OS_TRUE
912 INCLUDE_UNINSTALL_TARGET
913 INCLUDE_INSTALL_TARGET
914 FD_PLUGIN_DIR
915 QMAKE_LIBTOOL
916 LIBTOOL_CLEAN_TARGET
917 LIBTOOL_UNINSTALL_TARGET
918 LIBTOOL_INSTALL_TARGET
919 DEFAULT_SHARED_OBJECT_TYPE
920 DEFAULT_ARCHIVE_TYPE
921 DEFAULT_OBJECT_TYPE
922 CXXCPP
923 OTOOL64
924 OTOOL
925 LIPO
926 NMEDIT
927 DSYMUTIL
928 lt_ECHO
929 RANLIB
930 STRIP
931 OBJDUMP
932 LN_S
933 NM
934 ac_ct_DUMPBIN
935 DUMPBIN
936 LD
937 FGREP
938 host_os
939 host_vendor
940 host_cpu
941 host
942 build_os
943 build_vendor
944 build_cpu
945 build
946 LIBTOOL
947 LOCAL_DEFS
948 LOCAL_LDFLAGS
949 LOCAL_CFLAGS
950 LOCAL_LIBS
951 MAKE_SHELL
952 ARFLAGS
953 AWK
954 PIDOF
955 CDRECORD
956 WXFLAGS
957 WXCONFIG
958 GMAKE
959 QMAKE
960 PKGCONFIG
961 DVDRWFORMAT
962 DVDRWMEDIAINFO
963 GROWISOFS
964 PYTHON
965 MKISOFS
966 DD
967 MTX
968 OPENSSL
969 AR
970 TBL
971 CMP
972 ECHO
973 SED
974 CP
975 REMOVE
976 MV
977 INSTALL_DATA
978 INSTALL_SCRIPT
979 INSTALL_PROGRAM
980 EGREP
981 GREP
982 CPP
983 ac_ct_CXX
984 CXXFLAGS
985 CXX
986 OBJEXT
987 EXEEXT
988 ac_ct_CC
989 CPPFLAGS
990 LDFLAGS
991 CFLAGS
992 CC
993 LIBBACFIND_LT_RELEASE
994 LIBBACCATS_LT_RELEASE
995 LIBBACSQL_LT_RELEASE
996 LIBBACPY_LT_RELEASE
997 LIBBACCFG_LT_RELEASE
998 LIBBAC_LT_RELEASE
999 BDB_VERSION
1000 post_host
1001 BACULA
1002 LSMDATE
1003 DATE
1004 VERSION
1005 FALSEPRG
1006 TRUEPRG
1007 WIN32TOPDIR
1008 WIN32MAINDIR
1009 WIN32BUILDDIR
1010 TOP_DIR
1011 BUILD_DIR
1012 target_alias
1013 host_alias
1014 build_alias
1015 LIBS
1016 ECHO_T
1017 ECHO_N
1018 ECHO_C
1019 DEFS
1020 mandir
1021 localedir
1022 libdir
1023 psdir
1024 pdfdir
1025 dvidir
1026 htmldir
1027 infodir
1028 docdir
1029 oldincludedir
1030 includedir
1031 localstatedir
1032 sharedstatedir
1033 sysconfdir
1034 datadir
1035 datarootdir
1036 libexecdir
1037 sbindir
1038 bindir
1039 program_transform_name
1040 prefix
1041 exec_prefix
1042 PACKAGE_URL
1043 PACKAGE_BUGREPORT
1044 PACKAGE_STRING
1045 PACKAGE_VERSION
1046 PACKAGE_TARNAME
1047 PACKAGE_NAME
1048 PATH_SEPARATOR
1049 SHELL'
1050 ac_subst_files='MCOMMON'
1051 ac_user_opts='
1052 enable_option_checking
1053 enable_libtool
1054 enable_shared
1055 enable_static
1056 with_pic
1057 enable_fast_install
1058 with_gnu_ld
1059 enable_libtool_lock
1060 enable_includes
1061 enable_nls
1062 enable_rpath
1063 with_libiconv_prefix
1064 with_libintl_prefix
1065 with_included_gettext
1066 enable_gnome
1067 enable_bat
1068 enable_bwx_console
1069 enable_tray_monitor
1070 enable_smartalloc
1071 enable_lockmgr
1072 enable_static_tools
1073 enable_static_fd
1074 enable_static_sd
1075 enable_static_dir
1076 enable_static_cons
1077 enable_client_only
1078 enable_build_dird
1079 enable_build_stored
1080 enable_conio
1081 enable_ipv6
1082 enable_readline
1083 with_readline
1084 with_python
1085 with_tcp_wrappers
1086 with_openssl
1087 with_working_dir
1088 with_archivedir
1089 with_basename
1090 with_hostname
1091 with_scriptdir
1092 with_bsrdir
1093 with_logdir
1094 with_plugindir
1095 with_dump_email
1096 with_job_email
1097 with_smtp_host
1098 with_pid_dir
1099 with_subsys_dir
1100 with_baseport
1101 with_dir_password
1102 with_fd_password
1103 with_sd_password
1104 with_mon_dir_password
1105 with_mon_fd_password
1106 with_mon_sd_password
1107 with_db_name
1108 with_db_user
1109 with_db_password
1110 with_db_port
1111 with_dir_user
1112 with_dir_group
1113 with_sd_user
1114 with_sd_group
1115 with_fd_user
1116 with_fd_group
1117 with_sbin_perm
1118 with_postgresql
1119 with_mysql
1120 with_embedded_mysql
1121 with_sqlite3
1122 enable_batch_insert
1123 enable_largefile
1124 with_x
1125 enable_acl
1126 enable_xattr
1127 '
1128       ac_precious_vars='build_alias
1129 host_alias
1130 target_alias
1131 CC
1132 CFLAGS
1133 LDFLAGS
1134 LIBS
1135 CPPFLAGS
1136 CXX
1137 CXXFLAGS
1138 CCC
1139 CPP
1140 WXCONFIG
1141 WXFLAGS
1142 CXXCPP
1143 XMKMF'
1144
1145
1146 # Initialize some variables set by options.
1147 ac_init_help=
1148 ac_init_version=false
1149 ac_unrecognized_opts=
1150 ac_unrecognized_sep=
1151 # The variables have the same names as the options, with
1152 # dashes changed to underlines.
1153 cache_file=/dev/null
1154 exec_prefix=NONE
1155 no_create=
1156 no_recursion=
1157 prefix=NONE
1158 program_prefix=NONE
1159 program_suffix=NONE
1160 program_transform_name=s,x,x,
1161 silent=
1162 site=
1163 srcdir=
1164 verbose=
1165 x_includes=NONE
1166 x_libraries=NONE
1167
1168 # Installation directory options.
1169 # These are left unexpanded so users can "make install exec_prefix=/foo"
1170 # and all the variables that are supposed to be based on exec_prefix
1171 # by default will actually change.
1172 # Use braces instead of parens because sh, perl, etc. also accept them.
1173 # (The list follows the same order as the GNU Coding Standards.)
1174 bindir='${exec_prefix}/bin'
1175 sbindir='${exec_prefix}/sbin'
1176 libexecdir='${exec_prefix}/libexec'
1177 datarootdir='${prefix}/share'
1178 datadir='${datarootdir}'
1179 sysconfdir='${prefix}/etc'
1180 sharedstatedir='${prefix}/com'
1181 localstatedir='${prefix}/var'
1182 includedir='${prefix}/include'
1183 oldincludedir='/usr/include'
1184 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1185 infodir='${datarootdir}/info'
1186 htmldir='${docdir}'
1187 dvidir='${docdir}'
1188 pdfdir='${docdir}'
1189 psdir='${docdir}'
1190 libdir='${exec_prefix}/lib'
1191 localedir='${datarootdir}/locale'
1192 mandir='${datarootdir}/man'
1193
1194 ac_prev=
1195 ac_dashdash=
1196 for ac_option
1197 do
1198   # If the previous option needs an argument, assign it.
1199   if test -n "$ac_prev"; then
1200     eval $ac_prev=\$ac_option
1201     ac_prev=
1202     continue
1203   fi
1204
1205   case $ac_option in
1206   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1207   *=)   ac_optarg= ;;
1208   *)    ac_optarg=yes ;;
1209   esac
1210
1211   # Accept the important Cygnus configure options, so we can diagnose typos.
1212
1213   case $ac_dashdash$ac_option in
1214   --)
1215     ac_dashdash=yes ;;
1216
1217   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1218     ac_prev=bindir ;;
1219   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1220     bindir=$ac_optarg ;;
1221
1222   -build | --build | --buil | --bui | --bu)
1223     ac_prev=build_alias ;;
1224   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1225     build_alias=$ac_optarg ;;
1226
1227   -cache-file | --cache-file | --cache-fil | --cache-fi \
1228   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1229     ac_prev=cache_file ;;
1230   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1231   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1232     cache_file=$ac_optarg ;;
1233
1234   --config-cache | -C)
1235     cache_file=config.cache ;;
1236
1237   -datadir | --datadir | --datadi | --datad)
1238     ac_prev=datadir ;;
1239   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1240     datadir=$ac_optarg ;;
1241
1242   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1243   | --dataroo | --dataro | --datar)
1244     ac_prev=datarootdir ;;
1245   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1246   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1247     datarootdir=$ac_optarg ;;
1248
1249   -disable-* | --disable-*)
1250     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253       as_fn_error $? "invalid feature name: $ac_useropt"
1254     ac_useropt_orig=$ac_useropt
1255     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256     case $ac_user_opts in
1257       *"
1258 "enable_$ac_useropt"
1259 "*) ;;
1260       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1261          ac_unrecognized_sep=', ';;
1262     esac
1263     eval enable_$ac_useropt=no ;;
1264
1265   -docdir | --docdir | --docdi | --doc | --do)
1266     ac_prev=docdir ;;
1267   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1268     docdir=$ac_optarg ;;
1269
1270   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1271     ac_prev=dvidir ;;
1272   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1273     dvidir=$ac_optarg ;;
1274
1275   -enable-* | --enable-*)
1276     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279       as_fn_error $? "invalid feature name: $ac_useropt"
1280     ac_useropt_orig=$ac_useropt
1281     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282     case $ac_user_opts in
1283       *"
1284 "enable_$ac_useropt"
1285 "*) ;;
1286       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1287          ac_unrecognized_sep=', ';;
1288     esac
1289     eval enable_$ac_useropt=\$ac_optarg ;;
1290
1291   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1292   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1293   | --exec | --exe | --ex)
1294     ac_prev=exec_prefix ;;
1295   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1296   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1297   | --exec=* | --exe=* | --ex=*)
1298     exec_prefix=$ac_optarg ;;
1299
1300   -gas | --gas | --ga | --g)
1301     # Obsolete; use --with-gas.
1302     with_gas=yes ;;
1303
1304   -help | --help | --hel | --he | -h)
1305     ac_init_help=long ;;
1306   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1307     ac_init_help=recursive ;;
1308   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1309     ac_init_help=short ;;
1310
1311   -host | --host | --hos | --ho)
1312     ac_prev=host_alias ;;
1313   -host=* | --host=* | --hos=* | --ho=*)
1314     host_alias=$ac_optarg ;;
1315
1316   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1317     ac_prev=htmldir ;;
1318   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1319   | --ht=*)
1320     htmldir=$ac_optarg ;;
1321
1322   -includedir | --includedir | --includedi | --included | --include \
1323   | --includ | --inclu | --incl | --inc)
1324     ac_prev=includedir ;;
1325   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1326   | --includ=* | --inclu=* | --incl=* | --inc=*)
1327     includedir=$ac_optarg ;;
1328
1329   -infodir | --infodir | --infodi | --infod | --info | --inf)
1330     ac_prev=infodir ;;
1331   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1332     infodir=$ac_optarg ;;
1333
1334   -libdir | --libdir | --libdi | --libd)
1335     ac_prev=libdir ;;
1336   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1337     libdir=$ac_optarg ;;
1338
1339   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1340   | --libexe | --libex | --libe)
1341     ac_prev=libexecdir ;;
1342   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1343   | --libexe=* | --libex=* | --libe=*)
1344     libexecdir=$ac_optarg ;;
1345
1346   -localedir | --localedir | --localedi | --localed | --locale)
1347     ac_prev=localedir ;;
1348   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1349     localedir=$ac_optarg ;;
1350
1351   -localstatedir | --localstatedir | --localstatedi | --localstated \
1352   | --localstate | --localstat | --localsta | --localst | --locals)
1353     ac_prev=localstatedir ;;
1354   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1355   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1356     localstatedir=$ac_optarg ;;
1357
1358   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1359     ac_prev=mandir ;;
1360   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1361     mandir=$ac_optarg ;;
1362
1363   -nfp | --nfp | --nf)
1364     # Obsolete; use --without-fp.
1365     with_fp=no ;;
1366
1367   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1368   | --no-cr | --no-c | -n)
1369     no_create=yes ;;
1370
1371   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1372   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1373     no_recursion=yes ;;
1374
1375   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1376   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1377   | --oldin | --oldi | --old | --ol | --o)
1378     ac_prev=oldincludedir ;;
1379   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1380   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1381   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1382     oldincludedir=$ac_optarg ;;
1383
1384   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1385     ac_prev=prefix ;;
1386   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1387     prefix=$ac_optarg ;;
1388
1389   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1390   | --program-pre | --program-pr | --program-p)
1391     ac_prev=program_prefix ;;
1392   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1393   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1394     program_prefix=$ac_optarg ;;
1395
1396   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1397   | --program-suf | --program-su | --program-s)
1398     ac_prev=program_suffix ;;
1399   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1400   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1401     program_suffix=$ac_optarg ;;
1402
1403   -program-transform-name | --program-transform-name \
1404   | --program-transform-nam | --program-transform-na \
1405   | --program-transform-n | --program-transform- \
1406   | --program-transform | --program-transfor \
1407   | --program-transfo | --program-transf \
1408   | --program-trans | --program-tran \
1409   | --progr-tra | --program-tr | --program-t)
1410     ac_prev=program_transform_name ;;
1411   -program-transform-name=* | --program-transform-name=* \
1412   | --program-transform-nam=* | --program-transform-na=* \
1413   | --program-transform-n=* | --program-transform-=* \
1414   | --program-transform=* | --program-transfor=* \
1415   | --program-transfo=* | --program-transf=* \
1416   | --program-trans=* | --program-tran=* \
1417   | --progr-tra=* | --program-tr=* | --program-t=*)
1418     program_transform_name=$ac_optarg ;;
1419
1420   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1421     ac_prev=pdfdir ;;
1422   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1423     pdfdir=$ac_optarg ;;
1424
1425   -psdir | --psdir | --psdi | --psd | --ps)
1426     ac_prev=psdir ;;
1427   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1428     psdir=$ac_optarg ;;
1429
1430   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1431   | -silent | --silent | --silen | --sile | --sil)
1432     silent=yes ;;
1433
1434   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1435     ac_prev=sbindir ;;
1436   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1437   | --sbi=* | --sb=*)
1438     sbindir=$ac_optarg ;;
1439
1440   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1441   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1442   | --sharedst | --shareds | --shared | --share | --shar \
1443   | --sha | --sh)
1444     ac_prev=sharedstatedir ;;
1445   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1446   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1447   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1448   | --sha=* | --sh=*)
1449     sharedstatedir=$ac_optarg ;;
1450
1451   -site | --site | --sit)
1452     ac_prev=site ;;
1453   -site=* | --site=* | --sit=*)
1454     site=$ac_optarg ;;
1455
1456   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1457     ac_prev=srcdir ;;
1458   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1459     srcdir=$ac_optarg ;;
1460
1461   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1462   | --syscon | --sysco | --sysc | --sys | --sy)
1463     ac_prev=sysconfdir ;;
1464   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1465   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1466     sysconfdir=$ac_optarg ;;
1467
1468   -target | --target | --targe | --targ | --tar | --ta | --t)
1469     ac_prev=target_alias ;;
1470   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1471     target_alias=$ac_optarg ;;
1472
1473   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1474     verbose=yes ;;
1475
1476   -version | --version | --versio | --versi | --vers | -V)
1477     ac_init_version=: ;;
1478
1479   -with-* | --with-*)
1480     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1481     # Reject names that are not valid shell variable names.
1482     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1483       as_fn_error $? "invalid package name: $ac_useropt"
1484     ac_useropt_orig=$ac_useropt
1485     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1486     case $ac_user_opts in
1487       *"
1488 "with_$ac_useropt"
1489 "*) ;;
1490       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1491          ac_unrecognized_sep=', ';;
1492     esac
1493     eval with_$ac_useropt=\$ac_optarg ;;
1494
1495   -without-* | --without-*)
1496     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1497     # Reject names that are not valid shell variable names.
1498     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1499       as_fn_error $? "invalid package name: $ac_useropt"
1500     ac_useropt_orig=$ac_useropt
1501     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1502     case $ac_user_opts in
1503       *"
1504 "with_$ac_useropt"
1505 "*) ;;
1506       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1507          ac_unrecognized_sep=', ';;
1508     esac
1509     eval with_$ac_useropt=no ;;
1510
1511   --x)
1512     # Obsolete; use --with-x.
1513     with_x=yes ;;
1514
1515   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1516   | --x-incl | --x-inc | --x-in | --x-i)
1517     ac_prev=x_includes ;;
1518   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1519   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1520     x_includes=$ac_optarg ;;
1521
1522   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1523   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1524     ac_prev=x_libraries ;;
1525   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1526   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1527     x_libraries=$ac_optarg ;;
1528
1529   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1530 Try \`$0 --help' for more information"
1531     ;;
1532
1533   *=*)
1534     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1535     # Reject names that are not valid shell variable names.
1536     case $ac_envvar in #(
1537       '' | [0-9]* | *[!_$as_cr_alnum]* )
1538       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1539     esac
1540     eval $ac_envvar=\$ac_optarg
1541     export $ac_envvar ;;
1542
1543   *)
1544     # FIXME: should be removed in autoconf 3.0.
1545     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1546     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1547       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1548     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1549     ;;
1550
1551   esac
1552 done
1553
1554 if test -n "$ac_prev"; then
1555   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1556   as_fn_error $? "missing argument to $ac_option"
1557 fi
1558
1559 if test -n "$ac_unrecognized_opts"; then
1560   case $enable_option_checking in
1561     no) ;;
1562     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1563     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1564   esac
1565 fi
1566
1567 # Check all directory arguments for consistency.
1568 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1569                 datadir sysconfdir sharedstatedir localstatedir includedir \
1570                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1571                 libdir localedir mandir
1572 do
1573   eval ac_val=\$$ac_var
1574   # Remove trailing slashes.
1575   case $ac_val in
1576     */ )
1577       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1578       eval $ac_var=\$ac_val;;
1579   esac
1580   # Be sure to have absolute directory names.
1581   case $ac_val in
1582     [\\/$]* | ?:[\\/]* )  continue;;
1583     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1584   esac
1585   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1586 done
1587
1588 # There might be people who depend on the old broken behavior: `$host'
1589 # used to hold the argument of --host etc.
1590 # FIXME: To remove some day.
1591 build=$build_alias
1592 host=$host_alias
1593 target=$target_alias
1594
1595 # FIXME: To remove some day.
1596 if test "x$host_alias" != x; then
1597   if test "x$build_alias" = x; then
1598     cross_compiling=maybe
1599     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1600     If a cross compiler is detected then cross compile mode will be used" >&2
1601   elif test "x$build_alias" != "x$host_alias"; then
1602     cross_compiling=yes
1603   fi
1604 fi
1605
1606 ac_tool_prefix=
1607 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1608
1609 test "$silent" = yes && exec 6>/dev/null
1610
1611
1612 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1613 ac_ls_di=`ls -di .` &&
1614 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1615   as_fn_error $? "working directory cannot be determined"
1616 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1617   as_fn_error $? "pwd does not report name of working directory"
1618
1619
1620 # Find the source files, if location was not specified.
1621 if test -z "$srcdir"; then
1622   ac_srcdir_defaulted=yes
1623   # Try the directory containing this script, then the parent directory.
1624   ac_confdir=`$as_dirname -- "$as_myself" ||
1625 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1626          X"$as_myself" : 'X\(//\)[^/]' \| \
1627          X"$as_myself" : 'X\(//\)$' \| \
1628          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1629 $as_echo X"$as_myself" |
1630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1631             s//\1/
1632             q
1633           }
1634           /^X\(\/\/\)[^/].*/{
1635             s//\1/
1636             q
1637           }
1638           /^X\(\/\/\)$/{
1639             s//\1/
1640             q
1641           }
1642           /^X\(\/\).*/{
1643             s//\1/
1644             q
1645           }
1646           s/.*/./; q'`
1647   srcdir=$ac_confdir
1648   if test ! -r "$srcdir/$ac_unique_file"; then
1649     srcdir=..
1650   fi
1651 else
1652   ac_srcdir_defaulted=no
1653 fi
1654 if test ! -r "$srcdir/$ac_unique_file"; then
1655   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1656   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1657 fi
1658 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1659 ac_abs_confdir=`(
1660         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1661         pwd)`
1662 # When building in place, set srcdir=.
1663 if test "$ac_abs_confdir" = "$ac_pwd"; then
1664   srcdir=.
1665 fi
1666 # Remove unnecessary trailing slashes from srcdir.
1667 # Double slashes in file names in object file debugging info
1668 # mess up M-x gdb in Emacs.
1669 case $srcdir in
1670 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1671 esac
1672 for ac_var in $ac_precious_vars; do
1673   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1674   eval ac_env_${ac_var}_value=\$${ac_var}
1675   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1676   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1677 done
1678
1679 #
1680 # Report the --help message.
1681 #
1682 if test "$ac_init_help" = "long"; then
1683   # Omit some internal or obsolete options to make the list less imposing.
1684   # This message is too long to be a string in the A/UX 3.1 sh.
1685   cat <<_ACEOF
1686 \`configure' configures bacula 5.1.15 to adapt to many kinds of systems.
1687
1688 Usage: $0 [OPTION]... [VAR=VALUE]...
1689
1690 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1691 VAR=VALUE.  See below for descriptions of some of the useful variables.
1692
1693 Defaults for the options are specified in brackets.
1694
1695 Configuration:
1696   -h, --help              display this help and exit
1697       --help=short        display options specific to this package
1698       --help=recursive    display the short help of all the included packages
1699   -V, --version           display version information and exit
1700   -q, --quiet, --silent   do not print \`checking ...' messages
1701       --cache-file=FILE   cache test results in FILE [disabled]
1702   -C, --config-cache      alias for \`--cache-file=config.cache'
1703   -n, --no-create         do not create output files
1704       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1705
1706 Installation directories:
1707   --prefix=PREFIX         install architecture-independent files in PREFIX
1708                           [$ac_default_prefix]
1709   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1710                           [PREFIX]
1711
1712 By default, \`make install' will install all the files in
1713 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1714 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1715 for instance \`--prefix=\$HOME'.
1716
1717 For better control, use the options below.
1718
1719 Fine tuning of the installation directories:
1720   --bindir=DIR            user executables [EPREFIX/bin]
1721   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1722   --libexecdir=DIR        program executables [EPREFIX/libexec]
1723   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1724   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1725   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1726   --libdir=DIR            object code libraries [EPREFIX/lib]
1727   --includedir=DIR        C header files [PREFIX/include]
1728   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1729   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1730   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1731   --infodir=DIR           info documentation [DATAROOTDIR/info]
1732   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1733   --mandir=DIR            man documentation [DATAROOTDIR/man]
1734   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1735   --htmldir=DIR           html documentation [DOCDIR]
1736   --dvidir=DIR            dvi documentation [DOCDIR]
1737   --pdfdir=DIR            pdf documentation [DOCDIR]
1738   --psdir=DIR             ps documentation [DOCDIR]
1739 _ACEOF
1740
1741   cat <<\_ACEOF
1742
1743 X features:
1744   --x-includes=DIR    X include files are in DIR
1745   --x-libraries=DIR   X library files are in DIR
1746
1747 System types:
1748   --build=BUILD     configure for building on BUILD [guessed]
1749   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1750 _ACEOF
1751 fi
1752
1753 if test -n "$ac_init_help"; then
1754   case $ac_init_help in
1755      short | recursive ) echo "Configuration of bacula 5.1.15:";;
1756    esac
1757   cat <<\_ACEOF
1758
1759 Optional Features:
1760   --disable-option-checking  ignore unrecognized --enable/--with options
1761   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1762   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1763   --enable-libtool        enable building using GNU libtool [default=yes]
1764   --enable-shared[=PKGS]  build shared libraries [default=yes]
1765   --enable-static[=PKGS]  build static libraries [default=no]
1766   --enable-fast-install[=PKGS]
1767                           optimize for fast installation [default=yes]
1768   --disable-libtool-lock  avoid locking (might break parallel builds)
1769   --enable-includes       enable installing of include files [default=no]
1770   --disable-nls           do not use Native Language Support
1771   --disable-rpath         do not hardcode runtime library paths
1772   --enable-gnome          enable build of bgnome-console GUI [default=no]
1773   --enable-bat            enable build of bat Qt4 GUI [default=no]
1774   --enable-bwx-console    enable build of wxWidgets console [default=no]
1775   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1776                           KDE [default=no]
1777   --enable-smartalloc     enable smartalloc debugging support [default=no]
1778   --enable-lockmgr        enable lock manager support [default=no]
1779   --enable-static-tools   enable static tape tools [default=no]
1780   --enable-static-fd      enable static File daemon [default=no]
1781   --enable-static-sd      enable static Storage daemon [default=no]
1782   --enable-static-dir     enable static Director [default=no]
1783   --enable-static-cons    enable static Console [default=no]
1784   --enable-client-only    build client (File daemon) only [default=no]
1785   --enable-build-dird     enable building of dird (Director) [default=yes]
1786   --enable-build-stored   enable building of stored (Storage daemon)
1787                           [default=yes]
1788   --disable-conio         disable conio support [default=no]
1789   --enable-ipv6           enable ipv6 support [default=yes]
1790   --disable-readline      disable readline support [default=yes]
1791   --enable-batch-insert   enable the DB batch insert code [default=yes]
1792   --disable-largefile     omit support for large files
1793   --disable-acl           disable acl support [default=auto]
1794   --disable-xattr         disable xattr support [default=auto]
1795
1796 Optional Packages:
1797   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1798   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1799   --with-pic              try to use only PIC/non-PIC objects [default=use
1800                           both]
1801   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1802   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1803   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1804   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1805   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1806   --without-libintl-prefix     don't search for libintl in includedir and libdir
1807   --with-included-gettext use the GNU gettext library included here
1808   --with-readline[=DIR]   specify readline library directory
1809   --with-python[=DIR]     Include Python support. DIR is the Python base
1810                           install directory, default is to search through a
1811                           number of common places for the Python files.
1812   --with-tcp-wrappers[=DIR]
1813                           enable tcpwrappers support
1814   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1815   --with-working-dir=PATH specify path of Bacula working directory
1816   --with-archivedir=PATH  specify path of SD archive directory
1817   --with-basename=RESNAME specify base resource name for daemons
1818   --with-hostname=RESNAME specify host name for daemons
1819   --with-scriptdir=PATH   specify path of Bacula scripts directory
1820   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1821   --with-logdir=PATH      specify path of Bacula logs directory
1822   --with-plugindir=PATH   specify path of Bacula plugins directory
1823   --with-dump-email=EMAIL dump email address
1824   --with-job-email=EMAIL  job output email address
1825   --with-smtp-host=HOST   SMTP mail host address
1826   --with-pid-dir=PATH     specify location of Bacula pid files
1827   --with-subsys-dir=PATH  specify location of Bacula subsys file
1828   --with-baseport=PORT    specify base port address for daemons
1829   --with-dir-password=PASSWORD
1830                           specify Director's password
1831   --with-fd-password=PASSWORD
1832                           specify Client's password
1833   --with-sd-password=PASSWORD
1834                           specify Storage daemon's password
1835   --with-mon-dir-password=PASSWORD
1836                           specify Director's password used by the monitor
1837   --with-mon-fd-password=PASSWORD
1838                           specify Client's password used by the monitor
1839   --with-mon-sd-password=PASSWORD
1840                           specify Storage daemon's password used by the
1841                           monitor
1842   --with-db-name=DBNAME   specify database name [default=bacula]
1843   --with-db-user=UNAME    specify database user [default=bacula]
1844   --with-db-password=PWD  specify database password [default=*none*]
1845   --with-db-port=DBPORT   specify a database port [default=null]
1846   --with-dir-user=USER    specify user for Director daemon
1847   --with-dir-group=GROUP  specify group for Director daemon
1848   --with-sd-user=USER     specify user for Storage daemon
1849   --with-sd-group=GROUP   specify group for Storage daemon
1850   --with-fd-user=USER     specify user for File daemon
1851   --with-fd-group=GROUP   specify group for File daemon
1852   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1853   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1854                           base install directory, [default=/usr/local/pgsql]
1855   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1856                           directory, default is to search through a number of
1857                           common places for the MySQL files.
1858   --with-embedded-mysql[=DIR]
1859                           Include MySQL support. DIR is the MySQL base install
1860                           directory, default is to search through a number of
1861                           common places for the MySQL files.
1862   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1863                           install directory, default is to search through a
1864                           number of common places for the SQLite3 files.
1865   --with-x                use the X Window System
1866
1867 Some influential environment variables:
1868   CC          C compiler command
1869   CFLAGS      C compiler flags
1870   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1871               nonstandard directory <lib dir>
1872   LIBS        libraries to pass to the linker, e.g. -l<library>
1873   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1874               you have headers in a nonstandard directory <include dir>
1875   CXX         C++ compiler command
1876   CXXFLAGS    C++ compiler flags
1877   CPP         C preprocessor
1878   WXCONFIG    wx-config command. On some systems, you must set it to
1879               wx-config-2.6 to use wxWidgets 2.6.
1880   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1881   CXXCPP      C++ preprocessor
1882   XMKMF       Path to xmkmf, Makefile generator for X Window System
1883
1884 Use these variables to override the choices made by `configure' or to help
1885 it to find libraries and programs with nonstandard names/locations.
1886
1887 Report bugs to the package provider.
1888 _ACEOF
1889 ac_status=$?
1890 fi
1891
1892 if test "$ac_init_help" = "recursive"; then
1893   # If there are subdirs, report their specific --help.
1894   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1895     test -d "$ac_dir" ||
1896       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1897       continue
1898     ac_builddir=.
1899
1900 case "$ac_dir" in
1901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1902 *)
1903   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1904   # A ".." for each directory in $ac_dir_suffix.
1905   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1906   case $ac_top_builddir_sub in
1907   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1908   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1909   esac ;;
1910 esac
1911 ac_abs_top_builddir=$ac_pwd
1912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1913 # for backward compatibility:
1914 ac_top_builddir=$ac_top_build_prefix
1915
1916 case $srcdir in
1917   .)  # We are building in place.
1918     ac_srcdir=.
1919     ac_top_srcdir=$ac_top_builddir_sub
1920     ac_abs_top_srcdir=$ac_pwd ;;
1921   [\\/]* | ?:[\\/]* )  # Absolute name.
1922     ac_srcdir=$srcdir$ac_dir_suffix;
1923     ac_top_srcdir=$srcdir
1924     ac_abs_top_srcdir=$srcdir ;;
1925   *) # Relative name.
1926     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1927     ac_top_srcdir=$ac_top_build_prefix$srcdir
1928     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1929 esac
1930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1931
1932     cd "$ac_dir" || { ac_status=$?; continue; }
1933     # Check for guested configure.
1934     if test -f "$ac_srcdir/configure.gnu"; then
1935       echo &&
1936       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1937     elif test -f "$ac_srcdir/configure"; then
1938       echo &&
1939       $SHELL "$ac_srcdir/configure" --help=recursive
1940     else
1941       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1942     fi || ac_status=$?
1943     cd "$ac_pwd" || { ac_status=$?; break; }
1944   done
1945 fi
1946
1947 test -n "$ac_init_help" && exit $ac_status
1948 if $ac_init_version; then
1949   cat <<\_ACEOF
1950 bacula configure 5.1.15
1951 generated by GNU Autoconf 2.68
1952
1953 Copyright (C) 2010 Free Software Foundation, Inc.
1954 This configure script is free software; the Free Software Foundation
1955 gives unlimited permission to copy, distribute and modify it.
1956 _ACEOF
1957   exit
1958 fi
1959
1960 ## ------------------------ ##
1961 ## Autoconf initialization. ##
1962 ## ------------------------ ##
1963
1964 # ac_fn_c_try_compile LINENO
1965 # --------------------------
1966 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1967 ac_fn_c_try_compile ()
1968 {
1969   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970   rm -f conftest.$ac_objext
1971   if { { ac_try="$ac_compile"
1972 case "(($ac_try" in
1973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974   *) ac_try_echo=$ac_try;;
1975 esac
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978   (eval "$ac_compile") 2>conftest.err
1979   ac_status=$?
1980   if test -s conftest.err; then
1981     grep -v '^ *+' conftest.err >conftest.er1
1982     cat conftest.er1 >&5
1983     mv -f conftest.er1 conftest.err
1984   fi
1985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986   test $ac_status = 0; } && {
1987          test -z "$ac_c_werror_flag" ||
1988          test ! -s conftest.err
1989        } && test -s conftest.$ac_objext; then :
1990   ac_retval=0
1991 else
1992   $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995         ac_retval=1
1996 fi
1997   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998   as_fn_set_status $ac_retval
1999
2000 } # ac_fn_c_try_compile
2001
2002 # ac_fn_cxx_try_compile LINENO
2003 # ----------------------------
2004 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2005 ac_fn_cxx_try_compile ()
2006 {
2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008   rm -f conftest.$ac_objext
2009   if { { ac_try="$ac_compile"
2010 case "(($ac_try" in
2011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012   *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016   (eval "$ac_compile") 2>conftest.err
2017   ac_status=$?
2018   if test -s conftest.err; then
2019     grep -v '^ *+' conftest.err >conftest.er1
2020     cat conftest.er1 >&5
2021     mv -f conftest.er1 conftest.err
2022   fi
2023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024   test $ac_status = 0; } && {
2025          test -z "$ac_cxx_werror_flag" ||
2026          test ! -s conftest.err
2027        } && test -s conftest.$ac_objext; then :
2028   ac_retval=0
2029 else
2030   $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033         ac_retval=1
2034 fi
2035   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036   as_fn_set_status $ac_retval
2037
2038 } # ac_fn_cxx_try_compile
2039
2040 # ac_fn_c_try_cpp LINENO
2041 # ----------------------
2042 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2043 ac_fn_c_try_cpp ()
2044 {
2045   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046   if { { ac_try="$ac_cpp conftest.$ac_ext"
2047 case "(($ac_try" in
2048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049   *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2054   ac_status=$?
2055   if test -s conftest.err; then
2056     grep -v '^ *+' conftest.err >conftest.er1
2057     cat conftest.er1 >&5
2058     mv -f conftest.er1 conftest.err
2059   fi
2060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061   test $ac_status = 0; } > conftest.i && {
2062          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2063          test ! -s conftest.err
2064        }; then :
2065   ac_retval=0
2066 else
2067   $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2069
2070     ac_retval=1
2071 fi
2072   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073   as_fn_set_status $ac_retval
2074
2075 } # ac_fn_c_try_cpp
2076
2077 # ac_fn_c_try_link LINENO
2078 # -----------------------
2079 # Try to link conftest.$ac_ext, and return whether this succeeded.
2080 ac_fn_c_try_link ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   rm -f conftest.$ac_objext conftest$ac_exeext
2084   if { { ac_try="$ac_link"
2085 case "(($ac_try" in
2086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087   *) ac_try_echo=$ac_try;;
2088 esac
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091   (eval "$ac_link") 2>conftest.err
2092   ac_status=$?
2093   if test -s conftest.err; then
2094     grep -v '^ *+' conftest.err >conftest.er1
2095     cat conftest.er1 >&5
2096     mv -f conftest.er1 conftest.err
2097   fi
2098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099   test $ac_status = 0; } && {
2100          test -z "$ac_c_werror_flag" ||
2101          test ! -s conftest.err
2102        } && test -s conftest$ac_exeext && {
2103          test "$cross_compiling" = yes ||
2104          $as_test_x conftest$ac_exeext
2105        }; then :
2106   ac_retval=0
2107 else
2108   $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110
2111         ac_retval=1
2112 fi
2113   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2114   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2115   # interfere with the next link command; also delete a directory that is
2116   # left behind by Apple's compiler.  We do this before executing the actions.
2117   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2118   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119   as_fn_set_status $ac_retval
2120
2121 } # ac_fn_c_try_link
2122
2123 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2124 # -------------------------------------------------------
2125 # Tests whether HEADER exists and can be compiled using the include files in
2126 # INCLUDES, setting the cache variable VAR accordingly.
2127 ac_fn_c_check_header_compile ()
2128 {
2129   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if eval \${$3+:} false; then :
2133   $as_echo_n "(cached) " >&6
2134 else
2135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h.  */
2137 $4
2138 #include <$2>
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141   eval "$3=yes"
2142 else
2143   eval "$3=no"
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 fi
2147 eval ac_res=\$$3
2148                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152 } # ac_fn_c_check_header_compile
2153
2154 # ac_fn_c_try_run LINENO
2155 # ----------------------
2156 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2157 # that executables *can* be run.
2158 ac_fn_c_try_run ()
2159 {
2160   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161   if { { ac_try="$ac_link"
2162 case "(($ac_try" in
2163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164   *) ac_try_echo=$ac_try;;
2165 esac
2166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2167 $as_echo "$ac_try_echo"; } >&5
2168   (eval "$ac_link") 2>&5
2169   ac_status=$?
2170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2172   { { case "(($ac_try" in
2173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174   *) ac_try_echo=$ac_try;;
2175 esac
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178   (eval "$ac_try") 2>&5
2179   ac_status=$?
2180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181   test $ac_status = 0; }; }; then :
2182   ac_retval=0
2183 else
2184   $as_echo "$as_me: program exited with status $ac_status" >&5
2185        $as_echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188        ac_retval=$ac_status
2189 fi
2190   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2191   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192   as_fn_set_status $ac_retval
2193
2194 } # ac_fn_c_try_run
2195
2196 # ac_fn_c_check_func LINENO FUNC VAR
2197 # ----------------------------------
2198 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2199 ac_fn_c_check_func ()
2200 {
2201   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if eval \${$3+:} false; then :
2205   $as_echo_n "(cached) " >&6
2206 else
2207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2211 #define $2 innocuous_$2
2212
2213 /* System header to define __stub macros and hopefully few prototypes,
2214     which can conflict with char $2 (); below.
2215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2216     <limits.h> exists even on freestanding compilers.  */
2217
2218 #ifdef __STDC__
2219 # include <limits.h>
2220 #else
2221 # include <assert.h>
2222 #endif
2223
2224 #undef $2
2225
2226 /* Override any GCC internal prototype to avoid an error.
2227    Use char because int might match the return type of a GCC
2228    builtin and then its argument prototype would still apply.  */
2229 #ifdef __cplusplus
2230 extern "C"
2231 #endif
2232 char $2 ();
2233 /* The GNU C library defines this for functions which it implements
2234     to always fail with ENOSYS.  Some functions are actually named
2235     something starting with __ and the normal name is an alias.  */
2236 #if defined __stub_$2 || defined __stub___$2
2237 choke me
2238 #endif
2239
2240 int
2241 main ()
2242 {
2243 return $2 ();
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_link "$LINENO"; then :
2249   eval "$3=yes"
2250 else
2251   eval "$3=no"
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext \
2254     conftest$ac_exeext conftest.$ac_ext
2255 fi
2256 eval ac_res=\$$3
2257                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260
2261 } # ac_fn_c_check_func
2262
2263 # ac_fn_cxx_try_cpp LINENO
2264 # ------------------------
2265 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_cxx_try_cpp ()
2267 {
2268   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269   if { { ac_try="$ac_cpp conftest.$ac_ext"
2270 case "(($ac_try" in
2271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272   *) ac_try_echo=$ac_try;;
2273 esac
2274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275 $as_echo "$ac_try_echo"; } >&5
2276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2277   ac_status=$?
2278   if test -s conftest.err; then
2279     grep -v '^ *+' conftest.err >conftest.er1
2280     cat conftest.er1 >&5
2281     mv -f conftest.er1 conftest.err
2282   fi
2283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284   test $ac_status = 0; } > conftest.i && {
2285          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2286          test ! -s conftest.err
2287        }; then :
2288   ac_retval=0
2289 else
2290   $as_echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293     ac_retval=1
2294 fi
2295   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296   as_fn_set_status $ac_retval
2297
2298 } # ac_fn_cxx_try_cpp
2299
2300 # ac_fn_cxx_try_link LINENO
2301 # -------------------------
2302 # Try to link conftest.$ac_ext, and return whether this succeeded.
2303 ac_fn_cxx_try_link ()
2304 {
2305   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306   rm -f conftest.$ac_objext conftest$ac_exeext
2307   if { { ac_try="$ac_link"
2308 case "(($ac_try" in
2309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310   *) ac_try_echo=$ac_try;;
2311 esac
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314   (eval "$ac_link") 2>conftest.err
2315   ac_status=$?
2316   if test -s conftest.err; then
2317     grep -v '^ *+' conftest.err >conftest.er1
2318     cat conftest.er1 >&5
2319     mv -f conftest.er1 conftest.err
2320   fi
2321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322   test $ac_status = 0; } && {
2323          test -z "$ac_cxx_werror_flag" ||
2324          test ! -s conftest.err
2325        } && test -s conftest$ac_exeext && {
2326          test "$cross_compiling" = yes ||
2327          $as_test_x conftest$ac_exeext
2328        }; then :
2329   ac_retval=0
2330 else
2331   $as_echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334         ac_retval=1
2335 fi
2336   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2337   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2338   # interfere with the next link command; also delete a directory that is
2339   # left behind by Apple's compiler.  We do this before executing the actions.
2340   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2341   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342   as_fn_set_status $ac_retval
2343
2344 } # ac_fn_cxx_try_link
2345
2346 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2347 # -------------------------------------------
2348 # Tests whether TYPE exists after having included INCLUDES, setting cache
2349 # variable VAR accordingly.
2350 ac_fn_c_check_type ()
2351 {
2352   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354 $as_echo_n "checking for $2... " >&6; }
2355 if eval \${$3+:} false; then :
2356   $as_echo_n "(cached) " >&6
2357 else
2358   eval "$3=no"
2359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h.  */
2361 $4
2362 int
2363 main ()
2364 {
2365 if (sizeof ($2))
2366          return 0;
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 if ac_fn_c_try_compile "$LINENO"; then :
2372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h.  */
2374 $4
2375 int
2376 main ()
2377 {
2378 if (sizeof (($2)))
2379             return 0;
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385
2386 else
2387   eval "$3=yes"
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 eval ac_res=\$$3
2394                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397
2398 } # ac_fn_c_check_type
2399
2400 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2401 # -------------------------------------------------------
2402 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2403 # the include files in INCLUDES and setting the cache variable VAR
2404 # accordingly.
2405 ac_fn_c_check_header_mongrel ()
2406 {
2407   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408   if eval \${$3+:} false; then :
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval \${$3+:} false; then :
2412   $as_echo_n "(cached) " >&6
2413 fi
2414 eval ac_res=\$$3
2415                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416 $as_echo "$ac_res" >&6; }
2417 else
2418   # Is the header compilable?
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2420 $as_echo_n "checking $2 usability... " >&6; }
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h.  */
2423 $4
2424 #include <$2>
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427   ac_header_compiler=yes
2428 else
2429   ac_header_compiler=no
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2433 $as_echo "$ac_header_compiler" >&6; }
2434
2435 # Is the header present?
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2437 $as_echo_n "checking $2 presence... " >&6; }
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h.  */
2440 #include <$2>
2441 _ACEOF
2442 if ac_fn_c_try_cpp "$LINENO"; then :
2443   ac_header_preproc=yes
2444 else
2445   ac_header_preproc=no
2446 fi
2447 rm -f conftest.err conftest.i conftest.$ac_ext
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2449 $as_echo "$ac_header_preproc" >&6; }
2450
2451 # So?  What about this header?
2452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2453   yes:no: )
2454     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2455 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2456     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2457 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2458     ;;
2459   no:yes:* )
2460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2461 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2462     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2463 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2464     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2465 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2467 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2468     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2469 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2470     ;;
2471 esac
2472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2473 $as_echo_n "checking for $2... " >&6; }
2474 if eval \${$3+:} false; then :
2475   $as_echo_n "(cached) " >&6
2476 else
2477   eval "$3=\$ac_header_compiler"
2478 fi
2479 eval ac_res=\$$3
2480                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 fi
2483   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2484
2485 } # ac_fn_c_check_header_mongrel
2486
2487 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2488 # --------------------------------------------
2489 # Tries to find the compile-time value of EXPR in a program that includes
2490 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2491 # computed
2492 ac_fn_c_compute_int ()
2493 {
2494   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495   if test "$cross_compiling" = yes; then
2496     # Depending upon the size, compute the lo and hi bounds.
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h.  */
2499 $4
2500 int
2501 main ()
2502 {
2503 static int test_array [1 - 2 * !(($2) >= 0)];
2504 test_array [0] = 0
2505
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 if ac_fn_c_try_compile "$LINENO"; then :
2511   ac_lo=0 ac_mid=0
2512   while :; do
2513     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h.  */
2515 $4
2516 int
2517 main ()
2518 {
2519 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2520 test_array [0] = 0
2521
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_c_try_compile "$LINENO"; then :
2527   ac_hi=$ac_mid; break
2528 else
2529   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2530                         if test $ac_lo -le $ac_mid; then
2531                           ac_lo= ac_hi=
2532                           break
2533                         fi
2534                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2535 fi
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537   done
2538 else
2539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h.  */
2541 $4
2542 int
2543 main ()
2544 {
2545 static int test_array [1 - 2 * !(($2) < 0)];
2546 test_array [0] = 0
2547
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553   ac_hi=-1 ac_mid=-1
2554   while :; do
2555     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h.  */
2557 $4
2558 int
2559 main ()
2560 {
2561 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2562 test_array [0] = 0
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 if ac_fn_c_try_compile "$LINENO"; then :
2569   ac_lo=$ac_mid; break
2570 else
2571   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2572                         if test $ac_mid -le $ac_hi; then
2573                           ac_lo= ac_hi=
2574                           break
2575                         fi
2576                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2577 fi
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579   done
2580 else
2581   ac_lo= ac_hi=
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 # Binary search between lo and hi bounds.
2587 while test "x$ac_lo" != "x$ac_hi"; do
2588   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h.  */
2591 $4
2592 int
2593 main ()
2594 {
2595 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2596 test_array [0] = 0
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603   ac_hi=$ac_mid
2604 else
2605   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2606 fi
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 done
2609 case $ac_lo in #((
2610 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2611 '') ac_retval=1 ;;
2612 esac
2613   else
2614     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h.  */
2616 $4
2617 static long int longval () { return $2; }
2618 static unsigned long int ulongval () { return $2; }
2619 #include <stdio.h>
2620 #include <stdlib.h>
2621 int
2622 main ()
2623 {
2624
2625   FILE *f = fopen ("conftest.val", "w");
2626   if (! f)
2627     return 1;
2628   if (($2) < 0)
2629     {
2630       long int i = longval ();
2631       if (i != ($2))
2632         return 1;
2633       fprintf (f, "%ld", i);
2634     }
2635   else
2636     {
2637       unsigned long int i = ulongval ();
2638       if (i != ($2))
2639         return 1;
2640       fprintf (f, "%lu", i);
2641     }
2642   /* Do not output a trailing newline, as this causes \r\n confusion
2643      on some platforms.  */
2644   return ferror (f) || fclose (f) != 0;
2645
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 if ac_fn_c_try_run "$LINENO"; then :
2651   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2652 else
2653   ac_retval=1
2654 fi
2655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2656   conftest.$ac_objext conftest.beam conftest.$ac_ext
2657 rm -f conftest.val
2658
2659   fi
2660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2661   as_fn_set_status $ac_retval
2662
2663 } # ac_fn_c_compute_int
2664
2665 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2666 # ----------------------------------------------------
2667 # Tries to find if the field MEMBER exists in type AGGR, after including
2668 # INCLUDES, setting cache variable VAR accordingly.
2669 ac_fn_c_check_member ()
2670 {
2671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2673 $as_echo_n "checking for $2.$3... " >&6; }
2674 if eval \${$4+:} false; then :
2675   $as_echo_n "(cached) " >&6
2676 else
2677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h.  */
2679 $5
2680 int
2681 main ()
2682 {
2683 static $2 ac_aggr;
2684 if (ac_aggr.$3)
2685 return 0;
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 if ac_fn_c_try_compile "$LINENO"; then :
2691   eval "$4=yes"
2692 else
2693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h.  */
2695 $5
2696 int
2697 main ()
2698 {
2699 static $2 ac_aggr;
2700 if (sizeof ac_aggr.$3)
2701 return 0;
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 if ac_fn_c_try_compile "$LINENO"; then :
2707   eval "$4=yes"
2708 else
2709   eval "$4=no"
2710 fi
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 fi
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 fi
2715 eval ac_res=\$$4
2716                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717 $as_echo "$ac_res" >&6; }
2718   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719
2720 } # ac_fn_c_check_member
2721
2722 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2723 # ---------------------------------------------
2724 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2725 # accordingly.
2726 ac_fn_c_check_decl ()
2727 {
2728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729   as_decl_name=`echo $2|sed 's/ *(.*//'`
2730   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2732 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2733 if eval \${$3+:} false; then :
2734   $as_echo_n "(cached) " >&6
2735 else
2736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h.  */
2738 $4
2739 int
2740 main ()
2741 {
2742 #ifndef $as_decl_name
2743 #ifdef __cplusplus
2744   (void) $as_decl_use;
2745 #else
2746   (void) $as_decl_name;
2747 #endif
2748 #endif
2749
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 if ac_fn_c_try_compile "$LINENO"; then :
2755   eval "$3=yes"
2756 else
2757   eval "$3=no"
2758 fi
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 fi
2761 eval ac_res=\$$3
2762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2765
2766 } # ac_fn_c_check_decl
2767
2768 # ac_fn_cxx_try_run LINENO
2769 # ------------------------
2770 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2771 # that executables *can* be run.
2772 ac_fn_cxx_try_run ()
2773 {
2774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2775   if { { ac_try="$ac_link"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781 $as_echo "$ac_try_echo"; } >&5
2782   (eval "$ac_link") 2>&5
2783   ac_status=$?
2784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2786   { { case "(($ac_try" in
2787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788   *) ac_try_echo=$ac_try;;
2789 esac
2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791 $as_echo "$ac_try_echo"; } >&5
2792   (eval "$ac_try") 2>&5
2793   ac_status=$?
2794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795   test $ac_status = 0; }; }; then :
2796   ac_retval=0
2797 else
2798   $as_echo "$as_me: program exited with status $ac_status" >&5
2799        $as_echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802        ac_retval=$ac_status
2803 fi
2804   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806   as_fn_set_status $ac_retval
2807
2808 } # ac_fn_cxx_try_run
2809
2810 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2811 # ---------------------------------------------------------
2812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2813 # the include files in INCLUDES and setting the cache variable VAR
2814 # accordingly.
2815 ac_fn_cxx_check_header_mongrel ()
2816 {
2817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2818   if eval \${$3+:} false; then :
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2820 $as_echo_n "checking for $2... " >&6; }
2821 if eval \${$3+:} false; then :
2822   $as_echo_n "(cached) " >&6
2823 fi
2824 eval ac_res=\$$3
2825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2826 $as_echo "$ac_res" >&6; }
2827 else
2828   # Is the header compilable?
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2830 $as_echo_n "checking $2 usability... " >&6; }
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h.  */
2833 $4
2834 #include <$2>
2835 _ACEOF
2836 if ac_fn_cxx_try_compile "$LINENO"; then :
2837   ac_header_compiler=yes
2838 else
2839   ac_header_compiler=no
2840 fi
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2843 $as_echo "$ac_header_compiler" >&6; }
2844
2845 # Is the header present?
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2847 $as_echo_n "checking $2 presence... " >&6; }
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h.  */
2850 #include <$2>
2851 _ACEOF
2852 if ac_fn_cxx_try_cpp "$LINENO"; then :
2853   ac_header_preproc=yes
2854 else
2855   ac_header_preproc=no
2856 fi
2857 rm -f conftest.err conftest.i conftest.$ac_ext
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2859 $as_echo "$ac_header_preproc" >&6; }
2860
2861 # So?  What about this header?
2862 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2863   yes:no: )
2864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2868     ;;
2869   no:yes:* )
2870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2873 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2877 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2880     ;;
2881 esac
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2883 $as_echo_n "checking for $2... " >&6; }
2884 if eval \${$3+:} false; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   eval "$3=\$ac_header_compiler"
2888 fi
2889 eval ac_res=\$$3
2890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2891 $as_echo "$ac_res" >&6; }
2892 fi
2893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2894
2895 } # ac_fn_cxx_check_header_mongrel
2896 cat >config.log <<_ACEOF
2897 This file contains any messages produced by compilers while
2898 running configure, to aid debugging if configure makes a mistake.
2899
2900 It was created by bacula $as_me 5.1.15, which was
2901 generated by GNU Autoconf 2.68.  Invocation command line was
2902
2903   $ $0 $@
2904
2905 _ACEOF
2906 exec 5>>config.log
2907 {
2908 cat <<_ASUNAME
2909 ## --------- ##
2910 ## Platform. ##
2911 ## --------- ##
2912
2913 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2914 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2915 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2916 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2917 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2918
2919 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2920 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2921
2922 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2923 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2924 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2925 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2926 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2927 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2928 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2929
2930 _ASUNAME
2931
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935   IFS=$as_save_IFS
2936   test -z "$as_dir" && as_dir=.
2937     $as_echo "PATH: $as_dir"
2938   done
2939 IFS=$as_save_IFS
2940
2941 } >&5
2942
2943 cat >&5 <<_ACEOF
2944
2945
2946 ## ----------- ##
2947 ## Core tests. ##
2948 ## ----------- ##
2949
2950 _ACEOF
2951
2952
2953 # Keep a trace of the command line.
2954 # Strip out --no-create and --no-recursion so they do not pile up.
2955 # Strip out --silent because we don't want to record it for future runs.
2956 # Also quote any args containing shell meta-characters.
2957 # Make two passes to allow for proper duplicate-argument suppression.
2958 ac_configure_args=
2959 ac_configure_args0=
2960 ac_configure_args1=
2961 ac_must_keep_next=false
2962 for ac_pass in 1 2
2963 do
2964   for ac_arg
2965   do
2966     case $ac_arg in
2967     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2968     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2969     | -silent | --silent | --silen | --sile | --sil)
2970       continue ;;
2971     *\'*)
2972       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2973     esac
2974     case $ac_pass in
2975     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2976     2)
2977       as_fn_append ac_configure_args1 " '$ac_arg'"
2978       if test $ac_must_keep_next = true; then
2979         ac_must_keep_next=false # Got value, back to normal.
2980       else
2981         case $ac_arg in
2982           *=* | --config-cache | -C | -disable-* | --disable-* \
2983           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2984           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2985           | -with-* | --with-* | -without-* | --without-* | --x)
2986             case "$ac_configure_args0 " in
2987               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2988             esac
2989             ;;
2990           -* ) ac_must_keep_next=true ;;
2991         esac
2992       fi
2993       as_fn_append ac_configure_args " '$ac_arg'"
2994       ;;
2995     esac
2996   done
2997 done
2998 { ac_configure_args0=; unset ac_configure_args0;}
2999 { ac_configure_args1=; unset ac_configure_args1;}
3000
3001 # When interrupted or exit'd, cleanup temporary files, and complete
3002 # config.log.  We remove comments because anyway the quotes in there
3003 # would cause problems or look ugly.
3004 # WARNING: Use '\'' to represent an apostrophe within the trap.
3005 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3006 trap 'exit_status=$?
3007   # Save into config.log some information that might help in debugging.
3008   {
3009     echo
3010
3011     $as_echo "## ---------------- ##
3012 ## Cache variables. ##
3013 ## ---------------- ##"
3014     echo
3015     # The following way of writing the cache mishandles newlines in values,
3016 (
3017   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3018     eval ac_val=\$$ac_var
3019     case $ac_val in #(
3020     *${as_nl}*)
3021       case $ac_var in #(
3022       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3023 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3024       esac
3025       case $ac_var in #(
3026       _ | IFS | as_nl) ;; #(
3027       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3028       *) { eval $ac_var=; unset $ac_var;} ;;
3029       esac ;;
3030     esac
3031   done
3032   (set) 2>&1 |
3033     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3034     *${as_nl}ac_space=\ *)
3035       sed -n \
3036         "s/'\''/'\''\\\\'\'''\''/g;
3037           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3038       ;; #(
3039     *)
3040       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3041       ;;
3042     esac |
3043     sort
3044 )
3045     echo
3046
3047     $as_echo "## ----------------- ##
3048 ## Output variables. ##
3049 ## ----------------- ##"
3050     echo
3051     for ac_var in $ac_subst_vars
3052     do
3053       eval ac_val=\$$ac_var
3054       case $ac_val in
3055       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3056       esac
3057       $as_echo "$ac_var='\''$ac_val'\''"
3058     done | sort
3059     echo
3060
3061     if test -n "$ac_subst_files"; then
3062       $as_echo "## ------------------- ##
3063 ## File substitutions. ##
3064 ## ------------------- ##"
3065       echo
3066       for ac_var in $ac_subst_files
3067       do
3068         eval ac_val=\$$ac_var
3069         case $ac_val in
3070         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3071         esac
3072         $as_echo "$ac_var='\''$ac_val'\''"
3073       done | sort
3074       echo
3075     fi
3076
3077     if test -s confdefs.h; then
3078       $as_echo "## ----------- ##
3079 ## confdefs.h. ##
3080 ## ----------- ##"
3081       echo
3082       cat confdefs.h
3083       echo
3084     fi
3085     test "$ac_signal" != 0 &&
3086       $as_echo "$as_me: caught signal $ac_signal"
3087     $as_echo "$as_me: exit $exit_status"
3088   } >&5
3089   rm -f core *.core core.conftest.* &&
3090     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3091     exit $exit_status
3092 ' 0
3093 for ac_signal in 1 2 13 15; do
3094   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3095 done
3096 ac_signal=0
3097
3098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3099 rm -f -r conftest* confdefs.h
3100
3101 $as_echo "/* confdefs.h */" > confdefs.h
3102
3103 # Predefined preprocessor variables.
3104
3105 cat >>confdefs.h <<_ACEOF
3106 #define PACKAGE_NAME "$PACKAGE_NAME"
3107 _ACEOF
3108
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3111 _ACEOF
3112
3113 cat >>confdefs.h <<_ACEOF
3114 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3115 _ACEOF
3116
3117 cat >>confdefs.h <<_ACEOF
3118 #define PACKAGE_STRING "$PACKAGE_STRING"
3119 _ACEOF
3120
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3123 _ACEOF
3124
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_URL "$PACKAGE_URL"
3127 _ACEOF
3128
3129
3130 # Let the site file select an alternate cache file if it wants to.
3131 # Prefer an explicitly selected file to automatically selected ones.
3132 ac_site_file1=NONE
3133 ac_site_file2=NONE
3134 if test -n "$CONFIG_SITE"; then
3135   # We do not want a PATH search for config.site.
3136   case $CONFIG_SITE in #((
3137     -*)  ac_site_file1=./$CONFIG_SITE;;
3138     */*) ac_site_file1=$CONFIG_SITE;;
3139     *)   ac_site_file1=./$CONFIG_SITE;;
3140   esac
3141 elif test "x$prefix" != xNONE; then
3142   ac_site_file1=$prefix/share/config.site
3143   ac_site_file2=$prefix/etc/config.site
3144 else
3145   ac_site_file1=$ac_default_prefix/share/config.site
3146   ac_site_file2=$ac_default_prefix/etc/config.site
3147 fi
3148 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3149 do
3150   test "x$ac_site_file" = xNONE && continue
3151   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3152     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3153 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3154     sed 's/^/| /' "$ac_site_file" >&5
3155     . "$ac_site_file" \
3156       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 as_fn_error $? "failed to load site script $ac_site_file
3159 See \`config.log' for more details" "$LINENO" 5; }
3160   fi
3161 done
3162
3163 if test -r "$cache_file"; then
3164   # Some versions of bash will fail to source /dev/null (special files
3165   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3166   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3167     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3168 $as_echo "$as_me: loading cache $cache_file" >&6;}
3169     case $cache_file in
3170       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3171       *)                      . "./$cache_file";;
3172     esac
3173   fi
3174 else
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3176 $as_echo "$as_me: creating cache $cache_file" >&6;}
3177   >$cache_file
3178 fi
3179
3180 as_fn_append ac_header_list " stdlib.h"
3181 as_fn_append ac_header_list " unistd.h"
3182 as_fn_append ac_header_list " sys/param.h"
3183 # Check that the precious variables saved in the cache have kept the same
3184 # value.
3185 ac_cache_corrupted=false
3186 for ac_var in $ac_precious_vars; do
3187   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3188   eval ac_new_set=\$ac_env_${ac_var}_set
3189   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3190   eval ac_new_val=\$ac_env_${ac_var}_value
3191   case $ac_old_set,$ac_new_set in
3192     set,)
3193       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3194 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3195       ac_cache_corrupted=: ;;
3196     ,set)
3197       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3198 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3199       ac_cache_corrupted=: ;;
3200     ,);;
3201     *)
3202       if test "x$ac_old_val" != "x$ac_new_val"; then
3203         # differences in whitespace do not lead to failure.
3204         ac_old_val_w=`echo x $ac_old_val`
3205         ac_new_val_w=`echo x $ac_new_val`
3206         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3207           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3208 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3209           ac_cache_corrupted=:
3210         else
3211           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3212 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3213           eval $ac_var=\$ac_old_val
3214         fi
3215         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3216 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3217         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3218 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3219       fi;;
3220   esac
3221   # Pass precious variables to config.status.
3222   if test "$ac_new_set" = set; then
3223     case $ac_new_val in
3224     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3225     *) ac_arg=$ac_var=$ac_new_val ;;
3226     esac
3227     case " $ac_configure_args " in
3228       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3229       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3230     esac
3231   fi
3232 done
3233 if $ac_cache_corrupted; then
3234   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3237 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3238   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3239 fi
3240 ## -------------------- ##
3241 ## Main body of script. ##
3242 ## -------------------- ##
3243
3244 ac_ext=c
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
3250
3251
3252
3253 BUILD_DIR=`pwd`
3254 cd ..
3255 TOP_DIR=`pwd`
3256 cd ${BUILD_DIR}
3257
3258
3259 ac_aux_dir=
3260 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3261   if test -f "$ac_dir/install-sh"; then
3262     ac_aux_dir=$ac_dir
3263     ac_install_sh="$ac_aux_dir/install-sh -c"
3264     break
3265   elif test -f "$ac_dir/install.sh"; then
3266     ac_aux_dir=$ac_dir
3267     ac_install_sh="$ac_aux_dir/install.sh -c"
3268     break
3269   elif test -f "$ac_dir/shtool"; then
3270     ac_aux_dir=$ac_dir
3271     ac_install_sh="$ac_aux_dir/shtool install -c"
3272     break
3273   fi
3274 done
3275 if test -z "$ac_aux_dir"; then
3276   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3277 fi
3278
3279 # These three variables are undocumented and unsupported,
3280 # and are intended to be withdrawn in a future Autoconf release.
3281 # They can cause serious problems if a builder's source tree is in a directory
3282 # whose full name contains unusual characters.
3283 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3284 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3285 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3286
3287
3288 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3289
3290
3291 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3292 WIN32MAINDIR=${BUILD_DIR}
3293 WIN32TOPDIR=${TOP_DIR}
3294
3295
3296
3297
3298 for ac_prog in true
3299 do
3300   # Extract the first word of "$ac_prog", so it can be a program name with args.
3301 set dummy $ac_prog; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_path_TRUEPRG+:} false; then :
3305   $as_echo_n "(cached) " >&6
3306 else
3307   case $TRUEPRG in
3308   [\\/]* | ?:[\\/]*)
3309   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3310   ;;
3311   *)
3312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315   IFS=$as_save_IFS
3316   test -z "$as_dir" && as_dir=.
3317     for ac_exec_ext in '' $ac_executable_extensions; do
3318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321     break 2
3322   fi
3323 done
3324   done
3325 IFS=$as_save_IFS
3326
3327   ;;
3328 esac
3329 fi
3330 TRUEPRG=$ac_cv_path_TRUEPRG
3331 if test -n "$TRUEPRG"; then
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3333 $as_echo "$TRUEPRG" >&6; }
3334 else
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 fi
3338
3339
3340   test -n "$TRUEPRG" && break
3341 done
3342 test -n "$TRUEPRG" || TRUEPRG=":"
3343
3344 for ac_prog in false
3345 do
3346   # Extract the first word of "$ac_prog", so it can be a program name with args.
3347 set dummy $ac_prog; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_path_FALSEPRG+:} false; then :
3351   $as_echo_n "(cached) " >&6
3352 else
3353   case $FALSEPRG in
3354   [\\/]* | ?:[\\/]*)
3355   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3356   ;;
3357   *)
3358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361   IFS=$as_save_IFS
3362   test -z "$as_dir" && as_dir=.
3363     for ac_exec_ext in '' $ac_executable_extensions; do
3364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367     break 2
3368   fi
3369 done
3370   done
3371 IFS=$as_save_IFS
3372
3373   ;;
3374 esac
3375 fi
3376 FALSEPRG=$ac_cv_path_FALSEPRG
3377 if test -n "$FALSEPRG"; then
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3379 $as_echo "$FALSEPRG" >&6; }
3380 else
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 fi
3384
3385
3386   test -n "$FALSEPRG" && break
3387 done
3388 test -n "$FALSEPRG" || FALSEPRG=":"
3389
3390
3391
3392 post_host=
3393 if test "x$BACULA" != x; then
3394    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3395 fi
3396 BACULA=${BACULA:-Bacula}
3397 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3398 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3399 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3400 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3401
3402 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3403 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3404 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3405
3406 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3407 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3408 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3409
3410
3411 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3412 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3413
3414 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3415 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3416
3417
3418 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3419
3420 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3421
3422
3423 echo "configuring for ${BACULA} $VERSION ($DATE)"
3424
3425
3426
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 if test -n "$ac_tool_prefix"; then
3433   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_CC+:} false; then :
3438   $as_echo_n "(cached) " >&6
3439 else
3440   if test -n "$CC"; then
3441   ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446   IFS=$as_save_IFS
3447   test -z "$as_dir" && as_dir=.
3448     for ac_exec_ext in '' $ac_executable_extensions; do
3449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452     break 2
3453   fi
3454 done
3455   done
3456 IFS=$as_save_IFS
3457
3458 fi
3459 fi
3460 CC=$ac_cv_prog_CC
3461 if test -n "$CC"; then
3462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3464 else
3465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 fi
3468
3469
3470 fi
3471 if test -z "$ac_cv_prog_CC"; then
3472   ac_ct_CC=$CC
3473   # Extract the first word of "gcc", so it can be a program name with args.
3474 set dummy gcc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3478   $as_echo_n "(cached) " >&6
3479 else
3480   if test -n "$ac_ct_CC"; then
3481   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486   IFS=$as_save_IFS
3487   test -z "$as_dir" && as_dir=.
3488     for ac_exec_ext in '' $ac_executable_extensions; do
3489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490     ac_cv_prog_ac_ct_CC="gcc"
3491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492     break 2
3493   fi
3494 done
3495   done
3496 IFS=$as_save_IFS
3497
3498 fi
3499 fi
3500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501 if test -n "$ac_ct_CC"; then
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503 $as_echo "$ac_ct_CC" >&6; }
3504 else
3505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 fi
3508
3509   if test "x$ac_ct_CC" = x; then
3510     CC=""
3511   else
3512     case $cross_compiling:$ac_tool_warned in
3513 yes:)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned=yes ;;
3517 esac
3518     CC=$ac_ct_CC
3519   fi
3520 else
3521   CC="$ac_cv_prog_CC"
3522 fi
3523
3524 if test -z "$CC"; then
3525           if test -n "$ac_tool_prefix"; then
3526     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3527 set dummy ${ac_tool_prefix}cc; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_CC+:} false; then :
3531   $as_echo_n "(cached) " >&6
3532 else
3533   if test -n "$CC"; then
3534   ac_cv_prog_CC="$CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541     for ac_exec_ext in '' $ac_executable_extensions; do
3542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543     ac_cv_prog_CC="${ac_tool_prefix}cc"
3544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545     break 2
3546   fi
3547 done
3548   done
3549 IFS=$as_save_IFS
3550
3551 fi
3552 fi
3553 CC=$ac_cv_prog_CC
3554 if test -n "$CC"; then
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3557 else
3558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 fi
3561
3562
3563   fi
3564 fi
3565 if test -z "$CC"; then
3566   # Extract the first word of "cc", so it can be a program name with args.
3567 set dummy cc; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_prog_CC+:} false; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   if test -n "$CC"; then
3574   ac_cv_prog_CC="$CC" # Let the user override the test.
3575 else
3576   ac_prog_rejected=no
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580   IFS=$as_save_IFS
3581   test -z "$as_dir" && as_dir=.
3582     for ac_exec_ext in '' $ac_executable_extensions; do
3583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3585        ac_prog_rejected=yes
3586        continue
3587      fi
3588     ac_cv_prog_CC="cc"
3589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590     break 2
3591   fi
3592 done
3593   done
3594 IFS=$as_save_IFS
3595
3596 if test $ac_prog_rejected = yes; then
3597   # We found a bogon in the path, so make sure we never use it.
3598   set dummy $ac_cv_prog_CC
3599   shift
3600   if test $# != 0; then
3601     # We chose a different compiler from the bogus one.
3602     # However, it has the same basename, so the bogon will be chosen
3603     # first if we set CC to just the basename; use the full file name.
3604     shift
3605     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3606   fi
3607 fi
3608 fi
3609 fi
3610 CC=$ac_cv_prog_CC
3611 if test -n "$CC"; then
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3614 else
3615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619
3620 fi
3621 if test -z "$CC"; then
3622   if test -n "$ac_tool_prefix"; then
3623   for ac_prog in cl.exe
3624   do
3625     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if ${ac_cv_prog_CC+:} false; then :
3630   $as_echo_n "(cached) " >&6
3631 else
3632   if test -n "$CC"; then
3633   ac_cv_prog_CC="$CC" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640     for ac_exec_ext in '' $ac_executable_extensions; do
3641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647   done
3648 IFS=$as_save_IFS
3649
3650 fi
3651 fi
3652 CC=$ac_cv_prog_CC
3653 if test -n "$CC"; then
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3655 $as_echo "$CC" >&6; }
3656 else
3657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3659 fi
3660
3661
3662     test -n "$CC" && break
3663   done
3664 fi
3665 if test -z "$CC"; then
3666   ac_ct_CC=$CC
3667   for ac_prog in cl.exe
3668 do
3669   # Extract the first word of "$ac_prog", so it can be a program name with args.
3670 set dummy $ac_prog; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676   if test -n "$ac_ct_CC"; then
3677   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3678 else
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3681 do
3682   IFS=$as_save_IFS
3683   test -z "$as_dir" && as_dir=.
3684     for ac_exec_ext in '' $ac_executable_extensions; do
3685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686     ac_cv_prog_ac_ct_CC="$ac_prog"
3687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688     break 2
3689   fi
3690 done
3691   done
3692 IFS=$as_save_IFS
3693
3694 fi
3695 fi
3696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3697 if test -n "$ac_ct_CC"; then
3698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3699 $as_echo "$ac_ct_CC" >&6; }
3700 else
3701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 fi
3704
3705
3706   test -n "$ac_ct_CC" && break
3707 done
3708
3709   if test "x$ac_ct_CC" = x; then
3710     CC=""
3711   else
3712     case $cross_compiling:$ac_tool_warned in
3713 yes:)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3716 ac_tool_warned=yes ;;
3717 esac
3718     CC=$ac_ct_CC
3719   fi
3720 fi
3721
3722 fi
3723
3724
3725 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error $? "no acceptable C compiler found in \$PATH
3728 See \`config.log' for more details" "$LINENO" 5; }
3729
3730 # Provide some information about the compiler.
3731 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3732 set X $ac_compile
3733 ac_compiler=$2
3734 for ac_option in --version -v -V -qversion; do
3735   { { ac_try="$ac_compiler $ac_option >&5"
3736 case "(($ac_try" in
3737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738   *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3743   ac_status=$?
3744   if test -s conftest.err; then
3745     sed '10a\
3746 ... rest of stderr output deleted ...
3747          10q' conftest.err >conftest.er1
3748     cat conftest.er1 >&5
3749   fi
3750   rm -f conftest.er1 conftest.err
3751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752   test $ac_status = 0; }
3753 done
3754
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757
3758 int
3759 main ()
3760 {
3761
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 ac_clean_files_save=$ac_clean_files
3767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3768 # Try to create an executable without -o first, disregard a.out.
3769 # It will help us diagnose broken compilers, and finding out an intuition
3770 # of exeext.
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3772 $as_echo_n "checking whether the C compiler works... " >&6; }
3773 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3774
3775 # The possible output files:
3776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3777
3778 ac_rmfiles=
3779 for ac_file in $ac_files
3780 do
3781   case $ac_file in
3782     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3784   esac
3785 done
3786 rm -f $ac_rmfiles
3787
3788 if { { ac_try="$ac_link_default"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795   (eval "$ac_link_default") 2>&5
3796   ac_status=$?
3797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798   test $ac_status = 0; }; then :
3799   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3800 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3801 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3802 # so that the user can short-circuit this test for compilers unknown to
3803 # Autoconf.
3804 for ac_file in $ac_files ''
3805 do
3806   test -f "$ac_file" || continue
3807   case $ac_file in
3808     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3809         ;;
3810     [ab].out )
3811         # We found the default executable, but exeext='' is most
3812         # certainly right.
3813         break;;
3814     *.* )
3815         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3816         then :; else
3817            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3818         fi
3819         # We set ac_cv_exeext here because the later test for it is not
3820         # safe: cross compilers may not add the suffix if given an `-o'
3821         # argument, so we may need to know it at that point already.
3822         # Even if this section looks crufty: it has the advantage of
3823         # actually working.
3824         break;;
3825     * )
3826         break;;
3827   esac
3828 done
3829 test "$ac_cv_exeext" = no && ac_cv_exeext=
3830
3831 else
3832   ac_file=''
3833 fi
3834 if test -z "$ac_file"; then :
3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error 77 "C compiler cannot create executables
3843 See \`config.log' for more details" "$LINENO" 5; }
3844 else
3845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3846 $as_echo "yes" >&6; }
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3849 $as_echo_n "checking for C compiler default output file name... " >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3851 $as_echo "$ac_file" >&6; }
3852 ac_exeext=$ac_cv_exeext
3853
3854 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3855 ac_clean_files=$ac_clean_files_save
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3857 $as_echo_n "checking for suffix of executables... " >&6; }
3858 if { { ac_try="$ac_link"
3859 case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865   (eval "$ac_link") 2>&5
3866   ac_status=$?
3867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868   test $ac_status = 0; }; then :
3869   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3870 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3871 # work properly (i.e., refer to `conftest.exe'), while it won't with
3872 # `rm'.
3873 for ac_file in conftest.exe conftest conftest.*; do
3874   test -f "$ac_file" || continue
3875   case $ac_file in
3876     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3877     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878           break;;
3879     * ) break;;
3880   esac
3881 done
3882 else
3883   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3886 See \`config.log' for more details" "$LINENO" 5; }
3887 fi
3888 rm -f conftest conftest$ac_cv_exeext
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3890 $as_echo "$ac_cv_exeext" >&6; }
3891
3892 rm -f conftest.$ac_ext
3893 EXEEXT=$ac_cv_exeext
3894 ac_exeext=$EXEEXT
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h.  */
3897 #include <stdio.h>
3898 int
3899 main ()
3900 {
3901 FILE *f = fopen ("conftest.out", "w");
3902  return ferror (f) || fclose (f) != 0;
3903
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 ac_clean_files="$ac_clean_files conftest.out"
3909 # Check that the compiler produces executables we can run.  If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3912 $as_echo_n "checking whether we are cross compiling... " >&6; }
3913 if test "$cross_compiling" != yes; then
3914   { { ac_try="$ac_link"
3915 case "(($ac_try" in
3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917   *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921   (eval "$ac_link") 2>&5
3922   ac_status=$?
3923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924   test $ac_status = 0; }
3925   if { ac_try='./conftest$ac_cv_exeext'
3926   { { case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932   (eval "$ac_try") 2>&5
3933   ac_status=$?
3934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935   test $ac_status = 0; }; }; then
3936     cross_compiling=no
3937   else
3938     if test "$cross_compiling" = maybe; then
3939         cross_compiling=yes
3940     else
3941         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "cannot run C compiled programs.
3944 If you meant to cross compile, use \`--host'.
3945 See \`config.log' for more details" "$LINENO" 5; }
3946     fi
3947   fi
3948 fi
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3951
3952 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3953 ac_clean_files=$ac_clean_files_save
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if ${ac_cv_objext+:} false; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h.  */
3961
3962 int
3963 main ()
3964 {
3965
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3972 case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978   (eval "$ac_compile") 2>&5
3979   ac_status=$?
3980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981   test $ac_status = 0; }; then :
3982   for ac_file in conftest.o conftest.obj conftest.*; do
3983   test -f "$ac_file" || continue;
3984   case $ac_file in
3985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3987        break;;
3988   esac
3989 done
3990 else
3991   $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error $? "cannot compute suffix of object files: cannot compile
3997 See \`config.log' for more details" "$LINENO" 5; }
3998 fi
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4004 ac_objext=$OBJEXT
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if ${ac_cv_c_compiler_gnu+:} false; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016 #ifndef __GNUC__
4017        choke me
4018 #endif
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025   ac_compiler_gnu=yes
4026 else
4027   ac_compiler_gnu=no
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4036   GCC=yes
4037 else
4038   GCC=
4039 fi
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if ${ac_cv_prog_cc_g+:} false; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   ac_save_c_werror_flag=$ac_c_werror_flag
4048    ac_c_werror_flag=yes
4049    ac_cv_prog_cc_g=no
4050    CFLAGS="-g"
4051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h.  */
4053
4054 int
4055 main ()
4056 {
4057
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063   ac_cv_prog_cc_g=yes
4064 else
4065   CFLAGS=""
4066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h.  */
4068
4069 int
4070 main ()
4071 {
4072
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078
4079 else
4080   ac_c_werror_flag=$ac_save_c_werror_flag
4081          CFLAGS="-g"
4082          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h.  */
4084
4085 int
4086 main ()
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094   ac_cv_prog_cc_g=yes
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 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101    ac_c_werror_flag=$ac_save_c_werror_flag
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106   CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108   if test "$GCC" = yes; then
4109     CFLAGS="-g -O2"
4110   else
4111     CFLAGS="-g"
4112   fi
4113 else
4114   if test "$GCC" = yes; then
4115     CFLAGS="-O2"
4116   else
4117     CFLAGS=
4118   fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if ${ac_cv_prog_cc_c89+:} false; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   ac_cv_prog_cc_c89=no
4126 ac_save_CC=$CC
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129 #include <stdarg.h>
4130 #include <stdio.h>
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4137      char **p;
4138      int i;
4139 {
4140   return p[i];
4141 }
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4143 {
4144   char *s;
4145   va_list v;
4146   va_start (v,p);
4147   s = g (p, va_arg (v,int));
4148   va_end (v);
4149   return s;
4150 }
4151
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4153    function prototypes and stuff, but not '\xHH' hex character constants.
4154    These don't provoke an error unfortunately, instead are silently treated
4155    as 'x'.  The following induces an error, until -std is added to get
4156    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4157    array size at least.  It's necessary to write '\x00'==0 to get something
4158    that's true only with -std.  */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162    inside strings and character constants.  */
4163 #define FOO(x) 'x'
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4165
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170 int argc;
4171 char **argv;
4172 int
4173 main ()
4174 {
4175 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4182 do
4183   CC="$ac_save_CC $ac_arg"
4184   if ac_fn_c_try_compile "$LINENO"; then :
4185   ac_cv_prog_cc_c89=$ac_arg
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext
4188   test "x$ac_cv_prog_cc_c89" != "xno" && break
4189 done
4190 rm -f conftest.$ac_ext
4191 CC=$ac_save_CC
4192
4193 fi
4194 # AC_CACHE_VAL
4195 case "x$ac_cv_prog_cc_c89" in
4196   x)
4197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4199   xno)
4200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4202   *)
4203     CC="$CC $ac_cv_prog_cc_c89"
4204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206 esac
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4208
4209 fi
4210
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
4217 ac_ext=cpp
4218 ac_cpp='$CXXCPP $CPPFLAGS'
4219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4222 if test -z "$CXX"; then
4223   if test -n "$CCC"; then
4224     CXX=$CCC
4225   else
4226     if test -n "$ac_tool_prefix"; then
4227   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4228   do
4229     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_CXX+:} false; then :
4234   $as_echo_n "(cached) " >&6
4235 else
4236   if test -n "$CXX"; then
4237   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244     for ac_exec_ext in '' $ac_executable_extensions; do
4245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248     break 2
4249   fi
4250 done
4251   done
4252 IFS=$as_save_IFS
4253
4254 fi
4255 fi
4256 CXX=$ac_cv_prog_CXX
4257 if test -n "$CXX"; then
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4259 $as_echo "$CXX" >&6; }
4260 else
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4263 fi
4264
4265
4266     test -n "$CXX" && break
4267   done
4268 fi
4269 if test -z "$CXX"; then
4270   ac_ct_CXX=$CXX
4271   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4272 do
4273   # Extract the first word of "$ac_prog", so it can be a program name with args.
4274 set dummy $ac_prog; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test -n "$ac_ct_CXX"; then
4281   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288     for ac_exec_ext in '' $ac_executable_extensions; do
4289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290     ac_cv_prog_ac_ct_CXX="$ac_prog"
4291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295   done
4296 IFS=$as_save_IFS
4297
4298 fi
4299 fi
4300 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4301 if test -n "$ac_ct_CXX"; then
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4303 $as_echo "$ac_ct_CXX" >&6; }
4304 else
4305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 fi
4308
4309
4310   test -n "$ac_ct_CXX" && break
4311 done
4312
4313   if test "x$ac_ct_CXX" = x; then
4314     CXX="g++"
4315   else
4316     case $cross_compiling:$ac_tool_warned in
4317 yes:)
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4320 ac_tool_warned=yes ;;
4321 esac
4322     CXX=$ac_ct_CXX
4323   fi
4324 fi
4325
4326   fi
4327 fi
4328 # Provide some information about the compiler.
4329 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4330 set X $ac_compile
4331 ac_compiler=$2
4332 for ac_option in --version -v -V -qversion; do
4333   { { ac_try="$ac_compiler $ac_option >&5"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 $as_echo "$ac_try_echo"; } >&5
4340   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4341   ac_status=$?
4342   if test -s conftest.err; then
4343     sed '10a\
4344 ... rest of stderr output deleted ...
4345          10q' conftest.err >conftest.er1
4346     cat conftest.er1 >&5
4347   fi
4348   rm -f conftest.er1 conftest.err
4349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350   test $ac_status = 0; }
4351 done
4352
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4354 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4355 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4356   $as_echo_n "(cached) " >&6
4357 else
4358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h.  */
4360
4361 int
4362 main ()
4363 {
4364 #ifndef __GNUC__
4365        choke me
4366 #endif
4367
4368   ;
4369   return 0;
4370 }
4371 _ACEOF
4372 if ac_fn_cxx_try_compile "$LINENO"; then :
4373   ac_compiler_gnu=yes
4374 else
4375   ac_compiler_gnu=no
4376 fi
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4379
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4382 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4383 if test $ac_compiler_gnu = yes; then
4384   GXX=yes
4385 else
4386   GXX=
4387 fi
4388 ac_test_CXXFLAGS=${CXXFLAGS+set}
4389 ac_save_CXXFLAGS=$CXXFLAGS
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4391 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4392 if ${ac_cv_prog_cxx_g+:} false; then :
4393   $as_echo_n "(cached) " >&6
4394 else
4395   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4396    ac_cxx_werror_flag=yes
4397    ac_cv_prog_cxx_g=no
4398    CXXFLAGS="-g"
4399    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h.  */
4401
4402 int
4403 main ()
4404 {
4405
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 if ac_fn_cxx_try_compile "$LINENO"; then :
4411   ac_cv_prog_cxx_g=yes
4412 else
4413   CXXFLAGS=""
4414       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h.  */
4416
4417 int
4418 main ()
4419 {
4420
4421   ;
4422   return 0;
4423 }
4424 _ACEOF
4425 if ac_fn_cxx_try_compile "$LINENO"; then :
4426
4427 else
4428   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4429          CXXFLAGS="-g"
4430          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432
4433 int
4434 main ()
4435 {
4436
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 if ac_fn_cxx_try_compile "$LINENO"; then :
4442   ac_cv_prog_cxx_g=yes
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 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4450 fi
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4452 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4453 if test "$ac_test_CXXFLAGS" = set; then
4454   CXXFLAGS=$ac_save_CXXFLAGS
4455 elif test $ac_cv_prog_cxx_g = yes; then
4456   if test "$GXX" = yes; then
4457     CXXFLAGS="-g -O2"
4458   else
4459     CXXFLAGS="-g"
4460   fi
4461 else
4462   if test "$GXX" = yes; then
4463     CXXFLAGS="-O2"
4464   else
4465     CXXFLAGS=
4466   fi
4467 fi
4468 ac_ext=c
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473
4474 if test "x$CC" != xcc; then
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4476 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4477 else
4478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4479 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4480 fi
4481 set dummy $CC; ac_cc=`$as_echo "$2" |
4482                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4483 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4484   $as_echo_n "(cached) " >&6
4485 else
4486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h.  */
4488
4489 int
4490 main ()
4491 {
4492
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 # Make sure it works both with $CC and with simple cc.
4498 # We do the test twice because some compilers refuse to overwrite an
4499 # existing .o file with -o, though they will create one.
4500 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4501 rm -f conftest2.*
4502 if { { case "(($ac_try" in
4503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504   *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508   (eval "$ac_try") 2>&5
4509   ac_status=$?
4510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511   test $ac_status = 0; } &&
4512    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517 $as_echo "$ac_try_echo"; } >&5
4518   (eval "$ac_try") 2>&5
4519   ac_status=$?
4520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521   test $ac_status = 0; };
4522 then
4523   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4524   if test "x$CC" != xcc; then
4525     # Test first that cc exists at all.
4526     if { ac_try='cc -c conftest.$ac_ext >&5'
4527   { { case "(($ac_try" in
4528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529   *) ac_try_echo=$ac_try;;
4530 esac
4531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532 $as_echo "$ac_try_echo"; } >&5
4533   (eval "$ac_try") 2>&5
4534   ac_status=$?
4535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4536   test $ac_status = 0; }; }; then
4537       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4538       rm -f conftest2.*
4539       if { { case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544 $as_echo "$ac_try_echo"; } >&5
4545   (eval "$ac_try") 2>&5
4546   ac_status=$?
4547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548   test $ac_status = 0; } &&
4549          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551   *) ac_try_echo=$ac_try;;
4552 esac
4553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4554 $as_echo "$ac_try_echo"; } >&5
4555   (eval "$ac_try") 2>&5
4556   ac_status=$?
4557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4558   test $ac_status = 0; };
4559       then
4560         # cc works too.
4561         :
4562       else
4563         # cc exists but doesn't like -o.
4564         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4565       fi
4566     fi
4567   fi
4568 else
4569   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4570 fi
4571 rm -f core conftest*
4572
4573 fi
4574 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 $as_echo "yes" >&6; }
4577 else
4578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4580
4581 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4582
4583 fi
4584
4585 ac_ext=c
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4591 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4592 # On Suns, sometimes $CPP names a directory.
4593 if test -n "$CPP" && test -d "$CPP"; then
4594   CPP=
4595 fi
4596 if test -z "$CPP"; then
4597   if ${ac_cv_prog_CPP+:} false; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600       # Double quotes because CPP needs to be expanded
4601     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4602     do
4603       ac_preproc_ok=false
4604 for ac_c_preproc_warn_flag in '' yes
4605 do
4606   # Use a header file that comes with gcc, so configuring glibc
4607   # with a fresh cross-compiler works.
4608   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4609   # <limits.h> exists even on freestanding compilers.
4610   # On the NeXT, cc -E runs the code through the compiler's parser,
4611   # not just through cpp. "Syntax error" is here to catch this case.
4612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h.  */
4614 #ifdef __STDC__
4615 # include <limits.h>
4616 #else
4617 # include <assert.h>
4618 #endif
4619                      Syntax error
4620 _ACEOF
4621 if ac_fn_c_try_cpp "$LINENO"; then :
4622
4623 else
4624   # Broken: fails on valid input.
4625 continue
4626 fi
4627 rm -f conftest.err conftest.i conftest.$ac_ext
4628
4629   # OK, works on sane cases.  Now check whether nonexistent headers
4630   # can be detected and how.
4631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h.  */
4633 #include <ac_nonexistent.h>
4634 _ACEOF
4635 if ac_fn_c_try_cpp "$LINENO"; then :
4636   # Broken: success on invalid input.
4637 continue
4638 else
4639   # Passes both tests.
4640 ac_preproc_ok=:
4641 break
4642 fi
4643 rm -f conftest.err conftest.i conftest.$ac_ext
4644
4645 done
4646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4647 rm -f conftest.i conftest.err conftest.$ac_ext
4648 if $ac_preproc_ok; then :
4649   break
4650 fi
4651
4652     done
4653     ac_cv_prog_CPP=$CPP
4654
4655 fi
4656   CPP=$ac_cv_prog_CPP
4657 else
4658   ac_cv_prog_CPP=$CPP
4659 fi
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4661 $as_echo "$CPP" >&6; }
4662 ac_preproc_ok=false
4663 for ac_c_preproc_warn_flag in '' yes
4664 do
4665   # Use a header file that comes with gcc, so configuring glibc
4666   # with a fresh cross-compiler works.
4667   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668   # <limits.h> exists even on freestanding compilers.
4669   # On the NeXT, cc -E runs the code through the compiler's parser,
4670   # not just through cpp. "Syntax error" is here to catch this case.
4671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h.  */
4673 #ifdef __STDC__
4674 # include <limits.h>
4675 #else
4676 # include <assert.h>
4677 #endif
4678                      Syntax error
4679 _ACEOF
4680 if ac_fn_c_try_cpp "$LINENO"; then :
4681
4682 else
4683   # Broken: fails on valid input.
4684 continue
4685 fi
4686 rm -f conftest.err conftest.i conftest.$ac_ext
4687
4688   # OK, works on sane cases.  Now check whether nonexistent headers
4689   # can be detected and how.
4690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h.  */
4692 #include <ac_nonexistent.h>
4693 _ACEOF
4694 if ac_fn_c_try_cpp "$LINENO"; then :
4695   # Broken: success on invalid input.
4696 continue
4697 else
4698   # Passes both tests.
4699 ac_preproc_ok=:
4700 break
4701 fi
4702 rm -f conftest.err conftest.i conftest.$ac_ext
4703
4704 done
4705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4706 rm -f conftest.i conftest.err conftest.$ac_ext
4707 if $ac_preproc_ok; then :
4708
4709 else
4710   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4713 See \`config.log' for more details" "$LINENO" 5; }
4714 fi
4715
4716 ac_ext=c
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4724 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4725 if ${ac_cv_path_GREP+:} false; then :
4726   $as_echo_n "(cached) " >&6
4727 else
4728   if test -z "$GREP"; then
4729   ac_path_GREP_found=false
4730   # Loop through the user's path and test for each of PROGNAME-LIST
4731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736     for ac_prog in grep ggrep; do
4737     for ac_exec_ext in '' $ac_executable_extensions; do
4738       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4739       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4740 # Check for GNU ac_path_GREP and select it if it is found.
4741   # Check for GNU $ac_path_GREP
4742 case `"$ac_path_GREP" --version 2>&1` in
4743 *GNU*)
4744   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4745 *)
4746   ac_count=0
4747   $as_echo_n 0123456789 >"conftest.in"
4748   while :
4749   do
4750     cat "conftest.in" "conftest.in" >"conftest.tmp"
4751     mv "conftest.tmp" "conftest.in"
4752     cp "conftest.in" "conftest.nl"
4753     $as_echo 'GREP' >> "conftest.nl"
4754     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756     as_fn_arith $ac_count + 1 && ac_count=$as_val
4757     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4758       # Best one so far, save it but keep looking for a better one
4759       ac_cv_path_GREP="$ac_path_GREP"
4760       ac_path_GREP_max=$ac_count
4761     fi
4762     # 10*(2^10) chars as input seems more than enough
4763     test $ac_count -gt 10 && break
4764   done
4765   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766 esac
4767
4768       $ac_path_GREP_found && break 3
4769     done
4770   done
4771   done
4772 IFS=$as_save_IFS
4773   if test -z "$ac_cv_path_GREP"; then
4774     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4775   fi
4776 else
4777   ac_cv_path_GREP=$GREP
4778 fi
4779
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4782 $as_echo "$ac_cv_path_GREP" >&6; }
4783  GREP="$ac_cv_path_GREP"
4784
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4787 $as_echo_n "checking for egrep... " >&6; }
4788 if ${ac_cv_path_EGREP+:} false; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4792    then ac_cv_path_EGREP="$GREP -E"
4793    else
4794      if test -z "$EGREP"; then
4795   ac_path_EGREP_found=false
4796   # Loop through the user's path and test for each of PROGNAME-LIST
4797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802     for ac_prog in egrep; do
4803     for ac_exec_ext in '' $ac_executable_extensions; do
4804       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4805       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4806 # Check for GNU ac_path_EGREP and select it if it is found.
4807   # Check for GNU $ac_path_EGREP
4808 case `"$ac_path_EGREP" --version 2>&1` in
4809 *GNU*)
4810   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4811 *)
4812   ac_count=0
4813   $as_echo_n 0123456789 >"conftest.in"
4814   while :
4815   do
4816     cat "conftest.in" "conftest.in" >"conftest.tmp"
4817     mv "conftest.tmp" "conftest.in"
4818     cp "conftest.in" "conftest.nl"
4819     $as_echo 'EGREP' >> "conftest.nl"
4820     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4821     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4822     as_fn_arith $ac_count + 1 && ac_count=$as_val
4823     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4824       # Best one so far, save it but keep looking for a better one
4825       ac_cv_path_EGREP="$ac_path_EGREP"
4826       ac_path_EGREP_max=$ac_count
4827     fi
4828     # 10*(2^10) chars as input seems more than enough
4829     test $ac_count -gt 10 && break
4830   done
4831   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4832 esac
4833
4834       $ac_path_EGREP_found && break 3
4835     done
4836   done
4837   done
4838 IFS=$as_save_IFS
4839   if test -z "$ac_cv_path_EGREP"; then
4840     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4841   fi
4842 else
4843   ac_cv_path_EGREP=$EGREP
4844 fi
4845
4846    fi
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4849 $as_echo "$ac_cv_path_EGREP" >&6; }
4850  EGREP="$ac_cv_path_EGREP"
4851
4852
4853 if test $ac_cv_c_compiler_gnu = yes; then
4854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4855 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4856 if ${ac_cv_prog_gcc_traditional+:} false; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859     ac_pattern="Autoconf.*'x'"
4860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h.  */
4862 #include <sgtty.h>
4863 Autoconf TIOCGETP
4864 _ACEOF
4865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4867   ac_cv_prog_gcc_traditional=yes
4868 else
4869   ac_cv_prog_gcc_traditional=no
4870 fi
4871 rm -f conftest*
4872
4873
4874   if test $ac_cv_prog_gcc_traditional = no; then
4875     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h.  */
4877 #include <termio.h>
4878 Autoconf TCGETA
4879 _ACEOF
4880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4881   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4882   ac_cv_prog_gcc_traditional=yes
4883 fi
4884 rm -f conftest*
4885
4886   fi
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4889 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4890   if test $ac_cv_prog_gcc_traditional = yes; then
4891     CC="$CC -traditional"
4892   fi
4893 fi
4894
4895 BASECC=`basename $CC`
4896 have_gcc=no
4897 if test "x$BASECC" = xgcc; then
4898    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4899
4900    have_gcc=yes
4901 fi
4902 # Extract the first word of "$CXX", so it can be a program name with args.
4903 set dummy $CXX; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if ${ac_cv_path_CXX+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   case $CXX in
4910   [\\/]* | ?:[\\/]*)
4911   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4912   ;;
4913   *)
4914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919     for ac_exec_ext in '' $ac_executable_extensions; do
4920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926   done
4927 IFS=$as_save_IFS
4928
4929   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4930   ;;
4931 esac
4932 fi
4933 CXX=$ac_cv_path_CXX
4934 if test -n "$CXX"; then
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4936 $as_echo "$CXX" >&6; }
4937 else
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4940 fi
4941
4942
4943 if test ! -e $CXX; then
4944    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4945 fi
4946
4947 # Find a good install program.  We prefer a C program (faster),
4948 # so one script is as good as another.  But avoid the broken or
4949 # incompatible versions:
4950 # SysV /etc/install, /usr/sbin/install
4951 # SunOS /usr/etc/install
4952 # IRIX /sbin/install
4953 # AIX /bin/install
4954 # AmigaOS /C/install, which installs bootblocks on floppy discs
4955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4958 # OS/2's system install, which has a completely different semantic
4959 # ./install, which can be erroneously created by make from ./install.sh.
4960 # Reject install programs that cannot install multiple files.
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4963 if test -z "$INSTALL"; then
4964 if ${ac_cv_path_install+:} false; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970   IFS=$as_save_IFS
4971   test -z "$as_dir" && as_dir=.
4972     # Account for people who put trailing slashes in PATH elements.
4973 case $as_dir/ in #((
4974   ./ | .// | /[cC]/* | \
4975   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4976   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4977   /usr/ucb/* ) ;;
4978   *)
4979     # OSF1 and SCO ODT 3.0 have their own names for install.
4980     # Don't use installbsd from OSF since it installs stuff as root
4981     # by default.
4982     for ac_prog in ginstall scoinst install; do
4983       for ac_exec_ext in '' $ac_executable_extensions; do
4984         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4985           if test $ac_prog = install &&
4986             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4987             # AIX install.  It has an incompatible calling convention.
4988             :
4989           elif test $ac_prog = install &&
4990             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4991             # program-specific install script used by HP pwplus--don't use.
4992             :
4993           else
4994             rm -rf conftest.one conftest.two conftest.dir
4995             echo one > conftest.one
4996             echo two > conftest.two
4997             mkdir conftest.dir
4998             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4999               test -s conftest.one && test -s conftest.two &&
5000               test -s conftest.dir/conftest.one &&
5001               test -s conftest.dir/conftest.two
5002             then
5003               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5004               break 3
5005             fi
5006           fi
5007         fi
5008       done
5009     done
5010     ;;
5011 esac
5012
5013   done
5014 IFS=$as_save_IFS
5015
5016 rm -rf conftest.one conftest.two conftest.dir
5017
5018 fi
5019   if test "${ac_cv_path_install+set}" = set; then
5020     INSTALL=$ac_cv_path_install
5021   else
5022     # As a last resort, use the slow shell script.  Don't cache a
5023     # value for INSTALL within a source directory, because that will
5024     # break other packages using the cache if that directory is
5025     # removed, or if the value is a relative name.
5026     INSTALL=$ac_install_sh
5027   fi
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5030 $as_echo "$INSTALL" >&6; }
5031
5032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5033 # It thinks the first close brace ends the variable substitution.
5034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5035
5036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5037
5038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5039
5040 # Extract the first word of "mv", so it can be a program name with args.
5041 set dummy mv; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_path_MV+:} false; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   case $MV in
5048   [\\/]* | ?:[\\/]*)
5049   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5050   ;;
5051   *)
5052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057     for ac_exec_ext in '' $ac_executable_extensions; do
5058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064   done
5065 IFS=$as_save_IFS
5066
5067   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5068   ;;
5069 esac
5070 fi
5071 MV=$ac_cv_path_MV
5072 if test -n "$MV"; then
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5074 $as_echo "$MV" >&6; }
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080
5081 # Extract the first word of "rm", so it can be a program name with args.
5082 set dummy rm; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_path_REMOVE+:} false; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   case $REMOVE in
5089   [\\/]* | ?:[\\/]*)
5090   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5091   ;;
5092   *)
5093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098     for ac_exec_ext in '' $ac_executable_extensions; do
5099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103   fi
5104 done
5105   done
5106 IFS=$as_save_IFS
5107
5108   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5109   ;;
5110 esac
5111 fi
5112 REMOVE=$ac_cv_path_REMOVE
5113 if test -n "$REMOVE"; then
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5115 $as_echo "$REMOVE" >&6; }
5116 else
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122 # Extract the first word of "cp", so it can be a program name with args.
5123 set dummy cp; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_path_CP+:} false; then :
5127   $as_echo_n "(cached) " >&6
5128 else
5129   case $CP in
5130   [\\/]* | ?:[\\/]*)
5131   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5132   ;;
5133   *)
5134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137   IFS=$as_save_IFS
5138   test -z "$as_dir" && as_dir=.
5139     for ac_exec_ext in '' $ac_executable_extensions; do
5140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143     break 2
5144   fi
5145 done
5146   done
5147 IFS=$as_save_IFS
5148
5149   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5150   ;;
5151 esac
5152 fi
5153 CP=$ac_cv_path_CP
5154 if test -n "$CP"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5156 $as_echo "$CP" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162
5163 # Extract the first word of "sed", so it can be a program name with args.
5164 set dummy sed; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_path_SED+:} false; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   case $SED in
5171   [\\/]* | ?:[\\/]*)
5172   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5173   ;;
5174   *)
5175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180     for ac_exec_ext in '' $ac_executable_extensions; do
5181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187   done
5188 IFS=$as_save_IFS
5189
5190   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5191   ;;
5192 esac
5193 fi
5194 SED=$ac_cv_path_SED
5195 if test -n "$SED"; then
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5197 $as_echo "$SED" >&6; }
5198 else
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202
5203
5204 # Extract the first word of "echo", so it can be a program name with args.
5205 set dummy echo; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_path_ECHO+:} false; then :
5209   $as_echo_n "(cached) " >&6
5210 else
5211   case $ECHO in
5212   [\\/]* | ?:[\\/]*)
5213   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5214   ;;
5215   *)
5216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221     for ac_exec_ext in '' $ac_executable_extensions; do
5222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225     break 2
5226   fi
5227 done
5228   done
5229 IFS=$as_save_IFS
5230
5231   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5232   ;;
5233 esac
5234 fi
5235 ECHO=$ac_cv_path_ECHO
5236 if test -n "$ECHO"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5238 $as_echo "$ECHO" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245 # Extract the first word of "cmp", so it can be a program name with args.
5246 set dummy cmp; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_CMP+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   case $CMP in
5253   [\\/]* | ?:[\\/]*)
5254   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5255   ;;
5256   *)
5257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260   IFS=$as_save_IFS
5261   test -z "$as_dir" && as_dir=.
5262     for ac_exec_ext in '' $ac_executable_extensions; do
5263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266     break 2
5267   fi
5268 done
5269   done
5270 IFS=$as_save_IFS
5271
5272   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5273   ;;
5274 esac
5275 fi
5276 CMP=$ac_cv_path_CMP
5277 if test -n "$CMP"; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5279 $as_echo "$CMP" >&6; }
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 # Extract the first word of "tbl", so it can be a program name with args.
5287 set dummy tbl; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_path_TBL+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   case $TBL in
5294   [\\/]* | ?:[\\/]*)
5295   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5296   ;;
5297   *)
5298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303     for ac_exec_ext in '' $ac_executable_extensions; do
5304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310   done
5311 IFS=$as_save_IFS
5312
5313   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5314   ;;
5315 esac
5316 fi
5317 TBL=$ac_cv_path_TBL
5318 if test -n "$TBL"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5320 $as_echo "$TBL" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326
5327 # Extract the first word of "ar", so it can be a program name with args.
5328 set dummy ar; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_path_AR+:} false; then :
5332   $as_echo_n "(cached) " >&6
5333 else
5334   case $AR in
5335   [\\/]* | ?:[\\/]*)
5336   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5337   ;;
5338   *)
5339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342   IFS=$as_save_IFS
5343   test -z "$as_dir" && as_dir=.
5344     for ac_exec_ext in '' $ac_executable_extensions; do
5345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348     break 2
5349   fi
5350 done
5351   done
5352 IFS=$as_save_IFS
5353
5354   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5355   ;;
5356 esac
5357 fi
5358 AR=$ac_cv_path_AR
5359 if test -n "$AR"; then
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5361 $as_echo "$AR" >&6; }
5362 else
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367
5368 # Extract the first word of "openssl", so it can be a program name with args.
5369 set dummy openssl; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_path_OPENSSL+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   case $OPENSSL in
5376   [\\/]* | ?:[\\/]*)
5377   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5378   ;;
5379   *)
5380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5382 do
5383   IFS=$as_save_IFS
5384   test -z "$as_dir" && as_dir=.
5385     for ac_exec_ext in '' $ac_executable_extensions; do
5386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389     break 2
5390   fi
5391 done
5392   done
5393 IFS=$as_save_IFS
5394
5395   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5396   ;;
5397 esac
5398 fi
5399 OPENSSL=$ac_cv_path_OPENSSL
5400 if test -n "$OPENSSL"; then
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5402 $as_echo "$OPENSSL" >&6; }
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407
5408
5409 # Extract the first word of "mtx", so it can be a program name with args.
5410 set dummy mtx; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_MTX+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   case $MTX in
5417   [\\/]* | ?:[\\/]*)
5418   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5419   ;;
5420   *)
5421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424   IFS=$as_save_IFS
5425   test -z "$as_dir" && as_dir=.
5426     for ac_exec_ext in '' $ac_executable_extensions; do
5427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430     break 2
5431   fi
5432 done
5433   done
5434 IFS=$as_save_IFS
5435
5436   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5437   ;;
5438 esac
5439 fi
5440 MTX=$ac_cv_path_MTX
5441 if test -n "$MTX"; then
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5443 $as_echo "$MTX" >&6; }
5444 else
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449
5450 # Extract the first word of "dd", so it can be a program name with args.
5451 set dummy dd; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_path_DD+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   case $DD in
5458   [\\/]* | ?:[\\/]*)
5459   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5460   ;;
5461   *)
5462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476
5477   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5478   ;;
5479 esac
5480 fi
5481 DD=$ac_cv_path_DD
5482 if test -n "$DD"; then
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5484 $as_echo "$DD" >&6; }
5485 else
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 # Extract the first word of "mkisofs", so it can be a program name with args.
5492 set dummy mkisofs; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_path_MKISOFS+:} false; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498   case $MKISOFS in
5499   [\\/]* | ?:[\\/]*)
5500   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5501   ;;
5502   *)
5503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515   done
5516 IFS=$as_save_IFS
5517
5518   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5519   ;;
5520 esac
5521 fi
5522 MKISOFS=$ac_cv_path_MKISOFS
5523 if test -n "$MKISOFS"; then
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5525 $as_echo "$MKISOFS" >&6; }
5526 else
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 # Extract the first word of "python", so it can be a program name with args.
5533 set dummy python; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_path_PYTHON+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   case $PYTHON in
5540   [\\/]* | ?:[\\/]*)
5541   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5542   ;;
5543   *)
5544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549     for ac_exec_ext in '' $ac_executable_extensions; do
5550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556   done
5557 IFS=$as_save_IFS
5558
5559   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5560   ;;
5561 esac
5562 fi
5563 PYTHON=$ac_cv_path_PYTHON
5564 if test -n "$PYTHON"; then
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5566 $as_echo "$PYTHON" >&6; }
5567 else
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5570 fi
5571
5572
5573 # Extract the first word of "growisofs", so it can be a program name with args.
5574 set dummy growisofs; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_path_GROWISOFS+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   case $GROWISOFS in
5581   [\\/]* | ?:[\\/]*)
5582   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5583   ;;
5584   *)
5585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597   done
5598 IFS=$as_save_IFS
5599
5600   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5601   ;;
5602 esac
5603 fi
5604 GROWISOFS=$ac_cv_path_GROWISOFS
5605 if test -n "$GROWISOFS"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5607 $as_echo "$GROWISOFS" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613
5614 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5615 set dummy dvd+rw-mediainfo; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   case $DVDRWMEDIAINFO in
5622   [\\/]* | ?:[\\/]*)
5623   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5624   ;;
5625   *)
5626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638   done
5639 IFS=$as_save_IFS
5640
5641   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5642   ;;
5643 esac
5644 fi
5645 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5646 if test -n "$DVDRWMEDIAINFO"; then
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5648 $as_echo "$DVDRWMEDIAINFO" >&6; }
5649 else
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5656 set dummy dvd+rw-format; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5660   $as_echo_n "(cached) " >&6
5661 else
5662   case $DVDRWFORMAT in
5663   [\\/]* | ?:[\\/]*)
5664   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5665   ;;
5666   *)
5667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670   IFS=$as_save_IFS
5671   test -z "$as_dir" && as_dir=.
5672     for ac_exec_ext in '' $ac_executable_extensions; do
5673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676     break 2
5677   fi
5678 done
5679   done
5680 IFS=$as_save_IFS
5681
5682   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5683   ;;
5684 esac
5685 fi
5686 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5687 if test -n "$DVDRWFORMAT"; then
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5689 $as_echo "$DVDRWFORMAT" >&6; }
5690 else
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694
5695
5696 # Extract the first word of "pkg-config", so it can be a program name with args.
5697 set dummy pkg-config; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_path_PKGCONFIG+:} false; then :
5701   $as_echo_n "(cached) " >&6
5702 else
5703   case $PKGCONFIG in
5704   [\\/]* | ?:[\\/]*)
5705   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5706   ;;
5707   *)
5708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713     for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720   done
5721 IFS=$as_save_IFS
5722
5723   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5724   ;;
5725 esac
5726 fi
5727 PKGCONFIG=$ac_cv_path_PKGCONFIG
5728 if test -n "$PKGCONFIG"; then
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5730 $as_echo "$PKGCONFIG" >&6; }
5731 else
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737 # Extract the first word of "qmake", so it can be a program name with args.
5738 set dummy qmake; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if ${ac_cv_path_QMAKE+:} false; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   case $QMAKE in
5745   [\\/]* | ?:[\\/]*)
5746   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5747   ;;
5748   *)
5749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761   done
5762 IFS=$as_save_IFS
5763
5764   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5765   ;;
5766 esac
5767 fi
5768 QMAKE=$ac_cv_path_QMAKE
5769 if test -n "$QMAKE"; then
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5771 $as_echo "$QMAKE" >&6; }
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777
5778 # Extract the first word of "gmake", so it can be a program name with args.
5779 set dummy gmake; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_path_GMAKE+:} false; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   case $GMAKE in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795     for ac_exec_ext in '' $ac_executable_extensions; do
5796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802   done
5803 IFS=$as_save_IFS
5804
5805   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5806   ;;
5807 esac
5808 fi
5809 GMAKE=$ac_cv_path_GMAKE
5810 if test -n "$GMAKE"; then
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5812 $as_echo "$GMAKE" >&6; }
5813 else
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5816 fi
5817
5818
5819
5820 if test "x$WXCONFIG" = x; then
5821    WXCONFIG=wx-config
5822 fi
5823 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5824 set dummy ${WXCONFIG}; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_path_WXCONFIG+:} false; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830   case $WXCONFIG in
5831   [\\/]* | ?:[\\/]*)
5832   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5833   ;;
5834   *)
5835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840     for ac_exec_ext in '' $ac_executable_extensions; do
5841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5842     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847   done
5848 IFS=$as_save_IFS
5849
5850   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5851   ;;
5852 esac
5853 fi
5854 WXCONFIG=$ac_cv_path_WXCONFIG
5855 if test -n "$WXCONFIG"; then
5856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5857 $as_echo "$WXCONFIG" >&6; }
5858 else
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5861 fi
5862
5863
5864
5865 # Extract the first word of "cdrecord", so it can be a program name with args.
5866 set dummy cdrecord; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_CDRECORD+:} false; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   case $CDRECORD in
5873   [\\/]* | ?:[\\/]*)
5874   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5875   ;;
5876   *)
5877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882     for ac_exec_ext in '' $ac_executable_extensions; do
5883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889   done
5890 IFS=$as_save_IFS
5891
5892   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5893   ;;
5894 esac
5895 fi
5896 CDRECORD=$ac_cv_path_CDRECORD
5897 if test -n "$CDRECORD"; then
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5899 $as_echo "$CDRECORD" >&6; }
5900 else
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905
5906 # Extract the first word of "pidof", so it can be a program name with args.
5907 set dummy pidof; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_path_PIDOF+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   case $PIDOF in
5914   [\\/]* | ?:[\\/]*)
5915   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5916   ;;
5917   *)
5918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923     for ac_exec_ext in '' $ac_executable_extensions; do
5924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930   done
5931 IFS=$as_save_IFS
5932
5933   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5934   ;;
5935 esac
5936 fi
5937 PIDOF=$ac_cv_path_PIDOF
5938 if test -n "$PIDOF"; then
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5940 $as_echo "$PIDOF" >&6; }
5941 else
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945
5946
5947 for ac_prog in gawk mawk nawk awk
5948 do
5949   # Extract the first word of "$ac_prog", so it can be a program name with args.
5950 set dummy $ac_prog; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if ${ac_cv_prog_AWK+:} false; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   if test -n "$AWK"; then
5957   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962   IFS=$as_save_IFS
5963   test -z "$as_dir" && as_dir=.
5964     for ac_exec_ext in '' $ac_executable_extensions; do
5965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966     ac_cv_prog_AWK="$ac_prog"
5967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968     break 2
5969   fi
5970 done
5971   done
5972 IFS=$as_save_IFS
5973
5974 fi
5975 fi
5976 AWK=$ac_cv_prog_AWK
5977 if test -n "$AWK"; then
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5979 $as_echo "$AWK" >&6; }
5980 else
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5983 fi
5984
5985
5986   test -n "$AWK" && break
5987 done
5988
5989 # Some AWK programs fail, so test it and warn the user
5990 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5991       { if ((prog == $2) || (("(" prog ")") == $2) ||
5992       (("" prog "") == $2) ||
5993       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5994 else
5995   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5996    The regex engine of $AWK is too broken to be used you
5997    might want to install GNU AWK.
5998    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5999 fi
6000 THE_AWK=$AWK
6001 # Extract the first word of "$THE_AWK", so it can be a program name with args.
6002 set dummy $THE_AWK; ac_word=$2
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004 $as_echo_n "checking for $ac_word... " >&6; }
6005 if ${ac_cv_path_AWK+:} false; then :
6006   $as_echo_n "(cached) " >&6
6007 else
6008   case $AWK in
6009   [\\/]* | ?:[\\/]*)
6010   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6011   ;;
6012   *)
6013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018     for ac_exec_ext in '' $ac_executable_extensions; do
6019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025   done
6026 IFS=$as_save_IFS
6027
6028   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
6029   ;;
6030 esac
6031 fi
6032 AWK=$ac_cv_path_AWK
6033 if test -n "$AWK"; then
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6035 $as_echo "$AWK" >&6; }
6036 else
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041
6042
6043
6044 test -n "$ARFLAG" || ARFLAGS="cr"
6045
6046
6047 MAKE_SHELL=/bin/sh
6048
6049
6050
6051
6052
6053
6054
6055 use_libtool=yes
6056 # Check whether --enable-libtool was given.
6057 if test "${enable_libtool+set}" = set; then :
6058   enableval=$enable_libtool;
6059        if test x$enableval = xno; then
6060           use_libtool=no
6061        fi
6062
6063
6064 fi
6065
6066 case `pwd` in
6067   *\ * | *\     *)
6068     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6069 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6070 esac
6071
6072
6073
6074 macro_version='2.2.6'
6075 macro_revision='1.3012'
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089 ltmain="$ac_aux_dir/ltmain.sh"
6090
6091 # Make sure we can run config.sub.
6092 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6093   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6096 $as_echo_n "checking build system type... " >&6; }
6097 if ${ac_cv_build+:} false; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100   ac_build_alias=$build_alias
6101 test "x$ac_build_alias" = x &&
6102   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6103 test "x$ac_build_alias" = x &&
6104   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6105 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6106   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6107
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6110 $as_echo "$ac_cv_build" >&6; }
6111 case $ac_cv_build in
6112 *-*-*) ;;
6113 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6114 esac
6115 build=$ac_cv_build
6116 ac_save_IFS=$IFS; IFS='-'
6117 set x $ac_cv_build
6118 shift
6119 build_cpu=$1
6120 build_vendor=$2
6121 shift; shift
6122 # Remember, the first character of IFS is used to create $*,
6123 # except with old shells:
6124 build_os=$*
6125 IFS=$ac_save_IFS
6126 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6130 $as_echo_n "checking host system type... " >&6; }
6131 if ${ac_cv_host+:} false; then :
6132   $as_echo_n "(cached) " >&6
6133 else
6134   if test "x$host_alias" = x; then
6135   ac_cv_host=$ac_cv_build
6136 else
6137   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6138     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6139 fi
6140
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6143 $as_echo "$ac_cv_host" >&6; }
6144 case $ac_cv_host in
6145 *-*-*) ;;
6146 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6147 esac
6148 host=$ac_cv_host
6149 ac_save_IFS=$IFS; IFS='-'
6150 set x $ac_cv_host
6151 shift
6152 host_cpu=$1
6153 host_vendor=$2
6154 shift; shift
6155 # Remember, the first character of IFS is used to create $*,
6156 # except with old shells:
6157 host_os=$*
6158 IFS=$ac_save_IFS
6159 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6160
6161
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6163 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6164 if ${ac_cv_path_SED+:} false; then :
6165   $as_echo_n "(cached) " >&6
6166 else
6167             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6168      for ac_i in 1 2 3 4 5 6 7; do
6169        ac_script="$ac_script$as_nl$ac_script"
6170      done
6171      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6172      { ac_script=; unset ac_script;}
6173      if test -z "$SED"; then
6174   ac_path_SED_found=false
6175   # Loop through the user's path and test for each of PROGNAME-LIST
6176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181     for ac_prog in sed gsed; do
6182     for ac_exec_ext in '' $ac_executable_extensions; do
6183       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6184       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6185 # Check for GNU ac_path_SED and select it if it is found.
6186   # Check for GNU $ac_path_SED
6187 case `"$ac_path_SED" --version 2>&1` in
6188 *GNU*)
6189   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6190 *)
6191   ac_count=0
6192   $as_echo_n 0123456789 >"conftest.in"
6193   while :
6194   do
6195     cat "conftest.in" "conftest.in" >"conftest.tmp"
6196     mv "conftest.tmp" "conftest.in"
6197     cp "conftest.in" "conftest.nl"
6198     $as_echo '' >> "conftest.nl"
6199     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6200     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6201     as_fn_arith $ac_count + 1 && ac_count=$as_val
6202     if test $ac_count -gt ${ac_path_SED_max-0}; then
6203       # Best one so far, save it but keep looking for a better one
6204       ac_cv_path_SED="$ac_path_SED"
6205       ac_path_SED_max=$ac_count
6206     fi
6207     # 10*(2^10) chars as input seems more than enough
6208     test $ac_count -gt 10 && break
6209   done
6210   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6211 esac
6212
6213       $ac_path_SED_found && break 3
6214     done
6215   done
6216   done
6217 IFS=$as_save_IFS
6218   if test -z "$ac_cv_path_SED"; then
6219     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6220   fi
6221 else
6222   ac_cv_path_SED=$SED
6223 fi
6224
6225 fi
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6227 $as_echo "$ac_cv_path_SED" >&6; }
6228  SED="$ac_cv_path_SED"
6229   rm -f conftest.sed
6230
6231 test -z "$SED" && SED=sed
6232 Xsed="$SED -e 1s/^X//"
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6245 $as_echo_n "checking for fgrep... " >&6; }
6246 if ${ac_cv_path_FGREP+:} false; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6250    then ac_cv_path_FGREP="$GREP -F"
6251    else
6252      if test -z "$FGREP"; then
6253   ac_path_FGREP_found=false
6254   # Loop through the user's path and test for each of PROGNAME-LIST
6255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260     for ac_prog in fgrep; do
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6263       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6264 # Check for GNU ac_path_FGREP and select it if it is found.
6265   # Check for GNU $ac_path_FGREP
6266 case `"$ac_path_FGREP" --version 2>&1` in
6267 *GNU*)
6268   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6269 *)
6270   ac_count=0
6271   $as_echo_n 0123456789 >"conftest.in"
6272   while :
6273   do
6274     cat "conftest.in" "conftest.in" >"conftest.tmp"
6275     mv "conftest.tmp" "conftest.in"
6276     cp "conftest.in" "conftest.nl"
6277     $as_echo 'FGREP' >> "conftest.nl"
6278     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6279     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6280     as_fn_arith $ac_count + 1 && ac_count=$as_val
6281     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6282       # Best one so far, save it but keep looking for a better one
6283       ac_cv_path_FGREP="$ac_path_FGREP"
6284       ac_path_FGREP_max=$ac_count
6285     fi
6286     # 10*(2^10) chars as input seems more than enough
6287     test $ac_count -gt 10 && break
6288   done
6289   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6290 esac
6291
6292       $ac_path_FGREP_found && break 3
6293     done
6294   done
6295   done
6296 IFS=$as_save_IFS
6297   if test -z "$ac_cv_path_FGREP"; then
6298     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6299   fi
6300 else
6301   ac_cv_path_FGREP=$FGREP
6302 fi
6303
6304    fi
6305 fi
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6307 $as_echo "$ac_cv_path_FGREP" >&6; }
6308  FGREP="$ac_cv_path_FGREP"
6309
6310
6311 test -z "$GREP" && GREP=grep
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 # Check whether --with-gnu-ld was given.
6332 if test "${with_gnu_ld+set}" = set; then :
6333   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6334 else
6335   with_gnu_ld=no
6336 fi
6337
6338 ac_prog=ld
6339 if test "$GCC" = yes; then
6340   # Check if gcc -print-prog-name=ld gives a path.
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6342 $as_echo_n "checking for ld used by $CC... " >&6; }
6343   case $host in
6344   *-*-mingw*)
6345     # gcc leaves a trailing carriage return which upsets mingw
6346     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6347   *)
6348     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6349   esac
6350   case $ac_prog in
6351     # Accept absolute paths.
6352     [\\/]* | ?:[\\/]*)
6353       re_direlt='/[^/][^/]*/\.\./'
6354       # Canonicalize the pathname of ld
6355       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6356       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6357         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6358       done
6359       test -z "$LD" && LD="$ac_prog"
6360       ;;
6361   "")
6362     # If it fails, then pretend we aren't using GCC.
6363     ac_prog=ld
6364     ;;
6365   *)
6366     # If it is relative, then search for the first ld in PATH.
6367     with_gnu_ld=unknown
6368     ;;
6369   esac
6370 elif test "$with_gnu_ld" = yes; then
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6372 $as_echo_n "checking for GNU ld... " >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6375 $as_echo_n "checking for non-GNU ld... " >&6; }
6376 fi
6377 if ${lt_cv_path_LD+:} false; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380   if test -z "$LD"; then
6381   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6382   for ac_dir in $PATH; do
6383     IFS="$lt_save_ifs"
6384     test -z "$ac_dir" && ac_dir=.
6385     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6386       lt_cv_path_LD="$ac_dir/$ac_prog"
6387       # Check to see if the program is GNU ld.  I'd rather use --version,
6388       # but apparently some variants of GNU ld only accept -v.
6389       # Break only if it was the GNU/non-GNU ld that we prefer.
6390       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6391       *GNU* | *'with BFD'*)
6392         test "$with_gnu_ld" != no && break
6393         ;;
6394       *)
6395         test "$with_gnu_ld" != yes && break
6396         ;;
6397       esac
6398     fi
6399   done
6400   IFS="$lt_save_ifs"
6401 else
6402   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6403 fi
6404 fi
6405
6406 LD="$lt_cv_path_LD"
6407 if test -n "$LD"; then
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6409 $as_echo "$LD" >&6; }
6410 else
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6416 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6417 if ${lt_cv_prog_gnu_ld+:} false; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6421 case `$LD -v 2>&1 </dev/null` in
6422 *GNU* | *'with BFD'*)
6423   lt_cv_prog_gnu_ld=yes
6424   ;;
6425 *)
6426   lt_cv_prog_gnu_ld=no
6427   ;;
6428 esac
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6431 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6432 with_gnu_ld=$lt_cv_prog_gnu_ld
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6443 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6444 if ${lt_cv_path_NM+:} false; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$NM"; then
6448   # Let the user override the test.
6449   lt_cv_path_NM="$NM"
6450 else
6451   lt_nm_to_check="${ac_tool_prefix}nm"
6452   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6453     lt_nm_to_check="$lt_nm_to_check nm"
6454   fi
6455   for lt_tmp_nm in $lt_nm_to_check; do
6456     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6457     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6458       IFS="$lt_save_ifs"
6459       test -z "$ac_dir" && ac_dir=.
6460       tmp_nm="$ac_dir/$lt_tmp_nm"
6461       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6462         # Check to see if the nm accepts a BSD-compat flag.
6463         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6464         #   nm: unknown option "B" ignored
6465         # Tru64's nm complains that /dev/null is an invalid object file
6466         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6467         */dev/null* | *'Invalid file or object type'*)
6468           lt_cv_path_NM="$tmp_nm -B"
6469           break
6470           ;;
6471         *)
6472           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6473           */dev/null*)
6474             lt_cv_path_NM="$tmp_nm -p"
6475             break
6476             ;;
6477           *)
6478             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6479             continue # so that we can try to find one that supports BSD flags
6480             ;;
6481           esac
6482           ;;
6483         esac
6484       fi
6485     done
6486     IFS="$lt_save_ifs"
6487   done
6488   : ${lt_cv_path_NM=no}
6489 fi
6490 fi
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6492 $as_echo "$lt_cv_path_NM" >&6; }
6493 if test "$lt_cv_path_NM" != "no"; then
6494   NM="$lt_cv_path_NM"
6495 else
6496   # Didn't find any BSD compatible name lister, look for dumpbin.
6497   if test -n "$ac_tool_prefix"; then
6498   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6499   do
6500     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_DUMPBIN+:} false; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507   if test -n "$DUMPBIN"; then
6508   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513   IFS=$as_save_IFS
6514   test -z "$as_dir" && as_dir=.
6515     for ac_exec_ext in '' $ac_executable_extensions; do
6516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519     break 2
6520   fi
6521 done
6522   done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 DUMPBIN=$ac_cv_prog_DUMPBIN
6528 if test -n "$DUMPBIN"; then
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6530 $as_echo "$DUMPBIN" >&6; }
6531 else
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536
6537     test -n "$DUMPBIN" && break
6538   done
6539 fi
6540 if test -z "$DUMPBIN"; then
6541   ac_ct_DUMPBIN=$DUMPBIN
6542   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6543 do
6544   # Extract the first word of "$ac_prog", so it can be a program name with args.
6545 set dummy $ac_prog; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   if test -n "$ac_ct_DUMPBIN"; then
6552   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559     for ac_exec_ext in '' $ac_executable_extensions; do
6560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566   done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6572 if test -n "$ac_ct_DUMPBIN"; then
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6574 $as_echo "$ac_ct_DUMPBIN" >&6; }
6575 else
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6579
6580
6581   test -n "$ac_ct_DUMPBIN" && break
6582 done
6583
6584   if test "x$ac_ct_DUMPBIN" = x; then
6585     DUMPBIN=":"
6586   else
6587     case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6592 esac
6593     DUMPBIN=$ac_ct_DUMPBIN
6594   fi
6595 fi
6596
6597
6598   if test "$DUMPBIN" != ":"; then
6599     NM="$DUMPBIN"
6600   fi
6601 fi
6602 test -z "$NM" && NM=nm
6603
6604
6605
6606
6607
6608
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6610 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6611 if ${lt_cv_nm_interface+:} false; then :
6612   $as_echo_n "(cached) " >&6
6613 else
6614   lt_cv_nm_interface="BSD nm"
6615   echo "int some_variable = 0;" > conftest.$ac_ext
6616   (eval echo "\"\$as_me:6616: $ac_compile\"" >&5)
6617   (eval "$ac_compile" 2>conftest.err)
6618   cat conftest.err >&5
6619   (eval echo "\"\$as_me:6619: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6620   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6621   cat conftest.err >&5
6622   (eval echo "\"\$as_me:6622: output\"" >&5)
6623   cat conftest.out >&5
6624   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6625     lt_cv_nm_interface="MS dumpbin"
6626   fi
6627   rm -f conftest*
6628 fi
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6630 $as_echo "$lt_cv_nm_interface" >&6; }
6631
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6633 $as_echo_n "checking whether ln -s works... " >&6; }
6634 LN_S=$as_ln_s
6635 if test "$LN_S" = "ln -s"; then
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6637 $as_echo "yes" >&6; }
6638 else
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6640 $as_echo "no, using $LN_S" >&6; }
6641 fi
6642
6643 # find the maximum length of command line arguments
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6645 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6646 if ${lt_cv_sys_max_cmd_len+:} false; then :
6647   $as_echo_n "(cached) " >&6
6648 else
6649     i=0
6650   teststring="ABCD"
6651
6652   case $build_os in
6653   msdosdjgpp*)
6654     # On DJGPP, this test can blow up pretty badly due to problems in libc
6655     # (any single argument exceeding 2000 bytes causes a buffer overrun
6656     # during glob expansion).  Even if it were fixed, the result of this
6657     # check would be larger than it should be.
6658     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6659     ;;
6660
6661   gnu*)
6662     # Under GNU Hurd, this test is not required because there is
6663     # no limit to the length of command line arguments.
6664     # Libtool will interpret -1 as no limit whatsoever
6665     lt_cv_sys_max_cmd_len=-1;
6666     ;;
6667
6668   cygwin* | mingw* | cegcc*)
6669     # On Win9x/ME, this test blows up -- it succeeds, but takes
6670     # about 5 minutes as the teststring grows exponentially.
6671     # Worse, since 9x/ME are not pre-emptively multitasking,
6672     # you end up with a "frozen" computer, even though with patience
6673     # the test eventually succeeds (with a max line length of 256k).
6674     # Instead, let's just punt: use the minimum linelength reported by
6675     # all of the supported platforms: 8192 (on NT/2K/XP).
6676     lt_cv_sys_max_cmd_len=8192;
6677     ;;
6678
6679   amigaos*)
6680     # On AmigaOS with pdksh, this test takes hours, literally.
6681     # So we just punt and use a minimum line length of 8192.
6682     lt_cv_sys_max_cmd_len=8192;
6683     ;;
6684
6685   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6686     # This has been around since 386BSD, at least.  Likely further.
6687     if test -x /sbin/sysctl; then
6688       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6689     elif test -x /usr/sbin/sysctl; then
6690       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6691     else
6692       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6693     fi
6694     # And add a safety zone
6695     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6696     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6697     ;;
6698
6699   interix*)
6700     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6701     lt_cv_sys_max_cmd_len=196608
6702     ;;
6703
6704   osf*)
6705     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6706     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6707     # nice to cause kernel panics so lets avoid the loop below.
6708     # First set a reasonable default.
6709     lt_cv_sys_max_cmd_len=16384
6710     #
6711     if test -x /sbin/sysconfig; then
6712       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6713         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6714       esac
6715     fi
6716     ;;
6717   sco3.2v5*)
6718     lt_cv_sys_max_cmd_len=102400
6719     ;;
6720   sysv5* | sco5v6* | sysv4.2uw2*)
6721     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6722     if test -n "$kargmax"; then
6723       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6724     else
6725       lt_cv_sys_max_cmd_len=32768
6726     fi
6727     ;;
6728   *)
6729     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6730     if test -n "$lt_cv_sys_max_cmd_len"; then
6731       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6732       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6733     else
6734       # Make teststring a little bigger before we do anything with it.
6735       # a 1K string should be a reasonable start.
6736       for i in 1 2 3 4 5 6 7 8 ; do
6737         teststring=$teststring$teststring
6738       done
6739       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6740       # If test is not a shell built-in, we'll probably end up computing a
6741       # maximum length that is only half of the actual maximum length, but
6742       # we can't tell.
6743       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6744                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6745               test $i != 17 # 1/2 MB should be enough
6746       do
6747         i=`expr $i + 1`
6748         teststring=$teststring$teststring
6749       done
6750       # Only check the string length outside the loop.
6751       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6752       teststring=
6753       # Add a significant safety factor because C++ compilers can tack on
6754       # massive amounts of additional arguments before passing them to the
6755       # linker.  It appears as though 1/2 is a usable value.
6756       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6757     fi
6758     ;;
6759   esac
6760
6761 fi
6762
6763 if test -n $lt_cv_sys_max_cmd_len ; then
6764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6765 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6766 else
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6768 $as_echo "none" >&6; }
6769 fi
6770 max_cmd_len=$lt_cv_sys_max_cmd_len
6771
6772
6773
6774
6775
6776
6777 : ${CP="cp -f"}
6778 : ${MV="mv -f"}
6779 : ${RM="rm -f"}
6780
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6782 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6783 # Try some XSI features
6784 xsi_shell=no
6785 ( _lt_dummy="a/b/c"
6786   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6787       = c,a/b,, \
6788     && eval 'test $(( 1 + 1 )) -eq 2 \
6789     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6790   && xsi_shell=yes
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6792 $as_echo "$xsi_shell" >&6; }
6793
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6796 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6797 lt_shell_append=no
6798 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6799     >/dev/null 2>&1 \
6800   && lt_shell_append=yes
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6802 $as_echo "$lt_shell_append" >&6; }
6803
6804
6805 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6806   lt_unset=unset
6807 else
6808   lt_unset=false
6809 fi
6810
6811
6812
6813
6814
6815 # test EBCDIC or ASCII
6816 case `echo X|tr X '\101'` in
6817  A) # ASCII based system
6818     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6819   lt_SP2NL='tr \040 \012'
6820   lt_NL2SP='tr \015\012 \040\040'
6821   ;;
6822  *) # EBCDIC based system
6823   lt_SP2NL='tr \100 \n'
6824   lt_NL2SP='tr \r\n \100\100'
6825   ;;
6826 esac
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6837 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6838 if ${lt_cv_ld_reload_flag+:} false; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   lt_cv_ld_reload_flag='-r'
6842 fi
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6844 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6845 reload_flag=$lt_cv_ld_reload_flag
6846 case $reload_flag in
6847 "" | " "*) ;;
6848 *) reload_flag=" $reload_flag" ;;
6849 esac
6850 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6851 case $host_os in
6852   darwin*)
6853     if test "$GCC" = yes; then
6854       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6855     else
6856       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6857     fi
6858     ;;
6859 esac
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869 if test -n "$ac_tool_prefix"; then
6870   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_OBJDUMP+:} false; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877   if test -n "$OBJDUMP"; then
6878   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883   IFS=$as_save_IFS
6884   test -z "$as_dir" && as_dir=.
6885     for ac_exec_ext in '' $ac_executable_extensions; do
6886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889     break 2
6890   fi
6891 done
6892   done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 OBJDUMP=$ac_cv_prog_OBJDUMP
6898 if test -n "$OBJDUMP"; then
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6900 $as_echo "$OBJDUMP" >&6; }
6901 else
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906
6907 fi
6908 if test -z "$ac_cv_prog_OBJDUMP"; then
6909   ac_ct_OBJDUMP=$OBJDUMP
6910   # Extract the first word of "objdump", so it can be a program name with args.
6911 set dummy objdump; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6915   $as_echo_n "(cached) " >&6
6916 else
6917   if test -n "$ac_ct_OBJDUMP"; then
6918   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   test -z "$as_dir" && as_dir=.
6925     for ac_exec_ext in '' $ac_executable_extensions; do
6926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929     break 2
6930   fi
6931 done
6932   done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6938 if test -n "$ac_ct_OBJDUMP"; then
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6940 $as_echo "$ac_ct_OBJDUMP" >&6; }
6941 else
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945
6946   if test "x$ac_ct_OBJDUMP" = x; then
6947     OBJDUMP="false"
6948   else
6949     case $cross_compiling:$ac_tool_warned in
6950 yes:)
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953 ac_tool_warned=yes ;;
6954 esac
6955     OBJDUMP=$ac_ct_OBJDUMP
6956   fi
6957 else
6958   OBJDUMP="$ac_cv_prog_OBJDUMP"
6959 fi
6960
6961 test -z "$OBJDUMP" && OBJDUMP=objdump
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6972 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6973 if ${lt_cv_deplibs_check_method+:} false; then :
6974   $as_echo_n "(cached) " >&6
6975 else
6976   lt_cv_file_magic_cmd='$MAGIC_CMD'
6977 lt_cv_file_magic_test_file=
6978 lt_cv_deplibs_check_method='unknown'
6979 # Need to set the preceding variable on all platforms that support
6980 # interlibrary dependencies.
6981 # 'none' -- dependencies not supported.
6982 # `unknown' -- same as none, but documents that we really don't know.
6983 # 'pass_all' -- all dependencies passed with no checks.
6984 # 'test_compile' -- check by making test program.
6985 # 'file_magic [[regex]]' -- check by looking for files in library path
6986 # which responds to the $file_magic_cmd with a given extended regex.
6987 # If you have `file' or equivalent on your system and you're not sure
6988 # whether `pass_all' will *always* work, you probably want this one.
6989
6990 case $host_os in
6991 aix[4-9]*)
6992   lt_cv_deplibs_check_method=pass_all
6993   ;;
6994
6995 beos*)
6996   lt_cv_deplibs_check_method=pass_all
6997   ;;
6998
6999 bsdi[45]*)
7000   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7001   lt_cv_file_magic_cmd='/usr/bin/file -L'
7002   lt_cv_file_magic_test_file=/shlib/libc.so
7003   ;;
7004
7005 cygwin*)
7006   # func_win32_libid is a shell function defined in ltmain.sh
7007   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7008   lt_cv_file_magic_cmd='func_win32_libid'
7009   ;;
7010
7011 mingw* | pw32*)
7012   # Base MSYS/MinGW do not provide the 'file' command needed by
7013   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7014   # unless we find 'file', for example because we are cross-compiling.
7015   if ( file / ) >/dev/null 2>&1; then
7016     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7017     lt_cv_file_magic_cmd='func_win32_libid'
7018   else
7019     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7020     lt_cv_file_magic_cmd='$OBJDUMP -f'
7021   fi
7022   ;;
7023
7024 cegcc)
7025   # use the weaker test based on 'objdump'. See mingw*.
7026   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7027   lt_cv_file_magic_cmd='$OBJDUMP -f'
7028   ;;
7029
7030 darwin* | rhapsody*)
7031   lt_cv_deplibs_check_method=pass_all
7032   ;;
7033
7034 freebsd* | dragonfly*)
7035   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7036     case $host_cpu in
7037     i*86 )
7038       # Not sure whether the presence of OpenBSD here was a mistake.
7039       # Let's accept both of them until this is cleared up.
7040       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7041       lt_cv_file_magic_cmd=/usr/bin/file
7042       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7043       ;;
7044     esac
7045   else
7046     lt_cv_deplibs_check_method=pass_all
7047   fi
7048   ;;
7049
7050 gnu*)
7051   lt_cv_deplibs_check_method=pass_all
7052   ;;
7053
7054 hpux10.20* | hpux11*)
7055   lt_cv_file_magic_cmd=/usr/bin/file
7056   case $host_cpu in
7057   ia64*)
7058     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7059     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7060     ;;
7061   hppa*64*)
7062     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]'
7063     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7064     ;;
7065   *)
7066     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7067     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7068     ;;
7069   esac
7070   ;;
7071
7072 interix[3-9]*)
7073   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7074   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7075   ;;
7076
7077 irix5* | irix6* | nonstopux*)
7078   case $LD in
7079   *-32|*"-32 ") libmagic=32-bit;;
7080   *-n32|*"-n32 ") libmagic=N32;;
7081   *-64|*"-64 ") libmagic=64-bit;;
7082   *) libmagic=never-match;;
7083   esac
7084   lt_cv_deplibs_check_method=pass_all
7085   ;;
7086
7087 # This must be Linux ELF.
7088 linux* | k*bsd*-gnu)
7089   lt_cv_deplibs_check_method=pass_all
7090   ;;
7091
7092 netbsd*)
7093   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7094     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7095   else
7096     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7097   fi
7098   ;;
7099
7100 newos6*)
7101   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7102   lt_cv_file_magic_cmd=/usr/bin/file
7103   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7104   ;;
7105
7106 *nto* | *qnx*)
7107   lt_cv_deplibs_check_method=pass_all
7108   ;;
7109
7110 openbsd*)
7111   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7112     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7113   else
7114     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7115   fi
7116   ;;
7117
7118 osf3* | osf4* | osf5*)
7119   lt_cv_deplibs_check_method=pass_all
7120   ;;
7121
7122 rdos*)
7123   lt_cv_deplibs_check_method=pass_all
7124   ;;
7125
7126 solaris*)
7127   lt_cv_deplibs_check_method=pass_all
7128   ;;
7129
7130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7131   lt_cv_deplibs_check_method=pass_all
7132   ;;
7133
7134 sysv4 | sysv4.3*)
7135   case $host_vendor in
7136   motorola)
7137     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]'
7138     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7139     ;;
7140   ncr)
7141     lt_cv_deplibs_check_method=pass_all
7142     ;;
7143   sequent)
7144     lt_cv_file_magic_cmd='/bin/file'
7145     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7146     ;;
7147   sni)
7148     lt_cv_file_magic_cmd='/bin/file'
7149     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7150     lt_cv_file_magic_test_file=/lib/libc.so
7151     ;;
7152   siemens)
7153     lt_cv_deplibs_check_method=pass_all
7154     ;;
7155   pc)
7156     lt_cv_deplibs_check_method=pass_all
7157     ;;
7158   esac
7159   ;;
7160
7161 tpf*)
7162   lt_cv_deplibs_check_method=pass_all
7163   ;;
7164 esac
7165
7166 fi
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7168 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7169 file_magic_cmd=$lt_cv_file_magic_cmd
7170 deplibs_check_method=$lt_cv_deplibs_check_method
7171 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184 if test -n "$ac_tool_prefix"; then
7185   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}ar; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if ${ac_cv_prog_AR+:} false; then :
7190   $as_echo_n "(cached) " >&6
7191 else
7192   if test -n "$AR"; then
7193   ac_cv_prog_AR="$AR" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200     for ac_exec_ext in '' $ac_executable_extensions; do
7201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202     ac_cv_prog_AR="${ac_tool_prefix}ar"
7203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207   done
7208 IFS=$as_save_IFS
7209
7210 fi
7211 fi
7212 AR=$ac_cv_prog_AR
7213 if test -n "$AR"; then
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7215 $as_echo "$AR" >&6; }
7216 else
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7219 fi
7220
7221
7222 fi
7223 if test -z "$ac_cv_prog_AR"; then
7224   ac_ct_AR=$AR
7225   # Extract the first word of "ar", so it can be a program name with args.
7226 set dummy ar; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232   if test -n "$ac_ct_AR"; then
7233   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240     for ac_exec_ext in '' $ac_executable_extensions; do
7241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242     ac_cv_prog_ac_ct_AR="ar"
7243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247   done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7253 if test -n "$ac_ct_AR"; then
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7255 $as_echo "$ac_ct_AR" >&6; }
7256 else
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261   if test "x$ac_ct_AR" = x; then
7262     AR="false"
7263   else
7264     case $cross_compiling:$ac_tool_warned in
7265 yes:)
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7269 esac
7270     AR=$ac_ct_AR
7271   fi
7272 else
7273   AR="$ac_cv_prog_AR"
7274 fi
7275
7276 test -z "$AR" && AR=ar
7277 test -z "$AR_FLAGS" && AR_FLAGS=cru
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 if test -n "$ac_tool_prefix"; then
7290   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}strip; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_STRIP+:} false; then :
7295   $as_echo_n "(cached) " >&6
7296 else
7297   if test -n "$STRIP"; then
7298   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305     for ac_exec_ext in '' $ac_executable_extensions; do
7306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312   done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 STRIP=$ac_cv_prog_STRIP
7318 if test -n "$STRIP"; then
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7320 $as_echo "$STRIP" >&6; }
7321 else
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 fi
7325
7326
7327 fi
7328 if test -z "$ac_cv_prog_STRIP"; then
7329   ac_ct_STRIP=$STRIP
7330   # Extract the first word of "strip", so it can be a program name with args.
7331 set dummy strip; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test -n "$ac_ct_STRIP"; then
7338   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347     ac_cv_prog_ac_ct_STRIP="strip"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7358 if test -n "$ac_ct_STRIP"; then
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7360 $as_echo "$ac_ct_STRIP" >&6; }
7361 else
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366   if test "x$ac_ct_STRIP" = x; then
7367     STRIP=":"
7368   else
7369     case $cross_compiling:$ac_tool_warned in
7370 yes:)
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7374 esac
7375     STRIP=$ac_ct_STRIP
7376   fi
7377 else
7378   STRIP="$ac_cv_prog_STRIP"
7379 fi
7380
7381 test -z "$STRIP" && STRIP=:
7382
7383
7384
7385
7386
7387
7388 if test -n "$ac_tool_prefix"; then
7389   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7390 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_RANLIB+:} false; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   if test -n "$RANLIB"; then
7397   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404     for ac_exec_ext in '' $ac_executable_extensions; do
7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411   done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 RANLIB=$ac_cv_prog_RANLIB
7417 if test -n "$RANLIB"; then
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7419 $as_echo "$RANLIB" >&6; }
7420 else
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424
7425
7426 fi
7427 if test -z "$ac_cv_prog_RANLIB"; then
7428   ac_ct_RANLIB=$RANLIB
7429   # Extract the first word of "ranlib", so it can be a program name with args.
7430 set dummy ranlib; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436   if test -n "$ac_ct_RANLIB"; then
7437   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442   IFS=$as_save_IFS
7443   test -z "$as_dir" && as_dir=.
7444     for ac_exec_ext in '' $ac_executable_extensions; do
7445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446     ac_cv_prog_ac_ct_RANLIB="ranlib"
7447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448     break 2
7449   fi
7450 done
7451   done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7457 if test -n "$ac_ct_RANLIB"; then
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7459 $as_echo "$ac_ct_RANLIB" >&6; }
7460 else
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465   if test "x$ac_ct_RANLIB" = x; then
7466     RANLIB=":"
7467   else
7468     case $cross_compiling:$ac_tool_warned in
7469 yes:)
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472 ac_tool_warned=yes ;;
7473 esac
7474     RANLIB=$ac_ct_RANLIB
7475   fi
7476 else
7477   RANLIB="$ac_cv_prog_RANLIB"
7478 fi
7479
7480 test -z "$RANLIB" && RANLIB=:
7481
7482
7483
7484
7485
7486
7487 # Determine commands to create old-style static archives.
7488 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7489 old_postinstall_cmds='chmod 644 $oldlib'
7490 old_postuninstall_cmds=
7491
7492 if test -n "$RANLIB"; then
7493   case $host_os in
7494   openbsd*)
7495     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7496     ;;
7497   *)
7498     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7499     ;;
7500   esac
7501   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7502 fi
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
7536
7537 # If no C compiler was specified, use CC.
7538 LTCC=${LTCC-"$CC"}
7539
7540 # If no C compiler flags were specified, use CFLAGS.
7541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7542
7543 # Allow CC to be a program name with arguments.
7544 compiler=$CC
7545
7546
7547 # Check for command to grab the raw symbol name followed by C symbol from nm.
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7549 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7550 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7551   $as_echo_n "(cached) " >&6
7552 else
7553
7554 # These are sane defaults that work on at least a few old systems.
7555 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7556
7557 # Character class describing NM global symbol codes.
7558 symcode='[BCDEGRST]'
7559
7560 # Regexp to match symbols that can be accessed directly from C.
7561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7562
7563 # Define system-specific variables.
7564 case $host_os in
7565 aix*)
7566   symcode='[BCDT]'
7567   ;;
7568 cygwin* | mingw* | pw32* | cegcc*)
7569   symcode='[ABCDGISTW]'
7570   ;;
7571 hpux*)
7572   if test "$host_cpu" = ia64; then
7573     symcode='[ABCDEGRST]'
7574   fi
7575   ;;
7576 irix* | nonstopux*)
7577   symcode='[BCDEGRST]'
7578   ;;
7579 osf*)
7580   symcode='[BCDEGQRST]'
7581   ;;
7582 solaris*)
7583   symcode='[BDRT]'
7584   ;;
7585 sco3.2v5*)
7586   symcode='[DT]'
7587   ;;
7588 sysv4.2uw2*)
7589   symcode='[DT]'
7590   ;;
7591 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7592   symcode='[ABDT]'
7593   ;;
7594 sysv4)
7595   symcode='[DFNSTU]'
7596   ;;
7597 esac
7598
7599 # If we're using GNU nm, then use its standard symbol codes.
7600 case `$NM -V 2>&1` in
7601 *GNU* | *'with BFD'*)
7602   symcode='[ABCDGIRSTW]' ;;
7603 esac
7604
7605 # Transform an extracted symbol line into a proper C declaration.
7606 # Some systems (esp. on ia64) link data and code symbols differently,
7607 # so use this general approach.
7608 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7609
7610 # Transform an extracted symbol line into symbol name and symbol address
7611 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7612 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'"
7613
7614 # Handle CRLF in mingw tool chain
7615 opt_cr=
7616 case $build_os in
7617 mingw*)
7618   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7619   ;;
7620 esac
7621
7622 # Try without a prefix underscore, then with it.
7623 for ac_symprfx in "" "_"; do
7624
7625   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7626   symxfrm="\\1 $ac_symprfx\\2 \\2"
7627
7628   # Write the raw and C identifiers.
7629   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7630     # Fake it for dumpbin and say T for any non-static function
7631     # and D for any global variable.
7632     # Also find C++ and __fastcall symbols from MSVC++,
7633     # which start with @ or ?.
7634     lt_cv_sys_global_symbol_pipe="$AWK '"\
7635 "     {last_section=section; section=\$ 3};"\
7636 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7637 "     \$ 0!~/External *\|/{next};"\
7638 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7639 "     {if(hide[section]) next};"\
7640 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7641 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7642 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7643 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7644 "     ' prfx=^$ac_symprfx"
7645   else
7646     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7647   fi
7648
7649   # Check to see that the pipe works correctly.
7650   pipe_works=no
7651
7652   rm -f conftest*
7653   cat > conftest.$ac_ext <<_LT_EOF
7654 #ifdef __cplusplus
7655 extern "C" {
7656 #endif
7657 char nm_test_var;
7658 void nm_test_func(void);
7659 void nm_test_func(void){}
7660 #ifdef __cplusplus
7661 }
7662 #endif
7663 int main(){nm_test_var='a';nm_test_func();return(0);}
7664 _LT_EOF
7665
7666   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7667   (eval $ac_compile) 2>&5
7668   ac_status=$?
7669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670   test $ac_status = 0; }; then
7671     # Now try to grab the symbols.
7672     nlist=conftest.nm
7673     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7674   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7675   ac_status=$?
7676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7677   test $ac_status = 0; } && test -s "$nlist"; then
7678       # Try sorting and uniquifying the output.
7679       if sort "$nlist" | uniq > "$nlist"T; then
7680         mv -f "$nlist"T "$nlist"
7681       else
7682         rm -f "$nlist"T
7683       fi
7684
7685       # Make sure that we snagged all the symbols we need.
7686       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7687         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7688           cat <<_LT_EOF > conftest.$ac_ext
7689 #ifdef __cplusplus
7690 extern "C" {
7691 #endif
7692
7693 _LT_EOF
7694           # Now generate the symbol file.
7695           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7696
7697           cat <<_LT_EOF >> conftest.$ac_ext
7698
7699 /* The mapping between symbol names and symbols.  */
7700 const struct {
7701   const char *name;
7702   void       *address;
7703 }
7704 lt__PROGRAM__LTX_preloaded_symbols[] =
7705 {
7706   { "@PROGRAM@", (void *) 0 },
7707 _LT_EOF
7708           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7709           cat <<\_LT_EOF >> conftest.$ac_ext
7710   {0, (void *) 0}
7711 };
7712
7713 /* This works around a problem in FreeBSD linker */
7714 #ifdef FREEBSD_WORKAROUND
7715 static const void *lt_preloaded_setup() {
7716   return lt__PROGRAM__LTX_preloaded_symbols;
7717 }
7718 #endif
7719
7720 #ifdef __cplusplus
7721 }
7722 #endif
7723 _LT_EOF
7724           # Now try linking the two files.
7725           mv conftest.$ac_objext conftstm.$ac_objext
7726           lt_save_LIBS="$LIBS"
7727           lt_save_CFLAGS="$CFLAGS"
7728           LIBS="conftstm.$ac_objext"
7729           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7730           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7731   (eval $ac_link) 2>&5
7732   ac_status=$?
7733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7735             pipe_works=yes
7736           fi
7737           LIBS="$lt_save_LIBS"
7738           CFLAGS="$lt_save_CFLAGS"
7739         else
7740           echo "cannot find nm_test_func in $nlist" >&5
7741         fi
7742       else
7743         echo "cannot find nm_test_var in $nlist" >&5
7744       fi
7745     else
7746       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7747     fi
7748   else
7749     echo "$progname: failed program was:" >&5
7750     cat conftest.$ac_ext >&5
7751   fi
7752   rm -rf conftest* conftst*
7753
7754   # Do not use the global_symbol_pipe unless it works.
7755   if test "$pipe_works" = yes; then
7756     break
7757   else
7758     lt_cv_sys_global_symbol_pipe=
7759   fi
7760 done
7761
7762 fi
7763
7764 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7765   lt_cv_sys_global_symbol_to_cdecl=
7766 fi
7767 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7769 $as_echo "failed" >&6; }
7770 else
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7772 $as_echo "ok" >&6; }
7773 fi
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796 # Check whether --enable-libtool-lock was given.
7797 if test "${enable_libtool_lock+set}" = set; then :
7798   enableval=$enable_libtool_lock;
7799 fi
7800
7801 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7802
7803 # Some flags need to be propagated to the compiler or linker for good
7804 # libtool support.
7805 case $host in
7806 ia64-*-hpux*)
7807   # Find out which ABI we are using.
7808   echo 'int i;' > conftest.$ac_ext
7809   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7810   (eval $ac_compile) 2>&5
7811   ac_status=$?
7812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813   test $ac_status = 0; }; then
7814     case `/usr/bin/file conftest.$ac_objext` in
7815       *ELF-32*)
7816         HPUX_IA64_MODE="32"
7817         ;;
7818       *ELF-64*)
7819         HPUX_IA64_MODE="64"
7820         ;;
7821     esac
7822   fi
7823   rm -rf conftest*
7824   ;;
7825 *-*-irix6*)
7826   # Find out which ABI we are using.
7827   echo '#line 7827 "configure"' > conftest.$ac_ext
7828   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7829   (eval $ac_compile) 2>&5
7830   ac_status=$?
7831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7832   test $ac_status = 0; }; then
7833     if test "$lt_cv_prog_gnu_ld" = yes; then
7834       case `/usr/bin/file conftest.$ac_objext` in
7835         *32-bit*)
7836           LD="${LD-ld} -melf32bsmip"
7837           ;;
7838         *N32*)
7839           LD="${LD-ld} -melf32bmipn32"
7840           ;;
7841         *64-bit*)
7842           LD="${LD-ld} -melf64bmip"
7843         ;;
7844       esac
7845     else
7846       case `/usr/bin/file conftest.$ac_objext` in
7847         *32-bit*)
7848           LD="${LD-ld} -32"
7849           ;;
7850         *N32*)
7851           LD="${LD-ld} -n32"
7852           ;;
7853         *64-bit*)
7854           LD="${LD-ld} -64"
7855           ;;
7856       esac
7857     fi
7858   fi
7859   rm -rf conftest*
7860   ;;
7861
7862 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7863 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7864   # Find out which ABI we are using.
7865   echo 'int i;' > conftest.$ac_ext
7866   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7867   (eval $ac_compile) 2>&5
7868   ac_status=$?
7869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870   test $ac_status = 0; }; then
7871     case `/usr/bin/file conftest.o` in
7872       *32-bit*)
7873         case $host in
7874           x86_64-*kfreebsd*-gnu)
7875             LD="${LD-ld} -m elf_i386_fbsd"
7876             ;;
7877           x86_64-*linux*)
7878             LD="${LD-ld} -m elf_i386"
7879             ;;
7880           ppc64-*linux*|powerpc64-*linux*)
7881             LD="${LD-ld} -m elf32ppclinux"
7882             ;;
7883           s390x-*linux*)
7884             LD="${LD-ld} -m elf_s390"
7885             ;;
7886           sparc64-*linux*)
7887             LD="${LD-ld} -m elf32_sparc"
7888             ;;
7889         esac
7890         ;;
7891       *64-bit*)
7892         case $host in
7893           x86_64-*kfreebsd*-gnu)
7894             LD="${LD-ld} -m elf_x86_64_fbsd"
7895             ;;
7896           x86_64-*linux*)
7897             LD="${LD-ld} -m elf_x86_64"
7898             ;;
7899           ppc*-*linux*|powerpc*-*linux*)
7900             LD="${LD-ld} -m elf64ppc"
7901             ;;
7902           s390*-*linux*|s390*-*tpf*)
7903             LD="${LD-ld} -m elf64_s390"
7904             ;;
7905           sparc*-*linux*)
7906             LD="${LD-ld} -m elf64_sparc"
7907             ;;
7908         esac
7909         ;;
7910     esac
7911   fi
7912   rm -rf conftest*
7913   ;;
7914
7915 *-*-sco3.2v5*)
7916   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7917   SAVE_CFLAGS="$CFLAGS"
7918   CFLAGS="$CFLAGS -belf"
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7920 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7921 if ${lt_cv_cc_needs_belf+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   ac_ext=c
7925 ac_cpp='$CPP $CPPFLAGS'
7926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7929
7930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h.  */
7932
7933 int
7934 main ()
7935 {
7936
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_link "$LINENO"; then :
7942   lt_cv_cc_needs_belf=yes
7943 else
7944   lt_cv_cc_needs_belf=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext \
7947     conftest$ac_exeext conftest.$ac_ext
7948      ac_ext=c
7949 ac_cpp='$CPP $CPPFLAGS'
7950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7953
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7956 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7957   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7958     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7959     CFLAGS="$SAVE_CFLAGS"
7960   fi
7961   ;;
7962 sparc*-*solaris*)
7963   # Find out which ABI we are using.
7964   echo 'int i;' > conftest.$ac_ext
7965   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7966   (eval $ac_compile) 2>&5
7967   ac_status=$?
7968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969   test $ac_status = 0; }; then
7970     case `/usr/bin/file conftest.o` in
7971     *64-bit*)
7972       case $lt_cv_prog_gnu_ld in
7973       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7974       *)
7975         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7976           LD="${LD-ld} -64"
7977         fi
7978         ;;
7979       esac
7980       ;;
7981     esac
7982   fi
7983   rm -rf conftest*
7984   ;;
7985 esac
7986
7987 need_locks="$enable_libtool_lock"
7988
7989
7990   case $host_os in
7991     rhapsody* | darwin*)
7992     if test -n "$ac_tool_prefix"; then
7993   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7998   $as_echo_n "(cached) " >&6
7999 else
8000   if test -n "$DSYMUTIL"; then
8001   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006   IFS=$as_save_IFS
8007   test -z "$as_dir" && as_dir=.
8008     for ac_exec_ext in '' $ac_executable_extensions; do
8009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012     break 2
8013   fi
8014 done
8015   done
8016 IFS=$as_save_IFS
8017
8018 fi
8019 fi
8020 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8021 if test -n "$DSYMUTIL"; then
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8023 $as_echo "$DSYMUTIL" >&6; }
8024 else
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030 fi
8031 if test -z "$ac_cv_prog_DSYMUTIL"; then
8032   ac_ct_DSYMUTIL=$DSYMUTIL
8033   # Extract the first word of "dsymutil", so it can be a program name with args.
8034 set dummy dsymutil; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   if test -n "$ac_ct_DSYMUTIL"; then
8041   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046   IFS=$as_save_IFS
8047   test -z "$as_dir" && as_dir=.
8048     for ac_exec_ext in '' $ac_executable_extensions; do
8049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8050     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052     break 2
8053   fi
8054 done
8055   done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8061 if test -n "$ac_ct_DSYMUTIL"; then
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8063 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8064 else
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068
8069   if test "x$ac_ct_DSYMUTIL" = x; then
8070     DSYMUTIL=":"
8071   else
8072     case $cross_compiling:$ac_tool_warned in
8073 yes:)
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076 ac_tool_warned=yes ;;
8077 esac
8078     DSYMUTIL=$ac_ct_DSYMUTIL
8079   fi
8080 else
8081   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8082 fi
8083
8084     if test -n "$ac_tool_prefix"; then
8085   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_NMEDIT+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   if test -n "$NMEDIT"; then
8093   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100     for ac_exec_ext in '' $ac_executable_extensions; do
8101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107   done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 NMEDIT=$ac_cv_prog_NMEDIT
8113 if test -n "$NMEDIT"; then
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8115 $as_echo "$NMEDIT" >&6; }
8116 else
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121
8122 fi
8123 if test -z "$ac_cv_prog_NMEDIT"; then
8124   ac_ct_NMEDIT=$NMEDIT
8125   # Extract the first word of "nmedit", so it can be a program name with args.
8126 set dummy nmedit; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   if test -n "$ac_ct_NMEDIT"; then
8133   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   test -z "$as_dir" && as_dir=.
8140     for ac_exec_ext in '' $ac_executable_extensions; do
8141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147   done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8153 if test -n "$ac_ct_NMEDIT"; then
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8155 $as_echo "$ac_ct_NMEDIT" >&6; }
8156 else
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160
8161   if test "x$ac_ct_NMEDIT" = x; then
8162     NMEDIT=":"
8163   else
8164     case $cross_compiling:$ac_tool_warned in
8165 yes:)
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168 ac_tool_warned=yes ;;
8169 esac
8170     NMEDIT=$ac_ct_NMEDIT
8171   fi
8172 else
8173   NMEDIT="$ac_cv_prog_NMEDIT"
8174 fi
8175
8176     if test -n "$ac_tool_prefix"; then
8177   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8178 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if ${ac_cv_prog_LIPO+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   if test -n "$LIPO"; then
8185   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190   IFS=$as_save_IFS
8191   test -z "$as_dir" && as_dir=.
8192     for ac_exec_ext in '' $ac_executable_extensions; do
8193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8194     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196     break 2
8197   fi
8198 done
8199   done
8200 IFS=$as_save_IFS
8201
8202 fi
8203 fi
8204 LIPO=$ac_cv_prog_LIPO
8205 if test -n "$LIPO"; then
8206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8207 $as_echo "$LIPO" >&6; }
8208 else
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8211 fi
8212
8213
8214 fi
8215 if test -z "$ac_cv_prog_LIPO"; then
8216   ac_ct_LIPO=$LIPO
8217   # Extract the first word of "lipo", so it can be a program name with args.
8218 set dummy lipo; ac_word=$2
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220 $as_echo_n "checking for $ac_word... " >&6; }
8221 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8222   $as_echo_n "(cached) " >&6
8223 else
8224   if test -n "$ac_ct_LIPO"; then
8225   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230   IFS=$as_save_IFS
8231   test -z "$as_dir" && as_dir=.
8232     for ac_exec_ext in '' $ac_executable_extensions; do
8233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234     ac_cv_prog_ac_ct_LIPO="lipo"
8235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236     break 2
8237   fi
8238 done
8239   done
8240 IFS=$as_save_IFS
8241
8242 fi
8243 fi
8244 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8245 if test -n "$ac_ct_LIPO"; then
8246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8247 $as_echo "$ac_ct_LIPO" >&6; }
8248 else
8249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8251 fi
8252
8253   if test "x$ac_ct_LIPO" = x; then
8254     LIPO=":"
8255   else
8256     case $cross_compiling:$ac_tool_warned in
8257 yes:)
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260 ac_tool_warned=yes ;;
8261 esac
8262     LIPO=$ac_ct_LIPO
8263   fi
8264 else
8265   LIPO="$ac_cv_prog_LIPO"
8266 fi
8267
8268     if test -n "$ac_tool_prefix"; then
8269   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8270 set dummy ${ac_tool_prefix}otool; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_prog_OTOOL+:} false; then :
8274   $as_echo_n "(cached) " >&6
8275 else
8276   if test -n "$OTOOL"; then
8277   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8281 do
8282   IFS=$as_save_IFS
8283   test -z "$as_dir" && as_dir=.
8284     for ac_exec_ext in '' $ac_executable_extensions; do
8285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288     break 2
8289   fi
8290 done
8291   done
8292 IFS=$as_save_IFS
8293
8294 fi
8295 fi
8296 OTOOL=$ac_cv_prog_OTOOL
8297 if test -n "$OTOOL"; then
8298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8299 $as_echo "$OTOOL" >&6; }
8300 else
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8303 fi
8304
8305
8306 fi
8307 if test -z "$ac_cv_prog_OTOOL"; then
8308   ac_ct_OTOOL=$OTOOL
8309   # Extract the first word of "otool", so it can be a program name with args.
8310 set dummy otool; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8314   $as_echo_n "(cached) " >&6
8315 else
8316   if test -n "$ac_ct_OTOOL"; then
8317   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322   IFS=$as_save_IFS
8323   test -z "$as_dir" && as_dir=.
8324     for ac_exec_ext in '' $ac_executable_extensions; do
8325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326     ac_cv_prog_ac_ct_OTOOL="otool"
8327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328     break 2
8329   fi
8330 done
8331   done
8332 IFS=$as_save_IFS
8333
8334 fi
8335 fi
8336 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8337 if test -n "$ac_ct_OTOOL"; then
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8339 $as_echo "$ac_ct_OTOOL" >&6; }
8340 else
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8343 fi
8344
8345   if test "x$ac_ct_OTOOL" = x; then
8346     OTOOL=":"
8347   else
8348     case $cross_compiling:$ac_tool_warned in
8349 yes:)
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8352 ac_tool_warned=yes ;;
8353 esac
8354     OTOOL=$ac_ct_OTOOL
8355   fi
8356 else
8357   OTOOL="$ac_cv_prog_OTOOL"
8358 fi
8359
8360     if test -n "$ac_tool_prefix"; then
8361   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8362 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_prog_OTOOL64+:} false; then :
8366   $as_echo_n "(cached) " >&6
8367 else
8368   if test -n "$OTOOL64"; then
8369   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374   IFS=$as_save_IFS
8375   test -z "$as_dir" && as_dir=.
8376     for ac_exec_ext in '' $ac_executable_extensions; do
8377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380     break 2
8381   fi
8382 done
8383   done
8384 IFS=$as_save_IFS
8385
8386 fi
8387 fi
8388 OTOOL64=$ac_cv_prog_OTOOL64
8389 if test -n "$OTOOL64"; then
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8391 $as_echo "$OTOOL64" >&6; }
8392 else
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398 fi
8399 if test -z "$ac_cv_prog_OTOOL64"; then
8400   ac_ct_OTOOL64=$OTOOL64
8401   # Extract the first word of "otool64", so it can be a program name with args.
8402 set dummy otool64; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8406   $as_echo_n "(cached) " >&6
8407 else
8408   if test -n "$ac_ct_OTOOL64"; then
8409   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414   IFS=$as_save_IFS
8415   test -z "$as_dir" && as_dir=.
8416     for ac_exec_ext in '' $ac_executable_extensions; do
8417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418     ac_cv_prog_ac_ct_OTOOL64="otool64"
8419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420     break 2
8421   fi
8422 done
8423   done
8424 IFS=$as_save_IFS
8425
8426 fi
8427 fi
8428 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8429 if test -n "$ac_ct_OTOOL64"; then
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8431 $as_echo "$ac_ct_OTOOL64" >&6; }
8432 else
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8435 fi
8436
8437   if test "x$ac_ct_OTOOL64" = x; then
8438     OTOOL64=":"
8439   else
8440     case $cross_compiling:$ac_tool_warned in
8441 yes:)
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8444 ac_tool_warned=yes ;;
8445 esac
8446     OTOOL64=$ac_ct_OTOOL64
8447   fi
8448 else
8449   OTOOL64="$ac_cv_prog_OTOOL64"
8450 fi
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
8477
8478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8479 $as_echo_n "checking for -single_module linker flag... " >&6; }
8480 if ${lt_cv_apple_cc_single_mod+:} false; then :
8481   $as_echo_n "(cached) " >&6
8482 else
8483   lt_cv_apple_cc_single_mod=no
8484       if test -z "${LT_MULTI_MODULE}"; then
8485         # By default we will add the -single_module flag. You can override
8486         # by either setting the environment variable LT_MULTI_MODULE
8487         # non-empty at configure time, or by adding -multi_module to the
8488         # link flags.
8489         rm -rf libconftest.dylib*
8490         echo "int foo(void){return 1;}" > conftest.c
8491         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8492 -dynamiclib -Wl,-single_module conftest.c" >&5
8493         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8494           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8495         _lt_result=$?
8496         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8497           lt_cv_apple_cc_single_mod=yes
8498         else
8499           cat conftest.err >&5
8500         fi
8501         rm -rf libconftest.dylib*
8502         rm -f conftest.*
8503       fi
8504 fi
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8506 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8508 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8509 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8510   $as_echo_n "(cached) " >&6
8511 else
8512   lt_cv_ld_exported_symbols_list=no
8513       save_LDFLAGS=$LDFLAGS
8514       echo "_main" > conftest.sym
8515       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8516       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h.  */
8518
8519 int
8520 main ()
8521 {
8522
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 if ac_fn_c_try_link "$LINENO"; then :
8528   lt_cv_ld_exported_symbols_list=yes
8529 else
8530   lt_cv_ld_exported_symbols_list=no
8531 fi
8532 rm -f core conftest.err conftest.$ac_objext \
8533     conftest$ac_exeext conftest.$ac_ext
8534         LDFLAGS="$save_LDFLAGS"
8535
8536 fi
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8538 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8539     case $host_os in
8540     rhapsody* | darwin1.[012])
8541       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8542     darwin1.*)
8543       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8544     darwin*) # darwin 5.x on
8545       # if running on 10.5 or later, the deployment target defaults
8546       # to the OS version, if on x86, and 10.4, the deployment
8547       # target defaults to 10.4. Don't you love it?
8548       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8549         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8550           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8551         10.[012]*)
8552           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8553         10.*)
8554           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8555       esac
8556     ;;
8557   esac
8558     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8559       _lt_dar_single_mod='$single_module'
8560     fi
8561     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8562       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8563     else
8564       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8565     fi
8566     if test "$DSYMUTIL" != ":"; then
8567       _lt_dsymutil='~$DSYMUTIL $lib || :'
8568     else
8569       _lt_dsymutil=
8570     fi
8571     ;;
8572   esac
8573
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8575 $as_echo_n "checking for ANSI C header files... " >&6; }
8576 if ${ac_cv_header_stdc+:} false; then :
8577   $as_echo_n "(cached) " >&6
8578 else
8579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h.  */
8581 #include <stdlib.h>
8582 #include <stdarg.h>
8583 #include <string.h>
8584 #include <float.h>
8585
8586 int
8587 main ()
8588 {
8589
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595   ac_cv_header_stdc=yes
8596 else
8597   ac_cv_header_stdc=no
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600
8601 if test $ac_cv_header_stdc = yes; then
8602   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h.  */
8605 #include <string.h>
8606
8607 _ACEOF
8608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8609   $EGREP "memchr" >/dev/null 2>&1; then :
8610
8611 else
8612   ac_cv_header_stdc=no
8613 fi
8614 rm -f conftest*
8615
8616 fi
8617
8618 if test $ac_cv_header_stdc = yes; then
8619   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h.  */
8622 #include <stdlib.h>
8623
8624 _ACEOF
8625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8626   $EGREP "free" >/dev/null 2>&1; then :
8627
8628 else
8629   ac_cv_header_stdc=no
8630 fi
8631 rm -f conftest*
8632
8633 fi
8634
8635 if test $ac_cv_header_stdc = yes; then
8636   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8637   if test "$cross_compiling" = yes; then :
8638   :
8639 else
8640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h.  */
8642 #include <ctype.h>
8643 #include <stdlib.h>
8644 #if ((' ' & 0x0FF) == 0x020)
8645 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8646 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8647 #else
8648 # define ISLOWER(c) \
8649                    (('a' <= (c) && (c) <= 'i') \
8650                      || ('j' <= (c) && (c) <= 'r') \
8651                      || ('s' <= (c) && (c) <= 'z'))
8652 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8653 #endif
8654
8655 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8656 int
8657 main ()
8658 {
8659   int i;
8660   for (i = 0; i < 256; i++)
8661     if (XOR (islower (i), ISLOWER (i))
8662         || toupper (i) != TOUPPER (i))
8663       return 2;
8664   return 0;
8665 }
8666 _ACEOF
8667 if ac_fn_c_try_run "$LINENO"; then :
8668
8669 else
8670   ac_cv_header_stdc=no
8671 fi
8672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8673   conftest.$ac_objext conftest.beam conftest.$ac_ext
8674 fi
8675
8676 fi
8677 fi
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8679 $as_echo "$ac_cv_header_stdc" >&6; }
8680 if test $ac_cv_header_stdc = yes; then
8681
8682 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8683
8684 fi
8685
8686 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8687 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8688                   inttypes.h stdint.h unistd.h
8689 do :
8690   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8691 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8692 "
8693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8694   cat >>confdefs.h <<_ACEOF
8695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8696 _ACEOF
8697
8698 fi
8699
8700 done
8701
8702
8703 for ac_header in dlfcn.h
8704 do :
8705   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8706 "
8707 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8708   cat >>confdefs.h <<_ACEOF
8709 #define HAVE_DLFCN_H 1
8710 _ACEOF
8711
8712 fi
8713
8714 done
8715
8716
8717
8718 ac_ext=cpp
8719 ac_cpp='$CXXCPP $CPPFLAGS'
8720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8723 if test -z "$CXX"; then
8724   if test -n "$CCC"; then
8725     CXX=$CCC
8726   else
8727     if test -n "$ac_tool_prefix"; then
8728   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8729   do
8730     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_CXX+:} false; then :
8735   $as_echo_n "(cached) " >&6
8736 else
8737   if test -n "$CXX"; then
8738   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743   IFS=$as_save_IFS
8744   test -z "$as_dir" && as_dir=.
8745     for ac_exec_ext in '' $ac_executable_extensions; do
8746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749     break 2
8750   fi
8751 done
8752   done
8753 IFS=$as_save_IFS
8754
8755 fi
8756 fi
8757 CXX=$ac_cv_prog_CXX
8758 if test -n "$CXX"; then
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8760 $as_echo "$CXX" >&6; }
8761 else
8762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765
8766
8767     test -n "$CXX" && break
8768   done
8769 fi
8770 if test -z "$CXX"; then
8771   ac_ct_CXX=$CXX
8772   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8773 do
8774   # Extract the first word of "$ac_prog", so it can be a program name with args.
8775 set dummy $ac_prog; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8779   $as_echo_n "(cached) " >&6
8780 else
8781   if test -n "$ac_ct_CXX"; then
8782   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8783 else
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8786 do
8787   IFS=$as_save_IFS
8788   test -z "$as_dir" && as_dir=.
8789     for ac_exec_ext in '' $ac_executable_extensions; do
8790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791     ac_cv_prog_ac_ct_CXX="$ac_prog"
8792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793     break 2
8794   fi
8795 done
8796   done
8797 IFS=$as_save_IFS
8798
8799 fi
8800 fi
8801 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8802 if test -n "$ac_ct_CXX"; then
8803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8804 $as_echo "$ac_ct_CXX" >&6; }
8805 else
8806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8808 fi
8809
8810
8811   test -n "$ac_ct_CXX" && break
8812 done
8813
8814   if test "x$ac_ct_CXX" = x; then
8815     CXX="g++"
8816   else
8817     case $cross_compiling:$ac_tool_warned in
8818 yes:)
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8821 ac_tool_warned=yes ;;
8822 esac
8823     CXX=$ac_ct_CXX
8824   fi
8825 fi
8826
8827   fi
8828 fi
8829 # Provide some information about the compiler.
8830 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8831 set X $ac_compile
8832 ac_compiler=$2
8833 for ac_option in --version -v -V -qversion; do
8834   { { ac_try="$ac_compiler $ac_option >&5"
8835 case "(($ac_try" in
8836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837   *) ac_try_echo=$ac_try;;
8838 esac
8839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8840 $as_echo "$ac_try_echo"; } >&5
8841   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8842   ac_status=$?
8843   if test -s conftest.err; then
8844     sed '10a\
8845 ... rest of stderr output deleted ...
8846          10q' conftest.err >conftest.er1
8847     cat conftest.er1 >&5
8848   fi
8849   rm -f conftest.er1 conftest.err
8850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8851   test $ac_status = 0; }
8852 done
8853
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8855 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8856 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8857   $as_echo_n "(cached) " >&6
8858 else
8859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h.  */
8861
8862 int
8863 main ()
8864 {
8865 #ifndef __GNUC__
8866        choke me
8867 #endif
8868
8869   ;
8870   return 0;
8871 }
8872 _ACEOF
8873 if ac_fn_cxx_try_compile "$LINENO"; then :
8874   ac_compiler_gnu=yes
8875 else
8876   ac_compiler_gnu=no
8877 fi
8878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8880
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8883 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8884 if test $ac_compiler_gnu = yes; then
8885   GXX=yes
8886 else
8887   GXX=
8888 fi
8889 ac_test_CXXFLAGS=${CXXFLAGS+set}
8890 ac_save_CXXFLAGS=$CXXFLAGS
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8892 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8893 if ${ac_cv_prog_cxx_g+:} false; then :
8894   $as_echo_n "(cached) " >&6
8895 else
8896   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8897    ac_cxx_werror_flag=yes
8898    ac_cv_prog_cxx_g=no
8899    CXXFLAGS="-g"
8900    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h.  */
8902
8903 int
8904 main ()
8905 {
8906
8907   ;
8908   return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_cxx_try_compile "$LINENO"; then :
8912   ac_cv_prog_cxx_g=yes
8913 else
8914   CXXFLAGS=""
8915       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h.  */
8917
8918 int
8919 main ()
8920 {
8921
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_cxx_try_compile "$LINENO"; then :
8927
8928 else
8929   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8930          CXXFLAGS="-g"
8931          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h.  */
8933
8934 int
8935 main ()
8936 {
8937
8938   ;
8939   return 0;
8940 }
8941 _ACEOF
8942 if ac_fn_cxx_try_compile "$LINENO"; then :
8943   ac_cv_prog_cxx_g=yes
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 fi
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8951 fi
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8953 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8954 if test "$ac_test_CXXFLAGS" = set; then
8955   CXXFLAGS=$ac_save_CXXFLAGS
8956 elif test $ac_cv_prog_cxx_g = yes; then
8957   if test "$GXX" = yes; then
8958     CXXFLAGS="-g -O2"
8959   else
8960     CXXFLAGS="-g"
8961   fi
8962 else
8963   if test "$GXX" = yes; then
8964     CXXFLAGS="-O2"
8965   else
8966     CXXFLAGS=
8967   fi
8968 fi
8969 ac_ext=c
8970 ac_cpp='$CPP $CPPFLAGS'
8971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8974
8975 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8976     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8977     (test "X$CXX" != "Xg++"))) ; then
8978   ac_ext=cpp
8979 ac_cpp='$CXXCPP $CPPFLAGS'
8980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8984 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8985 if test -z "$CXXCPP"; then
8986   if ${ac_cv_prog_CXXCPP+:} false; then :
8987   $as_echo_n "(cached) " >&6
8988 else
8989       # Double quotes because CXXCPP needs to be expanded
8990     for CXXCPP in "$CXX -E" "/lib/cpp"
8991     do
8992       ac_preproc_ok=false
8993 for ac_cxx_preproc_warn_flag in '' yes
8994 do
8995   # Use a header file that comes with gcc, so configuring glibc
8996   # with a fresh cross-compiler works.
8997   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8998   # <limits.h> exists even on freestanding compilers.
8999   # On the NeXT, cc -E runs the code through the compiler's parser,
9000   # not just through cpp. "Syntax error" is here to catch this case.
9001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h.  */
9003 #ifdef __STDC__
9004 # include <limits.h>
9005 #else
9006 # include <assert.h>
9007 #endif
9008                      Syntax error
9009 _ACEOF
9010 if ac_fn_cxx_try_cpp "$LINENO"; then :
9011
9012 else
9013   # Broken: fails on valid input.
9014 continue
9015 fi
9016 rm -f conftest.err conftest.i conftest.$ac_ext
9017
9018   # OK, works on sane cases.  Now check whether nonexistent headers
9019   # can be detected and how.
9020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h.  */
9022 #include <ac_nonexistent.h>
9023 _ACEOF
9024 if ac_fn_cxx_try_cpp "$LINENO"; then :
9025   # Broken: success on invalid input.
9026 continue
9027 else
9028   # Passes both tests.
9029 ac_preproc_ok=:
9030 break
9031 fi
9032 rm -f conftest.err conftest.i conftest.$ac_ext
9033
9034 done
9035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9036 rm -f conftest.i conftest.err conftest.$ac_ext
9037 if $ac_preproc_ok; then :
9038   break
9039 fi
9040
9041     done
9042     ac_cv_prog_CXXCPP=$CXXCPP
9043
9044 fi
9045   CXXCPP=$ac_cv_prog_CXXCPP
9046 else
9047   ac_cv_prog_CXXCPP=$CXXCPP
9048 fi
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9050 $as_echo "$CXXCPP" >&6; }
9051 ac_preproc_ok=false
9052 for ac_cxx_preproc_warn_flag in '' yes
9053 do
9054   # Use a header file that comes with gcc, so configuring glibc
9055   # with a fresh cross-compiler works.
9056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9057   # <limits.h> exists even on freestanding compilers.
9058   # On the NeXT, cc -E runs the code through the compiler's parser,
9059   # not just through cpp. "Syntax error" is here to catch this case.
9060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h.  */
9062 #ifdef __STDC__
9063 # include <limits.h>
9064 #else
9065 # include <assert.h>
9066 #endif
9067                      Syntax error
9068 _ACEOF
9069 if ac_fn_cxx_try_cpp "$LINENO"; then :
9070
9071 else
9072   # Broken: fails on valid input.
9073 continue
9074 fi
9075 rm -f conftest.err conftest.i conftest.$ac_ext
9076
9077   # OK, works on sane cases.  Now check whether nonexistent headers
9078   # can be detected and how.
9079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h.  */
9081 #include <ac_nonexistent.h>
9082 _ACEOF
9083 if ac_fn_cxx_try_cpp "$LINENO"; then :
9084   # Broken: success on invalid input.
9085 continue
9086 else
9087   # Passes both tests.
9088 ac_preproc_ok=:
9089 break
9090 fi
9091 rm -f conftest.err conftest.i conftest.$ac_ext
9092
9093 done
9094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9095 rm -f conftest.i conftest.err conftest.$ac_ext
9096 if $ac_preproc_ok; then :
9097
9098 else
9099   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9101 _lt_caught_CXX_error=yes; }
9102 fi
9103
9104 ac_ext=c
9105 ac_cpp='$CPP $CPPFLAGS'
9106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9109
9110 else
9111   _lt_caught_CXX_error=yes
9112 fi
9113
9114
9115
9116
9117
9118 # Set options
9119 # Check whether --enable-shared was given.
9120 if test "${enable_shared+set}" = set; then :
9121   enableval=$enable_shared; p=${PACKAGE-default}
9122     case $enableval in
9123     yes) enable_shared=yes ;;
9124     no) enable_shared=no ;;
9125     *)
9126       enable_shared=no
9127       # Look at the argument we got.  We use all the common list separators.
9128       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9129       for pkg in $enableval; do
9130         IFS="$lt_save_ifs"
9131         if test "X$pkg" = "X$p"; then
9132           enable_shared=yes
9133         fi
9134       done
9135       IFS="$lt_save_ifs"
9136       ;;
9137     esac
9138 else
9139   enable_shared=yes
9140 fi
9141
9142
9143
9144
9145
9146
9147
9148 # Check whether --enable-static was given.
9149 if test "${enable_static+set}" = set; then :
9150   enableval=$enable_static; p=${PACKAGE-default}
9151     case $enableval in
9152     yes) enable_static=yes ;;
9153     no) enable_static=no ;;
9154     *)
9155      enable_static=no
9156       # Look at the argument we got.  We use all the common list separators.
9157       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9158       for pkg in $enableval; do
9159         IFS="$lt_save_ifs"
9160         if test "X$pkg" = "X$p"; then
9161           enable_static=yes
9162         fi
9163       done
9164       IFS="$lt_save_ifs"
9165       ;;
9166     esac
9167 else
9168   enable_static=no
9169 fi
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180         enable_dlopen=no
9181
9182
9183   enable_win32_dll=no
9184
9185
9186
9187
9188
9189 # Check whether --with-pic was given.
9190 if test "${with_pic+set}" = set; then :
9191   withval=$with_pic; pic_mode="$withval"
9192 else
9193   pic_mode=default
9194 fi
9195
9196
9197 test -z "$pic_mode" && pic_mode=default
9198
9199
9200
9201
9202
9203
9204
9205   # Check whether --enable-fast-install was given.
9206 if test "${enable_fast_install+set}" = set; then :
9207   enableval=$enable_fast_install; p=${PACKAGE-default}
9208     case $enableval in
9209     yes) enable_fast_install=yes ;;
9210     no) enable_fast_install=no ;;
9211     *)
9212       enable_fast_install=no
9213       # Look at the argument we got.  We use all the common list separators.
9214       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9215       for pkg in $enableval; do
9216         IFS="$lt_save_ifs"
9217         if test "X$pkg" = "X$p"; then
9218           enable_fast_install=yes
9219         fi
9220       done
9221       IFS="$lt_save_ifs"
9222       ;;
9223     esac
9224 else
9225   enable_fast_install=yes
9226 fi
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238 # This can be used to rebuild libtool when needed
9239 LIBTOOL_DEPS="$ltmain"
9240
9241 # Always use our own libtool.
9242 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268 test -z "$LN_S" && LN_S="ln -s"
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283 if test -n "${ZSH_VERSION+set}" ; then
9284    setopt NO_GLOB_SUBST
9285 fi
9286
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9288 $as_echo_n "checking for objdir... " >&6; }
9289 if ${lt_cv_objdir+:} false; then :
9290   $as_echo_n "(cached) " >&6
9291 else
9292   rm -f .libs 2>/dev/null
9293 mkdir .libs 2>/dev/null
9294 if test -d .libs; then
9295   lt_cv_objdir=.libs
9296 else
9297   # MS-DOS does not allow filenames that begin with a dot.
9298   lt_cv_objdir=_libs
9299 fi
9300 rmdir .libs 2>/dev/null
9301 fi
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9303 $as_echo "$lt_cv_objdir" >&6; }
9304 objdir=$lt_cv_objdir
9305
9306
9307
9308
9309
9310 cat >>confdefs.h <<_ACEOF
9311 #define LT_OBJDIR "$lt_cv_objdir/"
9312 _ACEOF
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330 case $host_os in
9331 aix3*)
9332   # AIX sometimes has problems with the GCC collect2 program.  For some
9333   # reason, if we set the COLLECT_NAMES environment variable, the problems
9334   # vanish in a puff of smoke.
9335   if test "X${COLLECT_NAMES+set}" != Xset; then
9336     COLLECT_NAMES=
9337     export COLLECT_NAMES
9338   fi
9339   ;;
9340 esac
9341
9342 # Sed substitution that helps us do robust quoting.  It backslashifies
9343 # metacharacters that are still active within double-quoted strings.
9344 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9345
9346 # Same as above, but do not quote variable references.
9347 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9348
9349 # Sed substitution to delay expansion of an escaped shell variable in a
9350 # double_quote_subst'ed string.
9351 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9352
9353 # Sed substitution to delay expansion of an escaped single quote.
9354 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9355
9356 # Sed substitution to avoid accidental globbing in evaled expressions
9357 no_glob_subst='s/\*/\\\*/g'
9358
9359 # Global variables:
9360 ofile=libtool
9361 can_build_shared=yes
9362
9363 # All known linkers require a `.a' archive for static linking (except MSVC,
9364 # which needs '.lib').
9365 libext=a
9366
9367 with_gnu_ld="$lt_cv_prog_gnu_ld"
9368
9369 old_CC="$CC"
9370 old_CFLAGS="$CFLAGS"
9371
9372 # Set sane defaults for various variables
9373 test -z "$CC" && CC=cc
9374 test -z "$LTCC" && LTCC=$CC
9375 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9376 test -z "$LD" && LD=ld
9377 test -z "$ac_objext" && ac_objext=o
9378
9379 for cc_temp in $compiler""; do
9380   case $cc_temp in
9381     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9382     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9383     \-*) ;;
9384     *) break;;
9385   esac
9386 done
9387 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9388
9389
9390 # Only perform the check for file, if the check method requires it
9391 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9392 case $deplibs_check_method in
9393 file_magic*)
9394   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9396 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9397 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9398   $as_echo_n "(cached) " >&6
9399 else
9400   case $MAGIC_CMD in
9401 [\\/*] |  ?:[\\/]*)
9402   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9403   ;;
9404 *)
9405   lt_save_MAGIC_CMD="$MAGIC_CMD"
9406   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9407   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9408   for ac_dir in $ac_dummy; do
9409     IFS="$lt_save_ifs"
9410     test -z "$ac_dir" && ac_dir=.
9411     if test -f $ac_dir/${ac_tool_prefix}file; then
9412       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9413       if test -n "$file_magic_test_file"; then
9414         case $deplibs_check_method in
9415         "file_magic "*)
9416           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9417           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9418           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9419             $EGREP "$file_magic_regex" > /dev/null; then
9420             :
9421           else
9422             cat <<_LT_EOF 1>&2
9423
9424 *** Warning: the command libtool uses to detect shared libraries,
9425 *** $file_magic_cmd, produces output that libtool cannot recognize.
9426 *** The result is that libtool may fail to recognize shared libraries
9427 *** as such.  This will affect the creation of libtool libraries that
9428 *** depend on shared libraries, but programs linked with such libtool
9429 *** libraries will work regardless of this problem.  Nevertheless, you
9430 *** may want to report the problem to your system manager and/or to
9431 *** bug-libtool@gnu.org
9432
9433 _LT_EOF
9434           fi ;;
9435         esac
9436       fi
9437       break
9438     fi
9439   done
9440   IFS="$lt_save_ifs"
9441   MAGIC_CMD="$lt_save_MAGIC_CMD"
9442   ;;
9443 esac
9444 fi
9445
9446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9447 if test -n "$MAGIC_CMD"; then
9448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9449 $as_echo "$MAGIC_CMD" >&6; }
9450 else
9451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9453 fi
9454
9455
9456
9457
9458
9459 if test -z "$lt_cv_path_MAGIC_CMD"; then
9460   if test -n "$ac_tool_prefix"; then
9461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9462 $as_echo_n "checking for file... " >&6; }
9463 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9464   $as_echo_n "(cached) " >&6
9465 else
9466   case $MAGIC_CMD in
9467 [\\/*] |  ?:[\\/]*)
9468   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9469   ;;
9470 *)
9471   lt_save_MAGIC_CMD="$MAGIC_CMD"
9472   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9473   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9474   for ac_dir in $ac_dummy; do
9475     IFS="$lt_save_ifs"
9476     test -z "$ac_dir" && ac_dir=.
9477     if test -f $ac_dir/file; then
9478       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9479       if test -n "$file_magic_test_file"; then
9480         case $deplibs_check_method in
9481         "file_magic "*)
9482           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9483           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9484           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9485             $EGREP "$file_magic_regex" > /dev/null; then
9486             :
9487           else
9488             cat <<_LT_EOF 1>&2
9489
9490 *** Warning: the command libtool uses to detect shared libraries,
9491 *** $file_magic_cmd, produces output that libtool cannot recognize.
9492 *** The result is that libtool may fail to recognize shared libraries
9493 *** as such.  This will affect the creation of libtool libraries that
9494 *** depend on shared libraries, but programs linked with such libtool
9495 *** libraries will work regardless of this problem.  Nevertheless, you
9496 *** may want to report the problem to your system manager and/or to
9497 *** bug-libtool@gnu.org
9498
9499 _LT_EOF
9500           fi ;;
9501         esac
9502       fi
9503       break
9504     fi
9505   done
9506   IFS="$lt_save_ifs"
9507   MAGIC_CMD="$lt_save_MAGIC_CMD"
9508   ;;
9509 esac
9510 fi
9511
9512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9513 if test -n "$MAGIC_CMD"; then
9514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9515 $as_echo "$MAGIC_CMD" >&6; }
9516 else
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9519 fi
9520
9521
9522   else
9523     MAGIC_CMD=:
9524   fi
9525 fi
9526
9527   fi
9528   ;;
9529 esac
9530
9531 # Use C for the default configuration in the libtool script
9532
9533 lt_save_CC="$CC"
9534 ac_ext=c
9535 ac_cpp='$CPP $CPPFLAGS'
9536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9539
9540
9541 # Source file extension for C test sources.
9542 ac_ext=c
9543
9544 # Object file extension for compiled C test sources.
9545 objext=o
9546 objext=$objext
9547
9548 # Code to be used in simple compile tests
9549 lt_simple_compile_test_code="int some_variable = 0;"
9550
9551 # Code to be used in simple link tests
9552 lt_simple_link_test_code='int main(){return(0);}'
9553
9554
9555
9556
9557
9558
9559
9560 # If no C compiler was specified, use CC.
9561 LTCC=${LTCC-"$CC"}
9562
9563 # If no C compiler flags were specified, use CFLAGS.
9564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9565
9566 # Allow CC to be a program name with arguments.
9567 compiler=$CC
9568
9569 # Save the default compiler, since it gets overwritten when the other
9570 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9571 compiler_DEFAULT=$CC
9572
9573 # save warnings/boilerplate of simple test code
9574 ac_outfile=conftest.$ac_objext
9575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9577 _lt_compiler_boilerplate=`cat conftest.err`
9578 $RM conftest*
9579
9580 ac_outfile=conftest.$ac_objext
9581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9583 _lt_linker_boilerplate=`cat conftest.err`
9584 $RM -r conftest*
9585
9586
9587 ## CAVEAT EMPTOR:
9588 ## There is no encapsulation within the following macros, do not change
9589 ## the running order or otherwise move them around unless you know exactly
9590 ## what you are doing...
9591 if test -n "$compiler"; then
9592
9593 lt_prog_compiler_no_builtin_flag=
9594
9595 if test "$GCC" = yes; then
9596   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9597
9598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9599 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9600 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9601   $as_echo_n "(cached) " >&6
9602 else
9603   lt_cv_prog_compiler_rtti_exceptions=no
9604    ac_outfile=conftest.$ac_objext
9605    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9606    lt_compiler_flag="-fno-rtti -fno-exceptions"
9607    # Insert the option either (1) after the last *FLAGS variable, or
9608    # (2) before a word containing "conftest.", or (3) at the end.
9609    # Note that $ac_compile itself does not contain backslashes and begins
9610    # with a dollar sign (not a hyphen), so the echo should work correctly.
9611    # The option is referenced via a variable to avoid confusing sed.
9612    lt_compile=`echo "$ac_compile" | $SED \
9613    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9614    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9615    -e 's:$: $lt_compiler_flag:'`
9616    (eval echo "\"\$as_me:9616: $lt_compile\"" >&5)
9617    (eval "$lt_compile" 2>conftest.err)
9618    ac_status=$?
9619    cat conftest.err >&5
9620    echo "$as_me:9620: \$? = $ac_status" >&5
9621    if (exit $ac_status) && test -s "$ac_outfile"; then
9622      # The compiler can only warn and ignore the option if not recognized
9623      # So say no if there are warnings other than the usual output.
9624      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9625      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9626      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9627        lt_cv_prog_compiler_rtti_exceptions=yes
9628      fi
9629    fi
9630    $RM conftest*
9631
9632 fi
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9634 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9635
9636 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9637     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9638 else
9639     :
9640 fi
9641
9642 fi
9643
9644
9645
9646
9647
9648
9649   lt_prog_compiler_wl=
9650 lt_prog_compiler_pic=
9651 lt_prog_compiler_static=
9652
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9654 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9655
9656   if test "$GCC" = yes; then
9657     lt_prog_compiler_wl='-Wl,'
9658     lt_prog_compiler_static='-static'
9659
9660     case $host_os in
9661       aix*)
9662       # All AIX code is PIC.
9663       if test "$host_cpu" = ia64; then
9664         # AIX 5 now supports IA64 processor
9665         lt_prog_compiler_static='-Bstatic'
9666       fi
9667       ;;
9668
9669     amigaos*)
9670       case $host_cpu in
9671       powerpc)
9672             # see comment about AmigaOS4 .so support
9673             lt_prog_compiler_pic='-fPIC'
9674         ;;
9675       m68k)
9676             # FIXME: we need at least 68020 code to build shared libraries, but
9677             # adding the `-m68020' flag to GCC prevents building anything better,
9678             # like `-m68040'.
9679             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9680         ;;
9681       esac
9682       ;;
9683
9684     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9685       # PIC is the default for these OSes.
9686       ;;
9687
9688     mingw* | cygwin* | pw32* | os2* | cegcc*)
9689       # This hack is so that the source file can tell whether it is being
9690       # built for inclusion in a dll (and should export symbols for example).
9691       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9692       # (--disable-auto-import) libraries
9693       lt_prog_compiler_pic='-DDLL_EXPORT'
9694       ;;
9695
9696     darwin* | rhapsody*)
9697       # PIC is the default on this platform
9698       # Common symbols not allowed in MH_DYLIB files
9699       lt_prog_compiler_pic='-fno-common'
9700       ;;
9701
9702     hpux*)
9703       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9704       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9705       # sets the default TLS model and affects inlining.
9706       case $host_cpu in
9707       hppa*64*)
9708         # +Z the default
9709         ;;
9710       *)
9711         lt_prog_compiler_pic='-fPIC'
9712         ;;
9713       esac
9714       ;;
9715
9716     interix[3-9]*)
9717       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9718       # Instead, we relocate shared libraries at runtime.
9719       ;;
9720
9721     msdosdjgpp*)
9722       # Just because we use GCC doesn't mean we suddenly get shared libraries
9723       # on systems that don't support them.
9724       lt_prog_compiler_can_build_shared=no
9725       enable_shared=no
9726       ;;
9727
9728     *nto* | *qnx*)
9729       # QNX uses GNU C++, but need to define -shared option too, otherwise
9730       # it will coredump.
9731       lt_prog_compiler_pic='-fPIC -shared'
9732       ;;
9733
9734     sysv4*MP*)
9735       if test -d /usr/nec; then
9736         lt_prog_compiler_pic=-Kconform_pic
9737       fi
9738       ;;
9739
9740     *)
9741       lt_prog_compiler_pic='-fPIC'
9742       ;;
9743     esac
9744   else
9745     # PORTME Check for flag to pass linker flags through the system compiler.
9746     case $host_os in
9747     aix*)
9748       lt_prog_compiler_wl='-Wl,'
9749       if test "$host_cpu" = ia64; then
9750         # AIX 5 now supports IA64 processor
9751         lt_prog_compiler_static='-Bstatic'
9752       else
9753         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9754       fi
9755       ;;
9756
9757     mingw* | cygwin* | pw32* | os2* | cegcc*)
9758       # This hack is so that the source file can tell whether it is being
9759       # built for inclusion in a dll (and should export symbols for example).
9760       lt_prog_compiler_pic='-DDLL_EXPORT'
9761       ;;
9762
9763     hpux9* | hpux10* | hpux11*)
9764       lt_prog_compiler_wl='-Wl,'
9765       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9766       # not for PA HP-UX.
9767       case $host_cpu in
9768       hppa*64*|ia64*)
9769         # +Z the default
9770         ;;
9771       *)
9772         lt_prog_compiler_pic='+Z'
9773         ;;
9774       esac
9775       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9776       lt_prog_compiler_static='${wl}-a ${wl}archive'
9777       ;;
9778
9779     irix5* | irix6* | nonstopux*)
9780       lt_prog_compiler_wl='-Wl,'
9781       # PIC (with -KPIC) is the default.
9782       lt_prog_compiler_static='-non_shared'
9783       ;;
9784
9785     linux* | k*bsd*-gnu)
9786       case $cc_basename in
9787       # old Intel for x86_64 which still supported -KPIC.
9788       ecc*)
9789         lt_prog_compiler_wl='-Wl,'
9790         lt_prog_compiler_pic='-KPIC'
9791         lt_prog_compiler_static='-static'
9792         ;;
9793       # icc used to be incompatible with GCC.
9794       # ICC 10 doesn't accept -KPIC any more.
9795       icc* | ifort*)
9796         lt_prog_compiler_wl='-Wl,'
9797         lt_prog_compiler_pic='-fPIC'
9798         lt_prog_compiler_static='-static'
9799         ;;
9800       # Lahey Fortran 8.1.
9801       lf95*)
9802         lt_prog_compiler_wl='-Wl,'
9803         lt_prog_compiler_pic='--shared'
9804         lt_prog_compiler_static='--static'
9805         ;;
9806       pgcc* | pgf77* | pgf90* | pgf95*)
9807         # Portland Group compilers (*not* the Pentium gcc compiler,
9808         # which looks to be a dead project)
9809         lt_prog_compiler_wl='-Wl,'
9810         lt_prog_compiler_pic='-fpic'
9811         lt_prog_compiler_static='-Bstatic'
9812         ;;
9813       ccc*)
9814         lt_prog_compiler_wl='-Wl,'
9815         # All Alpha code is PIC.
9816         lt_prog_compiler_static='-non_shared'
9817         ;;
9818       xl*)
9819         # IBM XL C 8.0/Fortran 10.1 on PPC
9820         lt_prog_compiler_wl='-Wl,'
9821         lt_prog_compiler_pic='-qpic'
9822         lt_prog_compiler_static='-qstaticlink'
9823         ;;
9824       *)
9825         case `$CC -V 2>&1 | sed 5q` in
9826         *Sun\ C*)
9827           # Sun C 5.9
9828           lt_prog_compiler_pic='-KPIC'
9829           lt_prog_compiler_static='-Bstatic'
9830           lt_prog_compiler_wl='-Wl,'
9831           ;;
9832         *Sun\ F*)
9833           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9834           lt_prog_compiler_pic='-KPIC'
9835           lt_prog_compiler_static='-Bstatic'
9836           lt_prog_compiler_wl=''
9837           ;;
9838         esac
9839         ;;
9840       esac
9841       ;;
9842
9843     newsos6)
9844       lt_prog_compiler_pic='-KPIC'
9845       lt_prog_compiler_static='-Bstatic'
9846       ;;
9847
9848     *nto* | *qnx*)
9849       # QNX uses GNU C++, but need to define -shared option too, otherwise
9850       # it will coredump.
9851       lt_prog_compiler_pic='-fPIC -shared'
9852       ;;
9853
9854     osf3* | osf4* | osf5*)
9855       lt_prog_compiler_wl='-Wl,'
9856       # All OSF/1 code is PIC.
9857       lt_prog_compiler_static='-non_shared'
9858       ;;
9859
9860     rdos*)
9861       lt_prog_compiler_static='-non_shared'
9862       ;;
9863
9864     solaris*)
9865       lt_prog_compiler_pic='-KPIC'
9866       lt_prog_compiler_static='-Bstatic'
9867       case $cc_basename in
9868       f77* | f90* | f95*)
9869         lt_prog_compiler_wl='-Qoption ld ';;
9870       *)
9871         lt_prog_compiler_wl='-Wl,';;
9872       esac
9873       ;;
9874
9875     sunos4*)
9876       lt_prog_compiler_wl='-Qoption ld '
9877       lt_prog_compiler_pic='-PIC'
9878       lt_prog_compiler_static='-Bstatic'
9879       ;;
9880
9881     sysv4 | sysv4.2uw2* | sysv4.3*)
9882       lt_prog_compiler_wl='-Wl,'
9883       lt_prog_compiler_pic='-KPIC'
9884       lt_prog_compiler_static='-Bstatic'
9885       ;;
9886
9887     sysv4*MP*)
9888       if test -d /usr/nec ;then
9889         lt_prog_compiler_pic='-Kconform_pic'
9890         lt_prog_compiler_static='-Bstatic'
9891       fi
9892       ;;
9893
9894     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9895       lt_prog_compiler_wl='-Wl,'
9896       lt_prog_compiler_pic='-KPIC'
9897       lt_prog_compiler_static='-Bstatic'
9898       ;;
9899
9900     unicos*)
9901       lt_prog_compiler_wl='-Wl,'
9902       lt_prog_compiler_can_build_shared=no
9903       ;;
9904
9905     uts4*)
9906       lt_prog_compiler_pic='-pic'
9907       lt_prog_compiler_static='-Bstatic'
9908       ;;
9909
9910     *)
9911       lt_prog_compiler_can_build_shared=no
9912       ;;
9913     esac
9914   fi
9915
9916 case $host_os in
9917   # For platforms which do not support PIC, -DPIC is meaningless:
9918   *djgpp*)
9919     lt_prog_compiler_pic=
9920     ;;
9921   *)
9922     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9923     ;;
9924 esac
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9926 $as_echo "$lt_prog_compiler_pic" >&6; }
9927
9928
9929
9930
9931
9932
9933 #
9934 # Check to make sure the PIC flag actually works.
9935 #
9936 if test -n "$lt_prog_compiler_pic"; then
9937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9938 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9939 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9940   $as_echo_n "(cached) " >&6
9941 else
9942   lt_cv_prog_compiler_pic_works=no
9943    ac_outfile=conftest.$ac_objext
9944    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9945    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9946    # Insert the option either (1) after the last *FLAGS variable, or
9947    # (2) before a word containing "conftest.", or (3) at the end.
9948    # Note that $ac_compile itself does not contain backslashes and begins
9949    # with a dollar sign (not a hyphen), so the echo should work correctly.
9950    # The option is referenced via a variable to avoid confusing sed.
9951    lt_compile=`echo "$ac_compile" | $SED \
9952    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9953    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9954    -e 's:$: $lt_compiler_flag:'`
9955    (eval echo "\"\$as_me:9955: $lt_compile\"" >&5)
9956    (eval "$lt_compile" 2>conftest.err)
9957    ac_status=$?
9958    cat conftest.err >&5
9959    echo "$as_me:9959: \$? = $ac_status" >&5
9960    if (exit $ac_status) && test -s "$ac_outfile"; then
9961      # The compiler can only warn and ignore the option if not recognized
9962      # So say no if there are warnings other than the usual output.
9963      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9964      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9965      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9966        lt_cv_prog_compiler_pic_works=yes
9967      fi
9968    fi
9969    $RM conftest*
9970
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9973 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9974
9975 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9976     case $lt_prog_compiler_pic in
9977      "" | " "*) ;;
9978      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9979      esac
9980 else
9981     lt_prog_compiler_pic=
9982      lt_prog_compiler_can_build_shared=no
9983 fi
9984
9985 fi
9986
9987
9988
9989
9990
9991
9992 #
9993 # Check to make sure the static flag actually works.
9994 #
9995 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9997 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9998 if ${lt_cv_prog_compiler_static_works+:} false; then :
9999   $as_echo_n "(cached) " >&6
10000 else
10001   lt_cv_prog_compiler_static_works=no
10002    save_LDFLAGS="$LDFLAGS"
10003    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10004    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10005    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10006      # The linker can only warn and ignore the option if not recognized
10007      # So say no if there are warnings
10008      if test -s conftest.err; then
10009        # Append any errors to the config.log.
10010        cat conftest.err 1>&5
10011        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10012        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10013        if diff conftest.exp conftest.er2 >/dev/null; then
10014          lt_cv_prog_compiler_static_works=yes
10015        fi
10016      else
10017        lt_cv_prog_compiler_static_works=yes
10018      fi
10019    fi
10020    $RM -r conftest*
10021    LDFLAGS="$save_LDFLAGS"
10022
10023 fi
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10025 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10026
10027 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10028     :
10029 else
10030     lt_prog_compiler_static=
10031 fi
10032
10033
10034
10035
10036
10037
10038
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10040 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10041 if ${lt_cv_prog_compiler_c_o+:} false; then :
10042   $as_echo_n "(cached) " >&6
10043 else
10044   lt_cv_prog_compiler_c_o=no
10045    $RM -r conftest 2>/dev/null
10046    mkdir conftest
10047    cd conftest
10048    mkdir out
10049    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10050
10051    lt_compiler_flag="-o out/conftest2.$ac_objext"
10052    # Insert the option either (1) after the last *FLAGS variable, or
10053    # (2) before a word containing "conftest.", or (3) at the end.
10054    # Note that $ac_compile itself does not contain backslashes and begins
10055    # with a dollar sign (not a hyphen), so the echo should work correctly.
10056    lt_compile=`echo "$ac_compile" | $SED \
10057    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10058    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10059    -e 's:$: $lt_compiler_flag:'`
10060    (eval echo "\"\$as_me:10060: $lt_compile\"" >&5)
10061    (eval "$lt_compile" 2>out/conftest.err)
10062    ac_status=$?
10063    cat out/conftest.err >&5
10064    echo "$as_me:10064: \$? = $ac_status" >&5
10065    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10066    then
10067      # The compiler can only warn and ignore the option if not recognized
10068      # So say no if there are warnings
10069      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10070      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10071      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10072        lt_cv_prog_compiler_c_o=yes
10073      fi
10074    fi
10075    chmod u+w . 2>&5
10076    $RM conftest*
10077    # SGI C++ compiler will create directory out/ii_files/ for
10078    # template instantiation
10079    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10080    $RM out/* && rmdir out
10081    cd ..
10082    $RM -r conftest
10083    $RM conftest*
10084
10085 fi
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10087 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10088
10089
10090
10091
10092
10093
10094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10095 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10096 if ${lt_cv_prog_compiler_c_o+:} false; then :
10097   $as_echo_n "(cached) " >&6
10098 else
10099   lt_cv_prog_compiler_c_o=no
10100    $RM -r conftest 2>/dev/null
10101    mkdir conftest
10102    cd conftest
10103    mkdir out
10104    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10105
10106    lt_compiler_flag="-o out/conftest2.$ac_objext"
10107    # Insert the option either (1) after the last *FLAGS variable, or
10108    # (2) before a word containing "conftest.", or (3) at the end.
10109    # Note that $ac_compile itself does not contain backslashes and begins
10110    # with a dollar sign (not a hyphen), so the echo should work correctly.
10111    lt_compile=`echo "$ac_compile" | $SED \
10112    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10113    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10114    -e 's:$: $lt_compiler_flag:'`
10115    (eval echo "\"\$as_me:10115: $lt_compile\"" >&5)
10116    (eval "$lt_compile" 2>out/conftest.err)
10117    ac_status=$?
10118    cat out/conftest.err >&5
10119    echo "$as_me:10119: \$? = $ac_status" >&5
10120    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10121    then
10122      # The compiler can only warn and ignore the option if not recognized
10123      # So say no if there are warnings
10124      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10125      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10126      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10127        lt_cv_prog_compiler_c_o=yes
10128      fi
10129    fi
10130    chmod u+w . 2>&5
10131    $RM conftest*
10132    # SGI C++ compiler will create directory out/ii_files/ for
10133    # template instantiation
10134    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10135    $RM out/* && rmdir out
10136    cd ..
10137    $RM -r conftest
10138    $RM conftest*
10139
10140 fi
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10142 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10143
10144
10145
10146
10147 hard_links="nottested"
10148 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10149   # do not overwrite the value of need_locks provided by the user
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10151 $as_echo_n "checking if we can lock with hard links... " >&6; }
10152   hard_links=yes
10153   $RM conftest*
10154   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10155   touch conftest.a
10156   ln conftest.a conftest.b 2>&5 || hard_links=no
10157   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10159 $as_echo "$hard_links" >&6; }
10160   if test "$hard_links" = no; then
10161     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10162 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10163     need_locks=warn
10164   fi
10165 else
10166   need_locks=no
10167 fi
10168
10169
10170
10171
10172
10173
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10175 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10176
10177   runpath_var=
10178   allow_undefined_flag=
10179   always_export_symbols=no
10180   archive_cmds=
10181   archive_expsym_cmds=
10182   compiler_needs_object=no
10183   enable_shared_with_static_runtimes=no
10184   export_dynamic_flag_spec=
10185   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10186   hardcode_automatic=no
10187   hardcode_direct=no
10188   hardcode_direct_absolute=no
10189   hardcode_libdir_flag_spec=
10190   hardcode_libdir_flag_spec_ld=
10191   hardcode_libdir_separator=
10192   hardcode_minus_L=no
10193   hardcode_shlibpath_var=unsupported
10194   inherit_rpath=no
10195   link_all_deplibs=unknown
10196   module_cmds=
10197   module_expsym_cmds=
10198   old_archive_from_new_cmds=
10199   old_archive_from_expsyms_cmds=
10200   thread_safe_flag_spec=
10201   whole_archive_flag_spec=
10202   # include_expsyms should be a list of space-separated symbols to be *always*
10203   # included in the symbol list
10204   include_expsyms=
10205   # exclude_expsyms can be an extended regexp of symbols to exclude
10206   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10207   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10208   # as well as any symbol that contains `d'.
10209   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10210   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10211   # platforms (ab)use it in PIC code, but their linkers get confused if
10212   # the symbol is explicitly referenced.  Since portable code cannot
10213   # rely on this symbol name, it's probably fine to never include it in
10214   # preloaded symbol tables.
10215   # Exclude shared library initialization/finalization symbols.
10216   extract_expsyms_cmds=
10217
10218   case $host_os in
10219   cygwin* | mingw* | pw32* | cegcc*)
10220     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10221     # When not using gcc, we currently assume that we are using
10222     # Microsoft Visual C++.
10223     if test "$GCC" != yes; then
10224       with_gnu_ld=no
10225     fi
10226     ;;
10227   interix*)
10228     # we just hope/assume this is gcc and not c89 (= MSVC++)
10229     with_gnu_ld=yes
10230     ;;
10231   openbsd*)
10232     with_gnu_ld=no
10233     ;;
10234   esac
10235
10236   ld_shlibs=yes
10237   if test "$with_gnu_ld" = yes; then
10238     # If archive_cmds runs LD, not CC, wlarc should be empty
10239     wlarc='${wl}'
10240
10241     # Set some defaults for GNU ld with shared library support. These
10242     # are reset later if shared libraries are not supported. Putting them
10243     # here allows them to be overridden if necessary.
10244     runpath_var=LD_RUN_PATH
10245     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10246     export_dynamic_flag_spec='${wl}--export-dynamic'
10247     # ancient GNU ld didn't support --whole-archive et. al.
10248     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10249       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10250     else
10251       whole_archive_flag_spec=
10252     fi
10253     supports_anon_versioning=no
10254     case `$LD -v 2>&1` in
10255       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10256       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10257       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10258       *\ 2.11.*) ;; # other 2.11 versions
10259       *) supports_anon_versioning=yes ;;
10260     esac
10261
10262     # See if GNU ld supports shared libraries.
10263     case $host_os in
10264     aix[3-9]*)
10265       # On AIX/PPC, the GNU linker is very broken
10266       if test "$host_cpu" != ia64; then
10267         ld_shlibs=no
10268         cat <<_LT_EOF 1>&2
10269
10270 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10271 *** to be unable to reliably create shared libraries on AIX.
10272 *** Therefore, libtool is disabling shared libraries support.  If you
10273 *** really care for shared libraries, you may want to modify your PATH
10274 *** so that a non-GNU linker is found, and then restart.
10275
10276 _LT_EOF
10277       fi
10278       ;;
10279
10280     amigaos*)
10281       case $host_cpu in
10282       powerpc)
10283             # see comment about AmigaOS4 .so support
10284             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10285             archive_expsym_cmds=''
10286         ;;
10287       m68k)
10288             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)'
10289             hardcode_libdir_flag_spec='-L$libdir'
10290             hardcode_minus_L=yes
10291         ;;
10292       esac
10293       ;;
10294
10295     beos*)
10296       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10297         allow_undefined_flag=unsupported
10298         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10299         # support --undefined.  This deserves some investigation.  FIXME
10300         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301       else
10302         ld_shlibs=no
10303       fi
10304       ;;
10305
10306     cygwin* | mingw* | pw32* | cegcc*)
10307       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10308       # as there is no search path for DLLs.
10309       hardcode_libdir_flag_spec='-L$libdir'
10310       allow_undefined_flag=unsupported
10311       always_export_symbols=no
10312       enable_shared_with_static_runtimes=yes
10313       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10314
10315       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10316         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10317         # If the export-symbols file already is a .def file (1st line
10318         # is EXPORTS), use it as is; otherwise, prepend...
10319         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10320           cp $export_symbols $output_objdir/$soname.def;
10321         else
10322           echo EXPORTS > $output_objdir/$soname.def;
10323           cat $export_symbols >> $output_objdir/$soname.def;
10324         fi~
10325         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10326       else
10327         ld_shlibs=no
10328       fi
10329       ;;
10330
10331     interix[3-9]*)
10332       hardcode_direct=no
10333       hardcode_shlibpath_var=no
10334       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10335       export_dynamic_flag_spec='${wl}-E'
10336       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10337       # Instead, shared libraries are loaded at an image base (0x10000000 by
10338       # default) and relocated if they conflict, which is a slow very memory
10339       # consuming and fragmenting process.  To avoid this, we pick a random,
10340       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10341       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10342       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10343       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'
10344       ;;
10345
10346     gnu* | linux* | tpf* | k*bsd*-gnu)
10347       tmp_diet=no
10348       if test "$host_os" = linux-dietlibc; then
10349         case $cc_basename in
10350           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10351         esac
10352       fi
10353       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10354          && test "$tmp_diet" = no
10355       then
10356         tmp_addflag=
10357         tmp_sharedflag='-shared'
10358         case $cc_basename,$host_cpu in
10359         pgcc*)                          # Portland Group C compiler
10360           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'
10361           tmp_addflag=' $pic_flag'
10362           ;;
10363         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10364           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'
10365           tmp_addflag=' $pic_flag -Mnomain' ;;
10366         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10367           tmp_addflag=' -i_dynamic' ;;
10368         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10369           tmp_addflag=' -i_dynamic -nofor_main' ;;
10370         ifc* | ifort*)                  # Intel Fortran compiler
10371           tmp_addflag=' -nofor_main' ;;
10372         lf95*)                          # Lahey Fortran 8.1
10373           whole_archive_flag_spec=
10374           tmp_sharedflag='--shared' ;;
10375         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10376           tmp_sharedflag='-qmkshrobj'
10377           tmp_addflag= ;;
10378         esac
10379         case `$CC -V 2>&1 | sed 5q` in
10380         *Sun\ C*)                       # Sun C 5.9
10381           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'
10382           compiler_needs_object=yes
10383           tmp_sharedflag='-G' ;;
10384         *Sun\ F*)                       # Sun Fortran 8.3
10385           tmp_sharedflag='-G' ;;
10386         esac
10387         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10388
10389         if test "x$supports_anon_versioning" = xyes; then
10390           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10391             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10392             echo "local: *; };" >> $output_objdir/$libname.ver~
10393             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10394         fi
10395
10396         case $cc_basename in
10397         xlf*)
10398           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10399           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10400           hardcode_libdir_flag_spec=
10401           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10402           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10403           if test "x$supports_anon_versioning" = xyes; then
10404             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10405               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10406               echo "local: *; };" >> $output_objdir/$libname.ver~
10407               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10408           fi
10409           ;;
10410         esac
10411       else
10412         ld_shlibs=no
10413       fi
10414       ;;
10415
10416     netbsd*)
10417       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10418         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10419         wlarc=
10420       else
10421         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10423       fi
10424       ;;
10425
10426     solaris*)
10427       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10428         ld_shlibs=no
10429         cat <<_LT_EOF 1>&2
10430
10431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10432 *** create shared libraries on Solaris systems.  Therefore, libtool
10433 *** is disabling shared libraries support.  We urge you to upgrade GNU
10434 *** binutils to release 2.9.1 or newer.  Another option is to modify
10435 *** your PATH or compiler configuration so that the native linker is
10436 *** used, and then restart.
10437
10438 _LT_EOF
10439       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10440         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10441         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10442       else
10443         ld_shlibs=no
10444       fi
10445       ;;
10446
10447     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10448       case `$LD -v 2>&1` in
10449         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10450         ld_shlibs=no
10451         cat <<_LT_EOF 1>&2
10452
10453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10454 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10455 *** is disabling shared libraries support.  We urge you to upgrade GNU
10456 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10457 *** your PATH or compiler configuration so that the native linker is
10458 *** used, and then restart.
10459
10460 _LT_EOF
10461         ;;
10462         *)
10463           # For security reasons, it is highly recommended that you always
10464           # use absolute paths for naming shared libraries, and exclude the
10465           # DT_RUNPATH tag from executables and libraries.  But doing so
10466           # requires that you compile everything twice, which is a pain.
10467           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10468             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10469             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10471           else
10472             ld_shlibs=no
10473           fi
10474         ;;
10475       esac
10476       ;;
10477
10478     sunos4*)
10479       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10480       wlarc=
10481       hardcode_direct=yes
10482       hardcode_shlibpath_var=no
10483       ;;
10484
10485     *)
10486       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10487         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10488         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10489       else
10490         ld_shlibs=no
10491       fi
10492       ;;
10493     esac
10494
10495     if test "$ld_shlibs" = no; then
10496       runpath_var=
10497       hardcode_libdir_flag_spec=
10498       export_dynamic_flag_spec=
10499       whole_archive_flag_spec=
10500     fi
10501   else
10502     # PORTME fill in a description of your system's linker (not GNU ld)
10503     case $host_os in
10504     aix3*)
10505       allow_undefined_flag=unsupported
10506       always_export_symbols=yes
10507       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'
10508       # Note: this linker hardcodes the directories in LIBPATH if there
10509       # are no directories specified by -L.
10510       hardcode_minus_L=yes
10511       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10512         # Neither direct hardcoding nor static linking is supported with a
10513         # broken collect2.
10514         hardcode_direct=unsupported
10515       fi
10516       ;;
10517
10518     aix[4-9]*)
10519       if test "$host_cpu" = ia64; then
10520         # On IA64, the linker does run time linking by default, so we don't
10521         # have to do anything special.
10522         aix_use_runtimelinking=no
10523         exp_sym_flag='-Bexport'
10524         no_entry_flag=""
10525       else
10526         # If we're using GNU nm, then we don't want the "-C" option.
10527         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10528         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10529           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'
10530         else
10531           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'
10532         fi
10533         aix_use_runtimelinking=no
10534
10535         # Test if we are trying to use run time linking or normal
10536         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10537         # need to do runtime linking.
10538         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10539           for ld_flag in $LDFLAGS; do
10540           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10541             aix_use_runtimelinking=yes
10542             break
10543           fi
10544           done
10545           ;;
10546         esac
10547
10548         exp_sym_flag='-bexport'
10549         no_entry_flag='-bnoentry'
10550       fi
10551
10552       # When large executables or shared objects are built, AIX ld can
10553       # have problems creating the table of contents.  If linking a library
10554       # or program results in "error TOC overflow" add -mminimal-toc to
10555       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10556       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10557
10558       archive_cmds=''
10559       hardcode_direct=yes
10560       hardcode_direct_absolute=yes
10561       hardcode_libdir_separator=':'
10562       link_all_deplibs=yes
10563       file_list_spec='${wl}-f,'
10564
10565       if test "$GCC" = yes; then
10566         case $host_os in aix4.[012]|aix4.[012].*)
10567         # We only want to do this on AIX 4.2 and lower, the check
10568         # below for broken collect2 doesn't work under 4.3+
10569           collect2name=`${CC} -print-prog-name=collect2`
10570           if test -f "$collect2name" &&
10571            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10572           then
10573           # We have reworked collect2
10574           :
10575           else
10576           # We have old collect2
10577           hardcode_direct=unsupported
10578           # It fails to find uninstalled libraries when the uninstalled
10579           # path is not listed in the libpath.  Setting hardcode_minus_L
10580           # to unsupported forces relinking
10581           hardcode_minus_L=yes
10582           hardcode_libdir_flag_spec='-L$libdir'
10583           hardcode_libdir_separator=
10584           fi
10585           ;;
10586         esac
10587         shared_flag='-shared'
10588         if test "$aix_use_runtimelinking" = yes; then
10589           shared_flag="$shared_flag "'${wl}-G'
10590         fi
10591       else
10592         # not using gcc
10593         if test "$host_cpu" = ia64; then
10594         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10595         # chokes on -Wl,-G. The following line is correct:
10596           shared_flag='-G'
10597         else
10598           if test "$aix_use_runtimelinking" = yes; then
10599             shared_flag='${wl}-G'
10600           else
10601             shared_flag='${wl}-bM:SRE'
10602           fi
10603         fi
10604       fi
10605
10606       export_dynamic_flag_spec='${wl}-bexpall'
10607       # It seems that -bexpall does not export symbols beginning with
10608       # underscore (_), so it is better to generate a list of symbols to export.
10609       always_export_symbols=yes
10610       if test "$aix_use_runtimelinking" = yes; then
10611         # Warning - without using the other runtime loading flags (-brtl),
10612         # -berok will link without error, but may produce a broken library.
10613         allow_undefined_flag='-berok'
10614         # Determine the default libpath from the value encoded in an
10615         # empty executable.
10616         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h.  */
10618
10619 int
10620 main ()
10621 {
10622
10623   ;
10624   return 0;
10625 }
10626 _ACEOF
10627 if ac_fn_c_try_link "$LINENO"; then :
10628
10629 lt_aix_libpath_sed='
10630     /Import File Strings/,/^$/ {
10631         /^0/ {
10632             s/^0  *\(.*\)$/\1/
10633             p
10634         }
10635     }'
10636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10637 # Check for a 64-bit object if we didn't find anything.
10638 if test -z "$aix_libpath"; then
10639   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10640 fi
10641 fi
10642 rm -f core conftest.err conftest.$ac_objext \
10643     conftest$ac_exeext conftest.$ac_ext
10644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10645
10646         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10647         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"
10648       else
10649         if test "$host_cpu" = ia64; then
10650           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10651           allow_undefined_flag="-z nodefs"
10652           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"
10653         else
10654          # Determine the default libpath from the value encoded in an
10655          # empty executable.
10656          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h.  */
10658
10659 int
10660 main ()
10661 {
10662
10663   ;
10664   return 0;
10665 }
10666 _ACEOF
10667 if ac_fn_c_try_link "$LINENO"; then :
10668
10669 lt_aix_libpath_sed='
10670     /Import File Strings/,/^$/ {
10671         /^0/ {
10672             s/^0  *\(.*\)$/\1/
10673             p
10674         }
10675     }'
10676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10677 # Check for a 64-bit object if we didn't find anything.
10678 if test -z "$aix_libpath"; then
10679   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10680 fi
10681 fi
10682 rm -f core conftest.err conftest.$ac_objext \
10683     conftest$ac_exeext conftest.$ac_ext
10684 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10685
10686          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10687           # Warning - without using the other run time loading flags,
10688           # -berok will link without error, but may produce a broken library.
10689           no_undefined_flag=' ${wl}-bernotok'
10690           allow_undefined_flag=' ${wl}-berok'
10691           # Exported symbols can be pulled into shared objects from archives
10692           whole_archive_flag_spec='$convenience'
10693           archive_cmds_need_lc=yes
10694           # This is similar to how AIX traditionally builds its shared libraries.
10695           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'
10696         fi
10697       fi
10698       ;;
10699
10700     amigaos*)
10701       case $host_cpu in
10702       powerpc)
10703             # see comment about AmigaOS4 .so support
10704             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10705             archive_expsym_cmds=''
10706         ;;
10707       m68k)
10708             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)'
10709             hardcode_libdir_flag_spec='-L$libdir'
10710             hardcode_minus_L=yes
10711         ;;
10712       esac
10713       ;;
10714
10715     bsdi[45]*)
10716       export_dynamic_flag_spec=-rdynamic
10717       ;;
10718
10719     cygwin* | mingw* | pw32* | cegcc*)
10720       # When not using gcc, we currently assume that we are using
10721       # Microsoft Visual C++.
10722       # hardcode_libdir_flag_spec is actually meaningless, as there is
10723       # no search path for DLLs.
10724       hardcode_libdir_flag_spec=' '
10725       allow_undefined_flag=unsupported
10726       # Tell ltmain to make .lib files, not .a files.
10727       libext=lib
10728       # Tell ltmain to make .dll files, not .so files.
10729       shrext_cmds=".dll"
10730       # FIXME: Setting linknames here is a bad hack.
10731       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10732       # The linker will automatically build a .lib file if we build a DLL.
10733       old_archive_from_new_cmds='true'
10734       # FIXME: Should let the user specify the lib program.
10735       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10736       fix_srcfile_path='`cygpath -w "$srcfile"`'
10737       enable_shared_with_static_runtimes=yes
10738       ;;
10739
10740     darwin* | rhapsody*)
10741
10742
10743   archive_cmds_need_lc=no
10744   hardcode_direct=no
10745   hardcode_automatic=yes
10746   hardcode_shlibpath_var=unsupported
10747   whole_archive_flag_spec=''
10748   link_all_deplibs=yes
10749   allow_undefined_flag="$_lt_dar_allow_undefined"
10750   case $cc_basename in
10751      ifort*) _lt_dar_can_shared=yes ;;
10752      *) _lt_dar_can_shared=$GCC ;;
10753   esac
10754   if test "$_lt_dar_can_shared" = "yes"; then
10755     output_verbose_link_cmd=echo
10756     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10757     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10758     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}"
10759     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}"
10760
10761   else
10762   ld_shlibs=no
10763   fi
10764
10765       ;;
10766
10767     dgux*)
10768       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10769       hardcode_libdir_flag_spec='-L$libdir'
10770       hardcode_shlibpath_var=no
10771       ;;
10772
10773     freebsd1*)
10774       ld_shlibs=no
10775       ;;
10776
10777     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10778     # support.  Future versions do this automatically, but an explicit c++rt0.o
10779     # does not break anything, and helps significantly (at the cost of a little
10780     # extra space).
10781     freebsd2.2*)
10782       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10783       hardcode_libdir_flag_spec='-R$libdir'
10784       hardcode_direct=yes
10785       hardcode_shlibpath_var=no
10786       ;;
10787
10788     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10789     freebsd2*)
10790       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10791       hardcode_direct=yes
10792       hardcode_minus_L=yes
10793       hardcode_shlibpath_var=no
10794       ;;
10795
10796     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10797     freebsd* | dragonfly*)
10798       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10799       hardcode_libdir_flag_spec='-R$libdir'
10800       hardcode_direct=yes
10801       hardcode_shlibpath_var=no
10802       ;;
10803
10804     hpux9*)
10805       if test "$GCC" = yes; then
10806         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'
10807       else
10808         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'
10809       fi
10810       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10811       hardcode_libdir_separator=:
10812       hardcode_direct=yes
10813
10814       # hardcode_minus_L: Not really in the search PATH,
10815       # but as the default location of the library.
10816       hardcode_minus_L=yes
10817       export_dynamic_flag_spec='${wl}-E'
10818       ;;
10819
10820     hpux10*)
10821       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10822         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10823       else
10824         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10825       fi
10826       if test "$with_gnu_ld" = no; then
10827         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10828         hardcode_libdir_flag_spec_ld='+b $libdir'
10829         hardcode_libdir_separator=:
10830         hardcode_direct=yes
10831         hardcode_direct_absolute=yes
10832         export_dynamic_flag_spec='${wl}-E'
10833         # hardcode_minus_L: Not really in the search PATH,
10834         # but as the default location of the library.
10835         hardcode_minus_L=yes
10836       fi
10837       ;;
10838
10839     hpux11*)
10840       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10841         case $host_cpu in
10842         hppa*64*)
10843           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10844           ;;
10845         ia64*)
10846           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10847           ;;
10848         *)
10849           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10850           ;;
10851         esac
10852       else
10853         case $host_cpu in
10854         hppa*64*)
10855           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10856           ;;
10857         ia64*)
10858           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10859           ;;
10860         *)
10861           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10862           ;;
10863         esac
10864       fi
10865       if test "$with_gnu_ld" = no; then
10866         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10867         hardcode_libdir_separator=:
10868
10869         case $host_cpu in
10870         hppa*64*|ia64*)
10871           hardcode_direct=no
10872           hardcode_shlibpath_var=no
10873           ;;
10874         *)
10875           hardcode_direct=yes
10876           hardcode_direct_absolute=yes
10877           export_dynamic_flag_spec='${wl}-E'
10878
10879           # hardcode_minus_L: Not really in the search PATH,
10880           # but as the default location of the library.
10881           hardcode_minus_L=yes
10882           ;;
10883         esac
10884       fi
10885       ;;
10886
10887     irix5* | irix6* | nonstopux*)
10888       if test "$GCC" = yes; then
10889         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'
10890         # Try to use the -exported_symbol ld option, if it does not
10891         # work, assume that -exports_file does not work either and
10892         # implicitly export all symbols.
10893         save_LDFLAGS="$LDFLAGS"
10894         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10895         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h.  */
10897 int foo(void) {}
10898 _ACEOF
10899 if ac_fn_c_try_link "$LINENO"; then :
10900   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'
10901
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext \
10904     conftest$ac_exeext conftest.$ac_ext
10905         LDFLAGS="$save_LDFLAGS"
10906       else
10907         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'
10908         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'
10909       fi
10910       archive_cmds_need_lc='no'
10911       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10912       hardcode_libdir_separator=:
10913       inherit_rpath=yes
10914       link_all_deplibs=yes
10915       ;;
10916
10917     netbsd*)
10918       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10919         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10920       else
10921         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10922       fi
10923       hardcode_libdir_flag_spec='-R$libdir'
10924       hardcode_direct=yes
10925       hardcode_shlibpath_var=no
10926       ;;
10927
10928     newsos6)
10929       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10930       hardcode_direct=yes
10931       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10932       hardcode_libdir_separator=:
10933       hardcode_shlibpath_var=no
10934       ;;
10935
10936     *nto* | *qnx*)
10937       ;;
10938
10939     openbsd*)
10940       if test -f /usr/libexec/ld.so; then
10941         hardcode_direct=yes
10942         hardcode_shlibpath_var=no
10943         hardcode_direct_absolute=yes
10944         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10945           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10946           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10947           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10948           export_dynamic_flag_spec='${wl}-E'
10949         else
10950           case $host_os in
10951            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10952              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10953              hardcode_libdir_flag_spec='-R$libdir'
10954              ;;
10955            *)
10956              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10957              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10958              ;;
10959           esac
10960         fi
10961       else
10962         ld_shlibs=no
10963       fi
10964       ;;
10965
10966     os2*)
10967       hardcode_libdir_flag_spec='-L$libdir'
10968       hardcode_minus_L=yes
10969       allow_undefined_flag=unsupported
10970       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'
10971       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10972       ;;
10973
10974     osf3*)
10975       if test "$GCC" = yes; then
10976         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10977         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'
10978       else
10979         allow_undefined_flag=' -expect_unresolved \*'
10980         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'
10981       fi
10982       archive_cmds_need_lc='no'
10983       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10984       hardcode_libdir_separator=:
10985       ;;
10986
10987     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10988       if test "$GCC" = yes; then
10989         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10990         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'
10991         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10992       else
10993         allow_undefined_flag=' -expect_unresolved \*'
10994         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'
10995         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~
10996         $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'
10997
10998         # Both c and cxx compiler support -rpath directly
10999         hardcode_libdir_flag_spec='-rpath $libdir'
11000       fi
11001       archive_cmds_need_lc='no'
11002       hardcode_libdir_separator=:
11003       ;;
11004
11005     solaris*)
11006       no_undefined_flag=' -z defs'
11007       if test "$GCC" = yes; then
11008         wlarc='${wl}'
11009         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11010         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11011           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11012       else
11013         case `$CC -V 2>&1` in
11014         *"Compilers 5.0"*)
11015           wlarc=''
11016           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11017           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11018           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11019           ;;
11020         *)
11021           wlarc='${wl}'
11022           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11023           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11024           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11025           ;;
11026         esac
11027       fi
11028       hardcode_libdir_flag_spec='-R$libdir'
11029       hardcode_shlibpath_var=no
11030       case $host_os in
11031       solaris2.[0-5] | solaris2.[0-5].*) ;;
11032       *)
11033         # The compiler driver will combine and reorder linker options,
11034         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11035         # but is careful enough not to reorder.
11036         # Supported since Solaris 2.6 (maybe 2.5.1?)
11037         if test "$GCC" = yes; then
11038           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11039         else
11040           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11041         fi
11042         ;;
11043       esac
11044       link_all_deplibs=yes
11045       ;;
11046
11047     sunos4*)
11048       if test "x$host_vendor" = xsequent; then
11049         # Use $CC to link under sequent, because it throws in some extra .o
11050         # files that make .init and .fini sections work.
11051         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11052       else
11053         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11054       fi
11055       hardcode_libdir_flag_spec='-L$libdir'
11056       hardcode_direct=yes
11057       hardcode_minus_L=yes
11058       hardcode_shlibpath_var=no
11059       ;;
11060
11061     sysv4)
11062       case $host_vendor in
11063         sni)
11064           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11065           hardcode_direct=yes # is this really true???
11066         ;;
11067         siemens)
11068           ## LD is ld it makes a PLAMLIB
11069           ## CC just makes a GrossModule.
11070           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11071           reload_cmds='$CC -r -o $output$reload_objs'
11072           hardcode_direct=no
11073         ;;
11074         motorola)
11075           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11076           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11077         ;;
11078       esac
11079       runpath_var='LD_RUN_PATH'
11080       hardcode_shlibpath_var=no
11081       ;;
11082
11083     sysv4.3*)
11084       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11085       hardcode_shlibpath_var=no
11086       export_dynamic_flag_spec='-Bexport'
11087       ;;
11088
11089     sysv4*MP*)
11090       if test -d /usr/nec; then
11091         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11092         hardcode_shlibpath_var=no
11093         runpath_var=LD_RUN_PATH
11094         hardcode_runpath_var=yes
11095         ld_shlibs=yes
11096       fi
11097       ;;
11098
11099     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11100       no_undefined_flag='${wl}-z,text'
11101       archive_cmds_need_lc=no
11102       hardcode_shlibpath_var=no
11103       runpath_var='LD_RUN_PATH'
11104
11105       if test "$GCC" = yes; then
11106         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11107         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11108       else
11109         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11110         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11111       fi
11112       ;;
11113
11114     sysv5* | sco3.2v5* | sco5v6*)
11115       # Note: We can NOT use -z defs as we might desire, because we do not
11116       # link with -lc, and that would cause any symbols used from libc to
11117       # always be unresolved, which means just about no library would
11118       # ever link correctly.  If we're not using GNU ld we use -z text
11119       # though, which does catch some bad symbols but isn't as heavy-handed
11120       # as -z defs.
11121       no_undefined_flag='${wl}-z,text'
11122       allow_undefined_flag='${wl}-z,nodefs'
11123       archive_cmds_need_lc=no
11124       hardcode_shlibpath_var=no
11125       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11126       hardcode_libdir_separator=':'
11127       link_all_deplibs=yes
11128       export_dynamic_flag_spec='${wl}-Bexport'
11129       runpath_var='LD_RUN_PATH'
11130
11131       if test "$GCC" = yes; then
11132         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11134       else
11135         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11137       fi
11138       ;;
11139
11140     uts4*)
11141       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11142       hardcode_libdir_flag_spec='-L$libdir'
11143       hardcode_shlibpath_var=no
11144       ;;
11145
11146     *)
11147       ld_shlibs=no
11148       ;;
11149     esac
11150
11151     if test x$host_vendor = xsni; then
11152       case $host in
11153       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11154         export_dynamic_flag_spec='${wl}-Blargedynsym'
11155         ;;
11156       esac
11157     fi
11158   fi
11159
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11161 $as_echo "$ld_shlibs" >&6; }
11162 test "$ld_shlibs" = no && can_build_shared=no
11163
11164 with_gnu_ld=$with_gnu_ld
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180 #
11181 # Do we need to explicitly link libc?
11182 #
11183 case "x$archive_cmds_need_lc" in
11184 x|xyes)
11185   # Assume -lc should be added
11186   archive_cmds_need_lc=yes
11187
11188   if test "$enable_shared" = yes && test "$GCC" = yes; then
11189     case $archive_cmds in
11190     *'~'*)
11191       # FIXME: we may have to deal with multi-command sequences.
11192       ;;
11193     '$CC '*)
11194       # Test whether the compiler implicitly links with -lc since on some
11195       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11196       # to ld, don't add -lc before -lgcc.
11197       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11198 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11199       $RM conftest*
11200       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11201
11202       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11203   (eval $ac_compile) 2>&5
11204   ac_status=$?
11205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11206   test $ac_status = 0; } 2>conftest.err; then
11207         soname=conftest
11208         lib=conftest
11209         libobjs=conftest.$ac_objext
11210         deplibs=
11211         wl=$lt_prog_compiler_wl
11212         pic_flag=$lt_prog_compiler_pic
11213         compiler_flags=-v
11214         linker_flags=-v
11215         verstring=
11216         output_objdir=.
11217         libname=conftest
11218         lt_save_allow_undefined_flag=$allow_undefined_flag
11219         allow_undefined_flag=
11220         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11221   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11222   ac_status=$?
11223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11224   test $ac_status = 0; }
11225         then
11226           archive_cmds_need_lc=no
11227         else
11228           archive_cmds_need_lc=yes
11229         fi
11230         allow_undefined_flag=$lt_save_allow_undefined_flag
11231       else
11232         cat conftest.err 1>&5
11233       fi
11234       $RM conftest*
11235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11236 $as_echo "$archive_cmds_need_lc" >&6; }
11237       ;;
11238     esac
11239   fi
11240   ;;
11241 esac
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
11398
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11400 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11401
11402 if test "$GCC" = yes; then
11403   case $host_os in
11404     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11405     *) lt_awk_arg="/^libraries:/" ;;
11406   esac
11407   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11408   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11409     # if the path contains ";" then we assume it to be the separator
11410     # otherwise default to the standard path separator (i.e. ":") - it is
11411     # assumed that no part of a normal pathname contains ";" but that should
11412     # okay in the real world where ";" in dirpaths is itself problematic.
11413     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11414   else
11415     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11416   fi
11417   # Ok, now we have the path, separated by spaces, we can step through it
11418   # and add multilib dir if necessary.
11419   lt_tmp_lt_search_path_spec=
11420   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11421   for lt_sys_path in $lt_search_path_spec; do
11422     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11423       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11424     else
11425       test -d "$lt_sys_path" && \
11426         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11427     fi
11428   done
11429   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11430 BEGIN {RS=" "; FS="/|\n";} {
11431   lt_foo="";
11432   lt_count=0;
11433   for (lt_i = NF; lt_i > 0; lt_i--) {
11434     if ($lt_i != "" && $lt_i != ".") {
11435       if ($lt_i == "..") {
11436         lt_count++;
11437       } else {
11438         if (lt_count == 0) {
11439           lt_foo="/" $lt_i lt_foo;
11440         } else {
11441           lt_count--;
11442         }
11443       }
11444     }
11445   }
11446   if (lt_foo != "") { lt_freq[lt_foo]++; }
11447   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11448 }'`
11449   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11450 else
11451   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11452 fi
11453 library_names_spec=
11454 libname_spec='lib$name'
11455 soname_spec=
11456 shrext_cmds=".so"
11457 postinstall_cmds=
11458 postuninstall_cmds=
11459 finish_cmds=
11460 finish_eval=
11461 shlibpath_var=
11462 shlibpath_overrides_runpath=unknown
11463 version_type=none
11464 dynamic_linker="$host_os ld.so"
11465 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11466 need_lib_prefix=unknown
11467 hardcode_into_libs=no
11468
11469 # when you set need_version to no, make sure it does not cause -set_version
11470 # flags to be left without arguments
11471 need_version=unknown
11472
11473 case $host_os in
11474 aix3*)
11475   version_type=linux
11476   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11477   shlibpath_var=LIBPATH
11478
11479   # AIX 3 has no versioning support, so we append a major version to the name.
11480   soname_spec='${libname}${release}${shared_ext}$major'
11481   ;;
11482
11483 aix[4-9]*)
11484   version_type=linux
11485   need_lib_prefix=no
11486   need_version=no
11487   hardcode_into_libs=yes
11488   if test "$host_cpu" = ia64; then
11489     # AIX 5 supports IA64
11490     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11491     shlibpath_var=LD_LIBRARY_PATH
11492   else
11493     # With GCC up to 2.95.x, collect2 would create an import file
11494     # for dependence libraries.  The import file would start with
11495     # the line `#! .'.  This would cause the generated library to
11496     # depend on `.', always an invalid library.  This was fixed in
11497     # development snapshots of GCC prior to 3.0.
11498     case $host_os in
11499       aix4 | aix4.[01] | aix4.[01].*)
11500       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11501            echo ' yes '
11502            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11503         :
11504       else
11505         can_build_shared=no
11506       fi
11507       ;;
11508     esac
11509     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11510     # soname into executable. Probably we can add versioning support to
11511     # collect2, so additional links can be useful in future.
11512     if test "$aix_use_runtimelinking" = yes; then
11513       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11514       # instead of lib<name>.a to let people know that these are not
11515       # typical AIX shared libraries.
11516       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517     else
11518       # We preserve .a as extension for shared libraries through AIX4.2
11519       # and later when we are not doing run time linking.
11520       library_names_spec='${libname}${release}.a $libname.a'
11521       soname_spec='${libname}${release}${shared_ext}$major'
11522     fi
11523     shlibpath_var=LIBPATH
11524   fi
11525   ;;
11526
11527 amigaos*)
11528   case $host_cpu in
11529   powerpc)
11530     # Since July 2007 AmigaOS4 officially supports .so libraries.
11531     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533     ;;
11534   m68k)
11535     library_names_spec='$libname.ixlibrary $libname.a'
11536     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11537     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'
11538     ;;
11539   esac
11540   ;;
11541
11542 beos*)
11543   library_names_spec='${libname}${shared_ext}'
11544   dynamic_linker="$host_os ld.so"
11545   shlibpath_var=LIBRARY_PATH
11546   ;;
11547
11548 bsdi[45]*)
11549   version_type=linux
11550   need_version=no
11551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552   soname_spec='${libname}${release}${shared_ext}$major'
11553   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11554   shlibpath_var=LD_LIBRARY_PATH
11555   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11556   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11557   # the default ld.so.conf also contains /usr/contrib/lib and
11558   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11559   # libtool to hard-code these into programs
11560   ;;
11561
11562 cygwin* | mingw* | pw32* | cegcc*)
11563   version_type=windows
11564   shrext_cmds=".dll"
11565   need_version=no
11566   need_lib_prefix=no
11567
11568   case $GCC,$host_os in
11569   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11570     library_names_spec='$libname.dll.a'
11571     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11572     postinstall_cmds='base_file=`basename \${file}`~
11573       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11574       dldir=$destdir/`dirname \$dlpath`~
11575       test -d \$dldir || mkdir -p \$dldir~
11576       $install_prog $dir/$dlname \$dldir/$dlname~
11577       chmod a+x \$dldir/$dlname~
11578       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11579         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11580       fi'
11581     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11582       dlpath=$dir/\$dldll~
11583        $RM \$dlpath'
11584     shlibpath_overrides_runpath=yes
11585
11586     case $host_os in
11587     cygwin*)
11588       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11589       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11590       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11591       ;;
11592     mingw* | cegcc*)
11593       # MinGW DLLs use traditional 'lib' prefix
11594       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11595       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11596       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11597         # It is most probably a Windows format PATH printed by
11598         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11599         # path with ; separators, and with drive letters. We can handle the
11600         # drive letters (cygwin fileutils understands them), so leave them,
11601         # especially as we might pass files found there to a mingw objdump,
11602         # which wouldn't understand a cygwinified path. Ahh.
11603         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11604       else
11605         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11606       fi
11607       ;;
11608     pw32*)
11609       # pw32 DLLs use 'pw' prefix rather than 'lib'
11610       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11611       ;;
11612     esac
11613     ;;
11614
11615   *)
11616     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11617     ;;
11618   esac
11619   dynamic_linker='Win32 ld.exe'
11620   # FIXME: first we should search . and the directory the executable is in
11621   shlibpath_var=PATH
11622   ;;
11623
11624 darwin* | rhapsody*)
11625   dynamic_linker="$host_os dyld"
11626   version_type=darwin
11627   need_lib_prefix=no
11628   need_version=no
11629   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11630   soname_spec='${libname}${release}${major}$shared_ext'
11631   shlibpath_overrides_runpath=yes
11632   shlibpath_var=DYLD_LIBRARY_PATH
11633   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11634
11635   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11636   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11637   ;;
11638
11639 dgux*)
11640   version_type=linux
11641   need_lib_prefix=no
11642   need_version=no
11643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11644   soname_spec='${libname}${release}${shared_ext}$major'
11645   shlibpath_var=LD_LIBRARY_PATH
11646   ;;
11647
11648 freebsd1*)
11649   dynamic_linker=no
11650   ;;
11651
11652 freebsd* | dragonfly*)
11653   # DragonFly does not have aout.  When/if they implement a new
11654   # versioning mechanism, adjust this.
11655   if test -x /usr/bin/objformat; then
11656     objformat=`/usr/bin/objformat`
11657   else
11658     case $host_os in
11659     freebsd[123]*) objformat=aout ;;
11660     *) objformat=elf ;;
11661     esac
11662   fi
11663   version_type=freebsd-$objformat
11664   case $version_type in
11665     freebsd-elf*)
11666       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11667       need_version=no
11668       need_lib_prefix=no
11669       ;;
11670     freebsd-*)
11671       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11672       need_version=yes
11673       ;;
11674   esac
11675   shlibpath_var=LD_LIBRARY_PATH
11676   case $host_os in
11677   freebsd2*)
11678     shlibpath_overrides_runpath=yes
11679     ;;
11680   freebsd3.[01]* | freebsdelf3.[01]*)
11681     shlibpath_overrides_runpath=yes
11682     hardcode_into_libs=yes
11683     ;;
11684   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11685   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11686     shlibpath_overrides_runpath=no
11687     hardcode_into_libs=yes
11688     ;;
11689   *) # from 4.6 on, and DragonFly
11690     shlibpath_overrides_runpath=yes
11691     hardcode_into_libs=yes
11692     ;;
11693   esac
11694   ;;
11695
11696 gnu*)
11697   version_type=linux
11698   need_lib_prefix=no
11699   need_version=no
11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11701   soname_spec='${libname}${release}${shared_ext}$major'
11702   shlibpath_var=LD_LIBRARY_PATH
11703   hardcode_into_libs=yes
11704   ;;
11705
11706 hpux9* | hpux10* | hpux11*)
11707   # Give a soname corresponding to the major version so that dld.sl refuses to
11708   # link against other versions.
11709   version_type=sunos
11710   need_lib_prefix=no
11711   need_version=no
11712   case $host_cpu in
11713   ia64*)
11714     shrext_cmds='.so'
11715     hardcode_into_libs=yes
11716     dynamic_linker="$host_os dld.so"
11717     shlibpath_var=LD_LIBRARY_PATH
11718     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720     soname_spec='${libname}${release}${shared_ext}$major'
11721     if test "X$HPUX_IA64_MODE" = X32; then
11722       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11723     else
11724       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11725     fi
11726     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11727     ;;
11728   hppa*64*)
11729     shrext_cmds='.sl'
11730     hardcode_into_libs=yes
11731     dynamic_linker="$host_os dld.sl"
11732     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11733     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11734     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735     soname_spec='${libname}${release}${shared_ext}$major'
11736     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11737     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11738     ;;
11739   *)
11740     shrext_cmds='.sl'
11741     dynamic_linker="$host_os dld.sl"
11742     shlibpath_var=SHLIB_PATH
11743     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745     soname_spec='${libname}${release}${shared_ext}$major'
11746     ;;
11747   esac
11748   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11749   postinstall_cmds='chmod 555 $lib'
11750   ;;
11751
11752 interix[3-9]*)
11753   version_type=linux
11754   need_lib_prefix=no
11755   need_version=no
11756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11757   soname_spec='${libname}${release}${shared_ext}$major'
11758   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11759   shlibpath_var=LD_LIBRARY_PATH
11760   shlibpath_overrides_runpath=no
11761   hardcode_into_libs=yes
11762   ;;
11763
11764 irix5* | irix6* | nonstopux*)
11765   case $host_os in
11766     nonstopux*) version_type=nonstopux ;;
11767     *)
11768         if test "$lt_cv_prog_gnu_ld" = yes; then
11769                 version_type=linux
11770         else
11771                 version_type=irix
11772         fi ;;
11773   esac
11774   need_lib_prefix=no
11775   need_version=no
11776   soname_spec='${libname}${release}${shared_ext}$major'
11777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11778   case $host_os in
11779   irix5* | nonstopux*)
11780     libsuff= shlibsuff=
11781     ;;
11782   *)
11783     case $LD in # libtool.m4 will add one of these switches to LD
11784     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11785       libsuff= shlibsuff= libmagic=32-bit;;
11786     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11787       libsuff=32 shlibsuff=N32 libmagic=N32;;
11788     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11789       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11790     *) libsuff= shlibsuff= libmagic=never-match;;
11791     esac
11792     ;;
11793   esac
11794   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11795   shlibpath_overrides_runpath=no
11796   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11797   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11798   hardcode_into_libs=yes
11799   ;;
11800
11801 # No shared lib support for Linux oldld, aout, or coff.
11802 linux*oldld* | linux*aout* | linux*coff*)
11803   dynamic_linker=no
11804   ;;
11805
11806 # This must be Linux ELF.
11807 linux* | k*bsd*-gnu)
11808   version_type=linux
11809   need_lib_prefix=no
11810   need_version=no
11811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812   soname_spec='${libname}${release}${shared_ext}$major'
11813   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11814   shlibpath_var=LD_LIBRARY_PATH
11815   shlibpath_overrides_runpath=no
11816   # Some binutils ld are patched to set DT_RUNPATH
11817   save_LDFLAGS=$LDFLAGS
11818   save_libdir=$libdir
11819   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11820        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h.  */
11823
11824 int
11825 main ()
11826 {
11827
11828   ;
11829   return 0;
11830 }
11831 _ACEOF
11832 if ac_fn_c_try_link "$LINENO"; then :
11833   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11834   shlibpath_overrides_runpath=yes
11835 fi
11836 fi
11837 rm -f core conftest.err conftest.$ac_objext \
11838     conftest$ac_exeext conftest.$ac_ext
11839   LDFLAGS=$save_LDFLAGS
11840   libdir=$save_libdir
11841
11842   # This implies no fast_install, which is unacceptable.
11843   # Some rework will be needed to allow for fast_install
11844   # before this can be enabled.
11845   hardcode_into_libs=yes
11846
11847   # Append ld.so.conf contents to the search path
11848   if test -f /etc/ld.so.conf; then
11849     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' ' '`
11850     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11851   fi
11852
11853   # We used to test for /lib/ld.so.1 and disable shared libraries on
11854   # powerpc, because MkLinux only supported shared libraries with the
11855   # GNU dynamic linker.  Since this was broken with cross compilers,
11856   # most powerpc-linux boxes support dynamic linking these days and
11857   # people can always --disable-shared, the test was removed, and we
11858   # assume the GNU/Linux dynamic linker is in use.
11859   dynamic_linker='GNU/Linux ld.so'
11860   ;;
11861
11862 netbsd*)
11863   version_type=sunos
11864   need_lib_prefix=no
11865   need_version=no
11866   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11868     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11869     dynamic_linker='NetBSD (a.out) ld.so'
11870   else
11871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11872     soname_spec='${libname}${release}${shared_ext}$major'
11873     dynamic_linker='NetBSD ld.elf_so'
11874   fi
11875   shlibpath_var=LD_LIBRARY_PATH
11876   shlibpath_overrides_runpath=yes
11877   hardcode_into_libs=yes
11878   ;;
11879
11880 newsos6)
11881   version_type=linux
11882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11883   shlibpath_var=LD_LIBRARY_PATH
11884   shlibpath_overrides_runpath=yes
11885   ;;
11886
11887 *nto* | *qnx*)
11888   version_type=qnx
11889   need_lib_prefix=no
11890   need_version=no
11891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892   soname_spec='${libname}${release}${shared_ext}$major'
11893   shlibpath_var=LD_LIBRARY_PATH
11894   shlibpath_overrides_runpath=no
11895   hardcode_into_libs=yes
11896   dynamic_linker='ldqnx.so'
11897   ;;
11898
11899 openbsd*)
11900   version_type=sunos
11901   sys_lib_dlsearch_path_spec="/usr/lib"
11902   need_lib_prefix=no
11903   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11904   case $host_os in
11905     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11906     *)                          need_version=no  ;;
11907   esac
11908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11909   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11910   shlibpath_var=LD_LIBRARY_PATH
11911   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11912     case $host_os in
11913       openbsd2.[89] | openbsd2.[89].*)
11914         shlibpath_overrides_runpath=no
11915         ;;
11916       *)
11917         shlibpath_overrides_runpath=yes
11918         ;;
11919       esac
11920   else
11921     shlibpath_overrides_runpath=yes
11922   fi
11923   ;;
11924
11925 os2*)
11926   libname_spec='$name'
11927   shrext_cmds=".dll"
11928   need_lib_prefix=no
11929   library_names_spec='$libname${shared_ext} $libname.a'
11930   dynamic_linker='OS/2 ld.exe'
11931   shlibpath_var=LIBPATH
11932   ;;
11933
11934 osf3* | osf4* | osf5*)
11935   version_type=osf
11936   need_lib_prefix=no
11937   need_version=no
11938   soname_spec='${libname}${release}${shared_ext}$major'
11939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940   shlibpath_var=LD_LIBRARY_PATH
11941   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11942   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11943   ;;
11944
11945 rdos*)
11946   dynamic_linker=no
11947   ;;
11948
11949 solaris*)
11950   version_type=linux
11951   need_lib_prefix=no
11952   need_version=no
11953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954   soname_spec='${libname}${release}${shared_ext}$major'
11955   shlibpath_var=LD_LIBRARY_PATH
11956   shlibpath_overrides_runpath=yes
11957   hardcode_into_libs=yes
11958   # ldd complains unless libraries are executable
11959   postinstall_cmds='chmod +x $lib'
11960   ;;
11961
11962 sunos4*)
11963   version_type=sunos
11964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11965   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11966   shlibpath_var=LD_LIBRARY_PATH
11967   shlibpath_overrides_runpath=yes
11968   if test "$with_gnu_ld" = yes; then
11969     need_lib_prefix=no
11970   fi
11971   need_version=yes
11972   ;;
11973
11974 sysv4 | sysv4.3*)
11975   version_type=linux
11976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977   soname_spec='${libname}${release}${shared_ext}$major'
11978   shlibpath_var=LD_LIBRARY_PATH
11979   case $host_vendor in
11980     sni)
11981       shlibpath_overrides_runpath=no
11982       need_lib_prefix=no
11983       runpath_var=LD_RUN_PATH
11984       ;;
11985     siemens)
11986       need_lib_prefix=no
11987       ;;
11988     motorola)
11989       need_lib_prefix=no
11990       need_version=no
11991       shlibpath_overrides_runpath=no
11992       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11993       ;;
11994   esac
11995   ;;
11996
11997 sysv4*MP*)
11998   if test -d /usr/nec ;then
11999     version_type=linux
12000     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12001     soname_spec='$libname${shared_ext}.$major'
12002     shlibpath_var=LD_LIBRARY_PATH
12003   fi
12004   ;;
12005
12006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12007   version_type=freebsd-elf
12008   need_lib_prefix=no
12009   need_version=no
12010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12011   soname_spec='${libname}${release}${shared_ext}$major'
12012   shlibpath_var=LD_LIBRARY_PATH
12013   shlibpath_overrides_runpath=yes
12014   hardcode_into_libs=yes
12015   if test "$with_gnu_ld" = yes; then
12016     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12017   else
12018     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12019     case $host_os in
12020       sco3.2v5*)
12021         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12022         ;;
12023     esac
12024   fi
12025   sys_lib_dlsearch_path_spec='/usr/lib'
12026   ;;
12027
12028 tpf*)
12029   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12030   version_type=linux
12031   need_lib_prefix=no
12032   need_version=no
12033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034   shlibpath_var=LD_LIBRARY_PATH
12035   shlibpath_overrides_runpath=no
12036   hardcode_into_libs=yes
12037   ;;
12038
12039 uts4*)
12040   version_type=linux
12041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12042   soname_spec='${libname}${release}${shared_ext}$major'
12043   shlibpath_var=LD_LIBRARY_PATH
12044   ;;
12045
12046 *)
12047   dynamic_linker=no
12048   ;;
12049 esac
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12051 $as_echo "$dynamic_linker" >&6; }
12052 test "$dynamic_linker" = no && can_build_shared=no
12053
12054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12055 if test "$GCC" = yes; then
12056   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12057 fi
12058
12059 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12060   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12061 fi
12062 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12063   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12064 fi
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
12151
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12153 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12154 hardcode_action=
12155 if test -n "$hardcode_libdir_flag_spec" ||
12156    test -n "$runpath_var" ||
12157    test "X$hardcode_automatic" = "Xyes" ; then
12158
12159   # We can hardcode non-existent directories.
12160   if test "$hardcode_direct" != no &&
12161      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12162      # have to relink, otherwise we might link with an installed library
12163      # when we should be linking with a yet-to-be-installed one
12164      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12165      test "$hardcode_minus_L" != no; then
12166     # Linking always hardcodes the temporary library directory.
12167     hardcode_action=relink
12168   else
12169     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12170     hardcode_action=immediate
12171   fi
12172 else
12173   # We cannot hardcode anything, or else we can only hardcode existing
12174   # directories.
12175   hardcode_action=unsupported
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12178 $as_echo "$hardcode_action" >&6; }
12179
12180 if test "$hardcode_action" = relink ||
12181    test "$inherit_rpath" = yes; then
12182   # Fast installation is not supported
12183   enable_fast_install=no
12184 elif test "$shlibpath_overrides_runpath" = yes ||
12185      test "$enable_shared" = no; then
12186   # Fast installation is not necessary
12187   enable_fast_install=needless
12188 fi
12189
12190
12191
12192
12193
12194
12195   if test "x$enable_dlopen" != xyes; then
12196   enable_dlopen=unknown
12197   enable_dlopen_self=unknown
12198   enable_dlopen_self_static=unknown
12199 else
12200   lt_cv_dlopen=no
12201   lt_cv_dlopen_libs=
12202
12203   case $host_os in
12204   beos*)
12205     lt_cv_dlopen="load_add_on"
12206     lt_cv_dlopen_libs=
12207     lt_cv_dlopen_self=yes
12208     ;;
12209
12210   mingw* | pw32* | cegcc*)
12211     lt_cv_dlopen="LoadLibrary"
12212     lt_cv_dlopen_libs=
12213     ;;
12214
12215   cygwin*)
12216     lt_cv_dlopen="dlopen"
12217     lt_cv_dlopen_libs=
12218     ;;
12219
12220   darwin*)
12221   # if libdl is installed we need to link against it
12222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12223 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12224 if ${ac_cv_lib_dl_dlopen+:} false; then :
12225   $as_echo_n "(cached) " >&6
12226 else
12227   ac_check_lib_save_LIBS=$LIBS
12228 LIBS="-ldl  $LIBS"
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h.  */
12231
12232 /* Override any GCC internal prototype to avoid an error.
12233    Use char because int might match the return type of a GCC
12234    builtin and then its argument prototype would still apply.  */
12235 #ifdef __cplusplus
12236 extern "C"
12237 #endif
12238 char dlopen ();
12239 int
12240 main ()
12241 {
12242 return dlopen ();
12243   ;
12244   return 0;
12245 }
12246 _ACEOF
12247 if ac_fn_c_try_link "$LINENO"; then :
12248   ac_cv_lib_dl_dlopen=yes
12249 else
12250   ac_cv_lib_dl_dlopen=no
12251 fi
12252 rm -f core conftest.err conftest.$ac_objext \
12253     conftest$ac_exeext conftest.$ac_ext
12254 LIBS=$ac_check_lib_save_LIBS
12255 fi
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12258 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12259   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12260 else
12261
12262     lt_cv_dlopen="dyld"
12263     lt_cv_dlopen_libs=
12264     lt_cv_dlopen_self=yes
12265
12266 fi
12267
12268     ;;
12269
12270   *)
12271     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12272 if test "x$ac_cv_func_shl_load" = xyes; then :
12273   lt_cv_dlopen="shl_load"
12274 else
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12276 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12277 if ${ac_cv_lib_dld_shl_load+:} false; then :
12278   $as_echo_n "(cached) " >&6
12279 else
12280   ac_check_lib_save_LIBS=$LIBS
12281 LIBS="-ldld  $LIBS"
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h.  */
12284
12285 /* Override any GCC internal prototype to avoid an error.
12286    Use char because int might match the return type of a GCC
12287    builtin and then its argument prototype would still apply.  */
12288 #ifdef __cplusplus
12289 extern "C"
12290 #endif
12291 char shl_load ();
12292 int
12293 main ()
12294 {
12295 return shl_load ();
12296   ;
12297   return 0;
12298 }
12299 _ACEOF
12300 if ac_fn_c_try_link "$LINENO"; then :
12301   ac_cv_lib_dld_shl_load=yes
12302 else
12303   ac_cv_lib_dld_shl_load=no
12304 fi
12305 rm -f core conftest.err conftest.$ac_objext \
12306     conftest$ac_exeext conftest.$ac_ext
12307 LIBS=$ac_check_lib_save_LIBS
12308 fi
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12310 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12311 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12312   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12313 else
12314   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12315 if test "x$ac_cv_func_dlopen" = xyes; then :
12316   lt_cv_dlopen="dlopen"
12317 else
12318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12319 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12320 if ${ac_cv_lib_dl_dlopen+:} false; then :
12321   $as_echo_n "(cached) " >&6
12322 else
12323   ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-ldl  $LIBS"
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h.  */
12327
12328 /* Override any GCC internal prototype to avoid an error.
12329    Use char because int might match the return type of a GCC
12330    builtin and then its argument prototype would still apply.  */
12331 #ifdef __cplusplus
12332 extern "C"
12333 #endif
12334 char dlopen ();
12335 int
12336 main ()
12337 {
12338 return dlopen ();
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"; then :
12344   ac_cv_lib_dl_dlopen=yes
12345 else
12346   ac_cv_lib_dl_dlopen=no
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext \
12349     conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12353 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12354 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12355   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12356 else
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12358 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12359 if ${ac_cv_lib_svld_dlopen+:} false; then :
12360   $as_echo_n "(cached) " >&6
12361 else
12362   ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-lsvld  $LIBS"
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h.  */
12366
12367 /* Override any GCC internal prototype to avoid an error.
12368    Use char because int might match the return type of a GCC
12369    builtin and then its argument prototype would still apply.  */
12370 #ifdef __cplusplus
12371 extern "C"
12372 #endif
12373 char dlopen ();
12374 int
12375 main ()
12376 {
12377 return dlopen ();
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 if ac_fn_c_try_link "$LINENO"; then :
12383   ac_cv_lib_svld_dlopen=yes
12384 else
12385   ac_cv_lib_svld_dlopen=no
12386 fi
12387 rm -f core conftest.err conftest.$ac_objext \
12388     conftest$ac_exeext conftest.$ac_ext
12389 LIBS=$ac_check_lib_save_LIBS
12390 fi
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12392 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12393 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12394   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12395 else
12396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12397 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12398 if ${ac_cv_lib_dld_dld_link+:} false; then :
12399   $as_echo_n "(cached) " >&6
12400 else
12401   ac_check_lib_save_LIBS=$LIBS
12402 LIBS="-ldld  $LIBS"
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h.  */
12405
12406 /* Override any GCC internal prototype to avoid an error.
12407    Use char because int might match the return type of a GCC
12408    builtin and then its argument prototype would still apply.  */
12409 #ifdef __cplusplus
12410 extern "C"
12411 #endif
12412 char dld_link ();
12413 int
12414 main ()
12415 {
12416 return dld_link ();
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 if ac_fn_c_try_link "$LINENO"; then :
12422   ac_cv_lib_dld_dld_link=yes
12423 else
12424   ac_cv_lib_dld_dld_link=no
12425 fi
12426 rm -f core conftest.err conftest.$ac_objext \
12427     conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12431 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12432 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12433   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12434 fi
12435
12436
12437 fi
12438
12439
12440 fi
12441
12442
12443 fi
12444
12445
12446 fi
12447
12448
12449 fi
12450
12451     ;;
12452   esac
12453
12454   if test "x$lt_cv_dlopen" != xno; then
12455     enable_dlopen=yes
12456   else
12457     enable_dlopen=no
12458   fi
12459
12460   case $lt_cv_dlopen in
12461   dlopen)
12462     save_CPPFLAGS="$CPPFLAGS"
12463     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12464
12465     save_LDFLAGS="$LDFLAGS"
12466     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12467
12468     save_LIBS="$LIBS"
12469     LIBS="$lt_cv_dlopen_libs $LIBS"
12470
12471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12472 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12473 if ${lt_cv_dlopen_self+:} false; then :
12474   $as_echo_n "(cached) " >&6
12475 else
12476           if test "$cross_compiling" = yes; then :
12477   lt_cv_dlopen_self=cross
12478 else
12479   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12480   lt_status=$lt_dlunknown
12481   cat > conftest.$ac_ext <<_LT_EOF
12482 #line 12482 "configure"
12483 #include "confdefs.h"
12484
12485 #if HAVE_DLFCN_H
12486 #include <dlfcn.h>
12487 #endif
12488
12489 #include <stdio.h>
12490
12491 #ifdef RTLD_GLOBAL
12492 #  define LT_DLGLOBAL           RTLD_GLOBAL
12493 #else
12494 #  ifdef DL_GLOBAL
12495 #    define LT_DLGLOBAL         DL_GLOBAL
12496 #  else
12497 #    define LT_DLGLOBAL         0
12498 #  endif
12499 #endif
12500
12501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12502    find out it does not work in some platform. */
12503 #ifndef LT_DLLAZY_OR_NOW
12504 #  ifdef RTLD_LAZY
12505 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12506 #  else
12507 #    ifdef DL_LAZY
12508 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12509 #    else
12510 #      ifdef RTLD_NOW
12511 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12512 #      else
12513 #        ifdef DL_NOW
12514 #          define LT_DLLAZY_OR_NOW      DL_NOW
12515 #        else
12516 #          define LT_DLLAZY_OR_NOW      0
12517 #        endif
12518 #      endif
12519 #    endif
12520 #  endif
12521 #endif
12522
12523 void fnord() { int i=42;}
12524 int main ()
12525 {
12526   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12527   int status = $lt_dlunknown;
12528
12529   if (self)
12530     {
12531       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12532       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12533       /* dlclose (self); */
12534     }
12535   else
12536     puts (dlerror ());
12537
12538   return status;
12539 }
12540 _LT_EOF
12541   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12542   (eval $ac_link) 2>&5
12543   ac_status=$?
12544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12545   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12546     (./conftest; exit; ) >&5 2>/dev/null
12547     lt_status=$?
12548     case x$lt_status in
12549       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12550       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12551       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12552     esac
12553   else :
12554     # compilation failed
12555     lt_cv_dlopen_self=no
12556   fi
12557 fi
12558 rm -fr conftest*
12559
12560
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12563 $as_echo "$lt_cv_dlopen_self" >&6; }
12564
12565     if test "x$lt_cv_dlopen_self" = xyes; then
12566       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12567       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12568 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12569 if ${lt_cv_dlopen_self_static+:} false; then :
12570   $as_echo_n "(cached) " >&6
12571 else
12572           if test "$cross_compiling" = yes; then :
12573   lt_cv_dlopen_self_static=cross
12574 else
12575   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12576   lt_status=$lt_dlunknown
12577   cat > conftest.$ac_ext <<_LT_EOF
12578 #line 12578 "configure"
12579 #include "confdefs.h"
12580
12581 #if HAVE_DLFCN_H
12582 #include <dlfcn.h>
12583 #endif
12584
12585 #include <stdio.h>
12586
12587 #ifdef RTLD_GLOBAL
12588 #  define LT_DLGLOBAL           RTLD_GLOBAL
12589 #else
12590 #  ifdef DL_GLOBAL
12591 #    define LT_DLGLOBAL         DL_GLOBAL
12592 #  else
12593 #    define LT_DLGLOBAL         0
12594 #  endif
12595 #endif
12596
12597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12598    find out it does not work in some platform. */
12599 #ifndef LT_DLLAZY_OR_NOW
12600 #  ifdef RTLD_LAZY
12601 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12602 #  else
12603 #    ifdef DL_LAZY
12604 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12605 #    else
12606 #      ifdef RTLD_NOW
12607 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12608 #      else
12609 #        ifdef DL_NOW
12610 #          define LT_DLLAZY_OR_NOW      DL_NOW
12611 #        else
12612 #          define LT_DLLAZY_OR_NOW      0
12613 #        endif
12614 #      endif
12615 #    endif
12616 #  endif
12617 #endif
12618
12619 void fnord() { int i=42;}
12620 int main ()
12621 {
12622   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12623   int status = $lt_dlunknown;
12624
12625   if (self)
12626     {
12627       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12628       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12629       /* dlclose (self); */
12630     }
12631   else
12632     puts (dlerror ());
12633
12634   return status;
12635 }
12636 _LT_EOF
12637   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12638   (eval $ac_link) 2>&5
12639   ac_status=$?
12640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12642     (./conftest; exit; ) >&5 2>/dev/null
12643     lt_status=$?
12644     case x$lt_status in
12645       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12646       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12647       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12648     esac
12649   else :
12650     # compilation failed
12651     lt_cv_dlopen_self_static=no
12652   fi
12653 fi
12654 rm -fr conftest*
12655
12656
12657 fi
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12659 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12660     fi
12661
12662     CPPFLAGS="$save_CPPFLAGS"
12663     LDFLAGS="$save_LDFLAGS"
12664     LIBS="$save_LIBS"
12665     ;;
12666   esac
12667
12668   case $lt_cv_dlopen_self in
12669   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12670   *) enable_dlopen_self=unknown ;;
12671   esac
12672
12673   case $lt_cv_dlopen_self_static in
12674   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12675   *) enable_dlopen_self_static=unknown ;;
12676   esac
12677 fi
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695 striplib=
12696 old_striplib=
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12698 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12699 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12700   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12701   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12703 $as_echo "yes" >&6; }
12704 else
12705 # FIXME - insert some real tests, host_os isn't really good enough
12706   case $host_os in
12707   darwin*)
12708     if test -n "$STRIP" ; then
12709       striplib="$STRIP -x"
12710       old_striplib="$STRIP -S"
12711       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12712 $as_echo "yes" >&6; }
12713     else
12714       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715 $as_echo "no" >&6; }
12716     fi
12717     ;;
12718   *)
12719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12721     ;;
12722   esac
12723 fi
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736   # Report which library types will actually be built
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12738 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12740 $as_echo "$can_build_shared" >&6; }
12741
12742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12743 $as_echo_n "checking whether to build shared libraries... " >&6; }
12744   test "$can_build_shared" = "no" && enable_shared=no
12745
12746   # On AIX, shared libraries and static libraries use the same namespace, and
12747   # are all built from PIC.
12748   case $host_os in
12749   aix3*)
12750     test "$enable_shared" = yes && enable_static=no
12751     if test -n "$RANLIB"; then
12752       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12753       postinstall_cmds='$RANLIB $lib'
12754     fi
12755     ;;
12756
12757   aix[4-9]*)
12758     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12759       test "$enable_shared" = yes && enable_static=no
12760     fi
12761     ;;
12762   esac
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12764 $as_echo "$enable_shared" >&6; }
12765
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12767 $as_echo_n "checking whether to build static libraries... " >&6; }
12768   # Make sure either enable_shared or enable_static is yes.
12769   test "$enable_shared" = yes || enable_static=yes
12770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12771 $as_echo "$enable_static" >&6; }
12772
12773
12774
12775
12776 fi
12777 ac_ext=c
12778 ac_cpp='$CPP $CPPFLAGS'
12779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12782
12783 CC="$lt_save_CC"
12784
12785
12786 ac_ext=cpp
12787 ac_cpp='$CXXCPP $CPPFLAGS'
12788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12791
12792 archive_cmds_need_lc_CXX=no
12793 allow_undefined_flag_CXX=
12794 always_export_symbols_CXX=no
12795 archive_expsym_cmds_CXX=
12796 compiler_needs_object_CXX=no
12797 export_dynamic_flag_spec_CXX=
12798 hardcode_direct_CXX=no
12799 hardcode_direct_absolute_CXX=no
12800 hardcode_libdir_flag_spec_CXX=
12801 hardcode_libdir_flag_spec_ld_CXX=
12802 hardcode_libdir_separator_CXX=
12803 hardcode_minus_L_CXX=no
12804 hardcode_shlibpath_var_CXX=unsupported
12805 hardcode_automatic_CXX=no
12806 inherit_rpath_CXX=no
12807 module_cmds_CXX=
12808 module_expsym_cmds_CXX=
12809 link_all_deplibs_CXX=unknown
12810 old_archive_cmds_CXX=$old_archive_cmds
12811 no_undefined_flag_CXX=
12812 whole_archive_flag_spec_CXX=
12813 enable_shared_with_static_runtimes_CXX=no
12814
12815 # Source file extension for C++ test sources.
12816 ac_ext=cpp
12817
12818 # Object file extension for compiled C++ test sources.
12819 objext=o
12820 objext_CXX=$objext
12821
12822 # No sense in running all these tests if we already determined that
12823 # the CXX compiler isn't working.  Some variables (like enable_shared)
12824 # are currently assumed to apply to all compilers on this platform,
12825 # and will be corrupted by setting them based on a non-working compiler.
12826 if test "$_lt_caught_CXX_error" != yes; then
12827   # Code to be used in simple compile tests
12828   lt_simple_compile_test_code="int some_variable = 0;"
12829
12830   # Code to be used in simple link tests
12831   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12832
12833   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12834
12835
12836
12837
12838
12839
12840 # If no C compiler was specified, use CC.
12841 LTCC=${LTCC-"$CC"}
12842
12843 # If no C compiler flags were specified, use CFLAGS.
12844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12845
12846 # Allow CC to be a program name with arguments.
12847 compiler=$CC
12848
12849
12850   # save warnings/boilerplate of simple test code
12851   ac_outfile=conftest.$ac_objext
12852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12854 _lt_compiler_boilerplate=`cat conftest.err`
12855 $RM conftest*
12856
12857   ac_outfile=conftest.$ac_objext
12858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12860 _lt_linker_boilerplate=`cat conftest.err`
12861 $RM -r conftest*
12862
12863
12864   # Allow CC to be a program name with arguments.
12865   lt_save_CC=$CC
12866   lt_save_LD=$LD
12867   lt_save_GCC=$GCC
12868   GCC=$GXX
12869   lt_save_with_gnu_ld=$with_gnu_ld
12870   lt_save_path_LD=$lt_cv_path_LD
12871   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12872     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12873   else
12874     $as_unset lt_cv_prog_gnu_ld
12875   fi
12876   if test -n "${lt_cv_path_LDCXX+set}"; then
12877     lt_cv_path_LD=$lt_cv_path_LDCXX
12878   else
12879     $as_unset lt_cv_path_LD
12880   fi
12881   test -z "${LDCXX+set}" || LD=$LDCXX
12882   CC=${CXX-"c++"}
12883   compiler=$CC
12884   compiler_CXX=$CC
12885   for cc_temp in $compiler""; do
12886   case $cc_temp in
12887     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12888     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12889     \-*) ;;
12890     *) break;;
12891   esac
12892 done
12893 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12894
12895
12896   if test -n "$compiler"; then
12897     # We don't want -fno-exception when compiling C++ code, so set the
12898     # no_builtin_flag separately
12899     if test "$GXX" = yes; then
12900       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12901     else
12902       lt_prog_compiler_no_builtin_flag_CXX=
12903     fi
12904
12905     if test "$GXX" = yes; then
12906       # Set up default GNU C++ configuration
12907
12908
12909
12910 # Check whether --with-gnu-ld was given.
12911 if test "${with_gnu_ld+set}" = set; then :
12912   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12913 else
12914   with_gnu_ld=no
12915 fi
12916
12917 ac_prog=ld
12918 if test "$GCC" = yes; then
12919   # Check if gcc -print-prog-name=ld gives a path.
12920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12921 $as_echo_n "checking for ld used by $CC... " >&6; }
12922   case $host in
12923   *-*-mingw*)
12924     # gcc leaves a trailing carriage return which upsets mingw
12925     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12926   *)
12927     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12928   esac
12929   case $ac_prog in
12930     # Accept absolute paths.
12931     [\\/]* | ?:[\\/]*)
12932       re_direlt='/[^/][^/]*/\.\./'
12933       # Canonicalize the pathname of ld
12934       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12935       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12936         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12937       done
12938       test -z "$LD" && LD="$ac_prog"
12939       ;;
12940   "")
12941     # If it fails, then pretend we aren't using GCC.
12942     ac_prog=ld
12943     ;;
12944   *)
12945     # If it is relative, then search for the first ld in PATH.
12946     with_gnu_ld=unknown
12947     ;;
12948   esac
12949 elif test "$with_gnu_ld" = yes; then
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12951 $as_echo_n "checking for GNU ld... " >&6; }
12952 else
12953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12954 $as_echo_n "checking for non-GNU ld... " >&6; }
12955 fi
12956 if ${lt_cv_path_LD+:} false; then :
12957   $as_echo_n "(cached) " >&6
12958 else
12959   if test -z "$LD"; then
12960   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12961   for ac_dir in $PATH; do
12962     IFS="$lt_save_ifs"
12963     test -z "$ac_dir" && ac_dir=.
12964     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12965       lt_cv_path_LD="$ac_dir/$ac_prog"
12966       # Check to see if the program is GNU ld.  I'd rather use --version,
12967       # but apparently some variants of GNU ld only accept -v.
12968       # Break only if it was the GNU/non-GNU ld that we prefer.
12969       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12970       *GNU* | *'with BFD'*)
12971         test "$with_gnu_ld" != no && break
12972         ;;
12973       *)
12974         test "$with_gnu_ld" != yes && break
12975         ;;
12976       esac
12977     fi
12978   done
12979   IFS="$lt_save_ifs"
12980 else
12981   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12982 fi
12983 fi
12984
12985 LD="$lt_cv_path_LD"
12986 if test -n "$LD"; then
12987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12988 $as_echo "$LD" >&6; }
12989 else
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12992 fi
12993 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12995 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12996 if ${lt_cv_prog_gnu_ld+:} false; then :
12997   $as_echo_n "(cached) " >&6
12998 else
12999   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13000 case `$LD -v 2>&1 </dev/null` in
13001 *GNU* | *'with BFD'*)
13002   lt_cv_prog_gnu_ld=yes
13003   ;;
13004 *)
13005   lt_cv_prog_gnu_ld=no
13006   ;;
13007 esac
13008 fi
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13010 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13011 with_gnu_ld=$lt_cv_prog_gnu_ld
13012
13013
13014
13015
13016
13017
13018
13019       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13020       # archiving commands below assume that GNU ld is being used.
13021       if test "$with_gnu_ld" = yes; then
13022         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023         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'
13024
13025         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13026         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13027
13028         # If archive_cmds runs LD, not CC, wlarc should be empty
13029         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13030         #     investigate it a little bit more. (MM)
13031         wlarc='${wl}'
13032
13033         # ancient GNU ld didn't support --whole-archive et. al.
13034         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13035           $GREP 'no-whole-archive' > /dev/null; then
13036           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13037         else
13038           whole_archive_flag_spec_CXX=
13039         fi
13040       else
13041         with_gnu_ld=no
13042         wlarc=
13043
13044         # A generic and very simple default shared library creation
13045         # command for GNU C++ for the case where it uses the native
13046         # linker, instead of GNU ld.  If possible, this setting should
13047         # overridden to take advantage of the native linker features on
13048         # the platform it is being used on.
13049         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13050       fi
13051
13052       # Commands to make compiler produce verbose output that lists
13053       # what "hidden" libraries, object files and flags are used when
13054       # linking a shared library.
13055       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13056
13057     else
13058       GXX=no
13059       with_gnu_ld=no
13060       wlarc=
13061     fi
13062
13063     # PORTME: fill in a description of your system's C++ link characteristics
13064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13065 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13066     ld_shlibs_CXX=yes
13067     case $host_os in
13068       aix3*)
13069         # FIXME: insert proper C++ library support
13070         ld_shlibs_CXX=no
13071         ;;
13072       aix[4-9]*)
13073         if test "$host_cpu" = ia64; then
13074           # On IA64, the linker does run time linking by default, so we don't
13075           # have to do anything special.
13076           aix_use_runtimelinking=no
13077           exp_sym_flag='-Bexport'
13078           no_entry_flag=""
13079         else
13080           aix_use_runtimelinking=no
13081
13082           # Test if we are trying to use run time linking or normal
13083           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13084           # need to do runtime linking.
13085           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13086             for ld_flag in $LDFLAGS; do
13087               case $ld_flag in
13088               *-brtl*)
13089                 aix_use_runtimelinking=yes
13090                 break
13091                 ;;
13092               esac
13093             done
13094             ;;
13095           esac
13096
13097           exp_sym_flag='-bexport'
13098           no_entry_flag='-bnoentry'
13099         fi
13100
13101         # When large executables or shared objects are built, AIX ld can
13102         # have problems creating the table of contents.  If linking a library
13103         # or program results in "error TOC overflow" add -mminimal-toc to
13104         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13105         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13106
13107         archive_cmds_CXX=''
13108         hardcode_direct_CXX=yes
13109         hardcode_direct_absolute_CXX=yes
13110         hardcode_libdir_separator_CXX=':'
13111         link_all_deplibs_CXX=yes
13112         file_list_spec_CXX='${wl}-f,'
13113
13114         if test "$GXX" = yes; then
13115           case $host_os in aix4.[012]|aix4.[012].*)
13116           # We only want to do this on AIX 4.2 and lower, the check
13117           # below for broken collect2 doesn't work under 4.3+
13118           collect2name=`${CC} -print-prog-name=collect2`
13119           if test -f "$collect2name" &&
13120              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13121           then
13122             # We have reworked collect2
13123             :
13124           else
13125             # We have old collect2
13126             hardcode_direct_CXX=unsupported
13127             # It fails to find uninstalled libraries when the uninstalled
13128             # path is not listed in the libpath.  Setting hardcode_minus_L
13129             # to unsupported forces relinking
13130             hardcode_minus_L_CXX=yes
13131             hardcode_libdir_flag_spec_CXX='-L$libdir'
13132             hardcode_libdir_separator_CXX=
13133           fi
13134           esac
13135           shared_flag='-shared'
13136           if test "$aix_use_runtimelinking" = yes; then
13137             shared_flag="$shared_flag "'${wl}-G'
13138           fi
13139         else
13140           # not using gcc
13141           if test "$host_cpu" = ia64; then
13142           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13143           # chokes on -Wl,-G. The following line is correct:
13144           shared_flag='-G'
13145           else
13146             if test "$aix_use_runtimelinking" = yes; then
13147               shared_flag='${wl}-G'
13148             else
13149               shared_flag='${wl}-bM:SRE'
13150             fi
13151           fi
13152         fi
13153
13154         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13155         # It seems that -bexpall does not export symbols beginning with
13156         # underscore (_), so it is better to generate a list of symbols to
13157         # export.
13158         always_export_symbols_CXX=yes
13159         if test "$aix_use_runtimelinking" = yes; then
13160           # Warning - without using the other runtime loading flags (-brtl),
13161           # -berok will link without error, but may produce a broken library.
13162           allow_undefined_flag_CXX='-berok'
13163           # Determine the default libpath from the value encoded in an empty
13164           # executable.
13165           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h.  */
13167
13168 int
13169 main ()
13170 {
13171
13172   ;
13173   return 0;
13174 }
13175 _ACEOF
13176 if ac_fn_cxx_try_link "$LINENO"; then :
13177
13178 lt_aix_libpath_sed='
13179     /Import File Strings/,/^$/ {
13180         /^0/ {
13181             s/^0  *\(.*\)$/\1/
13182             p
13183         }
13184     }'
13185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13186 # Check for a 64-bit object if we didn't find anything.
13187 if test -z "$aix_libpath"; then
13188   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13189 fi
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext \
13192     conftest$ac_exeext conftest.$ac_ext
13193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13194
13195           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13196
13197           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"
13198         else
13199           if test "$host_cpu" = ia64; then
13200             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13201             allow_undefined_flag_CXX="-z nodefs"
13202             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"
13203           else
13204             # Determine the default libpath from the value encoded in an
13205             # empty executable.
13206             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h.  */
13208
13209 int
13210 main ()
13211 {
13212
13213   ;
13214   return 0;
13215 }
13216 _ACEOF
13217 if ac_fn_cxx_try_link "$LINENO"; then :
13218
13219 lt_aix_libpath_sed='
13220     /Import File Strings/,/^$/ {
13221         /^0/ {
13222             s/^0  *\(.*\)$/\1/
13223             p
13224         }
13225     }'
13226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13227 # Check for a 64-bit object if we didn't find anything.
13228 if test -z "$aix_libpath"; then
13229   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13230 fi
13231 fi
13232 rm -f core conftest.err conftest.$ac_objext \
13233     conftest$ac_exeext conftest.$ac_ext
13234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13235
13236             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13237             # Warning - without using the other run time loading flags,
13238             # -berok will link without error, but may produce a broken library.
13239             no_undefined_flag_CXX=' ${wl}-bernotok'
13240             allow_undefined_flag_CXX=' ${wl}-berok'
13241             # Exported symbols can be pulled into shared objects from archives
13242             whole_archive_flag_spec_CXX='$convenience'
13243             archive_cmds_need_lc_CXX=yes
13244             # This is similar to how AIX traditionally builds its shared
13245             # libraries.
13246             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'
13247           fi
13248         fi
13249         ;;
13250
13251       beos*)
13252         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13253           allow_undefined_flag_CXX=unsupported
13254           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13255           # support --undefined.  This deserves some investigation.  FIXME
13256           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13257         else
13258           ld_shlibs_CXX=no
13259         fi
13260         ;;
13261
13262       chorus*)
13263         case $cc_basename in
13264           *)
13265           # FIXME: insert proper C++ library support
13266           ld_shlibs_CXX=no
13267           ;;
13268         esac
13269         ;;
13270
13271       cygwin* | mingw* | pw32* | cegcc*)
13272         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13273         # as there is no search path for DLLs.
13274         hardcode_libdir_flag_spec_CXX='-L$libdir'
13275         allow_undefined_flag_CXX=unsupported
13276         always_export_symbols_CXX=no
13277         enable_shared_with_static_runtimes_CXX=yes
13278
13279         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13280           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'
13281           # If the export-symbols file already is a .def file (1st line
13282           # is EXPORTS), use it as is; otherwise, prepend...
13283           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13284             cp $export_symbols $output_objdir/$soname.def;
13285           else
13286             echo EXPORTS > $output_objdir/$soname.def;
13287             cat $export_symbols >> $output_objdir/$soname.def;
13288           fi~
13289           $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'
13290         else
13291           ld_shlibs_CXX=no
13292         fi
13293         ;;
13294       darwin* | rhapsody*)
13295
13296
13297   archive_cmds_need_lc_CXX=no
13298   hardcode_direct_CXX=no
13299   hardcode_automatic_CXX=yes
13300   hardcode_shlibpath_var_CXX=unsupported
13301   whole_archive_flag_spec_CXX=''
13302   link_all_deplibs_CXX=yes
13303   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13304   case $cc_basename in
13305      ifort*) _lt_dar_can_shared=yes ;;
13306      *) _lt_dar_can_shared=$GCC ;;
13307   esac
13308   if test "$_lt_dar_can_shared" = "yes"; then
13309     output_verbose_link_cmd=echo
13310     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}"
13311     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13312     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}"
13313     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}"
13314        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13315       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}"
13316       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}"
13317     fi
13318
13319   else
13320   ld_shlibs_CXX=no
13321   fi
13322
13323         ;;
13324
13325       dgux*)
13326         case $cc_basename in
13327           ec++*)
13328             # FIXME: insert proper C++ library support
13329             ld_shlibs_CXX=no
13330             ;;
13331           ghcx*)
13332             # Green Hills C++ Compiler
13333             # FIXME: insert proper C++ library support
13334             ld_shlibs_CXX=no
13335             ;;
13336           *)
13337             # FIXME: insert proper C++ library support
13338             ld_shlibs_CXX=no
13339             ;;
13340         esac
13341         ;;
13342
13343       freebsd[12]*)
13344         # C++ shared libraries reported to be fairly broken before
13345         # switch to ELF
13346         ld_shlibs_CXX=no
13347         ;;
13348
13349       freebsd-elf*)
13350         archive_cmds_need_lc_CXX=no
13351         ;;
13352
13353       freebsd* | dragonfly*)
13354         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13355         # conventions
13356         ld_shlibs_CXX=yes
13357         ;;
13358
13359       gnu*)
13360         ;;
13361
13362       hpux9*)
13363         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13364         hardcode_libdir_separator_CXX=:
13365         export_dynamic_flag_spec_CXX='${wl}-E'
13366         hardcode_direct_CXX=yes
13367         hardcode_minus_L_CXX=yes # Not in the search PATH,
13368                                              # but as the default
13369                                              # location of the library.
13370
13371         case $cc_basename in
13372           CC*)
13373             # FIXME: insert proper C++ library support
13374             ld_shlibs_CXX=no
13375             ;;
13376           aCC*)
13377             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'
13378             # Commands to make compiler produce verbose output that lists
13379             # what "hidden" libraries, object files and flags are used when
13380             # linking a shared library.
13381             #
13382             # There doesn't appear to be a way to prevent this compiler from
13383             # explicitly linking system object files so we need to strip them
13384             # from the output so that they don't get included in the library
13385             # dependencies.
13386             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'
13387             ;;
13388           *)
13389             if test "$GXX" = yes; then
13390               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'
13391             else
13392               # FIXME: insert proper C++ library support
13393               ld_shlibs_CXX=no
13394             fi
13395             ;;
13396         esac
13397         ;;
13398
13399       hpux10*|hpux11*)
13400         if test $with_gnu_ld = no; then
13401           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13402           hardcode_libdir_separator_CXX=:
13403
13404           case $host_cpu in
13405             hppa*64*|ia64*)
13406               ;;
13407             *)
13408               export_dynamic_flag_spec_CXX='${wl}-E'
13409               ;;
13410           esac
13411         fi
13412         case $host_cpu in
13413           hppa*64*|ia64*)
13414             hardcode_direct_CXX=no
13415             hardcode_shlibpath_var_CXX=no
13416             ;;
13417           *)
13418             hardcode_direct_CXX=yes
13419             hardcode_direct_absolute_CXX=yes
13420             hardcode_minus_L_CXX=yes # Not in the search PATH,
13421                                                  # but as the default
13422                                                  # location of the library.
13423             ;;
13424         esac
13425
13426         case $cc_basename in
13427           CC*)
13428             # FIXME: insert proper C++ library support
13429             ld_shlibs_CXX=no
13430             ;;
13431           aCC*)
13432             case $host_cpu in
13433               hppa*64*)
13434                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13435                 ;;
13436               ia64*)
13437                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13438                 ;;
13439               *)
13440                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13441                 ;;
13442             esac
13443             # Commands to make compiler produce verbose output that lists
13444             # what "hidden" libraries, object files and flags are used when
13445             # linking a shared library.
13446             #
13447             # There doesn't appear to be a way to prevent this compiler from
13448             # explicitly linking system object files so we need to strip them
13449             # from the output so that they don't get included in the library
13450             # dependencies.
13451             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'
13452             ;;
13453           *)
13454             if test "$GXX" = yes; then
13455               if test $with_gnu_ld = no; then
13456                 case $host_cpu in
13457                   hppa*64*)
13458                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13459                     ;;
13460                   ia64*)
13461                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13462                     ;;
13463                   *)
13464                     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'
13465                     ;;
13466                 esac
13467               fi
13468             else
13469               # FIXME: insert proper C++ library support
13470               ld_shlibs_CXX=no
13471             fi
13472             ;;
13473         esac
13474         ;;
13475
13476       interix[3-9]*)
13477         hardcode_direct_CXX=no
13478         hardcode_shlibpath_var_CXX=no
13479         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13480         export_dynamic_flag_spec_CXX='${wl}-E'
13481         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13482         # Instead, shared libraries are loaded at an image base (0x10000000 by
13483         # default) and relocated if they conflict, which is a slow very memory
13484         # consuming and fragmenting process.  To avoid this, we pick a random,
13485         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13486         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13487         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'
13488         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'
13489         ;;
13490       irix5* | irix6*)
13491         case $cc_basename in
13492           CC*)
13493             # SGI C++
13494             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'
13495
13496             # Archives containing C++ object files must be created using
13497             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13498             # necessary to make sure instantiated templates are included
13499             # in the archive.
13500             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13501             ;;
13502           *)
13503             if test "$GXX" = yes; then
13504               if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13506               else
13507                 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'
13508               fi
13509             fi
13510             link_all_deplibs_CXX=yes
13511             ;;
13512         esac
13513         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13514         hardcode_libdir_separator_CXX=:
13515         inherit_rpath_CXX=yes
13516         ;;
13517
13518       linux* | k*bsd*-gnu)
13519         case $cc_basename in
13520           KCC*)
13521             # Kuck and Associates, Inc. (KAI) C++ Compiler
13522
13523             # KCC will only create a shared library if the output file
13524             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13525             # to its proper name (with version) after linking.
13526             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'
13527             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'
13528             # Commands to make compiler produce verbose output that lists
13529             # what "hidden" libraries, object files and flags are used when
13530             # linking a shared library.
13531             #
13532             # There doesn't appear to be a way to prevent this compiler from
13533             # explicitly linking system object files so we need to strip them
13534             # from the output so that they don't get included in the library
13535             # dependencies.
13536             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'
13537
13538             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13539             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13540
13541             # Archives containing C++ object files must be created using
13542             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13543             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13544             ;;
13545           icpc* | ecpc* )
13546             # Intel C++
13547             with_gnu_ld=yes
13548             # version 8.0 and above of icpc choke on multiply defined symbols
13549             # if we add $predep_objects and $postdep_objects, however 7.1 and
13550             # earlier do not add the objects themselves.
13551             case `$CC -V 2>&1` in
13552               *"Version 7."*)
13553                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13554                 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'
13555                 ;;
13556               *)  # Version 8.0 or newer
13557                 tmp_idyn=
13558                 case $host_cpu in
13559                   ia64*) tmp_idyn=' -i_dynamic';;
13560                 esac
13561                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562                 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'
13563                 ;;
13564             esac
13565             archive_cmds_need_lc_CXX=no
13566             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13567             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13568             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13569             ;;
13570           pgCC* | pgcpp*)
13571             # Portland Group C++ compiler
13572             case `$CC -V` in
13573             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13574               prelink_cmds_CXX='tpldir=Template.dir~
13575                 rm -rf $tpldir~
13576                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13577                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13578               old_archive_cmds_CXX='tpldir=Template.dir~
13579                 rm -rf $tpldir~
13580                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13581                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13582                 $RANLIB $oldlib'
13583               archive_cmds_CXX='tpldir=Template.dir~
13584                 rm -rf $tpldir~
13585                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13586                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13587               archive_expsym_cmds_CXX='tpldir=Template.dir~
13588                 rm -rf $tpldir~
13589                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13590                 $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'
13591               ;;
13592             *) # Version 6 will use weak symbols
13593               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13594               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'
13595               ;;
13596             esac
13597
13598             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13599             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13600             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'
13601             ;;
13602           cxx*)
13603             # Compaq C++
13604             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13605             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'
13606
13607             runpath_var=LD_RUN_PATH
13608             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13609             hardcode_libdir_separator_CXX=:
13610
13611             # Commands to make compiler produce verbose output that lists
13612             # what "hidden" libraries, object files and flags are used when
13613             # linking a shared library.
13614             #
13615             # There doesn't appear to be a way to prevent this compiler from
13616             # explicitly linking system object files so we need to strip them
13617             # from the output so that they don't get included in the library
13618             # dependencies.
13619             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'
13620             ;;
13621           xl*)
13622             # IBM XL 8.0 on PPC, with GNU ld
13623             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13624             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13625             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626             if test "x$supports_anon_versioning" = xyes; then
13627               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13628                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13629                 echo "local: *; };" >> $output_objdir/$libname.ver~
13630                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13631             fi
13632             ;;
13633           *)
13634             case `$CC -V 2>&1 | sed 5q` in
13635             *Sun\ C*)
13636               # Sun C++ 5.9
13637               no_undefined_flag_CXX=' -zdefs'
13638               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13639               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'
13640               hardcode_libdir_flag_spec_CXX='-R$libdir'
13641               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'
13642               compiler_needs_object_CXX=yes
13643
13644               # Not sure whether something based on
13645               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13646               # would be better.
13647               output_verbose_link_cmd='echo'
13648
13649               # Archives containing C++ object files must be created using
13650               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13651               # necessary to make sure instantiated templates are included
13652               # in the archive.
13653               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13654               ;;
13655             esac
13656             ;;
13657         esac
13658         ;;
13659
13660       lynxos*)
13661         # FIXME: insert proper C++ library support
13662         ld_shlibs_CXX=no
13663         ;;
13664
13665       m88k*)
13666         # FIXME: insert proper C++ library support
13667         ld_shlibs_CXX=no
13668         ;;
13669
13670       mvs*)
13671         case $cc_basename in
13672           cxx*)
13673             # FIXME: insert proper C++ library support
13674             ld_shlibs_CXX=no
13675             ;;
13676           *)
13677             # FIXME: insert proper C++ library support
13678             ld_shlibs_CXX=no
13679             ;;
13680         esac
13681         ;;
13682
13683       netbsd*)
13684         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13685           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13686           wlarc=
13687           hardcode_libdir_flag_spec_CXX='-R$libdir'
13688           hardcode_direct_CXX=yes
13689           hardcode_shlibpath_var_CXX=no
13690         fi
13691         # Workaround some broken pre-1.5 toolchains
13692         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13693         ;;
13694
13695       *nto* | *qnx*)
13696         ld_shlibs_CXX=yes
13697         ;;
13698
13699       openbsd2*)
13700         # C++ shared libraries are fairly broken
13701         ld_shlibs_CXX=no
13702         ;;
13703
13704       openbsd*)
13705         if test -f /usr/libexec/ld.so; then
13706           hardcode_direct_CXX=yes
13707           hardcode_shlibpath_var_CXX=no
13708           hardcode_direct_absolute_CXX=yes
13709           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13710           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13711           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13712             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13713             export_dynamic_flag_spec_CXX='${wl}-E'
13714             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13715           fi
13716           output_verbose_link_cmd=echo
13717         else
13718           ld_shlibs_CXX=no
13719         fi
13720         ;;
13721
13722       osf3* | osf4* | osf5*)
13723         case $cc_basename in
13724           KCC*)
13725             # Kuck and Associates, Inc. (KAI) C++ Compiler
13726
13727             # KCC will only create a shared library if the output file
13728             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13729             # to its proper name (with version) after linking.
13730             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'
13731
13732             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13733             hardcode_libdir_separator_CXX=:
13734
13735             # Archives containing C++ object files must be created using
13736             # the KAI C++ compiler.
13737             case $host in
13738               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13739               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13740             esac
13741             ;;
13742           RCC*)
13743             # Rational C++ 2.4.1
13744             # FIXME: insert proper C++ library support
13745             ld_shlibs_CXX=no
13746             ;;
13747           cxx*)
13748             case $host in
13749               osf3*)
13750                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13751                 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'
13752                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13753                 ;;
13754               *)
13755                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13756                 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'
13757                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13758                   echo "-hidden">> $lib.exp~
13759                   $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~
13760                   $RM $lib.exp'
13761                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13762                 ;;
13763             esac
13764
13765             hardcode_libdir_separator_CXX=:
13766
13767             # Commands to make compiler produce verbose output that lists
13768             # what "hidden" libraries, object files and flags are used when
13769             # linking a shared library.
13770             #
13771             # There doesn't appear to be a way to prevent this compiler from
13772             # explicitly linking system object files so we need to strip them
13773             # from the output so that they don't get included in the library
13774             # dependencies.
13775             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'
13776             ;;
13777           *)
13778             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13779               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13780               case $host in
13781                 osf3*)
13782                   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'
13783                   ;;
13784                 *)
13785                   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'
13786                   ;;
13787               esac
13788
13789               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13790               hardcode_libdir_separator_CXX=:
13791
13792               # Commands to make compiler produce verbose output that lists
13793               # what "hidden" libraries, object files and flags are used when
13794               # linking a shared library.
13795               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13796
13797             else
13798               # FIXME: insert proper C++ library support
13799               ld_shlibs_CXX=no
13800             fi
13801             ;;
13802         esac
13803         ;;
13804
13805       psos*)
13806         # FIXME: insert proper C++ library support
13807         ld_shlibs_CXX=no
13808         ;;
13809
13810       sunos4*)
13811         case $cc_basename in
13812           CC*)
13813             # Sun C++ 4.x
13814             # FIXME: insert proper C++ library support
13815             ld_shlibs_CXX=no
13816             ;;
13817           lcc*)
13818             # Lucid
13819             # FIXME: insert proper C++ library support
13820             ld_shlibs_CXX=no
13821             ;;
13822           *)
13823             # FIXME: insert proper C++ library support
13824             ld_shlibs_CXX=no
13825             ;;
13826         esac
13827         ;;
13828
13829       solaris*)
13830         case $cc_basename in
13831           CC*)
13832             # Sun C++ 4.2, 5.x and Centerline C++
13833             archive_cmds_need_lc_CXX=yes
13834             no_undefined_flag_CXX=' -zdefs'
13835             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13836             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13837               $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'
13838
13839             hardcode_libdir_flag_spec_CXX='-R$libdir'
13840             hardcode_shlibpath_var_CXX=no
13841             case $host_os in
13842               solaris2.[0-5] | solaris2.[0-5].*) ;;
13843               *)
13844                 # The compiler driver will combine and reorder linker options,
13845                 # but understands `-z linker_flag'.
13846                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13847                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13848                 ;;
13849             esac
13850             link_all_deplibs_CXX=yes
13851
13852             output_verbose_link_cmd='echo'
13853
13854             # Archives containing C++ object files must be created using
13855             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13856             # necessary to make sure instantiated templates are included
13857             # in the archive.
13858             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13859             ;;
13860           gcx*)
13861             # Green Hills C++ Compiler
13862             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13863
13864             # The C++ compiler must be used to create the archive.
13865             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13866             ;;
13867           *)
13868             # GNU C++ compiler with Solaris linker
13869             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13870               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13871               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13872                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13873                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13874                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13875
13876                 # Commands to make compiler produce verbose output that lists
13877                 # what "hidden" libraries, object files and flags are used when
13878                 # linking a shared library.
13879                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13880               else
13881                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13882                 # platform.
13883                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13884                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13885                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13886
13887                 # Commands to make compiler produce verbose output that lists
13888                 # what "hidden" libraries, object files and flags are used when
13889                 # linking a shared library.
13890                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13891               fi
13892
13893               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13894               case $host_os in
13895                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13896                 *)
13897                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13898                   ;;
13899               esac
13900             fi
13901             ;;
13902         esac
13903         ;;
13904
13905     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13906       no_undefined_flag_CXX='${wl}-z,text'
13907       archive_cmds_need_lc_CXX=no
13908       hardcode_shlibpath_var_CXX=no
13909       runpath_var='LD_RUN_PATH'
13910
13911       case $cc_basename in
13912         CC*)
13913           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13914           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13915           ;;
13916         *)
13917           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13918           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13919           ;;
13920       esac
13921       ;;
13922
13923       sysv5* | sco3.2v5* | sco5v6*)
13924         # Note: We can NOT use -z defs as we might desire, because we do not
13925         # link with -lc, and that would cause any symbols used from libc to
13926         # always be unresolved, which means just about no library would
13927         # ever link correctly.  If we're not using GNU ld we use -z text
13928         # though, which does catch some bad symbols but isn't as heavy-handed
13929         # as -z defs.
13930         no_undefined_flag_CXX='${wl}-z,text'
13931         allow_undefined_flag_CXX='${wl}-z,nodefs'
13932         archive_cmds_need_lc_CXX=no
13933         hardcode_shlibpath_var_CXX=no
13934         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13935         hardcode_libdir_separator_CXX=':'
13936         link_all_deplibs_CXX=yes
13937         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13938         runpath_var='LD_RUN_PATH'
13939
13940         case $cc_basename in
13941           CC*)
13942             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13943             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13944             ;;
13945           *)
13946             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13947             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13948             ;;
13949         esac
13950       ;;
13951
13952       tandem*)
13953         case $cc_basename in
13954           NCC*)
13955             # NonStop-UX NCC 3.20
13956             # FIXME: insert proper C++ library support
13957             ld_shlibs_CXX=no
13958             ;;
13959           *)
13960             # FIXME: insert proper C++ library support
13961             ld_shlibs_CXX=no
13962             ;;
13963         esac
13964         ;;
13965
13966       vxworks*)
13967         # FIXME: insert proper C++ library support
13968         ld_shlibs_CXX=no
13969         ;;
13970
13971       *)
13972         # FIXME: insert proper C++ library support
13973         ld_shlibs_CXX=no
13974         ;;
13975     esac
13976
13977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13978 $as_echo "$ld_shlibs_CXX" >&6; }
13979     test "$ld_shlibs_CXX" = no && can_build_shared=no
13980
13981     GCC_CXX="$GXX"
13982     LD_CXX="$LD"
13983
13984     ## CAVEAT EMPTOR:
13985     ## There is no encapsulation within the following macros, do not change
13986     ## the running order or otherwise move them around unless you know exactly
13987     ## what you are doing...
13988     # Dependencies to place before and after the object being linked:
13989 predep_objects_CXX=
13990 postdep_objects_CXX=
13991 predeps_CXX=
13992 postdeps_CXX=
13993 compiler_lib_search_path_CXX=
13994
13995 cat > conftest.$ac_ext <<_LT_EOF
13996 class Foo
13997 {
13998 public:
13999   Foo (void) { a = 0; }
14000 private:
14001   int a;
14002 };
14003 _LT_EOF
14004
14005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14006   (eval $ac_compile) 2>&5
14007   ac_status=$?
14008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009   test $ac_status = 0; }; then
14010   # Parse the compiler output and extract the necessary
14011   # objects, libraries and library flags.
14012
14013   # Sentinel used to keep track of whether or not we are before
14014   # the conftest object file.
14015   pre_test_object_deps_done=no
14016
14017   for p in `eval "$output_verbose_link_cmd"`; do
14018     case $p in
14019
14020     -L* | -R* | -l*)
14021        # Some compilers place space between "-{L,R}" and the path.
14022        # Remove the space.
14023        if test $p = "-L" ||
14024           test $p = "-R"; then
14025          prev=$p
14026          continue
14027        else
14028          prev=
14029        fi
14030
14031        if test "$pre_test_object_deps_done" = no; then
14032          case $p in
14033          -L* | -R*)
14034            # Internal compiler library paths should come after those
14035            # provided the user.  The postdeps already come after the
14036            # user supplied libs so there is no need to process them.
14037            if test -z "$compiler_lib_search_path_CXX"; then
14038              compiler_lib_search_path_CXX="${prev}${p}"
14039            else
14040              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14041            fi
14042            ;;
14043          # The "-l" case would never come before the object being
14044          # linked, so don't bother handling this case.
14045          esac
14046        else
14047          if test -z "$postdeps_CXX"; then
14048            postdeps_CXX="${prev}${p}"
14049          else
14050            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14051          fi
14052        fi
14053        ;;
14054
14055     *.$objext)
14056        # This assumes that the test object file only shows up
14057        # once in the compiler output.
14058        if test "$p" = "conftest.$objext"; then
14059          pre_test_object_deps_done=yes
14060          continue
14061        fi
14062
14063        if test "$pre_test_object_deps_done" = no; then
14064          if test -z "$predep_objects_CXX"; then
14065            predep_objects_CXX="$p"
14066          else
14067            predep_objects_CXX="$predep_objects_CXX $p"
14068          fi
14069        else
14070          if test -z "$postdep_objects_CXX"; then
14071            postdep_objects_CXX="$p"
14072          else
14073            postdep_objects_CXX="$postdep_objects_CXX $p"
14074          fi
14075        fi
14076        ;;
14077
14078     *) ;; # Ignore the rest.
14079
14080     esac
14081   done
14082
14083   # Clean up.
14084   rm -f a.out a.exe
14085 else
14086   echo "libtool.m4: error: problem compiling CXX test program"
14087 fi
14088
14089 $RM -f confest.$objext
14090
14091 # PORTME: override above test on systems where it is broken
14092 case $host_os in
14093 interix[3-9]*)
14094   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14095   # hack all around it, let's just trust "g++" to DTRT.
14096   predep_objects_CXX=
14097   postdep_objects_CXX=
14098   postdeps_CXX=
14099   ;;
14100
14101 linux*)
14102   case `$CC -V 2>&1 | sed 5q` in
14103   *Sun\ C*)
14104     # Sun C++ 5.9
14105
14106     # The more standards-conforming stlport4 library is
14107     # incompatible with the Cstd library. Avoid specifying
14108     # it if it's in CXXFLAGS. Ignore libCrun as
14109     # -library=stlport4 depends on it.
14110     case " $CXX $CXXFLAGS " in
14111     *" -library=stlport4 "*)
14112       solaris_use_stlport4=yes
14113       ;;
14114     esac
14115
14116     if test "$solaris_use_stlport4" != yes; then
14117       postdeps_CXX='-library=Cstd -library=Crun'
14118     fi
14119     ;;
14120   esac
14121   ;;
14122
14123 solaris*)
14124   case $cc_basename in
14125   CC*)
14126     # The more standards-conforming stlport4 library is
14127     # incompatible with the Cstd library. Avoid specifying
14128     # it if it's in CXXFLAGS. Ignore libCrun as
14129     # -library=stlport4 depends on it.
14130     case " $CXX $CXXFLAGS " in
14131     *" -library=stlport4 "*)
14132       solaris_use_stlport4=yes
14133       ;;
14134     esac
14135
14136     # Adding this requires a known-good setup of shared libraries for
14137     # Sun compiler versions before 5.6, else PIC objects from an old
14138     # archive will be linked into the output, leading to subtle bugs.
14139     if test "$solaris_use_stlport4" != yes; then
14140       postdeps_CXX='-library=Cstd -library=Crun'
14141     fi
14142     ;;
14143   esac
14144   ;;
14145 esac
14146
14147
14148 case " $postdeps_CXX " in
14149 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14150 esac
14151  compiler_lib_search_dirs_CXX=
14152 if test -n "${compiler_lib_search_path_CXX}"; then
14153  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14154 fi
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
14185
14186     lt_prog_compiler_wl_CXX=
14187 lt_prog_compiler_pic_CXX=
14188 lt_prog_compiler_static_CXX=
14189
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14191 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14192
14193   # C++ specific cases for pic, static, wl, etc.
14194   if test "$GXX" = yes; then
14195     lt_prog_compiler_wl_CXX='-Wl,'
14196     lt_prog_compiler_static_CXX='-static'
14197
14198     case $host_os in
14199     aix*)
14200       # All AIX code is PIC.
14201       if test "$host_cpu" = ia64; then
14202         # AIX 5 now supports IA64 processor
14203         lt_prog_compiler_static_CXX='-Bstatic'
14204       fi
14205       ;;
14206
14207     amigaos*)
14208       case $host_cpu in
14209       powerpc)
14210             # see comment about AmigaOS4 .so support
14211             lt_prog_compiler_pic_CXX='-fPIC'
14212         ;;
14213       m68k)
14214             # FIXME: we need at least 68020 code to build shared libraries, but
14215             # adding the `-m68020' flag to GCC prevents building anything better,
14216             # like `-m68040'.
14217             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14218         ;;
14219       esac
14220       ;;
14221
14222     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14223       # PIC is the default for these OSes.
14224       ;;
14225     mingw* | cygwin* | os2* | pw32* | cegcc*)
14226       # This hack is so that the source file can tell whether it is being
14227       # built for inclusion in a dll (and should export symbols for example).
14228       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14229       # (--disable-auto-import) libraries
14230       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14231       ;;
14232     darwin* | rhapsody*)
14233       # PIC is the default on this platform
14234       # Common symbols not allowed in MH_DYLIB files
14235       lt_prog_compiler_pic_CXX='-fno-common'
14236       ;;
14237     *djgpp*)
14238       # DJGPP does not support shared libraries at all
14239       lt_prog_compiler_pic_CXX=
14240       ;;
14241     interix[3-9]*)
14242       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14243       # Instead, we relocate shared libraries at runtime.
14244       ;;
14245     sysv4*MP*)
14246       if test -d /usr/nec; then
14247         lt_prog_compiler_pic_CXX=-Kconform_pic
14248       fi
14249       ;;
14250     hpux*)
14251       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14252       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14253       # sets the default TLS model and affects inlining.
14254       case $host_cpu in
14255       hppa*64*)
14256         ;;
14257       *)
14258         lt_prog_compiler_pic_CXX='-fPIC'
14259         ;;
14260       esac
14261       ;;
14262     *qnx* | *nto*)
14263       # QNX uses GNU C++, but need to define -shared option too, otherwise
14264       # it will coredump.
14265       lt_prog_compiler_pic_CXX='-fPIC -shared'
14266       ;;
14267     *)
14268       lt_prog_compiler_pic_CXX='-fPIC'
14269       ;;
14270     esac
14271   else
14272     case $host_os in
14273       aix[4-9]*)
14274         # All AIX code is PIC.
14275         if test "$host_cpu" = ia64; then
14276           # AIX 5 now supports IA64 processor
14277           lt_prog_compiler_static_CXX='-Bstatic'
14278         else
14279           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14280         fi
14281         ;;
14282       chorus*)
14283         case $cc_basename in
14284         cxch68*)
14285           # Green Hills C++ Compiler
14286           # _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"
14287           ;;
14288         esac
14289         ;;
14290       dgux*)
14291         case $cc_basename in
14292           ec++*)
14293             lt_prog_compiler_pic_CXX='-KPIC'
14294             ;;
14295           ghcx*)
14296             # Green Hills C++ Compiler
14297             lt_prog_compiler_pic_CXX='-pic'
14298             ;;
14299           *)
14300             ;;
14301         esac
14302         ;;
14303       freebsd* | dragonfly*)
14304         # FreeBSD uses GNU C++
14305         ;;
14306       hpux9* | hpux10* | hpux11*)
14307         case $cc_basename in
14308           CC*)
14309             lt_prog_compiler_wl_CXX='-Wl,'
14310             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14311             if test "$host_cpu" != ia64; then
14312               lt_prog_compiler_pic_CXX='+Z'
14313             fi
14314             ;;
14315           aCC*)
14316             lt_prog_compiler_wl_CXX='-Wl,'
14317             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14318             case $host_cpu in
14319             hppa*64*|ia64*)
14320               # +Z the default
14321               ;;
14322             *)
14323               lt_prog_compiler_pic_CXX='+Z'
14324               ;;
14325             esac
14326             ;;
14327           *)
14328             ;;
14329         esac
14330         ;;
14331       interix*)
14332         # This is c89, which is MS Visual C++ (no shared libs)
14333         # Anyone wants to do a port?
14334         ;;
14335       irix5* | irix6* | nonstopux*)
14336         case $cc_basename in
14337           CC*)
14338             lt_prog_compiler_wl_CXX='-Wl,'
14339             lt_prog_compiler_static_CXX='-non_shared'
14340             # CC pic flag -KPIC is the default.
14341             ;;
14342           *)
14343             ;;
14344         esac
14345         ;;
14346       linux* | k*bsd*-gnu)
14347         case $cc_basename in
14348           KCC*)
14349             # KAI C++ Compiler
14350             lt_prog_compiler_wl_CXX='--backend -Wl,'
14351             lt_prog_compiler_pic_CXX='-fPIC'
14352             ;;
14353           ecpc* )
14354             # old Intel C++ for x86_64 which still supported -KPIC.
14355             lt_prog_compiler_wl_CXX='-Wl,'
14356             lt_prog_compiler_pic_CXX='-KPIC'
14357             lt_prog_compiler_static_CXX='-static'
14358             ;;
14359           icpc* )
14360             # Intel C++, used to be incompatible with GCC.
14361             # ICC 10 doesn't accept -KPIC any more.
14362             lt_prog_compiler_wl_CXX='-Wl,'
14363             lt_prog_compiler_pic_CXX='-fPIC'
14364             lt_prog_compiler_static_CXX='-static'
14365             ;;
14366           pgCC* | pgcpp*)
14367             # Portland Group C++ compiler
14368             lt_prog_compiler_wl_CXX='-Wl,'
14369             lt_prog_compiler_pic_CXX='-fpic'
14370             lt_prog_compiler_static_CXX='-Bstatic'
14371             ;;
14372           cxx*)
14373             # Compaq C++
14374             # Make sure the PIC flag is empty.  It appears that all Alpha
14375             # Linux and Compaq Tru64 Unix objects are PIC.
14376             lt_prog_compiler_pic_CXX=
14377             lt_prog_compiler_static_CXX='-non_shared'
14378             ;;
14379           xlc* | xlC*)
14380             # IBM XL 8.0 on PPC
14381             lt_prog_compiler_wl_CXX='-Wl,'
14382             lt_prog_compiler_pic_CXX='-qpic'
14383             lt_prog_compiler_static_CXX='-qstaticlink'
14384             ;;
14385           *)
14386             case `$CC -V 2>&1 | sed 5q` in
14387             *Sun\ C*)
14388               # Sun C++ 5.9
14389               lt_prog_compiler_pic_CXX='-KPIC'
14390               lt_prog_compiler_static_CXX='-Bstatic'
14391               lt_prog_compiler_wl_CXX='-Qoption ld '
14392               ;;
14393             esac
14394             ;;
14395         esac
14396         ;;
14397       lynxos*)
14398         ;;
14399       m88k*)
14400         ;;
14401       mvs*)
14402         case $cc_basename in
14403           cxx*)
14404             lt_prog_compiler_pic_CXX='-W c,exportall'
14405             ;;
14406           *)
14407             ;;
14408         esac
14409         ;;
14410       netbsd*)
14411         ;;
14412       *qnx* | *nto*)
14413         # QNX uses GNU C++, but need to define -shared option too, otherwise
14414         # it will coredump.
14415         lt_prog_compiler_pic_CXX='-fPIC -shared'
14416         ;;
14417       osf3* | osf4* | osf5*)
14418         case $cc_basename in
14419           KCC*)
14420             lt_prog_compiler_wl_CXX='--backend -Wl,'
14421             ;;
14422           RCC*)
14423             # Rational C++ 2.4.1
14424             lt_prog_compiler_pic_CXX='-pic'
14425             ;;
14426           cxx*)
14427             # Digital/Compaq C++
14428             lt_prog_compiler_wl_CXX='-Wl,'
14429             # Make sure the PIC flag is empty.  It appears that all Alpha
14430             # Linux and Compaq Tru64 Unix objects are PIC.
14431             lt_prog_compiler_pic_CXX=
14432             lt_prog_compiler_static_CXX='-non_shared'
14433             ;;
14434           *)
14435             ;;
14436         esac
14437         ;;
14438       psos*)
14439         ;;
14440       solaris*)
14441         case $cc_basename in
14442           CC*)
14443             # Sun C++ 4.2, 5.x and Centerline C++
14444             lt_prog_compiler_pic_CXX='-KPIC'
14445             lt_prog_compiler_static_CXX='-Bstatic'
14446             lt_prog_compiler_wl_CXX='-Qoption ld '
14447             ;;
14448           gcx*)
14449             # Green Hills C++ Compiler
14450             lt_prog_compiler_pic_CXX='-PIC'
14451             ;;
14452           *)
14453             ;;
14454         esac
14455         ;;
14456       sunos4*)
14457         case $cc_basename in
14458           CC*)
14459             # Sun C++ 4.x
14460             lt_prog_compiler_pic_CXX='-pic'
14461             lt_prog_compiler_static_CXX='-Bstatic'
14462             ;;
14463           lcc*)
14464             # Lucid
14465             lt_prog_compiler_pic_CXX='-pic'
14466             ;;
14467           *)
14468             ;;
14469         esac
14470         ;;
14471       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14472         case $cc_basename in
14473           CC*)
14474             lt_prog_compiler_wl_CXX='-Wl,'
14475             lt_prog_compiler_pic_CXX='-KPIC'
14476             lt_prog_compiler_static_CXX='-Bstatic'
14477             ;;
14478         esac
14479         ;;
14480       tandem*)
14481         case $cc_basename in
14482           NCC*)
14483             # NonStop-UX NCC 3.20
14484             lt_prog_compiler_pic_CXX='-KPIC'
14485             ;;
14486           *)
14487             ;;
14488         esac
14489         ;;
14490       vxworks*)
14491         ;;
14492       *)
14493         lt_prog_compiler_can_build_shared_CXX=no
14494         ;;
14495     esac
14496   fi
14497
14498 case $host_os in
14499   # For platforms which do not support PIC, -DPIC is meaningless:
14500   *djgpp*)
14501     lt_prog_compiler_pic_CXX=
14502     ;;
14503   *)
14504     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14505     ;;
14506 esac
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14508 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14509
14510
14511
14512 #
14513 # Check to make sure the PIC flag actually works.
14514 #
14515 if test -n "$lt_prog_compiler_pic_CXX"; then
14516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14517 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14518 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14519   $as_echo_n "(cached) " >&6
14520 else
14521   lt_cv_prog_compiler_pic_works_CXX=no
14522    ac_outfile=conftest.$ac_objext
14523    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14524    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14525    # Insert the option either (1) after the last *FLAGS variable, or
14526    # (2) before a word containing "conftest.", or (3) at the end.
14527    # Note that $ac_compile itself does not contain backslashes and begins
14528    # with a dollar sign (not a hyphen), so the echo should work correctly.
14529    # The option is referenced via a variable to avoid confusing sed.
14530    lt_compile=`echo "$ac_compile" | $SED \
14531    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14533    -e 's:$: $lt_compiler_flag:'`
14534    (eval echo "\"\$as_me:14534: $lt_compile\"" >&5)
14535    (eval "$lt_compile" 2>conftest.err)
14536    ac_status=$?
14537    cat conftest.err >&5
14538    echo "$as_me:14538: \$? = $ac_status" >&5
14539    if (exit $ac_status) && test -s "$ac_outfile"; then
14540      # The compiler can only warn and ignore the option if not recognized
14541      # So say no if there are warnings other than the usual output.
14542      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14543      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14544      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14545        lt_cv_prog_compiler_pic_works_CXX=yes
14546      fi
14547    fi
14548    $RM conftest*
14549
14550 fi
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14552 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14553
14554 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14555     case $lt_prog_compiler_pic_CXX in
14556      "" | " "*) ;;
14557      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14558      esac
14559 else
14560     lt_prog_compiler_pic_CXX=
14561      lt_prog_compiler_can_build_shared_CXX=no
14562 fi
14563
14564 fi
14565
14566
14567
14568 #
14569 # Check to make sure the static flag actually works.
14570 #
14571 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14573 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14574 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14575   $as_echo_n "(cached) " >&6
14576 else
14577   lt_cv_prog_compiler_static_works_CXX=no
14578    save_LDFLAGS="$LDFLAGS"
14579    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14580    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14581    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14582      # The linker can only warn and ignore the option if not recognized
14583      # So say no if there are warnings
14584      if test -s conftest.err; then
14585        # Append any errors to the config.log.
14586        cat conftest.err 1>&5
14587        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14588        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14589        if diff conftest.exp conftest.er2 >/dev/null; then
14590          lt_cv_prog_compiler_static_works_CXX=yes
14591        fi
14592      else
14593        lt_cv_prog_compiler_static_works_CXX=yes
14594      fi
14595    fi
14596    $RM -r conftest*
14597    LDFLAGS="$save_LDFLAGS"
14598
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14601 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14602
14603 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14604     :
14605 else
14606     lt_prog_compiler_static_CXX=
14607 fi
14608
14609
14610
14611
14612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14613 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14614 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14615   $as_echo_n "(cached) " >&6
14616 else
14617   lt_cv_prog_compiler_c_o_CXX=no
14618    $RM -r conftest 2>/dev/null
14619    mkdir conftest
14620    cd conftest
14621    mkdir out
14622    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14623
14624    lt_compiler_flag="-o out/conftest2.$ac_objext"
14625    # Insert the option either (1) after the last *FLAGS variable, or
14626    # (2) before a word containing "conftest.", or (3) at the end.
14627    # Note that $ac_compile itself does not contain backslashes and begins
14628    # with a dollar sign (not a hyphen), so the echo should work correctly.
14629    lt_compile=`echo "$ac_compile" | $SED \
14630    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632    -e 's:$: $lt_compiler_flag:'`
14633    (eval echo "\"\$as_me:14633: $lt_compile\"" >&5)
14634    (eval "$lt_compile" 2>out/conftest.err)
14635    ac_status=$?
14636    cat out/conftest.err >&5
14637    echo "$as_me:14637: \$? = $ac_status" >&5
14638    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14639    then
14640      # The compiler can only warn and ignore the option if not recognized
14641      # So say no if there are warnings
14642      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14643      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14644      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14645        lt_cv_prog_compiler_c_o_CXX=yes
14646      fi
14647    fi
14648    chmod u+w . 2>&5
14649    $RM conftest*
14650    # SGI C++ compiler will create directory out/ii_files/ for
14651    # template instantiation
14652    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14653    $RM out/* && rmdir out
14654    cd ..
14655    $RM -r conftest
14656    $RM conftest*
14657
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14660 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14661
14662
14663
14664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14665 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14666 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14667   $as_echo_n "(cached) " >&6
14668 else
14669   lt_cv_prog_compiler_c_o_CXX=no
14670    $RM -r conftest 2>/dev/null
14671    mkdir conftest
14672    cd conftest
14673    mkdir out
14674    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14675
14676    lt_compiler_flag="-o out/conftest2.$ac_objext"
14677    # Insert the option either (1) after the last *FLAGS variable, or
14678    # (2) before a word containing "conftest.", or (3) at the end.
14679    # Note that $ac_compile itself does not contain backslashes and begins
14680    # with a dollar sign (not a hyphen), so the echo should work correctly.
14681    lt_compile=`echo "$ac_compile" | $SED \
14682    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14683    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14684    -e 's:$: $lt_compiler_flag:'`
14685    (eval echo "\"\$as_me:14685: $lt_compile\"" >&5)
14686    (eval "$lt_compile" 2>out/conftest.err)
14687    ac_status=$?
14688    cat out/conftest.err >&5
14689    echo "$as_me:14689: \$? = $ac_status" >&5
14690    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14691    then
14692      # The compiler can only warn and ignore the option if not recognized
14693      # So say no if there are warnings
14694      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14695      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14696      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14697        lt_cv_prog_compiler_c_o_CXX=yes
14698      fi
14699    fi
14700    chmod u+w . 2>&5
14701    $RM conftest*
14702    # SGI C++ compiler will create directory out/ii_files/ for
14703    # template instantiation
14704    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14705    $RM out/* && rmdir out
14706    cd ..
14707    $RM -r conftest
14708    $RM conftest*
14709
14710 fi
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14712 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14713
14714
14715
14716
14717 hard_links="nottested"
14718 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14719   # do not overwrite the value of need_locks provided by the user
14720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14721 $as_echo_n "checking if we can lock with hard links... " >&6; }
14722   hard_links=yes
14723   $RM conftest*
14724   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14725   touch conftest.a
14726   ln conftest.a conftest.b 2>&5 || hard_links=no
14727   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14729 $as_echo "$hard_links" >&6; }
14730   if test "$hard_links" = no; then
14731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14732 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14733     need_locks=warn
14734   fi
14735 else
14736   need_locks=no
14737 fi
14738
14739
14740
14741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14742 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14743
14744   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14745   case $host_os in
14746   aix[4-9]*)
14747     # If we're using GNU nm, then we don't want the "-C" option.
14748     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14749     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14750       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'
14751     else
14752       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'
14753     fi
14754     ;;
14755   pw32*)
14756     export_symbols_cmds_CXX="$ltdll_cmds"
14757   ;;
14758   cygwin* | mingw* | cegcc*)
14759     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'
14760   ;;
14761   *)
14762     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14763   ;;
14764   esac
14765   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14766
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14768 $as_echo "$ld_shlibs_CXX" >&6; }
14769 test "$ld_shlibs_CXX" = no && can_build_shared=no
14770
14771 with_gnu_ld_CXX=$with_gnu_ld
14772
14773
14774
14775
14776
14777
14778 #
14779 # Do we need to explicitly link libc?
14780 #
14781 case "x$archive_cmds_need_lc_CXX" in
14782 x|xyes)
14783   # Assume -lc should be added
14784   archive_cmds_need_lc_CXX=yes
14785
14786   if test "$enable_shared" = yes && test "$GCC" = yes; then
14787     case $archive_cmds_CXX in
14788     *'~'*)
14789       # FIXME: we may have to deal with multi-command sequences.
14790       ;;
14791     '$CC '*)
14792       # Test whether the compiler implicitly links with -lc since on some
14793       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14794       # to ld, don't add -lc before -lgcc.
14795       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14796 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14797       $RM conftest*
14798       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14799
14800       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14801   (eval $ac_compile) 2>&5
14802   ac_status=$?
14803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14804   test $ac_status = 0; } 2>conftest.err; then
14805         soname=conftest
14806         lib=conftest
14807         libobjs=conftest.$ac_objext
14808         deplibs=
14809         wl=$lt_prog_compiler_wl_CXX
14810         pic_flag=$lt_prog_compiler_pic_CXX
14811         compiler_flags=-v
14812         linker_flags=-v
14813         verstring=
14814         output_objdir=.
14815         libname=conftest
14816         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14817         allow_undefined_flag_CXX=
14818         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14819   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14820   ac_status=$?
14821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14822   test $ac_status = 0; }
14823         then
14824           archive_cmds_need_lc_CXX=no
14825         else
14826           archive_cmds_need_lc_CXX=yes
14827         fi
14828         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14829       else
14830         cat conftest.err 1>&5
14831       fi
14832       $RM conftest*
14833       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14834 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14835       ;;
14836     esac
14837   fi
14838   ;;
14839 esac
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
14903
14904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14905 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14906
14907 library_names_spec=
14908 libname_spec='lib$name'
14909 soname_spec=
14910 shrext_cmds=".so"
14911 postinstall_cmds=
14912 postuninstall_cmds=
14913 finish_cmds=
14914 finish_eval=
14915 shlibpath_var=
14916 shlibpath_overrides_runpath=unknown
14917 version_type=none
14918 dynamic_linker="$host_os ld.so"
14919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14920 need_lib_prefix=unknown
14921 hardcode_into_libs=no
14922
14923 # when you set need_version to no, make sure it does not cause -set_version
14924 # flags to be left without arguments
14925 need_version=unknown
14926
14927 case $host_os in
14928 aix3*)
14929   version_type=linux
14930   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14931   shlibpath_var=LIBPATH
14932
14933   # AIX 3 has no versioning support, so we append a major version to the name.
14934   soname_spec='${libname}${release}${shared_ext}$major'
14935   ;;
14936
14937 aix[4-9]*)
14938   version_type=linux
14939   need_lib_prefix=no
14940   need_version=no
14941   hardcode_into_libs=yes
14942   if test "$host_cpu" = ia64; then
14943     # AIX 5 supports IA64
14944     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14945     shlibpath_var=LD_LIBRARY_PATH
14946   else
14947     # With GCC up to 2.95.x, collect2 would create an import file
14948     # for dependence libraries.  The import file would start with
14949     # the line `#! .'.  This would cause the generated library to
14950     # depend on `.', always an invalid library.  This was fixed in
14951     # development snapshots of GCC prior to 3.0.
14952     case $host_os in
14953       aix4 | aix4.[01] | aix4.[01].*)
14954       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14955            echo ' yes '
14956            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14957         :
14958       else
14959         can_build_shared=no
14960       fi
14961       ;;
14962     esac
14963     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14964     # soname into executable. Probably we can add versioning support to
14965     # collect2, so additional links can be useful in future.
14966     if test "$aix_use_runtimelinking" = yes; then
14967       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14968       # instead of lib<name>.a to let people know that these are not
14969       # typical AIX shared libraries.
14970       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971     else
14972       # We preserve .a as extension for shared libraries through AIX4.2
14973       # and later when we are not doing run time linking.
14974       library_names_spec='${libname}${release}.a $libname.a'
14975       soname_spec='${libname}${release}${shared_ext}$major'
14976     fi
14977     shlibpath_var=LIBPATH
14978   fi
14979   ;;
14980
14981 amigaos*)
14982   case $host_cpu in
14983   powerpc)
14984     # Since July 2007 AmigaOS4 officially supports .so libraries.
14985     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987     ;;
14988   m68k)
14989     library_names_spec='$libname.ixlibrary $libname.a'
14990     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14991     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'
14992     ;;
14993   esac
14994   ;;
14995
14996 beos*)
14997   library_names_spec='${libname}${shared_ext}'
14998   dynamic_linker="$host_os ld.so"
14999   shlibpath_var=LIBRARY_PATH
15000   ;;
15001
15002 bsdi[45]*)
15003   version_type=linux
15004   need_version=no
15005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006   soname_spec='${libname}${release}${shared_ext}$major'
15007   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15008   shlibpath_var=LD_LIBRARY_PATH
15009   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15010   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15011   # the default ld.so.conf also contains /usr/contrib/lib and
15012   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15013   # libtool to hard-code these into programs
15014   ;;
15015
15016 cygwin* | mingw* | pw32* | cegcc*)
15017   version_type=windows
15018   shrext_cmds=".dll"
15019   need_version=no
15020   need_lib_prefix=no
15021
15022   case $GCC,$host_os in
15023   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15024     library_names_spec='$libname.dll.a'
15025     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15026     postinstall_cmds='base_file=`basename \${file}`~
15027       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15028       dldir=$destdir/`dirname \$dlpath`~
15029       test -d \$dldir || mkdir -p \$dldir~
15030       $install_prog $dir/$dlname \$dldir/$dlname~
15031       chmod a+x \$dldir/$dlname~
15032       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15033         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15034       fi'
15035     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15036       dlpath=$dir/\$dldll~
15037        $RM \$dlpath'
15038     shlibpath_overrides_runpath=yes
15039
15040     case $host_os in
15041     cygwin*)
15042       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15043       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15044       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15045       ;;
15046     mingw* | cegcc*)
15047       # MinGW DLLs use traditional 'lib' prefix
15048       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15049       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15050       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15051         # It is most probably a Windows format PATH printed by
15052         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15053         # path with ; separators, and with drive letters. We can handle the
15054         # drive letters (cygwin fileutils understands them), so leave them,
15055         # especially as we might pass files found there to a mingw objdump,
15056         # which wouldn't understand a cygwinified path. Ahh.
15057         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15058       else
15059         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15060       fi
15061       ;;
15062     pw32*)
15063       # pw32 DLLs use 'pw' prefix rather than 'lib'
15064       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15065       ;;
15066     esac
15067     ;;
15068
15069   *)
15070     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15071     ;;
15072   esac
15073   dynamic_linker='Win32 ld.exe'
15074   # FIXME: first we should search . and the directory the executable is in
15075   shlibpath_var=PATH
15076   ;;
15077
15078 darwin* | rhapsody*)
15079   dynamic_linker="$host_os dyld"
15080   version_type=darwin
15081   need_lib_prefix=no
15082   need_version=no
15083   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15084   soname_spec='${libname}${release}${major}$shared_ext'
15085   shlibpath_overrides_runpath=yes
15086   shlibpath_var=DYLD_LIBRARY_PATH
15087   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15088
15089   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15090   ;;
15091
15092 dgux*)
15093   version_type=linux
15094   need_lib_prefix=no
15095   need_version=no
15096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15097   soname_spec='${libname}${release}${shared_ext}$major'
15098   shlibpath_var=LD_LIBRARY_PATH
15099   ;;
15100
15101 freebsd1*)
15102   dynamic_linker=no
15103   ;;
15104
15105 freebsd* | dragonfly*)
15106   # DragonFly does not have aout.  When/if they implement a new
15107   # versioning mechanism, adjust this.
15108   if test -x /usr/bin/objformat; then
15109     objformat=`/usr/bin/objformat`
15110   else
15111     case $host_os in
15112     freebsd[123]*) objformat=aout ;;
15113     *) objformat=elf ;;
15114     esac
15115   fi
15116   version_type=freebsd-$objformat
15117   case $version_type in
15118     freebsd-elf*)
15119       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15120       need_version=no
15121       need_lib_prefix=no
15122       ;;
15123     freebsd-*)
15124       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15125       need_version=yes
15126       ;;
15127   esac
15128   shlibpath_var=LD_LIBRARY_PATH
15129   case $host_os in
15130   freebsd2*)
15131     shlibpath_overrides_runpath=yes
15132     ;;
15133   freebsd3.[01]* | freebsdelf3.[01]*)
15134     shlibpath_overrides_runpath=yes
15135     hardcode_into_libs=yes
15136     ;;
15137   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15138   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15139     shlibpath_overrides_runpath=no
15140     hardcode_into_libs=yes
15141     ;;
15142   *) # from 4.6 on, and DragonFly
15143     shlibpath_overrides_runpath=yes
15144     hardcode_into_libs=yes
15145     ;;
15146   esac
15147   ;;
15148
15149 gnu*)
15150   version_type=linux
15151   need_lib_prefix=no
15152   need_version=no
15153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15154   soname_spec='${libname}${release}${shared_ext}$major'
15155   shlibpath_var=LD_LIBRARY_PATH
15156   hardcode_into_libs=yes
15157   ;;
15158
15159 hpux9* | hpux10* | hpux11*)
15160   # Give a soname corresponding to the major version so that dld.sl refuses to
15161   # link against other versions.
15162   version_type=sunos
15163   need_lib_prefix=no
15164   need_version=no
15165   case $host_cpu in
15166   ia64*)
15167     shrext_cmds='.so'
15168     hardcode_into_libs=yes
15169     dynamic_linker="$host_os dld.so"
15170     shlibpath_var=LD_LIBRARY_PATH
15171     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173     soname_spec='${libname}${release}${shared_ext}$major'
15174     if test "X$HPUX_IA64_MODE" = X32; then
15175       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15176     else
15177       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15178     fi
15179     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15180     ;;
15181   hppa*64*)
15182     shrext_cmds='.sl'
15183     hardcode_into_libs=yes
15184     dynamic_linker="$host_os dld.sl"
15185     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15186     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188     soname_spec='${libname}${release}${shared_ext}$major'
15189     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15190     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15191     ;;
15192   *)
15193     shrext_cmds='.sl'
15194     dynamic_linker="$host_os dld.sl"
15195     shlibpath_var=SHLIB_PATH
15196     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198     soname_spec='${libname}${release}${shared_ext}$major'
15199     ;;
15200   esac
15201   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15202   postinstall_cmds='chmod 555 $lib'
15203   ;;
15204
15205 interix[3-9]*)
15206   version_type=linux
15207   need_lib_prefix=no
15208   need_version=no
15209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15210   soname_spec='${libname}${release}${shared_ext}$major'
15211   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15212   shlibpath_var=LD_LIBRARY_PATH
15213   shlibpath_overrides_runpath=no
15214   hardcode_into_libs=yes
15215   ;;
15216
15217 irix5* | irix6* | nonstopux*)
15218   case $host_os in
15219     nonstopux*) version_type=nonstopux ;;
15220     *)
15221         if test "$lt_cv_prog_gnu_ld" = yes; then
15222                 version_type=linux
15223         else
15224                 version_type=irix
15225         fi ;;
15226   esac
15227   need_lib_prefix=no
15228   need_version=no
15229   soname_spec='${libname}${release}${shared_ext}$major'
15230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15231   case $host_os in
15232   irix5* | nonstopux*)
15233     libsuff= shlibsuff=
15234     ;;
15235   *)
15236     case $LD in # libtool.m4 will add one of these switches to LD
15237     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15238       libsuff= shlibsuff= libmagic=32-bit;;
15239     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15240       libsuff=32 shlibsuff=N32 libmagic=N32;;
15241     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15242       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15243     *) libsuff= shlibsuff= libmagic=never-match;;
15244     esac
15245     ;;
15246   esac
15247   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15248   shlibpath_overrides_runpath=no
15249   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15250   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15251   hardcode_into_libs=yes
15252   ;;
15253
15254 # No shared lib support for Linux oldld, aout, or coff.
15255 linux*oldld* | linux*aout* | linux*coff*)
15256   dynamic_linker=no
15257   ;;
15258
15259 # This must be Linux ELF.
15260 linux* | k*bsd*-gnu)
15261   version_type=linux
15262   need_lib_prefix=no
15263   need_version=no
15264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265   soname_spec='${libname}${release}${shared_ext}$major'
15266   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15267   shlibpath_var=LD_LIBRARY_PATH
15268   shlibpath_overrides_runpath=no
15269   # Some binutils ld are patched to set DT_RUNPATH
15270   save_LDFLAGS=$LDFLAGS
15271   save_libdir=$libdir
15272   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15273        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h.  */
15276
15277 int
15278 main ()
15279 {
15280
15281   ;
15282   return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_cxx_try_link "$LINENO"; then :
15286   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15287   shlibpath_overrides_runpath=yes
15288 fi
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291     conftest$ac_exeext conftest.$ac_ext
15292   LDFLAGS=$save_LDFLAGS
15293   libdir=$save_libdir
15294
15295   # This implies no fast_install, which is unacceptable.
15296   # Some rework will be needed to allow for fast_install
15297   # before this can be enabled.
15298   hardcode_into_libs=yes
15299
15300   # Append ld.so.conf contents to the search path
15301   if test -f /etc/ld.so.conf; then
15302     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' ' '`
15303     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15304   fi
15305
15306   # We used to test for /lib/ld.so.1 and disable shared libraries on
15307   # powerpc, because MkLinux only supported shared libraries with the
15308   # GNU dynamic linker.  Since this was broken with cross compilers,
15309   # most powerpc-linux boxes support dynamic linking these days and
15310   # people can always --disable-shared, the test was removed, and we
15311   # assume the GNU/Linux dynamic linker is in use.
15312   dynamic_linker='GNU/Linux ld.so'
15313   ;;
15314
15315 netbsd*)
15316   version_type=sunos
15317   need_lib_prefix=no
15318   need_version=no
15319   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15321     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15322     dynamic_linker='NetBSD (a.out) ld.so'
15323   else
15324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15325     soname_spec='${libname}${release}${shared_ext}$major'
15326     dynamic_linker='NetBSD ld.elf_so'
15327   fi
15328   shlibpath_var=LD_LIBRARY_PATH
15329   shlibpath_overrides_runpath=yes
15330   hardcode_into_libs=yes
15331   ;;
15332
15333 newsos6)
15334   version_type=linux
15335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336   shlibpath_var=LD_LIBRARY_PATH
15337   shlibpath_overrides_runpath=yes
15338   ;;
15339
15340 *nto* | *qnx*)
15341   version_type=qnx
15342   need_lib_prefix=no
15343   need_version=no
15344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345   soname_spec='${libname}${release}${shared_ext}$major'
15346   shlibpath_var=LD_LIBRARY_PATH
15347   shlibpath_overrides_runpath=no
15348   hardcode_into_libs=yes
15349   dynamic_linker='ldqnx.so'
15350   ;;
15351
15352 openbsd*)
15353   version_type=sunos
15354   sys_lib_dlsearch_path_spec="/usr/lib"
15355   need_lib_prefix=no
15356   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15357   case $host_os in
15358     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15359     *)                          need_version=no  ;;
15360   esac
15361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15362   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15363   shlibpath_var=LD_LIBRARY_PATH
15364   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15365     case $host_os in
15366       openbsd2.[89] | openbsd2.[89].*)
15367         shlibpath_overrides_runpath=no
15368         ;;
15369       *)
15370         shlibpath_overrides_runpath=yes
15371         ;;
15372       esac
15373   else
15374     shlibpath_overrides_runpath=yes
15375   fi
15376   ;;
15377
15378 os2*)
15379   libname_spec='$name'
15380   shrext_cmds=".dll"
15381   need_lib_prefix=no
15382   library_names_spec='$libname${shared_ext} $libname.a'
15383   dynamic_linker='OS/2 ld.exe'
15384   shlibpath_var=LIBPATH
15385   ;;
15386
15387 osf3* | osf4* | osf5*)
15388   version_type=osf
15389   need_lib_prefix=no
15390   need_version=no
15391   soname_spec='${libname}${release}${shared_ext}$major'
15392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393   shlibpath_var=LD_LIBRARY_PATH
15394   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15395   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15396   ;;
15397
15398 rdos*)
15399   dynamic_linker=no
15400   ;;
15401
15402 solaris*)
15403   version_type=linux
15404   need_lib_prefix=no
15405   need_version=no
15406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407   soname_spec='${libname}${release}${shared_ext}$major'
15408   shlibpath_var=LD_LIBRARY_PATH
15409   shlibpath_overrides_runpath=yes
15410   hardcode_into_libs=yes
15411   # ldd complains unless libraries are executable
15412   postinstall_cmds='chmod +x $lib'
15413   ;;
15414
15415 sunos4*)
15416   version_type=sunos
15417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15418   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15419   shlibpath_var=LD_LIBRARY_PATH
15420   shlibpath_overrides_runpath=yes
15421   if test "$with_gnu_ld" = yes; then
15422     need_lib_prefix=no
15423   fi
15424   need_version=yes
15425   ;;
15426
15427 sysv4 | sysv4.3*)
15428   version_type=linux
15429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430   soname_spec='${libname}${release}${shared_ext}$major'
15431   shlibpath_var=LD_LIBRARY_PATH
15432   case $host_vendor in
15433     sni)
15434       shlibpath_overrides_runpath=no
15435       need_lib_prefix=no
15436       runpath_var=LD_RUN_PATH
15437       ;;
15438     siemens)
15439       need_lib_prefix=no
15440       ;;
15441     motorola)
15442       need_lib_prefix=no
15443       need_version=no
15444       shlibpath_overrides_runpath=no
15445       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15446       ;;
15447   esac
15448   ;;
15449
15450 sysv4*MP*)
15451   if test -d /usr/nec ;then
15452     version_type=linux
15453     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15454     soname_spec='$libname${shared_ext}.$major'
15455     shlibpath_var=LD_LIBRARY_PATH
15456   fi
15457   ;;
15458
15459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15460   version_type=freebsd-elf
15461   need_lib_prefix=no
15462   need_version=no
15463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15464   soname_spec='${libname}${release}${shared_ext}$major'
15465   shlibpath_var=LD_LIBRARY_PATH
15466   shlibpath_overrides_runpath=yes
15467   hardcode_into_libs=yes
15468   if test "$with_gnu_ld" = yes; then
15469     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15470   else
15471     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15472     case $host_os in
15473       sco3.2v5*)
15474         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15475         ;;
15476     esac
15477   fi
15478   sys_lib_dlsearch_path_spec='/usr/lib'
15479   ;;
15480
15481 tpf*)
15482   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15483   version_type=linux
15484   need_lib_prefix=no
15485   need_version=no
15486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487   shlibpath_var=LD_LIBRARY_PATH
15488   shlibpath_overrides_runpath=no
15489   hardcode_into_libs=yes
15490   ;;
15491
15492 uts4*)
15493   version_type=linux
15494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495   soname_spec='${libname}${release}${shared_ext}$major'
15496   shlibpath_var=LD_LIBRARY_PATH
15497   ;;
15498
15499 *)
15500   dynamic_linker=no
15501   ;;
15502 esac
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15504 $as_echo "$dynamic_linker" >&6; }
15505 test "$dynamic_linker" = no && can_build_shared=no
15506
15507 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15508 if test "$GCC" = yes; then
15509   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15510 fi
15511
15512 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15513   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15514 fi
15515 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15516   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15517 fi
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15555 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15556 hardcode_action_CXX=
15557 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15558    test -n "$runpath_var_CXX" ||
15559    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15560
15561   # We can hardcode non-existent directories.
15562   if test "$hardcode_direct_CXX" != no &&
15563      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15564      # have to relink, otherwise we might link with an installed library
15565      # when we should be linking with a yet-to-be-installed one
15566      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15567      test "$hardcode_minus_L_CXX" != no; then
15568     # Linking always hardcodes the temporary library directory.
15569     hardcode_action_CXX=relink
15570   else
15571     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15572     hardcode_action_CXX=immediate
15573   fi
15574 else
15575   # We cannot hardcode anything, or else we can only hardcode existing
15576   # directories.
15577   hardcode_action_CXX=unsupported
15578 fi
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15580 $as_echo "$hardcode_action_CXX" >&6; }
15581
15582 if test "$hardcode_action_CXX" = relink ||
15583    test "$inherit_rpath_CXX" = yes; then
15584   # Fast installation is not supported
15585   enable_fast_install=no
15586 elif test "$shlibpath_overrides_runpath" = yes ||
15587      test "$enable_shared" = no; then
15588   # Fast installation is not necessary
15589   enable_fast_install=needless
15590 fi
15591
15592
15593
15594
15595
15596
15597
15598   fi # test -n "$compiler"
15599
15600   CC=$lt_save_CC
15601   LDCXX=$LD
15602   LD=$lt_save_LD
15603   GCC=$lt_save_GCC
15604   with_gnu_ld=$lt_save_with_gnu_ld
15605   lt_cv_path_LDCXX=$lt_cv_path_LD
15606   lt_cv_path_LD=$lt_save_path_LD
15607   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15608   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15609 fi # test "$_lt_caught_CXX_error" != yes
15610
15611 ac_ext=c
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629         ac_config_commands="$ac_config_commands libtool"
15630
15631
15632
15633
15634 # Only expand once:
15635
15636
15637
15638
15639 if test x$use_libtool != xno; then
15640    DEFAULT_OBJECT_TYPE=".lo"
15641    DEFAULT_ARCHIVE_TYPE=".la"
15642    DEFAULT_SHARED_OBJECT_TYPE=".la"
15643    LIBTOOL="\$(LIBTOOL)"
15644    LIBTOOL_INSTALL_TARGET="libtool-install"
15645    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15646    LIBTOOL_CLEAN_TARGET="libtool-clean"
15647    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15648    FD_PLUGIN_DIR="src/plugins/fd"
15649    have_plugins=yes
15650 else
15651    DEFAULT_OBJECT_TYPE=".o"
15652    DEFAULT_ARCHIVE_TYPE=".a"
15653    DEFAULT_SHARED_OBJECT_TYPE=".so"
15654    LIBTOOL="# \$(LIBTOOL)"
15655    LIBTOOL_INSTALL_TARGET=""
15656    LIBTOOL_UNINSTALL_TARGET=""
15657    LIBTOOL_CLEAN_TARGET=""
15658    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15659    FD_PLUGIN_DIR=""
15660    have_plugins=no
15661 fi
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673 # Check whether --enable-includes was given.
15674 if test "${enable_includes+set}" = set; then :
15675   enableval=$enable_includes;
15676        if test x$enableval = xyes; then
15677           install_includes=yes
15678        fi
15679
15680
15681 fi
15682
15683
15684
15685 if test x$use_libtool != xno -a x$install_includes = xyes; then
15686    INCLUDE_INSTALL_TARGET="install-includes"
15687    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15688 else
15689    INCLUDE_INSTALL_TARGET=""
15690    INCLUDE_UNINSTALL_TARGET=""
15691 fi
15692
15693
15694
15695
15696
15697 case $host_os in
15698   *cygwin* ) CYGWIN=yes;;
15699          * ) CYGWIN=no;;
15700 esac
15701
15702 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15703 then
15704
15705
15706 if $TRUEPRG; then
15707   HAVE_SUN_OS_TRUE=
15708   HAVE_SUN_OS_FALSE='#'
15709 else
15710   HAVE_SUN_OS_TRUE='#'
15711   HAVE_SUN_OS_FALSE=
15712 fi
15713         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15714
15715 else
15716
15717
15718 if $FALSEPRG; then
15719   HAVE_SUN_OS_TRUE=
15720   HAVE_SUN_OS_FALSE='#'
15721 else
15722   HAVE_SUN_OS_TRUE='#'
15723   HAVE_SUN_OS_FALSE=
15724 fi
15725 fi
15726
15727 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15728 then
15729
15730
15731 if $TRUEPRG; then
15732   HAVE_OSF1_OS_TRUE=
15733   HAVE_OSF1_OS_FALSE='#'
15734 else
15735   HAVE_OSF1_OS_TRUE='#'
15736   HAVE_OSF1_OS_FALSE=
15737 fi
15738         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15739
15740 else
15741
15742
15743 if $FALSEPRG; then
15744   HAVE_OSF1_OS_TRUE=
15745   HAVE_OSF1_OS_FALSE='#'
15746 else
15747   HAVE_OSF1_OS_TRUE='#'
15748   HAVE_OSF1_OS_FALSE=
15749 fi
15750 fi
15751
15752 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15753 then
15754
15755
15756 if $TRUEPRG; then
15757   HAVE_AIX_OS_TRUE=
15758   HAVE_AIX_OS_FALSE='#'
15759 else
15760   HAVE_AIX_OS_TRUE='#'
15761   HAVE_AIX_OS_FALSE=
15762 fi
15763         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15764
15765 else
15766
15767
15768 if $FALSEPRG; then
15769   HAVE_AIX_OS_TRUE=
15770   HAVE_AIX_OS_FALSE='#'
15771 else
15772   HAVE_AIX_OS_TRUE='#'
15773   HAVE_AIX_OS_FALSE=
15774 fi
15775 fi
15776
15777 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15778 then
15779
15780
15781 if $TRUEPRG; then
15782   HAVE_HPUX_OS_TRUE=
15783   HAVE_HPUX_OS_FALSE='#'
15784 else
15785   HAVE_HPUX_OS_TRUE='#'
15786   HAVE_HPUX_OS_FALSE=
15787 fi
15788         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15789
15790 else
15791
15792
15793 if $FALSEPRG; then
15794   HAVE_HPUX_OS_TRUE=
15795   HAVE_HPUX_OS_FALSE='#'
15796 else
15797   HAVE_HPUX_OS_TRUE='#'
15798   HAVE_HPUX_OS_FALSE=
15799 fi
15800 fi
15801
15802 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15803 then
15804
15805
15806 if $TRUEPRG; then
15807   HAVE_LINUX_OS_TRUE=
15808   HAVE_LINUX_OS_FALSE='#'
15809 else
15810   HAVE_LINUX_OS_TRUE='#'
15811   HAVE_LINUX_OS_FALSE=
15812 fi
15813         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15814
15815 else
15816
15817
15818 if $FALSEPRG; then
15819   HAVE_LINUX_OS_TRUE=
15820   HAVE_LINUX_OS_FALSE='#'
15821 else
15822   HAVE_LINUX_OS_TRUE='#'
15823   HAVE_LINUX_OS_FALSE=
15824 fi
15825 fi
15826
15827 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15828 then
15829
15830
15831 if $TRUEPRG; then
15832   HAVE_FREEBSD_OS_TRUE=
15833   HAVE_FREEBSD_OS_FALSE='#'
15834 else
15835   HAVE_FREEBSD_OS_TRUE='#'
15836   HAVE_FREEBSD_OS_FALSE=
15837 fi
15838         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15839
15840 else
15841
15842
15843 if $FALSEPRG; then
15844   HAVE_FREEBSD_OS_TRUE=
15845   HAVE_FREEBSD_OS_FALSE='#'
15846 else
15847   HAVE_FREEBSD_OS_TRUE='#'
15848   HAVE_FREEBSD_OS_FALSE=
15849 fi
15850 fi
15851
15852 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15853 then
15854
15855
15856 if $TRUEPRG; then
15857   HAVE_NETBSD_OS_TRUE=
15858   HAVE_NETBSD_OS_FALSE='#'
15859 else
15860   HAVE_NETBSD_OS_TRUE='#'
15861   HAVE_NETBSD_OS_FALSE=
15862 fi
15863         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15864
15865 else
15866
15867
15868 if $FALSEPRG; then
15869   HAVE_NETBSD_OS_TRUE=
15870   HAVE_NETBSD_OS_FALSE='#'
15871 else
15872   HAVE_NETBSD_OS_TRUE='#'
15873   HAVE_NETBSD_OS_FALSE=
15874 fi
15875 fi
15876
15877 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15878 then
15879
15880
15881 if $TRUEPRG; then
15882   HAVE_OPENBSD_OS_TRUE=
15883   HAVE_OPENBSD_OS_FALSE='#'
15884 else
15885   HAVE_OPENBSD_OS_TRUE='#'
15886   HAVE_OPENBSD_OS_FALSE=
15887 fi
15888         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15889
15890 else
15891
15892
15893 if $FALSEPRG; then
15894   HAVE_OPENBSD_OS_TRUE=
15895   HAVE_OPENBSD_OS_FALSE='#'
15896 else
15897   HAVE_OPENBSD_OS_TRUE='#'
15898   HAVE_OPENBSD_OS_FALSE=
15899 fi
15900 fi
15901
15902 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15903 then
15904
15905
15906 if $TRUEPRG; then
15907   HAVE_BSDI_OS_TRUE=
15908   HAVE_BSDI_OS_FALSE='#'
15909 else
15910   HAVE_BSDI_OS_TRUE='#'
15911   HAVE_BSDI_OS_FALSE=
15912 fi
15913         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15914
15915 else
15916
15917
15918 if $FALSEPRG; then
15919   HAVE_BSDI_OS_TRUE=
15920   HAVE_BSDI_OS_FALSE='#'
15921 else
15922   HAVE_BSDI_OS_TRUE='#'
15923   HAVE_BSDI_OS_FALSE=
15924 fi
15925 fi
15926
15927 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15928 then
15929
15930
15931 if $TRUEPRG; then
15932   HAVE_SGI_OS_TRUE=
15933   HAVE_SGI_OS_FALSE='#'
15934 else
15935   HAVE_SGI_OS_TRUE='#'
15936   HAVE_SGI_OS_FALSE=
15937 fi
15938         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15939
15940 else
15941
15942
15943 if $FALSEPRG; then
15944   HAVE_SGI_OS_TRUE=
15945   HAVE_SGI_OS_FALSE='#'
15946 else
15947   HAVE_SGI_OS_TRUE='#'
15948   HAVE_SGI_OS_FALSE=
15949 fi
15950 fi
15951
15952 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15953 then
15954
15955
15956 if $TRUEPRG; then
15957   HAVE_IRIX_OS_TRUE=
15958   HAVE_IRIX_OS_FALSE='#'
15959 else
15960   HAVE_IRIX_OS_TRUE='#'
15961   HAVE_IRIX_OS_FALSE=
15962 fi
15963         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15964
15965 else
15966
15967
15968 if $FALSEPRG; then
15969   HAVE_IRIX_OS_TRUE=
15970   HAVE_IRIX_OS_FALSE='#'
15971 else
15972   HAVE_IRIX_OS_TRUE='#'
15973   HAVE_IRIX_OS_FALSE=
15974 fi
15975 fi
15976
15977 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15978 then
15979
15980
15981 if $TRUEPRG; then
15982   HAVE_DARWIN_OS_TRUE=
15983   HAVE_DARWIN_OS_FALSE='#'
15984 else
15985   HAVE_DARWIN_OS_TRUE='#'
15986   HAVE_DARWIN_OS_FALSE=
15987 fi
15988     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15989
15990 else
15991
15992
15993 if $FALSEPRG; then
15994   HAVE_DARWIN_OS_TRUE=
15995   HAVE_DARWIN_OS_FALSE='#'
15996 else
15997   HAVE_DARWIN_OS_TRUE='#'
15998   HAVE_DARWIN_OS_FALSE=
15999 fi
16000 fi
16001
16002
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16004 $as_echo_n "checking for Operating System Distribution... " >&6; }
16005 if test "x$DISTNAME" != "x"
16006 then
16007         echo "distname set to $DISTNAME"
16008 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16009 then
16010         DISTNAME=alpha
16011 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16012 then
16013         DISTNAME=aix
16014 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16015 then
16016         DISTNAME=hpux
16017 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16018 then
16019         DISTNAME=solaris
16020 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16021 then
16022         DISTNAME=freebsd
16023 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16024 then
16025         DISTNAME=netbsd
16026 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16027 then
16028         DISTNAME=openbsd
16029 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16030 then
16031         DISTNAME=irix
16032 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16033 then
16034         DISTNAME=bsdi
16035 elif test -f /etc/SuSE-release
16036 then
16037         DISTNAME=suse
16038 elif test -d /etc/SuSEconfig
16039 then
16040         DISTNAME=suse5
16041 elif test -f /etc/mandrake-release
16042 then
16043         DISTNAME=mandrake
16044 elif test -f /etc/whitebox-release
16045 then
16046        DISTNAME=redhat
16047 elif test -f /etc/redhat-release
16048 then
16049         DISTNAME=redhat
16050 elif test -f /etc/gentoo-release
16051 then
16052         DISTNAME=gentoo
16053 elif test -f /etc/debian_version
16054 then
16055         DISTNAME=debian
16056 elif test -f /etc/slackware-version
16057 then
16058         DISTNAME=slackware
16059 elif test x$host_vendor = xapple
16060 then
16061     DISTNAME=osx
16062 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16063 then
16064     DISTNAME=darwin
16065 elif test -f /etc/engarde-version
16066 then
16067         DISTNAME=engarde
16068 elif test -f /etc/arch-release
16069 then
16070         DISTNAME=archlinux
16071 elif test "$CYGWIN" = yes
16072 then
16073         DISTNAME=cygwin
16074         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16075
16076 else
16077         DISTNAME=unknown
16078 fi
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16080 $as_echo "done" >&6; }
16081
16082
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16084 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16085 set x ${MAKE-make}
16086 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16087 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16088   $as_echo_n "(cached) " >&6
16089 else
16090   cat >conftest.make <<\_ACEOF
16091 SHELL = /bin/sh
16092 all:
16093         @echo '@@@%%%=$(MAKE)=@@@%%%'
16094 _ACEOF
16095 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16096 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16097   *@@@%%%=?*=@@@%%%*)
16098     eval ac_cv_prog_make_${ac_make}_set=yes;;
16099   *)
16100     eval ac_cv_prog_make_${ac_make}_set=no;;
16101 esac
16102 rm -f conftest.make
16103 fi
16104 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16106 $as_echo "yes" >&6; }
16107   SET_MAKE=
16108 else
16109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110 $as_echo "no" >&6; }
16111   SET_MAKE="MAKE=${MAKE-make}"
16112 fi
16113
16114
16115
16116         MKINSTALLDIRS=
16117   if test -n "$ac_aux_dir"; then
16118     case "$ac_aux_dir" in
16119       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16120       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16121     esac
16122   fi
16123   if test -z "$MKINSTALLDIRS"; then
16124     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16125   fi
16126
16127
16128
16129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16130 $as_echo_n "checking whether NLS is requested... " >&6; }
16131     # Check whether --enable-nls was given.
16132 if test "${enable_nls+set}" = set; then :
16133   enableval=$enable_nls; USE_NLS=$enableval
16134 else
16135   USE_NLS=yes
16136 fi
16137
16138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16139 $as_echo "$USE_NLS" >&6; }
16140
16141
16142
16143
16144
16145
16146 # Prepare PATH_SEPARATOR.
16147 # The user is always right.
16148 if test "${PATH_SEPARATOR+set}" != set; then
16149   echo "#! /bin/sh" >conf$$.sh
16150   echo  "exit 0"   >>conf$$.sh
16151   chmod +x conf$$.sh
16152   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16153     PATH_SEPARATOR=';'
16154   else
16155     PATH_SEPARATOR=:
16156   fi
16157   rm -f conf$$.sh
16158 fi
16159
16160 # Find out how to test for executable files. Don't use a zero-byte file,
16161 # as systems may use methods other than mode bits to determine executability.
16162 cat >conf$$.file <<_ASEOF
16163 #! /bin/sh
16164 exit 0
16165 _ASEOF
16166 chmod +x conf$$.file
16167 if test -x conf$$.file >/dev/null 2>&1; then
16168   ac_executable_p="test -x"
16169 else
16170   ac_executable_p="test -f"
16171 fi
16172 rm -f conf$$.file
16173
16174 # Extract the first word of "msgfmt", so it can be a program name with args.
16175 set dummy msgfmt; ac_word=$2
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16177 $as_echo_n "checking for $ac_word... " >&6; }
16178 if ${ac_cv_path_MSGFMT+:} false; then :
16179   $as_echo_n "(cached) " >&6
16180 else
16181   case "$MSGFMT" in
16182   [\\/]* | ?:[\\/]*)
16183     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16184     ;;
16185   *)
16186     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16187     for ac_dir in $PATH; do
16188       IFS="$ac_save_IFS"
16189       test -z "$ac_dir" && ac_dir=.
16190       for ac_exec_ext in '' $ac_executable_extensions; do
16191         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16192           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16193           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16194      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16195             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16196             break 2
16197           fi
16198         fi
16199       done
16200     done
16201     IFS="$ac_save_IFS"
16202   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16203     ;;
16204 esac
16205 fi
16206 MSGFMT="$ac_cv_path_MSGFMT"
16207 if test "$MSGFMT" != ":"; then
16208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16209 $as_echo "$MSGFMT" >&6; }
16210 else
16211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16212 $as_echo "no" >&6; }
16213 fi
16214
16215   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16216 set dummy gmsgfmt; ac_word=$2
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16218 $as_echo_n "checking for $ac_word... " >&6; }
16219 if ${ac_cv_path_GMSGFMT+:} false; then :
16220   $as_echo_n "(cached) " >&6
16221 else
16222   case $GMSGFMT in
16223   [\\/]* | ?:[\\/]*)
16224   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16225   ;;
16226   *)
16227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16228 for as_dir in $PATH
16229 do
16230   IFS=$as_save_IFS
16231   test -z "$as_dir" && as_dir=.
16232     for ac_exec_ext in '' $ac_executable_extensions; do
16233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16234     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16236     break 2
16237   fi
16238 done
16239   done
16240 IFS=$as_save_IFS
16241
16242   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16243   ;;
16244 esac
16245 fi
16246 GMSGFMT=$ac_cv_path_GMSGFMT
16247 if test -n "$GMSGFMT"; then
16248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16249 $as_echo "$GMSGFMT" >&6; }
16250 else
16251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252 $as_echo "no" >&6; }
16253 fi
16254
16255
16256
16257
16258 # Prepare PATH_SEPARATOR.
16259 # The user is always right.
16260 if test "${PATH_SEPARATOR+set}" != set; then
16261   echo "#! /bin/sh" >conf$$.sh
16262   echo  "exit 0"   >>conf$$.sh
16263   chmod +x conf$$.sh
16264   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16265     PATH_SEPARATOR=';'
16266   else
16267     PATH_SEPARATOR=:
16268   fi
16269   rm -f conf$$.sh
16270 fi
16271
16272 # Find out how to test for executable files. Don't use a zero-byte file,
16273 # as systems may use methods other than mode bits to determine executability.
16274 cat >conf$$.file <<_ASEOF
16275 #! /bin/sh
16276 exit 0
16277 _ASEOF
16278 chmod +x conf$$.file
16279 if test -x conf$$.file >/dev/null 2>&1; then
16280   ac_executable_p="test -x"
16281 else
16282   ac_executable_p="test -f"
16283 fi
16284 rm -f conf$$.file
16285
16286 # Extract the first word of "xgettext", so it can be a program name with args.
16287 set dummy xgettext; ac_word=$2
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16289 $as_echo_n "checking for $ac_word... " >&6; }
16290 if ${ac_cv_path_XGETTEXT+:} false; then :
16291   $as_echo_n "(cached) " >&6
16292 else
16293   case "$XGETTEXT" in
16294   [\\/]* | ?:[\\/]*)
16295     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16296     ;;
16297   *)
16298     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16299     for ac_dir in $PATH; do
16300       IFS="$ac_save_IFS"
16301       test -z "$ac_dir" && ac_dir=.
16302       for ac_exec_ext in '' $ac_executable_extensions; do
16303         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16304           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16305           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16306      (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
16307             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16308             break 2
16309           fi
16310         fi
16311       done
16312     done
16313     IFS="$ac_save_IFS"
16314   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16315     ;;
16316 esac
16317 fi
16318 XGETTEXT="$ac_cv_path_XGETTEXT"
16319 if test "$XGETTEXT" != ":"; then
16320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16321 $as_echo "$XGETTEXT" >&6; }
16322 else
16323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16325 fi
16326
16327     rm -f messages.po
16328
16329
16330 # Prepare PATH_SEPARATOR.
16331 # The user is always right.
16332 if test "${PATH_SEPARATOR+set}" != set; then
16333   echo "#! /bin/sh" >conf$$.sh
16334   echo  "exit 0"   >>conf$$.sh
16335   chmod +x conf$$.sh
16336   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16337     PATH_SEPARATOR=';'
16338   else
16339     PATH_SEPARATOR=:
16340   fi
16341   rm -f conf$$.sh
16342 fi
16343
16344 # Find out how to test for executable files. Don't use a zero-byte file,
16345 # as systems may use methods other than mode bits to determine executability.
16346 cat >conf$$.file <<_ASEOF
16347 #! /bin/sh
16348 exit 0
16349 _ASEOF
16350 chmod +x conf$$.file
16351 if test -x conf$$.file >/dev/null 2>&1; then
16352   ac_executable_p="test -x"
16353 else
16354   ac_executable_p="test -f"
16355 fi
16356 rm -f conf$$.file
16357
16358 # Extract the first word of "msgmerge", so it can be a program name with args.
16359 set dummy msgmerge; ac_word=$2
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16361 $as_echo_n "checking for $ac_word... " >&6; }
16362 if ${ac_cv_path_MSGMERGE+:} false; then :
16363   $as_echo_n "(cached) " >&6
16364 else
16365   case "$MSGMERGE" in
16366   [\\/]* | ?:[\\/]*)
16367     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16368     ;;
16369   *)
16370     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16371     for ac_dir in $PATH; do
16372       IFS="$ac_save_IFS"
16373       test -z "$ac_dir" && ac_dir=.
16374       for ac_exec_ext in '' $ac_executable_extensions; do
16375         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16376           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16377           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16378             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16379             break 2
16380           fi
16381         fi
16382       done
16383     done
16384     IFS="$ac_save_IFS"
16385   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16386     ;;
16387 esac
16388 fi
16389 MSGMERGE="$ac_cv_path_MSGMERGE"
16390 if test "$MSGMERGE" != ":"; then
16391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16392 $as_echo "$MSGMERGE" >&6; }
16393 else
16394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16395 $as_echo "no" >&6; }
16396 fi
16397
16398
16399       if test "$GMSGFMT" != ":"; then
16400             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16401        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16402       : ;
16403     else
16404       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16406 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16407       GMSGFMT=":"
16408     fi
16409   fi
16410
16411       if test "$XGETTEXT" != ":"; then
16412             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16413        (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
16414       : ;
16415     else
16416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16417 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16418       XGETTEXT=":"
16419     fi
16420         rm -f messages.po
16421   fi
16422
16423   ac_config_commands="$ac_config_commands default-1"
16424
16425
16426
16427       if test "X$prefix" = "XNONE"; then
16428     acl_final_prefix="$ac_default_prefix"
16429   else
16430     acl_final_prefix="$prefix"
16431   fi
16432   if test "X$exec_prefix" = "XNONE"; then
16433     acl_final_exec_prefix='${prefix}'
16434   else
16435     acl_final_exec_prefix="$exec_prefix"
16436   fi
16437   acl_save_prefix="$prefix"
16438   prefix="$acl_final_prefix"
16439   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16440   prefix="$acl_save_prefix"
16441
16442
16443 # Check whether --with-gnu-ld was given.
16444 if test "${with_gnu_ld+set}" = set; then :
16445   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16446 else
16447   with_gnu_ld=no
16448 fi
16449
16450 # Prepare PATH_SEPARATOR.
16451 # The user is always right.
16452 if test "${PATH_SEPARATOR+set}" != set; then
16453   echo "#! /bin/sh" >conf$$.sh
16454   echo  "exit 0"   >>conf$$.sh
16455   chmod +x conf$$.sh
16456   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16457     PATH_SEPARATOR=';'
16458   else
16459     PATH_SEPARATOR=:
16460   fi
16461   rm -f conf$$.sh
16462 fi
16463 ac_prog=ld
16464 if test "$GCC" = yes; then
16465   # Check if gcc -print-prog-name=ld gives a path.
16466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16467 $as_echo_n "checking for ld used by GCC... " >&6; }
16468   case $host in
16469   *-*-mingw*)
16470     # gcc leaves a trailing carriage return which upsets mingw
16471     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16472   *)
16473     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16474   esac
16475   case $ac_prog in
16476     # Accept absolute paths.
16477     [\\/]* | [A-Za-z]:[\\/]*)
16478       re_direlt='/[^/][^/]*/\.\./'
16479       # Canonicalize the path of ld
16480       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16481       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16482         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16483       done
16484       test -z "$LD" && LD="$ac_prog"
16485       ;;
16486   "")
16487     # If it fails, then pretend we aren't using GCC.
16488     ac_prog=ld
16489     ;;
16490   *)
16491     # If it is relative, then search for the first ld in PATH.
16492     with_gnu_ld=unknown
16493     ;;
16494   esac
16495 elif test "$with_gnu_ld" = yes; then
16496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16497 $as_echo_n "checking for GNU ld... " >&6; }
16498 else
16499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16500 $as_echo_n "checking for non-GNU ld... " >&6; }
16501 fi
16502 if ${acl_cv_path_LD+:} false; then :
16503   $as_echo_n "(cached) " >&6
16504 else
16505   if test -z "$LD"; then
16506   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16507   for ac_dir in $PATH; do
16508     test -z "$ac_dir" && ac_dir=.
16509     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16510       acl_cv_path_LD="$ac_dir/$ac_prog"
16511       # Check to see if the program is GNU ld.  I'd rather use --version,
16512       # but apparently some GNU ld's only accept -v.
16513       # Break only if it was the GNU/non-GNU ld that we prefer.
16514       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16515       *GNU* | *'with BFD'*)
16516         test "$with_gnu_ld" != no && break ;;
16517       *)
16518         test "$with_gnu_ld" != yes && break ;;
16519       esac
16520     fi
16521   done
16522   IFS="$ac_save_ifs"
16523 else
16524   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16525 fi
16526 fi
16527
16528 LD="$acl_cv_path_LD"
16529 if test -n "$LD"; then
16530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16531 $as_echo "$LD" >&6; }
16532 else
16533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16535 fi
16536 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16538 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16539 if ${acl_cv_prog_gnu_ld+:} false; then :
16540   $as_echo_n "(cached) " >&6
16541 else
16542   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16543 case `$LD -v 2>&1 </dev/null` in
16544 *GNU* | *'with BFD'*)
16545   acl_cv_prog_gnu_ld=yes ;;
16546 *)
16547   acl_cv_prog_gnu_ld=no ;;
16548 esac
16549 fi
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16551 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16552 with_gnu_ld=$acl_cv_prog_gnu_ld
16553
16554
16555
16556
16557                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16558 $as_echo_n "checking for shared library run path origin... " >&6; }
16559 if ${acl_cv_rpath+:} false; then :
16560   $as_echo_n "(cached) " >&6
16561 else
16562
16563     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16564     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16565     . ./conftest.sh
16566     rm -f ./conftest.sh
16567     acl_cv_rpath=done
16568
16569 fi
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16571 $as_echo "$acl_cv_rpath" >&6; }
16572   wl="$acl_cv_wl"
16573   libext="$acl_cv_libext"
16574   shlibext="$acl_cv_shlibext"
16575   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16576   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16577   hardcode_direct="$acl_cv_hardcode_direct"
16578   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16579     # Check whether --enable-rpath was given.
16580 if test "${enable_rpath+set}" = set; then :
16581   enableval=$enable_rpath; :
16582 else
16583   enable_rpath=yes
16584 fi
16585
16586
16587
16588
16589
16590
16591
16592
16593     use_additional=yes
16594
16595   acl_save_prefix="$prefix"
16596   prefix="$acl_final_prefix"
16597   acl_save_exec_prefix="$exec_prefix"
16598   exec_prefix="$acl_final_exec_prefix"
16599
16600     eval additional_includedir=\"$includedir\"
16601     eval additional_libdir=\"$libdir\"
16602
16603   exec_prefix="$acl_save_exec_prefix"
16604   prefix="$acl_save_prefix"
16605
16606
16607 # Check whether --with-libiconv-prefix was given.
16608 if test "${with_libiconv_prefix+set}" = set; then :
16609   withval=$with_libiconv_prefix;
16610     if test "X$withval" = "Xno"; then
16611       use_additional=no
16612     else
16613       if test "X$withval" = "X"; then
16614
16615   acl_save_prefix="$prefix"
16616   prefix="$acl_final_prefix"
16617   acl_save_exec_prefix="$exec_prefix"
16618   exec_prefix="$acl_final_exec_prefix"
16619
16620           eval additional_includedir=\"$includedir\"
16621           eval additional_libdir=\"$libdir\"
16622
16623   exec_prefix="$acl_save_exec_prefix"
16624   prefix="$acl_save_prefix"
16625
16626       else
16627         additional_includedir="$withval/include"
16628         additional_libdir="$withval/lib"
16629       fi
16630     fi
16631
16632 fi
16633
16634       LIBICONV=
16635   LTLIBICONV=
16636   INCICONV=
16637   rpathdirs=
16638   ltrpathdirs=
16639   names_already_handled=
16640   names_next_round='iconv '
16641   while test -n "$names_next_round"; do
16642     names_this_round="$names_next_round"
16643     names_next_round=
16644     for name in $names_this_round; do
16645       already_handled=
16646       for n in $names_already_handled; do
16647         if test "$n" = "$name"; then
16648           already_handled=yes
16649           break
16650         fi
16651       done
16652       if test -z "$already_handled"; then
16653         names_already_handled="$names_already_handled $name"
16654                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16655         eval value=\"\$HAVE_LIB$uppername\"
16656         if test -n "$value"; then
16657           if test "$value" = yes; then
16658             eval value=\"\$LIB$uppername\"
16659             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16660             eval value=\"\$LTLIB$uppername\"
16661             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16662           else
16663                                     :
16664           fi
16665         else
16666                               found_dir=
16667           found_la=
16668           found_so=
16669           found_a=
16670           if test $use_additional = yes; then
16671             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16672               found_dir="$additional_libdir"
16673               found_so="$additional_libdir/lib$name.$shlibext"
16674               if test -f "$additional_libdir/lib$name.la"; then
16675                 found_la="$additional_libdir/lib$name.la"
16676               fi
16677             else
16678               if test -f "$additional_libdir/lib$name.$libext"; then
16679                 found_dir="$additional_libdir"
16680                 found_a="$additional_libdir/lib$name.$libext"
16681                 if test -f "$additional_libdir/lib$name.la"; then
16682                   found_la="$additional_libdir/lib$name.la"
16683                 fi
16684               fi
16685             fi
16686           fi
16687           if test "X$found_dir" = "X"; then
16688             for x in $LDFLAGS $LTLIBICONV; do
16689
16690   acl_save_prefix="$prefix"
16691   prefix="$acl_final_prefix"
16692   acl_save_exec_prefix="$exec_prefix"
16693   exec_prefix="$acl_final_exec_prefix"
16694   eval x=\"$x\"
16695   exec_prefix="$acl_save_exec_prefix"
16696   prefix="$acl_save_prefix"
16697
16698               case "$x" in
16699                 -L*)
16700                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16701                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16702                     found_dir="$dir"
16703                     found_so="$dir/lib$name.$shlibext"
16704                     if test -f "$dir/lib$name.la"; then
16705                       found_la="$dir/lib$name.la"
16706                     fi
16707                   else
16708                     if test -f "$dir/lib$name.$libext"; then
16709                       found_dir="$dir"
16710                       found_a="$dir/lib$name.$libext"
16711                       if test -f "$dir/lib$name.la"; then
16712                         found_la="$dir/lib$name.la"
16713                       fi
16714                     fi
16715                   fi
16716                   ;;
16717               esac
16718               if test "X$found_dir" != "X"; then
16719                 break
16720               fi
16721             done
16722           fi
16723           if test "X$found_dir" != "X"; then
16724                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16725             if test "X$found_so" != "X"; then
16726                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16727                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16728               else
16729                                                                                 haveit=
16730                 for x in $ltrpathdirs; do
16731                   if test "X$x" = "X$found_dir"; then
16732                     haveit=yes
16733                     break
16734                   fi
16735                 done
16736                 if test -z "$haveit"; then
16737                   ltrpathdirs="$ltrpathdirs $found_dir"
16738                 fi
16739                                 if test "$hardcode_direct" = yes; then
16740                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16741                 else
16742                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16743                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16744                                                             haveit=
16745                     for x in $rpathdirs; do
16746                       if test "X$x" = "X$found_dir"; then
16747                         haveit=yes
16748                         break
16749                       fi
16750                     done
16751                     if test -z "$haveit"; then
16752                       rpathdirs="$rpathdirs $found_dir"
16753                     fi
16754                   else
16755                                                                                 haveit=
16756                     for x in $LDFLAGS $LIBICONV; do
16757
16758   acl_save_prefix="$prefix"
16759   prefix="$acl_final_prefix"
16760   acl_save_exec_prefix="$exec_prefix"
16761   exec_prefix="$acl_final_exec_prefix"
16762   eval x=\"$x\"
16763   exec_prefix="$acl_save_exec_prefix"
16764   prefix="$acl_save_prefix"
16765
16766                       if test "X$x" = "X-L$found_dir"; then
16767                         haveit=yes
16768                         break
16769                       fi
16770                     done
16771                     if test -z "$haveit"; then
16772                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16773                     fi
16774                     if test "$hardcode_minus_L" != no; then
16775                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16776                     else
16777                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16778                     fi
16779                   fi
16780                 fi
16781               fi
16782             else
16783               if test "X$found_a" != "X"; then
16784                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16785               else
16786                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16787               fi
16788             fi
16789                         additional_includedir=
16790             case "$found_dir" in
16791               */lib | */lib/)
16792                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16793                 additional_includedir="$basedir/include"
16794                 ;;
16795             esac
16796             if test "X$additional_includedir" != "X"; then
16797                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16798                 haveit=
16799                 if test "X$additional_includedir" = "X/usr/local/include"; then
16800                   if test -n "$GCC"; then
16801                     case $host_os in
16802                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16803                     esac
16804                   fi
16805                 fi
16806                 if test -z "$haveit"; then
16807                   for x in $CPPFLAGS $INCICONV; do
16808
16809   acl_save_prefix="$prefix"
16810   prefix="$acl_final_prefix"
16811   acl_save_exec_prefix="$exec_prefix"
16812   exec_prefix="$acl_final_exec_prefix"
16813   eval x=\"$x\"
16814   exec_prefix="$acl_save_exec_prefix"
16815   prefix="$acl_save_prefix"
16816
16817                     if test "X$x" = "X-I$additional_includedir"; then
16818                       haveit=yes
16819                       break
16820                     fi
16821                   done
16822                   if test -z "$haveit"; then
16823                     if test -d "$additional_includedir"; then
16824                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16825                     fi
16826                   fi
16827                 fi
16828               fi
16829             fi
16830                         if test -n "$found_la"; then
16831                                                         save_libdir="$libdir"
16832               case "$found_la" in
16833                 */* | *\\*) . "$found_la" ;;
16834                 *) . "./$found_la" ;;
16835               esac
16836               libdir="$save_libdir"
16837                             for dep in $dependency_libs; do
16838                 case "$dep" in
16839                   -L*)
16840                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16841                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16842                       haveit=
16843                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16844                         if test -n "$GCC"; then
16845                           case $host_os in
16846                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16847                           esac
16848                         fi
16849                       fi
16850                       if test -z "$haveit"; then
16851                         haveit=
16852                         for x in $LDFLAGS $LIBICONV; do
16853
16854   acl_save_prefix="$prefix"
16855   prefix="$acl_final_prefix"
16856   acl_save_exec_prefix="$exec_prefix"
16857   exec_prefix="$acl_final_exec_prefix"
16858   eval x=\"$x\"
16859   exec_prefix="$acl_save_exec_prefix"
16860   prefix="$acl_save_prefix"
16861
16862                           if test "X$x" = "X-L$additional_libdir"; then
16863                             haveit=yes
16864                             break
16865                           fi
16866                         done
16867                         if test -z "$haveit"; then
16868                           if test -d "$additional_libdir"; then
16869                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16870                           fi
16871                         fi
16872                         haveit=
16873                         for x in $LDFLAGS $LTLIBICONV; do
16874
16875   acl_save_prefix="$prefix"
16876   prefix="$acl_final_prefix"
16877   acl_save_exec_prefix="$exec_prefix"
16878   exec_prefix="$acl_final_exec_prefix"
16879   eval x=\"$x\"
16880   exec_prefix="$acl_save_exec_prefix"
16881   prefix="$acl_save_prefix"
16882
16883                           if test "X$x" = "X-L$additional_libdir"; then
16884                             haveit=yes
16885                             break
16886                           fi
16887                         done
16888                         if test -z "$haveit"; then
16889                           if test -d "$additional_libdir"; then
16890                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16891                           fi
16892                         fi
16893                       fi
16894                     fi
16895                     ;;
16896                   -R*)
16897                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16898                     if test "$enable_rpath" != no; then
16899                                                                   haveit=
16900                       for x in $rpathdirs; do
16901                         if test "X$x" = "X$dir"; then
16902                           haveit=yes
16903                           break
16904                         fi
16905                       done
16906                       if test -z "$haveit"; then
16907                         rpathdirs="$rpathdirs $dir"
16908                       fi
16909                                                                   haveit=
16910                       for x in $ltrpathdirs; do
16911                         if test "X$x" = "X$dir"; then
16912                           haveit=yes
16913                           break
16914                         fi
16915                       done
16916                       if test -z "$haveit"; then
16917                         ltrpathdirs="$ltrpathdirs $dir"
16918                       fi
16919                     fi
16920                     ;;
16921                   -l*)
16922                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16923                     ;;
16924                   *.la)
16925                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16926                     ;;
16927                   *)
16928                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16929                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16930                     ;;
16931                 esac
16932               done
16933             fi
16934           else
16935                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16936             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16937           fi
16938         fi
16939       fi
16940     done
16941   done
16942   if test "X$rpathdirs" != "X"; then
16943     if test -n "$hardcode_libdir_separator"; then
16944                         alldirs=
16945       for found_dir in $rpathdirs; do
16946         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16947       done
16948             acl_save_libdir="$libdir"
16949       libdir="$alldirs"
16950       eval flag=\"$hardcode_libdir_flag_spec\"
16951       libdir="$acl_save_libdir"
16952       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16953     else
16954             for found_dir in $rpathdirs; do
16955         acl_save_libdir="$libdir"
16956         libdir="$found_dir"
16957         eval flag=\"$hardcode_libdir_flag_spec\"
16958         libdir="$acl_save_libdir"
16959         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16960       done
16961     fi
16962   fi
16963   if test "X$ltrpathdirs" != "X"; then
16964             for found_dir in $ltrpathdirs; do
16965       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16966     done
16967   fi
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16987 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16988 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16989   $as_echo_n "(cached) " >&6
16990 else
16991   gt_save_CPPFLAGS="$CPPFLAGS"
16992      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16993      gt_save_LIBS="$LIBS"
16994      LIBS="$LIBS -framework CoreFoundation"
16995      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h.  */
16997 #include <CFPreferences.h>
16998 int
16999 main ()
17000 {
17001 CFPreferencesCopyAppValue(NULL, NULL)
17002   ;
17003   return 0;
17004 }
17005 _ACEOF
17006 if ac_fn_c_try_link "$LINENO"; then :
17007   gt_cv_func_CFPreferencesCopyAppValue=yes
17008 else
17009   gt_cv_func_CFPreferencesCopyAppValue=no
17010 fi
17011 rm -f core conftest.err conftest.$ac_objext \
17012     conftest$ac_exeext conftest.$ac_ext
17013      CPPFLAGS="$gt_save_CPPFLAGS"
17014      LIBS="$gt_save_LIBS"
17015 fi
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17017 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17018   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17019
17020 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17021
17022   fi
17023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17024 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17025 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17026   $as_echo_n "(cached) " >&6
17027 else
17028   gt_save_CPPFLAGS="$CPPFLAGS"
17029      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17030      gt_save_LIBS="$LIBS"
17031      LIBS="$LIBS -framework CoreFoundation"
17032      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h.  */
17034 #include <CFLocale.h>
17035 int
17036 main ()
17037 {
17038 CFLocaleCopyCurrent();
17039   ;
17040   return 0;
17041 }
17042 _ACEOF
17043 if ac_fn_c_try_link "$LINENO"; then :
17044   gt_cv_func_CFLocaleCopyCurrent=yes
17045 else
17046   gt_cv_func_CFLocaleCopyCurrent=no
17047 fi
17048 rm -f core conftest.err conftest.$ac_objext \
17049     conftest$ac_exeext conftest.$ac_ext
17050      CPPFLAGS="$gt_save_CPPFLAGS"
17051      LIBS="$gt_save_LIBS"
17052 fi
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17054 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17055   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17056
17057 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17058
17059   fi
17060   INTL_MACOSX_LIBS=
17061   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17062     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17063   fi
17064
17065
17066
17067
17068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17069 $as_echo_n "checking whether NLS is requested... " >&6; }
17070     # Check whether --enable-nls was given.
17071 if test "${enable_nls+set}" = set; then :
17072   enableval=$enable_nls; USE_NLS=$enableval
17073 else
17074   USE_NLS=yes
17075 fi
17076
17077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17078 $as_echo "$USE_NLS" >&6; }
17079
17080
17081
17082
17083   LIBINTL=
17084   LTLIBINTL=
17085   POSUB=
17086
17087     if test "$USE_NLS" = "yes"; then
17088     gt_use_preinstalled_gnugettext=no
17089
17090
17091
17092
17093
17094
17095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17096 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17097 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17098   $as_echo_n "(cached) " >&6
17099 else
17100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h.  */
17102 #include <libintl.h>
17103 extern int _nl_msg_cat_cntr;
17104 extern int *_nl_domain_bindings;
17105 int
17106 main ()
17107 {
17108 bindtextdomain ("", "");
17109 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17110   ;
17111   return 0;
17112 }
17113 _ACEOF
17114 if ac_fn_c_try_link "$LINENO"; then :
17115   gt_cv_func_gnugettext1_libc=yes
17116 else
17117   gt_cv_func_gnugettext1_libc=no
17118 fi
17119 rm -f core conftest.err conftest.$ac_objext \
17120     conftest$ac_exeext conftest.$ac_ext
17121 fi
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17123 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17124
17125         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17126
17127
17128
17129
17130
17131           am_save_CPPFLAGS="$CPPFLAGS"
17132
17133   for element in $INCICONV; do
17134     haveit=
17135     for x in $CPPFLAGS; do
17136
17137   acl_save_prefix="$prefix"
17138   prefix="$acl_final_prefix"
17139   acl_save_exec_prefix="$exec_prefix"
17140   exec_prefix="$acl_final_exec_prefix"
17141   eval x=\"$x\"
17142   exec_prefix="$acl_save_exec_prefix"
17143   prefix="$acl_save_prefix"
17144
17145       if test "X$x" = "X$element"; then
17146         haveit=yes
17147         break
17148       fi
17149     done
17150     if test -z "$haveit"; then
17151       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17152     fi
17153   done
17154
17155
17156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17157 $as_echo_n "checking for iconv... " >&6; }
17158 if ${am_cv_func_iconv+:} false; then :
17159   $as_echo_n "(cached) " >&6
17160 else
17161
17162     am_cv_func_iconv="no, consider installing GNU libiconv"
17163     am_cv_lib_iconv=no
17164     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h.  */
17166 #include <stdlib.h>
17167 #include <iconv.h>
17168 int
17169 main ()
17170 {
17171 iconv_t cd = iconv_open("","");
17172        iconv(cd,NULL,NULL,NULL,NULL);
17173        iconv_close(cd);
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 if ac_fn_c_try_link "$LINENO"; then :
17179   am_cv_func_iconv=yes
17180 fi
17181 rm -f core conftest.err conftest.$ac_objext \
17182     conftest$ac_exeext conftest.$ac_ext
17183     if test "$am_cv_func_iconv" != yes; then
17184       am_save_LIBS="$LIBS"
17185       LIBS="$LIBS $LIBICONV"
17186       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h.  */
17188 #include <stdlib.h>
17189 #include <iconv.h>
17190 int
17191 main ()
17192 {
17193 iconv_t cd = iconv_open("","");
17194          iconv(cd,NULL,NULL,NULL,NULL);
17195          iconv_close(cd);
17196   ;
17197   return 0;
17198 }
17199 _ACEOF
17200 if ac_fn_c_try_link "$LINENO"; then :
17201   am_cv_lib_iconv=yes
17202         am_cv_func_iconv=yes
17203 fi
17204 rm -f core conftest.err conftest.$ac_objext \
17205     conftest$ac_exeext conftest.$ac_ext
17206       LIBS="$am_save_LIBS"
17207     fi
17208
17209 fi
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17211 $as_echo "$am_cv_func_iconv" >&6; }
17212   if test "$am_cv_func_iconv" = yes; then
17213
17214 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17215
17216   fi
17217   if test "$am_cv_lib_iconv" = yes; then
17218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17219 $as_echo_n "checking how to link with libiconv... " >&6; }
17220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17221 $as_echo "$LIBICONV" >&6; }
17222   else
17223             CPPFLAGS="$am_save_CPPFLAGS"
17224     LIBICONV=
17225     LTLIBICONV=
17226   fi
17227
17228
17229
17230
17231
17232
17233     use_additional=yes
17234
17235   acl_save_prefix="$prefix"
17236   prefix="$acl_final_prefix"
17237   acl_save_exec_prefix="$exec_prefix"
17238   exec_prefix="$acl_final_exec_prefix"
17239
17240     eval additional_includedir=\"$includedir\"
17241     eval additional_libdir=\"$libdir\"
17242
17243   exec_prefix="$acl_save_exec_prefix"
17244   prefix="$acl_save_prefix"
17245
17246
17247 # Check whether --with-libintl-prefix was given.
17248 if test "${with_libintl_prefix+set}" = set; then :
17249   withval=$with_libintl_prefix;
17250     if test "X$withval" = "Xno"; then
17251       use_additional=no
17252     else
17253       if test "X$withval" = "X"; then
17254
17255   acl_save_prefix="$prefix"
17256   prefix="$acl_final_prefix"
17257   acl_save_exec_prefix="$exec_prefix"
17258   exec_prefix="$acl_final_exec_prefix"
17259
17260           eval additional_includedir=\"$includedir\"
17261           eval additional_libdir=\"$libdir\"
17262
17263   exec_prefix="$acl_save_exec_prefix"
17264   prefix="$acl_save_prefix"
17265
17266       else
17267         additional_includedir="$withval/include"
17268         additional_libdir="$withval/lib"
17269       fi
17270     fi
17271
17272 fi
17273
17274       LIBINTL=
17275   LTLIBINTL=
17276   INCINTL=
17277   rpathdirs=
17278   ltrpathdirs=
17279   names_already_handled=
17280   names_next_round='intl '
17281   while test -n "$names_next_round"; do
17282     names_this_round="$names_next_round"
17283     names_next_round=
17284     for name in $names_this_round; do
17285       already_handled=
17286       for n in $names_already_handled; do
17287         if test "$n" = "$name"; then
17288           already_handled=yes
17289           break
17290         fi
17291       done
17292       if test -z "$already_handled"; then
17293         names_already_handled="$names_already_handled $name"
17294                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17295         eval value=\"\$HAVE_LIB$uppername\"
17296         if test -n "$value"; then
17297           if test "$value" = yes; then
17298             eval value=\"\$LIB$uppername\"
17299             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17300             eval value=\"\$LTLIB$uppername\"
17301             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17302           else
17303                                     :
17304           fi
17305         else
17306                               found_dir=
17307           found_la=
17308           found_so=
17309           found_a=
17310           if test $use_additional = yes; then
17311             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17312               found_dir="$additional_libdir"
17313               found_so="$additional_libdir/lib$name.$shlibext"
17314               if test -f "$additional_libdir/lib$name.la"; then
17315                 found_la="$additional_libdir/lib$name.la"
17316               fi
17317             else
17318               if test -f "$additional_libdir/lib$name.$libext"; then
17319                 found_dir="$additional_libdir"
17320                 found_a="$additional_libdir/lib$name.$libext"
17321                 if test -f "$additional_libdir/lib$name.la"; then
17322                   found_la="$additional_libdir/lib$name.la"
17323                 fi
17324               fi
17325             fi
17326           fi
17327           if test "X$found_dir" = "X"; then
17328             for x in $LDFLAGS $LTLIBINTL; do
17329
17330   acl_save_prefix="$prefix"
17331   prefix="$acl_final_prefix"
17332   acl_save_exec_prefix="$exec_prefix"
17333   exec_prefix="$acl_final_exec_prefix"
17334   eval x=\"$x\"
17335   exec_prefix="$acl_save_exec_prefix"
17336   prefix="$acl_save_prefix"
17337
17338               case "$x" in
17339                 -L*)
17340                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17341                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17342                     found_dir="$dir"
17343                     found_so="$dir/lib$name.$shlibext"
17344                     if test -f "$dir/lib$name.la"; then
17345                       found_la="$dir/lib$name.la"
17346                     fi
17347                   else
17348                     if test -f "$dir/lib$name.$libext"; then
17349                       found_dir="$dir"
17350                       found_a="$dir/lib$name.$libext"
17351                       if test -f "$dir/lib$name.la"; then
17352                         found_la="$dir/lib$name.la"
17353                       fi
17354                     fi
17355                   fi
17356                   ;;
17357               esac
17358               if test "X$found_dir" != "X"; then
17359                 break
17360               fi
17361             done
17362           fi
17363           if test "X$found_dir" != "X"; then
17364                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17365             if test "X$found_so" != "X"; then
17366                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17367                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17368               else
17369                                                                                 haveit=
17370                 for x in $ltrpathdirs; do
17371                   if test "X$x" = "X$found_dir"; then
17372                     haveit=yes
17373                     break
17374                   fi
17375                 done
17376                 if test -z "$haveit"; then
17377                   ltrpathdirs="$ltrpathdirs $found_dir"
17378                 fi
17379                                 if test "$hardcode_direct" = yes; then
17380                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17381                 else
17382                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17383                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17384                                                             haveit=
17385                     for x in $rpathdirs; do
17386                       if test "X$x" = "X$found_dir"; then
17387                         haveit=yes
17388                         break
17389                       fi
17390                     done
17391                     if test -z "$haveit"; then
17392                       rpathdirs="$rpathdirs $found_dir"
17393                     fi
17394                   else
17395                                                                                 haveit=
17396                     for x in $LDFLAGS $LIBINTL; do
17397
17398   acl_save_prefix="$prefix"
17399   prefix="$acl_final_prefix"
17400   acl_save_exec_prefix="$exec_prefix"
17401   exec_prefix="$acl_final_exec_prefix"
17402   eval x=\"$x\"
17403   exec_prefix="$acl_save_exec_prefix"
17404   prefix="$acl_save_prefix"
17405
17406                       if test "X$x" = "X-L$found_dir"; then
17407                         haveit=yes
17408                         break
17409                       fi
17410                     done
17411                     if test -z "$haveit"; then
17412                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17413                     fi
17414                     if test "$hardcode_minus_L" != no; then
17415                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17416                     else
17417                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17418                     fi
17419                   fi
17420                 fi
17421               fi
17422             else
17423               if test "X$found_a" != "X"; then
17424                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17425               else
17426                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17427               fi
17428             fi
17429                         additional_includedir=
17430             case "$found_dir" in
17431               */lib | */lib/)
17432                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17433                 additional_includedir="$basedir/include"
17434                 ;;
17435             esac
17436             if test "X$additional_includedir" != "X"; then
17437                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17438                 haveit=
17439                 if test "X$additional_includedir" = "X/usr/local/include"; then
17440                   if test -n "$GCC"; then
17441                     case $host_os in
17442                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17443                     esac
17444                   fi
17445                 fi
17446                 if test -z "$haveit"; then
17447                   for x in $CPPFLAGS $INCINTL; do
17448
17449   acl_save_prefix="$prefix"
17450   prefix="$acl_final_prefix"
17451   acl_save_exec_prefix="$exec_prefix"
17452   exec_prefix="$acl_final_exec_prefix"
17453   eval x=\"$x\"
17454   exec_prefix="$acl_save_exec_prefix"
17455   prefix="$acl_save_prefix"
17456
17457                     if test "X$x" = "X-I$additional_includedir"; then
17458                       haveit=yes
17459                       break
17460                     fi
17461                   done
17462                   if test -z "$haveit"; then
17463                     if test -d "$additional_includedir"; then
17464                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17465                     fi
17466                   fi
17467                 fi
17468               fi
17469             fi
17470                         if test -n "$found_la"; then
17471                                                         save_libdir="$libdir"
17472               case "$found_la" in
17473                 */* | *\\*) . "$found_la" ;;
17474                 *) . "./$found_la" ;;
17475               esac
17476               libdir="$save_libdir"
17477                             for dep in $dependency_libs; do
17478                 case "$dep" in
17479                   -L*)
17480                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17481                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17482                       haveit=
17483                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17484                         if test -n "$GCC"; then
17485                           case $host_os in
17486                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17487                           esac
17488                         fi
17489                       fi
17490                       if test -z "$haveit"; then
17491                         haveit=
17492                         for x in $LDFLAGS $LIBINTL; do
17493
17494   acl_save_prefix="$prefix"
17495   prefix="$acl_final_prefix"
17496   acl_save_exec_prefix="$exec_prefix"
17497   exec_prefix="$acl_final_exec_prefix"
17498   eval x=\"$x\"
17499   exec_prefix="$acl_save_exec_prefix"
17500   prefix="$acl_save_prefix"
17501
17502                           if test "X$x" = "X-L$additional_libdir"; then
17503                             haveit=yes
17504                             break
17505                           fi
17506                         done
17507                         if test -z "$haveit"; then
17508                           if test -d "$additional_libdir"; then
17509                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17510                           fi
17511                         fi
17512                         haveit=
17513                         for x in $LDFLAGS $LTLIBINTL; do
17514
17515   acl_save_prefix="$prefix"
17516   prefix="$acl_final_prefix"
17517   acl_save_exec_prefix="$exec_prefix"
17518   exec_prefix="$acl_final_exec_prefix"
17519   eval x=\"$x\"
17520   exec_prefix="$acl_save_exec_prefix"
17521   prefix="$acl_save_prefix"
17522
17523                           if test "X$x" = "X-L$additional_libdir"; then
17524                             haveit=yes
17525                             break
17526                           fi
17527                         done
17528                         if test -z "$haveit"; then
17529                           if test -d "$additional_libdir"; then
17530                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17531                           fi
17532                         fi
17533                       fi
17534                     fi
17535                     ;;
17536                   -R*)
17537                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17538                     if test "$enable_rpath" != no; then
17539                                                                   haveit=
17540                       for x in $rpathdirs; do
17541                         if test "X$x" = "X$dir"; then
17542                           haveit=yes
17543                           break
17544                         fi
17545                       done
17546                       if test -z "$haveit"; then
17547                         rpathdirs="$rpathdirs $dir"
17548                       fi
17549                                                                   haveit=
17550                       for x in $ltrpathdirs; do
17551                         if test "X$x" = "X$dir"; then
17552                           haveit=yes
17553                           break
17554                         fi
17555                       done
17556                       if test -z "$haveit"; then
17557                         ltrpathdirs="$ltrpathdirs $dir"
17558                       fi
17559                     fi
17560                     ;;
17561                   -l*)
17562                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17563                     ;;
17564                   *.la)
17565                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17566                     ;;
17567                   *)
17568                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17569                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17570                     ;;
17571                 esac
17572               done
17573             fi
17574           else
17575                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17576             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17577           fi
17578         fi
17579       fi
17580     done
17581   done
17582   if test "X$rpathdirs" != "X"; then
17583     if test -n "$hardcode_libdir_separator"; then
17584                         alldirs=
17585       for found_dir in $rpathdirs; do
17586         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17587       done
17588             acl_save_libdir="$libdir"
17589       libdir="$alldirs"
17590       eval flag=\"$hardcode_libdir_flag_spec\"
17591       libdir="$acl_save_libdir"
17592       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17593     else
17594             for found_dir in $rpathdirs; do
17595         acl_save_libdir="$libdir"
17596         libdir="$found_dir"
17597         eval flag=\"$hardcode_libdir_flag_spec\"
17598         libdir="$acl_save_libdir"
17599         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17600       done
17601     fi
17602   fi
17603   if test "X$ltrpathdirs" != "X"; then
17604             for found_dir in $ltrpathdirs; do
17605       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17606     done
17607   fi
17608
17609           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17610 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17611 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
17612   $as_echo_n "(cached) " >&6
17613 else
17614   gt_save_CPPFLAGS="$CPPFLAGS"
17615             CPPFLAGS="$CPPFLAGS $INCINTL"
17616             gt_save_LIBS="$LIBS"
17617             LIBS="$LIBS $LIBINTL"
17618                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h.  */
17620 #include <libintl.h>
17621 extern int _nl_msg_cat_cntr;
17622 extern
17623 #ifdef __cplusplus
17624 "C"
17625 #endif
17626 const char *_nl_expand_alias (const char *);
17627 int
17628 main ()
17629 {
17630 bindtextdomain ("", "");
17631 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 if ac_fn_c_try_link "$LINENO"; then :
17637   gt_cv_func_gnugettext1_libintl=yes
17638 else
17639   gt_cv_func_gnugettext1_libintl=no
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext \
17642     conftest$ac_exeext conftest.$ac_ext
17643                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17644               LIBS="$LIBS $LIBICONV"
17645               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646 /* end confdefs.h.  */
17647 #include <libintl.h>
17648 extern int _nl_msg_cat_cntr;
17649 extern
17650 #ifdef __cplusplus
17651 "C"
17652 #endif
17653 const char *_nl_expand_alias (const char *);
17654 int
17655 main ()
17656 {
17657 bindtextdomain ("", "");
17658 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17659   ;
17660   return 0;
17661 }
17662 _ACEOF
17663 if ac_fn_c_try_link "$LINENO"; then :
17664   LIBINTL="$LIBINTL $LIBICONV"
17665                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17666                 gt_cv_func_gnugettext1_libintl=yes
17667
17668 fi
17669 rm -f core conftest.err conftest.$ac_objext \
17670     conftest$ac_exeext conftest.$ac_ext
17671             fi
17672             CPPFLAGS="$gt_save_CPPFLAGS"
17673             LIBS="$gt_save_LIBS"
17674 fi
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17676 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17677         fi
17678
17679                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17680            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17681                 && test "$PACKAGE" != gettext-runtime \
17682                 && test "$PACKAGE" != gettext-tools; }; then
17683           gt_use_preinstalled_gnugettext=yes
17684         else
17685                     LIBINTL=
17686           LTLIBINTL=
17687           INCINTL=
17688         fi
17689
17690
17691
17692     if test -n "$INTL_MACOSX_LIBS"; then
17693       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17694          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17695                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17696         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17697       fi
17698     fi
17699
17700     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17701        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17702
17703 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17704
17705     else
17706       USE_NLS=no
17707     fi
17708   fi
17709
17710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17711 $as_echo_n "checking whether to use NLS... " >&6; }
17712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17713 $as_echo "$USE_NLS" >&6; }
17714   if test "$USE_NLS" = "yes"; then
17715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17716 $as_echo_n "checking where the gettext function comes from... " >&6; }
17717     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17718       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17719         gt_source="external libintl"
17720       else
17721         gt_source="libc"
17722       fi
17723     else
17724       gt_source="included intl directory"
17725     fi
17726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17727 $as_echo "$gt_source" >&6; }
17728   fi
17729
17730   if test "$USE_NLS" = "yes"; then
17731
17732     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17733       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17734         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17735 $as_echo_n "checking how to link with libintl... " >&6; }
17736         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17737 $as_echo "$LIBINTL" >&6; }
17738
17739   for element in $INCINTL; do
17740     haveit=
17741     for x in $CPPFLAGS; do
17742
17743   acl_save_prefix="$prefix"
17744   prefix="$acl_final_prefix"
17745   acl_save_exec_prefix="$exec_prefix"
17746   exec_prefix="$acl_final_exec_prefix"
17747   eval x=\"$x\"
17748   exec_prefix="$acl_save_exec_prefix"
17749   prefix="$acl_save_prefix"
17750
17751       if test "X$x" = "X$element"; then
17752         haveit=yes
17753         break
17754       fi
17755     done
17756     if test -z "$haveit"; then
17757       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17758     fi
17759   done
17760
17761       fi
17762
17763
17764 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17765
17766
17767 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17768
17769     fi
17770
17771         POSUB=po
17772   fi
17773
17774
17775
17776     INTLLIBS="$LIBINTL"
17777
17778
17779
17780
17781
17782
17783
17784 os_name=`uname -s 2>/dev/null`
17785 if test x${prefix} = xNONE ; then
17786    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17787       sysconfdir=/etc/bacula
17788    fi
17789
17790    if test `eval echo ${libdir}` = NONE/lib ; then
17791       case ${os_name} in
17792       Linux)
17793          os_processor=`uname -p 2>/dev/null`
17794          case ${os_processor} in
17795          x86_64)
17796             libdir=/usr/lib64
17797             ;;
17798          *)
17799             libdir=/usr/lib
17800             ;;
17801          esac
17802          ;;
17803       *)
17804          libdir=/usr/lib
17805          ;;
17806       esac
17807    fi
17808
17809    if test `eval echo ${includedir}` = NONE/include ; then
17810       includedir=/usr/include
17811    fi
17812
17813    if test `eval echo ${datarootdir}` = NONE/share ; then
17814       datarootdir=/usr/share
17815    fi
17816    prefix=
17817 fi
17818
17819 if test x${exec_prefix} = xNONE ; then
17820    exec_prefix=${prefix}
17821 fi
17822
17823 sysconfdir=`eval echo ${sysconfdir}`
17824 datarootdir=`eval echo ${datarootdir}`
17825 docdir=`eval echo ${docdir}`
17826 htmldir=`eval echo ${htmldir}`
17827 libdir=`eval echo ${libdir}`
17828 includedir=`eval echo ${includedir}`
17829 localedir=`eval echo ${datarootdir}/locale`
17830 cat >>confdefs.h <<_ACEOF
17831 #define SYSCONFDIR "$sysconfdir"
17832 _ACEOF
17833
17834 cat >>confdefs.h <<_ACEOF
17835 #define LOCALEDIR "$localedir"
17836 _ACEOF
17837
17838
17839 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17840    sbindir=${exec_prefix}/sbin
17841 fi
17842 sbindir=`eval echo ${sbindir}`
17843
17844 if test x$mandir = x'${prefix}/man' ; then
17845    mandir=/usr/share/man
17846 fi
17847
17848 if test x$htmldir = x${docdir} ; then
17849    htmldir=`eval echo ${docdir}bacula/html`
17850 fi
17851
17852 if test x$docdir = x'/usr/share/doc/' ; then
17853    docdir=`eval echo ${docdir}bacula`
17854 fi
17855
17856
17857 for ac_prog in msgfmt
17858 do
17859   # Extract the first word of "$ac_prog", so it can be a program name with args.
17860 set dummy $ac_prog; ac_word=$2
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17862 $as_echo_n "checking for $ac_word... " >&6; }
17863 if ${ac_cv_path_MSGFMT+:} false; then :
17864   $as_echo_n "(cached) " >&6
17865 else
17866   case $MSGFMT in
17867   [\\/]* | ?:[\\/]*)
17868   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17869   ;;
17870   *)
17871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17872 for as_dir in $PATH
17873 do
17874   IFS=$as_save_IFS
17875   test -z "$as_dir" && as_dir=.
17876     for ac_exec_ext in '' $ac_executable_extensions; do
17877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17878     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17880     break 2
17881   fi
17882 done
17883   done
17884 IFS=$as_save_IFS
17885
17886   ;;
17887 esac
17888 fi
17889 MSGFMT=$ac_cv_path_MSGFMT
17890 if test -n "$MSGFMT"; then
17891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17892 $as_echo "$MSGFMT" >&6; }
17893 else
17894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17895 $as_echo "no" >&6; }
17896 fi
17897
17898
17899   test -n "$MSGFMT" && break
17900 done
17901 test -n "$MSGFMT" || MSGFMT="no"
17902
17903 if test "$MSGFMT" = "no"
17904 then
17905    echo 'msgfmt program not found, disabling NLS !'
17906    USE_NLS=no
17907    USE_INCLUDED_LIBINTL=no
17908 #else
17909
17910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17911 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17912 if ${ac_cv_gnu_library_2+:} false; then :
17913   $as_echo_n "(cached) " >&6
17914 else
17915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h.  */
17917
17918 #include <features.h>
17919 #ifdef __GNU_LIBRARY__
17920  #if (__GLIBC__ >= 2)
17921   Lucky GNU user
17922  #endif
17923 #endif
17924
17925 _ACEOF
17926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17927   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17928   ac_cv_gnu_library_2=yes
17929 else
17930   ac_cv_gnu_library_2=no
17931 fi
17932 rm -f conftest*
17933
17934
17935
17936 fi
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17938 $as_echo "$ac_cv_gnu_library_2" >&6; }
17939
17940     GLIBC2="$ac_cv_gnu_library_2"
17941
17942
17943 if test -n "$ac_tool_prefix"; then
17944   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17947 $as_echo_n "checking for $ac_word... " >&6; }
17948 if ${ac_cv_prog_RANLIB+:} false; then :
17949   $as_echo_n "(cached) " >&6
17950 else
17951   if test -n "$RANLIB"; then
17952   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17953 else
17954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17955 for as_dir in $PATH
17956 do
17957   IFS=$as_save_IFS
17958   test -z "$as_dir" && as_dir=.
17959     for ac_exec_ext in '' $ac_executable_extensions; do
17960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17961     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17963     break 2
17964   fi
17965 done
17966   done
17967 IFS=$as_save_IFS
17968
17969 fi
17970 fi
17971 RANLIB=$ac_cv_prog_RANLIB
17972 if test -n "$RANLIB"; then
17973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17974 $as_echo "$RANLIB" >&6; }
17975 else
17976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17977 $as_echo "no" >&6; }
17978 fi
17979
17980
17981 fi
17982 if test -z "$ac_cv_prog_RANLIB"; then
17983   ac_ct_RANLIB=$RANLIB
17984   # Extract the first word of "ranlib", so it can be a program name with args.
17985 set dummy ranlib; ac_word=$2
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17987 $as_echo_n "checking for $ac_word... " >&6; }
17988 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17989   $as_echo_n "(cached) " >&6
17990 else
17991   if test -n "$ac_ct_RANLIB"; then
17992   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17993 else
17994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17995 for as_dir in $PATH
17996 do
17997   IFS=$as_save_IFS
17998   test -z "$as_dir" && as_dir=.
17999     for ac_exec_ext in '' $ac_executable_extensions; do
18000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18001     ac_cv_prog_ac_ct_RANLIB="ranlib"
18002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18003     break 2
18004   fi
18005 done
18006   done
18007 IFS=$as_save_IFS
18008
18009 fi
18010 fi
18011 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18012 if test -n "$ac_ct_RANLIB"; then
18013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18014 $as_echo "$ac_ct_RANLIB" >&6; }
18015 else
18016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18017 $as_echo "no" >&6; }
18018 fi
18019
18020   if test "x$ac_ct_RANLIB" = x; then
18021     RANLIB=":"
18022   else
18023     case $cross_compiling:$ac_tool_warned in
18024 yes:)
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18027 ac_tool_warned=yes ;;
18028 esac
18029     RANLIB=$ac_ct_RANLIB
18030   fi
18031 else
18032   RANLIB="$ac_cv_prog_RANLIB"
18033 fi
18034
18035
18036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18037 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18038 if ${ac_cv_lib_cposix_strerror+:} false; then :
18039   $as_echo_n "(cached) " >&6
18040 else
18041   ac_check_lib_save_LIBS=$LIBS
18042 LIBS="-lcposix  $LIBS"
18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h.  */
18045
18046 /* Override any GCC internal prototype to avoid an error.
18047    Use char because int might match the return type of a GCC
18048    builtin and then its argument prototype would still apply.  */
18049 #ifdef __cplusplus
18050 extern "C"
18051 #endif
18052 char strerror ();
18053 int
18054 main ()
18055 {
18056 return strerror ();
18057   ;
18058   return 0;
18059 }
18060 _ACEOF
18061 if ac_fn_c_try_link "$LINENO"; then :
18062   ac_cv_lib_cposix_strerror=yes
18063 else
18064   ac_cv_lib_cposix_strerror=no
18065 fi
18066 rm -f core conftest.err conftest.$ac_objext \
18067     conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18069 fi
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18071 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18072 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18073   LIBS="$LIBS -lcposix"
18074 fi
18075
18076
18077
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18079 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18080 if ${ac_cv_c_const+:} false; then :
18081   $as_echo_n "(cached) " >&6
18082 else
18083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h.  */
18085
18086 int
18087 main ()
18088 {
18089 /* FIXME: Include the comments suggested by Paul. */
18090 #ifndef __cplusplus
18091   /* Ultrix mips cc rejects this.  */
18092   typedef int charset[2];
18093   const charset cs;
18094   /* SunOS 4.1.1 cc rejects this.  */
18095   char const *const *pcpcc;
18096   char **ppc;
18097   /* NEC SVR4.0.2 mips cc rejects this.  */
18098   struct point {int x, y;};
18099   static struct point const zero = {0,0};
18100   /* AIX XL C 1.02.0.0 rejects this.
18101      It does not let you subtract one const X* pointer from another in
18102      an arm of an if-expression whose if-part is not a constant
18103      expression */
18104   const char *g = "string";
18105   pcpcc = &g + (g ? g-g : 0);
18106   /* HPUX 7.0 cc rejects these. */
18107   ++pcpcc;
18108   ppc = (char**) pcpcc;
18109   pcpcc = (char const *const *) ppc;
18110   { /* SCO 3.2v4 cc rejects this.  */
18111     char *t;
18112     char const *s = 0 ? (char *) 0 : (char const *) 0;
18113
18114     *t++ = 0;
18115     if (s) return 0;
18116   }
18117   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18118     int x[] = {25, 17};
18119     const int *foo = &x[0];
18120     ++foo;
18121   }
18122   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18123     typedef const int *iptr;
18124     iptr p = 0;
18125     ++p;
18126   }
18127   { /* AIX XL C 1.02.0.0 rejects this saying
18128        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18129     struct s { int j; const int *ap[3]; };
18130     struct s *b; b->j = 5;
18131   }
18132   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18133     const int foo = 10;
18134     if (!foo) return 0;
18135   }
18136   return !cs[0] && !zero.x;
18137 #endif
18138
18139   ;
18140   return 0;
18141 }
18142 _ACEOF
18143 if ac_fn_c_try_compile "$LINENO"; then :
18144   ac_cv_c_const=yes
18145 else
18146   ac_cv_c_const=no
18147 fi
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149 fi
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18151 $as_echo "$ac_cv_c_const" >&6; }
18152 if test $ac_cv_c_const = no; then
18153
18154 $as_echo "#define const /**/" >>confdefs.h
18155
18156 fi
18157
18158
18159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18160 $as_echo_n "checking for signed... " >&6; }
18161 if ${bh_cv_c_signed+:} false; then :
18162   $as_echo_n "(cached) " >&6
18163 else
18164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h.  */
18166
18167 int
18168 main ()
18169 {
18170 signed char x;
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 if ac_fn_c_try_compile "$LINENO"; then :
18176   bh_cv_c_signed=yes
18177 else
18178   bh_cv_c_signed=no
18179 fi
18180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18181 fi
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18183 $as_echo "$bh_cv_c_signed" >&6; }
18184   if test $bh_cv_c_signed = no; then
18185
18186 $as_echo "#define signed /**/" >>confdefs.h
18187
18188   fi
18189
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18191 $as_echo_n "checking for inline... " >&6; }
18192 if ${ac_cv_c_inline+:} false; then :
18193   $as_echo_n "(cached) " >&6
18194 else
18195   ac_cv_c_inline=no
18196 for ac_kw in inline __inline__ __inline; do
18197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h.  */
18199 #ifndef __cplusplus
18200 typedef int foo_t;
18201 static $ac_kw foo_t static_foo () {return 0; }
18202 $ac_kw foo_t foo () {return 0; }
18203 #endif
18204
18205 _ACEOF
18206 if ac_fn_c_try_compile "$LINENO"; then :
18207   ac_cv_c_inline=$ac_kw
18208 fi
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210   test "$ac_cv_c_inline" != no && break
18211 done
18212
18213 fi
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18215 $as_echo "$ac_cv_c_inline" >&6; }
18216
18217 case $ac_cv_c_inline in
18218   inline | yes) ;;
18219   *)
18220     case $ac_cv_c_inline in
18221       no) ac_val=;;
18222       *) ac_val=$ac_cv_c_inline;;
18223     esac
18224     cat >>confdefs.h <<_ACEOF
18225 #ifndef __cplusplus
18226 #define inline $ac_val
18227 #endif
18228 _ACEOF
18229     ;;
18230 esac
18231
18232 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18233 if test "x$ac_cv_type_off_t" = xyes; then :
18234
18235 else
18236
18237 cat >>confdefs.h <<_ACEOF
18238 #define off_t long int
18239 _ACEOF
18240
18241 fi
18242
18243 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18244 if test "x$ac_cv_type_size_t" = xyes; then :
18245
18246 else
18247
18248 cat >>confdefs.h <<_ACEOF
18249 #define size_t unsigned int
18250 _ACEOF
18251
18252 fi
18253
18254
18255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18256 $as_echo_n "checking for long long... " >&6; }
18257 if ${ac_cv_type_long_long+:} false; then :
18258   $as_echo_n "(cached) " >&6
18259 else
18260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h.  */
18262 long long ll = 1LL; int i = 63;
18263 int
18264 main ()
18265 {
18266 long long llmax = (long long) -1;
18267      return ll << i | ll >> i | llmax / ll | llmax % ll;
18268   ;
18269   return 0;
18270 }
18271 _ACEOF
18272 if ac_fn_c_try_link "$LINENO"; then :
18273   ac_cv_type_long_long=yes
18274 else
18275   ac_cv_type_long_long=no
18276 fi
18277 rm -f core conftest.err conftest.$ac_objext \
18278     conftest$ac_exeext conftest.$ac_ext
18279 fi
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18281 $as_echo "$ac_cv_type_long_long" >&6; }
18282   if test $ac_cv_type_long_long = yes; then
18283
18284 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18285
18286   fi
18287
18288
18289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18290 $as_echo_n "checking for long double... " >&6; }
18291 if ${gt_cv_c_long_double+:} false; then :
18292   $as_echo_n "(cached) " >&6
18293 else
18294   if test "$GCC" = yes; then
18295        gt_cv_c_long_double=yes
18296      else
18297        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h.  */
18299
18300          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18301          long double foo = 0.0;
18302          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18303          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18304
18305 int
18306 main ()
18307 {
18308
18309   ;
18310   return 0;
18311 }
18312 _ACEOF
18313 if ac_fn_c_try_compile "$LINENO"; then :
18314   gt_cv_c_long_double=yes
18315 else
18316   gt_cv_c_long_double=no
18317 fi
18318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319      fi
18320 fi
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18322 $as_echo "$gt_cv_c_long_double" >&6; }
18323   if test $gt_cv_c_long_double = yes; then
18324
18325 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18326
18327   fi
18328
18329
18330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18331 $as_echo_n "checking for wchar_t... " >&6; }
18332 if ${gt_cv_c_wchar_t+:} false; then :
18333   $as_echo_n "(cached) " >&6
18334 else
18335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h.  */
18337 #include <stddef.h>
18338        wchar_t foo = (wchar_t)'\0';
18339 int
18340 main ()
18341 {
18342
18343   ;
18344   return 0;
18345 }
18346 _ACEOF
18347 if ac_fn_c_try_compile "$LINENO"; then :
18348   gt_cv_c_wchar_t=yes
18349 else
18350   gt_cv_c_wchar_t=no
18351 fi
18352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18353 fi
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18355 $as_echo "$gt_cv_c_wchar_t" >&6; }
18356   if test $gt_cv_c_wchar_t = yes; then
18357
18358 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18359
18360   fi
18361
18362
18363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18364 $as_echo_n "checking for wint_t... " >&6; }
18365 if ${gt_cv_c_wint_t+:} false; then :
18366   $as_echo_n "(cached) " >&6
18367 else
18368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h.  */
18370 #include <wchar.h>
18371        wint_t foo = (wchar_t)'\0';
18372 int
18373 main ()
18374 {
18375
18376   ;
18377   return 0;
18378 }
18379 _ACEOF
18380 if ac_fn_c_try_compile "$LINENO"; then :
18381   gt_cv_c_wint_t=yes
18382 else
18383   gt_cv_c_wint_t=no
18384 fi
18385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18386 fi
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18388 $as_echo "$gt_cv_c_wint_t" >&6; }
18389   if test $gt_cv_c_wint_t = yes; then
18390
18391 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18392
18393   fi
18394
18395
18396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18397 $as_echo_n "checking for inttypes.h... " >&6; }
18398 if ${gl_cv_header_inttypes_h+:} false; then :
18399   $as_echo_n "(cached) " >&6
18400 else
18401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h.  */
18403 #include <sys/types.h>
18404 #include <inttypes.h>
18405 int
18406 main ()
18407 {
18408 uintmax_t i = (uintmax_t) -1;
18409   ;
18410   return 0;
18411 }
18412 _ACEOF
18413 if ac_fn_c_try_compile "$LINENO"; then :
18414   gl_cv_header_inttypes_h=yes
18415 else
18416   gl_cv_header_inttypes_h=no
18417 fi
18418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18419 fi
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18421 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18422   if test $gl_cv_header_inttypes_h = yes; then
18423
18424 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18426 _ACEOF
18427
18428   fi
18429
18430
18431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18432 $as_echo_n "checking for stdint.h... " >&6; }
18433 if ${gl_cv_header_stdint_h+:} false; then :
18434   $as_echo_n "(cached) " >&6
18435 else
18436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h.  */
18438 #include <sys/types.h>
18439 #include <stdint.h>
18440 int
18441 main ()
18442 {
18443 uintmax_t i = (uintmax_t) -1;
18444   ;
18445   return 0;
18446 }
18447 _ACEOF
18448 if ac_fn_c_try_compile "$LINENO"; then :
18449   gl_cv_header_stdint_h=yes
18450 else
18451   gl_cv_header_stdint_h=no
18452 fi
18453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18454 fi
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18456 $as_echo "$gl_cv_header_stdint_h" >&6; }
18457   if test $gl_cv_header_stdint_h = yes; then
18458
18459 cat >>confdefs.h <<_ACEOF
18460 #define HAVE_STDINT_H_WITH_UINTMAX 1
18461 _ACEOF
18462
18463   fi
18464
18465
18466
18467
18468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18469 $as_echo_n "checking for intmax_t... " >&6; }
18470 if ${gt_cv_c_intmax_t+:} false; then :
18471   $as_echo_n "(cached) " >&6
18472 else
18473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18474 /* end confdefs.h.  */
18475
18476 #include <stddef.h>
18477 #include <stdlib.h>
18478 #if HAVE_STDINT_H_WITH_UINTMAX
18479 #include <stdint.h>
18480 #endif
18481 #if HAVE_INTTYPES_H_WITH_UINTMAX
18482 #include <inttypes.h>
18483 #endif
18484
18485 int
18486 main ()
18487 {
18488 intmax_t x = -1;
18489   ;
18490   return 0;
18491 }
18492 _ACEOF
18493 if ac_fn_c_try_compile "$LINENO"; then :
18494   gt_cv_c_intmax_t=yes
18495 else
18496   gt_cv_c_intmax_t=no
18497 fi
18498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18499 fi
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18501 $as_echo "$gt_cv_c_intmax_t" >&6; }
18502   if test $gt_cv_c_intmax_t = yes; then
18503
18504 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18505
18506   fi
18507
18508
18509
18510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18511 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18512 if ${gt_cv_func_printf_posix+:} false; then :
18513   $as_echo_n "(cached) " >&6
18514 else
18515
18516       if test "$cross_compiling" = yes; then :
18517
18518         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h.  */
18520
18521 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18522   notposix
18523 #endif
18524
18525 _ACEOF
18526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18527   $EGREP "notposix" >/dev/null 2>&1; then :
18528   gt_cv_func_printf_posix="guessing no"
18529 else
18530   gt_cv_func_printf_posix="guessing yes"
18531 fi
18532 rm -f conftest*
18533
18534
18535 else
18536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h.  */
18538
18539 #include <stdio.h>
18540 #include <string.h>
18541 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18542    dollar expansion (possibly an autoconf bug).  */
18543 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18544 static char buf[100];
18545 int main ()
18546 {
18547   sprintf (buf, format, 33, 55);
18548   return (strcmp (buf, "55 33") != 0);
18549 }
18550 _ACEOF
18551 if ac_fn_c_try_run "$LINENO"; then :
18552   gt_cv_func_printf_posix=yes
18553 else
18554   gt_cv_func_printf_posix=no
18555 fi
18556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18557   conftest.$ac_objext conftest.beam conftest.$ac_ext
18558 fi
18559
18560
18561 fi
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18563 $as_echo "$gt_cv_func_printf_posix" >&6; }
18564   case $gt_cv_func_printf_posix in
18565     *yes)
18566
18567 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18568
18569       ;;
18570   esac
18571
18572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18573 # for constant arguments.  Useless!
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18575 $as_echo_n "checking for working alloca.h... " >&6; }
18576 if ${ac_cv_working_alloca_h+:} false; then :
18577   $as_echo_n "(cached) " >&6
18578 else
18579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h.  */
18581 #include <alloca.h>
18582 int
18583 main ()
18584 {
18585 char *p = (char *) alloca (2 * sizeof (int));
18586                           if (p) return 0;
18587   ;
18588   return 0;
18589 }
18590 _ACEOF
18591 if ac_fn_c_try_link "$LINENO"; then :
18592   ac_cv_working_alloca_h=yes
18593 else
18594   ac_cv_working_alloca_h=no
18595 fi
18596 rm -f core conftest.err conftest.$ac_objext \
18597     conftest$ac_exeext conftest.$ac_ext
18598 fi
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18600 $as_echo "$ac_cv_working_alloca_h" >&6; }
18601 if test $ac_cv_working_alloca_h = yes; then
18602
18603 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18604
18605 fi
18606
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18608 $as_echo_n "checking for alloca... " >&6; }
18609 if ${ac_cv_func_alloca_works+:} false; then :
18610   $as_echo_n "(cached) " >&6
18611 else
18612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613 /* end confdefs.h.  */
18614 #ifdef __GNUC__
18615 # define alloca __builtin_alloca
18616 #else
18617 # ifdef _MSC_VER
18618 #  include <malloc.h>
18619 #  define alloca _alloca
18620 # else
18621 #  ifdef HAVE_ALLOCA_H
18622 #   include <alloca.h>
18623 #  else
18624 #   ifdef _AIX
18625  #pragma alloca
18626 #   else
18627 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18628 void *alloca (size_t);
18629 #    endif
18630 #   endif
18631 #  endif
18632 # endif
18633 #endif
18634
18635 int
18636 main ()
18637 {
18638 char *p = (char *) alloca (1);
18639                                     if (p) return 0;
18640   ;
18641   return 0;
18642 }
18643 _ACEOF
18644 if ac_fn_c_try_link "$LINENO"; then :
18645   ac_cv_func_alloca_works=yes
18646 else
18647   ac_cv_func_alloca_works=no
18648 fi
18649 rm -f core conftest.err conftest.$ac_objext \
18650     conftest$ac_exeext conftest.$ac_ext
18651 fi
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18653 $as_echo "$ac_cv_func_alloca_works" >&6; }
18654
18655 if test $ac_cv_func_alloca_works = yes; then
18656
18657 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18658
18659 else
18660   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18661 # that cause trouble.  Some versions do not even contain alloca or
18662 # contain a buggy version.  If you still want to use their alloca,
18663 # use ar to extract alloca.o from them instead of compiling alloca.c.
18664
18665 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18666
18667 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18668
18669
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18671 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18672 if ${ac_cv_os_cray+:} false; then :
18673   $as_echo_n "(cached) " >&6
18674 else
18675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h.  */
18677 #if defined CRAY && ! defined CRAY2
18678 webecray
18679 #else
18680 wenotbecray
18681 #endif
18682
18683 _ACEOF
18684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18685   $EGREP "webecray" >/dev/null 2>&1; then :
18686   ac_cv_os_cray=yes
18687 else
18688   ac_cv_os_cray=no
18689 fi
18690 rm -f conftest*
18691
18692 fi
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18694 $as_echo "$ac_cv_os_cray" >&6; }
18695 if test $ac_cv_os_cray = yes; then
18696   for ac_func in _getb67 GETB67 getb67; do
18697     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18700
18701 cat >>confdefs.h <<_ACEOF
18702 #define CRAY_STACKSEG_END $ac_func
18703 _ACEOF
18704
18705     break
18706 fi
18707
18708   done
18709 fi
18710
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18712 $as_echo_n "checking stack direction for C alloca... " >&6; }
18713 if ${ac_cv_c_stack_direction+:} false; then :
18714   $as_echo_n "(cached) " >&6
18715 else
18716   if test "$cross_compiling" = yes; then :
18717   ac_cv_c_stack_direction=0
18718 else
18719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720 /* end confdefs.h.  */
18721 $ac_includes_default
18722 int
18723 find_stack_direction ()
18724 {
18725   static char *addr = 0;
18726   auto char dummy;
18727   if (addr == 0)
18728     {
18729       addr = &dummy;
18730       return find_stack_direction ();
18731     }
18732   else
18733     return (&dummy > addr) ? 1 : -1;
18734 }
18735
18736 int
18737 main ()
18738 {
18739   return find_stack_direction () < 0;
18740 }
18741 _ACEOF
18742 if ac_fn_c_try_run "$LINENO"; then :
18743   ac_cv_c_stack_direction=1
18744 else
18745   ac_cv_c_stack_direction=-1
18746 fi
18747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18748   conftest.$ac_objext conftest.beam conftest.$ac_ext
18749 fi
18750
18751 fi
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18753 $as_echo "$ac_cv_c_stack_direction" >&6; }
18754 cat >>confdefs.h <<_ACEOF
18755 #define STACK_DIRECTION $ac_cv_c_stack_direction
18756 _ACEOF
18757
18758
18759 fi
18760
18761
18762
18763
18764   for ac_header in $ac_header_list
18765 do :
18766   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18767 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18768 "
18769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18770   cat >>confdefs.h <<_ACEOF
18771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18772 _ACEOF
18773
18774 fi
18775
18776 done
18777
18778
18779
18780
18781
18782
18783
18784
18785 for ac_func in getpagesize
18786 do :
18787   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18788 if test "x$ac_cv_func_getpagesize" = xyes; then :
18789   cat >>confdefs.h <<_ACEOF
18790 #define HAVE_GETPAGESIZE 1
18791 _ACEOF
18792
18793 fi
18794 done
18795
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18797 $as_echo_n "checking for working mmap... " >&6; }
18798 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18799   $as_echo_n "(cached) " >&6
18800 else
18801   if test "$cross_compiling" = yes; then :
18802   ac_cv_func_mmap_fixed_mapped=no
18803 else
18804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h.  */
18806 $ac_includes_default
18807 /* malloc might have been renamed as rpl_malloc. */
18808 #undef malloc
18809
18810 /* Thanks to Mike Haertel and Jim Avera for this test.
18811    Here is a matrix of mmap possibilities:
18812         mmap private not fixed
18813         mmap private fixed at somewhere currently unmapped
18814         mmap private fixed at somewhere already mapped
18815         mmap shared not fixed
18816         mmap shared fixed at somewhere currently unmapped
18817         mmap shared fixed at somewhere already mapped
18818    For private mappings, we should verify that changes cannot be read()
18819    back from the file, nor mmap's back from the file at a different
18820    address.  (There have been systems where private was not correctly
18821    implemented like the infamous i386 svr4.0, and systems where the
18822    VM page cache was not coherent with the file system buffer cache
18823    like early versions of FreeBSD and possibly contemporary NetBSD.)
18824    For shared mappings, we should conversely verify that changes get
18825    propagated back to all the places they're supposed to be.
18826
18827    Grep wants private fixed already mapped.
18828    The main things grep needs to know about mmap are:
18829    * does it exist and is it safe to write into the mmap'd area
18830    * how to use it (BSD variants)  */
18831
18832 #include <fcntl.h>
18833 #include <sys/mman.h>
18834
18835 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18836 char *malloc ();
18837 #endif
18838
18839 /* This mess was copied from the GNU getpagesize.h.  */
18840 #ifndef HAVE_GETPAGESIZE
18841 # ifdef _SC_PAGESIZE
18842 #  define getpagesize() sysconf(_SC_PAGESIZE)
18843 # else /* no _SC_PAGESIZE */
18844 #  ifdef HAVE_SYS_PARAM_H
18845 #   include <sys/param.h>
18846 #   ifdef EXEC_PAGESIZE
18847 #    define getpagesize() EXEC_PAGESIZE
18848 #   else /* no EXEC_PAGESIZE */
18849 #    ifdef NBPG
18850 #     define getpagesize() NBPG * CLSIZE
18851 #     ifndef CLSIZE
18852 #      define CLSIZE 1
18853 #     endif /* no CLSIZE */
18854 #    else /* no NBPG */
18855 #     ifdef NBPC
18856 #      define getpagesize() NBPC
18857 #     else /* no NBPC */
18858 #      ifdef PAGESIZE
18859 #       define getpagesize() PAGESIZE
18860 #      endif /* PAGESIZE */
18861 #     endif /* no NBPC */
18862 #    endif /* no NBPG */
18863 #   endif /* no EXEC_PAGESIZE */
18864 #  else /* no HAVE_SYS_PARAM_H */
18865 #   define getpagesize() 8192   /* punt totally */
18866 #  endif /* no HAVE_SYS_PARAM_H */
18867 # endif /* no _SC_PAGESIZE */
18868
18869 #endif /* no HAVE_GETPAGESIZE */
18870
18871 int
18872 main ()
18873 {
18874   char *data, *data2, *data3;
18875   const char *cdata2;
18876   int i, pagesize;
18877   int fd, fd2;
18878
18879   pagesize = getpagesize ();
18880
18881   /* First, make a file with some known garbage in it. */
18882   data = (char *) malloc (pagesize);
18883   if (!data)
18884     return 1;
18885   for (i = 0; i < pagesize; ++i)
18886     *(data + i) = rand ();
18887   umask (0);
18888   fd = creat ("conftest.mmap", 0600);
18889   if (fd < 0)
18890     return 2;
18891   if (write (fd, data, pagesize) != pagesize)
18892     return 3;
18893   close (fd);
18894
18895   /* Next, check that the tail of a page is zero-filled.  File must have
18896      non-zero length, otherwise we risk SIGBUS for entire page.  */
18897   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18898   if (fd2 < 0)
18899     return 4;
18900   cdata2 = "";
18901   if (write (fd2, cdata2, 1) != 1)
18902     return 5;
18903   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18904   if (data2 == MAP_FAILED)
18905     return 6;
18906   for (i = 0; i < pagesize; ++i)
18907     if (*(data2 + i))
18908       return 7;
18909   close (fd2);
18910   if (munmap (data2, pagesize))
18911     return 8;
18912
18913   /* Next, try to mmap the file at a fixed address which already has
18914      something else allocated at it.  If we can, also make sure that
18915      we see the same garbage.  */
18916   fd = open ("conftest.mmap", O_RDWR);
18917   if (fd < 0)
18918     return 9;
18919   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18920                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18921     return 10;
18922   for (i = 0; i < pagesize; ++i)
18923     if (*(data + i) != *(data2 + i))
18924       return 11;
18925
18926   /* Finally, make sure that changes to the mapped area do not
18927      percolate back to the file as seen by read().  (This is a bug on
18928      some variants of i386 svr4.0.)  */
18929   for (i = 0; i < pagesize; ++i)
18930     *(data2 + i) = *(data2 + i) + 1;
18931   data3 = (char *) malloc (pagesize);
18932   if (!data3)
18933     return 12;
18934   if (read (fd, data3, pagesize) != pagesize)
18935     return 13;
18936   for (i = 0; i < pagesize; ++i)
18937     if (*(data + i) != *(data3 + i))
18938       return 14;
18939   close (fd);
18940   return 0;
18941 }
18942 _ACEOF
18943 if ac_fn_c_try_run "$LINENO"; then :
18944   ac_cv_func_mmap_fixed_mapped=yes
18945 else
18946   ac_cv_func_mmap_fixed_mapped=no
18947 fi
18948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18949   conftest.$ac_objext conftest.beam conftest.$ac_ext
18950 fi
18951
18952 fi
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18954 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18955 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18956
18957 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18958
18959 fi
18960 rm -f conftest.mmap conftest.txt
18961
18962
18963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18964 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18965 if ${ac_cv_gnu_library_2_1+:} false; then :
18966   $as_echo_n "(cached) " >&6
18967 else
18968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969 /* end confdefs.h.  */
18970
18971 #include <features.h>
18972 #ifdef __GNU_LIBRARY__
18973  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18974   Lucky GNU user
18975  #endif
18976 #endif
18977
18978 _ACEOF
18979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18980   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18981   ac_cv_gnu_library_2_1=yes
18982 else
18983   ac_cv_gnu_library_2_1=no
18984 fi
18985 rm -f conftest*
18986
18987
18988
18989 fi
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18991 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18992
18993     GLIBC21="$ac_cv_gnu_library_2_1"
18994
18995
18996
18997
18998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18999 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19000 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
19001   $as_echo_n "(cached) " >&6
19002 else
19003
19004       if test "$cross_compiling" = yes; then :
19005
19006           # Guess based on the CPU.
19007           case "$host_cpu" in
19008             alpha* | i3456786 | m68k | s390*)
19009               gt_cv_int_divbyzero_sigfpe="guessing yes";;
19010             *)
19011               gt_cv_int_divbyzero_sigfpe="guessing no";;
19012           esac
19013
19014 else
19015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h.  */
19017
19018 #include <stdlib.h>
19019 #include <signal.h>
19020
19021 static void
19022 #ifdef __cplusplus
19023 sigfpe_handler (int sig)
19024 #else
19025 sigfpe_handler (sig) int sig;
19026 #endif
19027 {
19028   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
19029   exit (sig != SIGFPE);
19030 }
19031
19032 int x = 1;
19033 int y = 0;
19034 int z;
19035 int nan;
19036
19037 int main ()
19038 {
19039   signal (SIGFPE, sigfpe_handler);
19040 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
19041 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19042   signal (SIGTRAP, sigfpe_handler);
19043 #endif
19044 /* Linux/SPARC yields signal SIGILL.  */
19045 #if defined (__sparc__) && defined (__linux__)
19046   signal (SIGILL, sigfpe_handler);
19047 #endif
19048
19049   z = x / y;
19050   nan = y / y;
19051   exit (1);
19052 }
19053
19054 _ACEOF
19055 if ac_fn_c_try_run "$LINENO"; then :
19056   gt_cv_int_divbyzero_sigfpe=yes
19057 else
19058   gt_cv_int_divbyzero_sigfpe=no
19059 fi
19060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19061   conftest.$ac_objext conftest.beam conftest.$ac_ext
19062 fi
19063
19064
19065 fi
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19067 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19068   case "$gt_cv_int_divbyzero_sigfpe" in
19069     *yes) value=1;;
19070     *) value=0;;
19071   esac
19072
19073 cat >>confdefs.h <<_ACEOF
19074 #define INTDIV0_RAISES_SIGFPE $value
19075 _ACEOF
19076
19077
19078
19079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19080 $as_echo_n "checking for unsigned long long... " >&6; }
19081 if ${ac_cv_type_unsigned_long_long+:} false; then :
19082   $as_echo_n "(cached) " >&6
19083 else
19084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19085 /* end confdefs.h.  */
19086 unsigned long long ull = 1ULL; int i = 63;
19087 int
19088 main ()
19089 {
19090 unsigned long long ullmax = (unsigned long long) -1;
19091      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19092   ;
19093   return 0;
19094 }
19095 _ACEOF
19096 if ac_fn_c_try_link "$LINENO"; then :
19097   ac_cv_type_unsigned_long_long=yes
19098 else
19099   ac_cv_type_unsigned_long_long=no
19100 fi
19101 rm -f core conftest.err conftest.$ac_objext \
19102     conftest$ac_exeext conftest.$ac_ext
19103 fi
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19105 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19106   if test $ac_cv_type_unsigned_long_long = yes; then
19107
19108 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19109
19110   fi
19111
19112
19113
19114
19115   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19116
19117     test $ac_cv_type_unsigned_long_long = yes \
19118       && ac_type='unsigned long long' \
19119       || ac_type='unsigned long'
19120
19121 cat >>confdefs.h <<_ACEOF
19122 #define uintmax_t $ac_type
19123 _ACEOF
19124
19125   else
19126
19127 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19128
19129   fi
19130
19131
19132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19133 $as_echo_n "checking for inttypes.h... " >&6; }
19134 if ${gt_cv_header_inttypes_h+:} false; then :
19135   $as_echo_n "(cached) " >&6
19136 else
19137
19138     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139 /* end confdefs.h.  */
19140 #include <sys/types.h>
19141 #include <inttypes.h>
19142 int
19143 main ()
19144 {
19145
19146   ;
19147   return 0;
19148 }
19149 _ACEOF
19150 if ac_fn_c_try_compile "$LINENO"; then :
19151   gt_cv_header_inttypes_h=yes
19152 else
19153   gt_cv_header_inttypes_h=no
19154 fi
19155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19156
19157 fi
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19159 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19160   if test $gt_cv_header_inttypes_h = yes; then
19161
19162 cat >>confdefs.h <<_ACEOF
19163 #define HAVE_INTTYPES_H 1
19164 _ACEOF
19165
19166   fi
19167
19168
19169
19170   if test $gt_cv_header_inttypes_h = yes; then
19171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19172 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19173 if ${gt_cv_inttypes_pri_broken+:} false; then :
19174   $as_echo_n "(cached) " >&6
19175 else
19176
19177         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h.  */
19179 #include <inttypes.h>
19180 #ifdef PRId32
19181 char *p = PRId32;
19182 #endif
19183
19184 int
19185 main ()
19186 {
19187
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 if ac_fn_c_try_compile "$LINENO"; then :
19193   gt_cv_inttypes_pri_broken=no
19194 else
19195   gt_cv_inttypes_pri_broken=yes
19196 fi
19197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19198
19199 fi
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19201 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19202   fi
19203   if test "$gt_cv_inttypes_pri_broken" = yes; then
19204
19205 cat >>confdefs.h <<_ACEOF
19206 #define PRI_MACROS_BROKEN 1
19207 _ACEOF
19208
19209   fi
19210
19211
19212   for ac_header in stdint.h
19213 do :
19214   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19215 if test "x$ac_cv_header_stdint_h" = xyes; then :
19216   cat >>confdefs.h <<_ACEOF
19217 #define HAVE_STDINT_H 1
19218 _ACEOF
19219
19220 fi
19221
19222 done
19223
19224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19225 $as_echo_n "checking for SIZE_MAX... " >&6; }
19226   result=
19227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19228 /* end confdefs.h.  */
19229
19230 #include <limits.h>
19231 #if HAVE_STDINT_H
19232 #include <stdint.h>
19233 #endif
19234 #ifdef SIZE_MAX
19235 Found it
19236 #endif
19237
19238 _ACEOF
19239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19240   $EGREP "Found it" >/dev/null 2>&1; then :
19241   result=yes
19242 fi
19243 rm -f conftest*
19244
19245   if test -z "$result"; then
19246                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19247
19248 else
19249   result=?
19250 fi
19251
19252
19253     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19254
19255 else
19256   result=?
19257 fi
19258
19259
19260     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19261
19262 else
19263   result=?
19264 fi
19265
19266
19267     if test "$fits_in_uint" = 1; then
19268                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269 /* end confdefs.h.  */
19270 #include <stddef.h>
19271         extern size_t foo;
19272         extern unsigned long foo;
19273
19274 int
19275 main ()
19276 {
19277
19278   ;
19279   return 0;
19280 }
19281 _ACEOF
19282 if ac_fn_c_try_compile "$LINENO"; then :
19283   fits_in_uint=0
19284 fi
19285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19286     fi
19287     if test -z "$result"; then
19288       if test "$fits_in_uint" = 1; then
19289         result="$res_hi$res_lo"U
19290       else
19291         result="$res_hi$res_lo"UL
19292       fi
19293     else
19294             result='~(size_t)0'
19295     fi
19296   fi
19297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19298 $as_echo "$result" >&6; }
19299   if test "$result" != yes; then
19300
19301 cat >>confdefs.h <<_ACEOF
19302 #define SIZE_MAX $result
19303 _ACEOF
19304
19305   fi
19306
19307
19308
19309
19310   for ac_header in stdint.h
19311 do :
19312   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19313 if test "x$ac_cv_header_stdint_h" = xyes; then :
19314   cat >>confdefs.h <<_ACEOF
19315 #define HAVE_STDINT_H 1
19316 _ACEOF
19317
19318 fi
19319
19320 done
19321
19322
19323
19324
19325
19326
19327
19328
19329   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19330 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19331
19332 else
19333
19334 $as_echo "#define ptrdiff_t long" >>confdefs.h
19335
19336
19337 fi
19338
19339   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19340 stdlib.h string.h unistd.h sys/param.h
19341 do :
19342   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19343 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19345   cat >>confdefs.h <<_ACEOF
19346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19347 _ACEOF
19348
19349 fi
19350
19351 done
19352
19353   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19354 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19355 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19356 __fsetlocking
19357 do :
19358   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19360 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19361   cat >>confdefs.h <<_ACEOF
19362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19363 _ACEOF
19364
19365 fi
19366 done
19367
19368
19369
19370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19371 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19372 if ${ac_cv_have_decl__snprintf+:} false; then :
19373   $as_echo_n "(cached) " >&6
19374 else
19375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h.  */
19377 #include <stdio.h>
19378 int
19379 main ()
19380 {
19381
19382 #ifndef _snprintf
19383   char *p = (char *) _snprintf;
19384 #endif
19385
19386   ;
19387   return 0;
19388 }
19389 _ACEOF
19390 if ac_fn_c_try_compile "$LINENO"; then :
19391   ac_cv_have_decl__snprintf=yes
19392 else
19393   ac_cv_have_decl__snprintf=no
19394 fi
19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396 fi
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19398 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19399   if test $ac_cv_have_decl__snprintf = yes; then
19400     gt_value=1
19401   else
19402     gt_value=0
19403   fi
19404
19405 cat >>confdefs.h <<_ACEOF
19406 #define HAVE_DECL__SNPRINTF $gt_value
19407 _ACEOF
19408
19409
19410
19411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19412 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19413 if ${ac_cv_have_decl__snwprintf+:} false; then :
19414   $as_echo_n "(cached) " >&6
19415 else
19416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h.  */
19418 #include <stdio.h>
19419 int
19420 main ()
19421 {
19422
19423 #ifndef _snwprintf
19424   char *p = (char *) _snwprintf;
19425 #endif
19426
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 if ac_fn_c_try_compile "$LINENO"; then :
19432   ac_cv_have_decl__snwprintf=yes
19433 else
19434   ac_cv_have_decl__snwprintf=no
19435 fi
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437 fi
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19439 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19440   if test $ac_cv_have_decl__snwprintf = yes; then
19441     gt_value=1
19442   else
19443     gt_value=0
19444   fi
19445
19446 cat >>confdefs.h <<_ACEOF
19447 #define HAVE_DECL__SNWPRINTF $gt_value
19448 _ACEOF
19449
19450
19451
19452
19453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19454 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19455 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
19456   $as_echo_n "(cached) " >&6
19457 else
19458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h.  */
19460 #include <stdio.h>
19461 int
19462 main ()
19463 {
19464
19465 #ifndef feof_unlocked
19466   char *p = (char *) feof_unlocked;
19467 #endif
19468
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 if ac_fn_c_try_compile "$LINENO"; then :
19474   ac_cv_have_decl_feof_unlocked=yes
19475 else
19476   ac_cv_have_decl_feof_unlocked=no
19477 fi
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19479 fi
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19481 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19482   if test $ac_cv_have_decl_feof_unlocked = yes; then
19483     gt_value=1
19484   else
19485     gt_value=0
19486   fi
19487
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19490 _ACEOF
19491
19492
19493
19494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19495 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19496 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
19497   $as_echo_n "(cached) " >&6
19498 else
19499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19500 /* end confdefs.h.  */
19501 #include <stdio.h>
19502 int
19503 main ()
19504 {
19505
19506 #ifndef fgets_unlocked
19507   char *p = (char *) fgets_unlocked;
19508 #endif
19509
19510   ;
19511   return 0;
19512 }
19513 _ACEOF
19514 if ac_fn_c_try_compile "$LINENO"; then :
19515   ac_cv_have_decl_fgets_unlocked=yes
19516 else
19517   ac_cv_have_decl_fgets_unlocked=no
19518 fi
19519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19520 fi
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19522 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19523   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19524     gt_value=1
19525   else
19526     gt_value=0
19527   fi
19528
19529 cat >>confdefs.h <<_ACEOF
19530 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19531 _ACEOF
19532
19533
19534
19535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19536 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19537 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19538   $as_echo_n "(cached) " >&6
19539 else
19540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h.  */
19542 #include <stdio.h>
19543 int
19544 main ()
19545 {
19546
19547 #ifndef getc_unlocked
19548   char *p = (char *) getc_unlocked;
19549 #endif
19550
19551   ;
19552   return 0;
19553 }
19554 _ACEOF
19555 if ac_fn_c_try_compile "$LINENO"; then :
19556   ac_cv_have_decl_getc_unlocked=yes
19557 else
19558   ac_cv_have_decl_getc_unlocked=no
19559 fi
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 fi
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19563 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19564   if test $ac_cv_have_decl_getc_unlocked = yes; then
19565     gt_value=1
19566   else
19567     gt_value=0
19568   fi
19569
19570 cat >>confdefs.h <<_ACEOF
19571 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19572 _ACEOF
19573
19574
19575
19576   case $gt_cv_func_printf_posix in
19577     *yes) HAVE_POSIX_PRINTF=1 ;;
19578     *) HAVE_POSIX_PRINTF=0 ;;
19579   esac
19580
19581   if test "$ac_cv_func_asprintf" = yes; then
19582     HAVE_ASPRINTF=1
19583   else
19584     HAVE_ASPRINTF=0
19585   fi
19586
19587   if test "$ac_cv_func_snprintf" = yes; then
19588     HAVE_SNPRINTF=1
19589   else
19590     HAVE_SNPRINTF=0
19591   fi
19592
19593   if test "$ac_cv_func_wprintf" = yes; then
19594     HAVE_WPRINTF=1
19595   else
19596     HAVE_WPRINTF=0
19597   fi
19598
19599
19600
19601
19602
19603
19604
19605           am_save_CPPFLAGS="$CPPFLAGS"
19606
19607   for element in $INCICONV; do
19608     haveit=
19609     for x in $CPPFLAGS; do
19610
19611   acl_save_prefix="$prefix"
19612   prefix="$acl_final_prefix"
19613   acl_save_exec_prefix="$exec_prefix"
19614   exec_prefix="$acl_final_exec_prefix"
19615   eval x=\"$x\"
19616   exec_prefix="$acl_save_exec_prefix"
19617   prefix="$acl_save_prefix"
19618
19619       if test "X$x" = "X$element"; then
19620         haveit=yes
19621         break
19622       fi
19623     done
19624     if test -z "$haveit"; then
19625       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19626     fi
19627   done
19628
19629
19630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19631 $as_echo_n "checking for iconv... " >&6; }
19632 if ${am_cv_func_iconv+:} false; then :
19633   $as_echo_n "(cached) " >&6
19634 else
19635
19636     am_cv_func_iconv="no, consider installing GNU libiconv"
19637     am_cv_lib_iconv=no
19638     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h.  */
19640 #include <stdlib.h>
19641 #include <iconv.h>
19642 int
19643 main ()
19644 {
19645 iconv_t cd = iconv_open("","");
19646        iconv(cd,NULL,NULL,NULL,NULL);
19647        iconv_close(cd);
19648   ;
19649   return 0;
19650 }
19651 _ACEOF
19652 if ac_fn_c_try_link "$LINENO"; then :
19653   am_cv_func_iconv=yes
19654 fi
19655 rm -f core conftest.err conftest.$ac_objext \
19656     conftest$ac_exeext conftest.$ac_ext
19657     if test "$am_cv_func_iconv" != yes; then
19658       am_save_LIBS="$LIBS"
19659       LIBS="$LIBS $LIBICONV"
19660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h.  */
19662 #include <stdlib.h>
19663 #include <iconv.h>
19664 int
19665 main ()
19666 {
19667 iconv_t cd = iconv_open("","");
19668          iconv(cd,NULL,NULL,NULL,NULL);
19669          iconv_close(cd);
19670   ;
19671   return 0;
19672 }
19673 _ACEOF
19674 if ac_fn_c_try_link "$LINENO"; then :
19675   am_cv_lib_iconv=yes
19676         am_cv_func_iconv=yes
19677 fi
19678 rm -f core conftest.err conftest.$ac_objext \
19679     conftest$ac_exeext conftest.$ac_ext
19680       LIBS="$am_save_LIBS"
19681     fi
19682
19683 fi
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19685 $as_echo "$am_cv_func_iconv" >&6; }
19686   if test "$am_cv_func_iconv" = yes; then
19687
19688 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19689
19690   fi
19691   if test "$am_cv_lib_iconv" = yes; then
19692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19693 $as_echo_n "checking how to link with libiconv... " >&6; }
19694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19695 $as_echo "$LIBICONV" >&6; }
19696   else
19697             CPPFLAGS="$am_save_CPPFLAGS"
19698     LIBICONV=
19699     LTLIBICONV=
19700   fi
19701
19702
19703
19704   if test "$am_cv_func_iconv" = yes; then
19705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19706 $as_echo_n "checking for iconv declaration... " >&6; }
19707     if ${am_cv_proto_iconv+:} false; then :
19708   $as_echo_n "(cached) " >&6
19709 else
19710
19711       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h.  */
19713
19714 #include <stdlib.h>
19715 #include <iconv.h>
19716 extern
19717 #ifdef __cplusplus
19718 "C"
19719 #endif
19720 #if defined(__STDC__) || defined(__cplusplus)
19721 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19722 #else
19723 size_t iconv();
19724 #endif
19725
19726 int
19727 main ()
19728 {
19729
19730   ;
19731   return 0;
19732 }
19733 _ACEOF
19734 if ac_fn_c_try_compile "$LINENO"; then :
19735   am_cv_proto_iconv_arg1=""
19736 else
19737   am_cv_proto_iconv_arg1="const"
19738 fi
19739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740       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);"
19741 fi
19742
19743     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19745          }$am_cv_proto_iconv" >&5
19746 $as_echo "${ac_t:-
19747          }$am_cv_proto_iconv" >&6; }
19748
19749 cat >>confdefs.h <<_ACEOF
19750 #define ICONV_CONST $am_cv_proto_iconv_arg1
19751 _ACEOF
19752
19753   fi
19754
19755
19756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19757 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19758 if ${am_cv_langinfo_codeset+:} false; then :
19759   $as_echo_n "(cached) " >&6
19760 else
19761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19762 /* end confdefs.h.  */
19763 #include <langinfo.h>
19764 int
19765 main ()
19766 {
19767 char* cs = nl_langinfo(CODESET);
19768   ;
19769   return 0;
19770 }
19771 _ACEOF
19772 if ac_fn_c_try_link "$LINENO"; then :
19773   am_cv_langinfo_codeset=yes
19774 else
19775   am_cv_langinfo_codeset=no
19776 fi
19777 rm -f core conftest.err conftest.$ac_objext \
19778     conftest$ac_exeext conftest.$ac_ext
19779
19780 fi
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19782 $as_echo "$am_cv_langinfo_codeset" >&6; }
19783   if test $am_cv_langinfo_codeset = yes; then
19784
19785 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19786
19787   fi
19788
19789   if test $ac_cv_header_locale_h = yes; then
19790
19791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19792 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19793 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19794   $as_echo_n "(cached) " >&6
19795 else
19796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h.  */
19798 #include <locale.h>
19799 int
19800 main ()
19801 {
19802 return LC_MESSAGES
19803   ;
19804   return 0;
19805 }
19806 _ACEOF
19807 if ac_fn_c_try_link "$LINENO"; then :
19808   gt_cv_val_LC_MESSAGES=yes
19809 else
19810   gt_cv_val_LC_MESSAGES=no
19811 fi
19812 rm -f core conftest.err conftest.$ac_objext \
19813     conftest$ac_exeext conftest.$ac_ext
19814 fi
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19816 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19817   if test $gt_cv_val_LC_MESSAGES = yes; then
19818
19819 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19820
19821   fi
19822
19823   fi
19824
19825   if test -n "$INTL_MACOSX_LIBS"; then
19826     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19827   fi
19828
19829                       for ac_prog in bison
19830 do
19831   # Extract the first word of "$ac_prog", so it can be a program name with args.
19832 set dummy $ac_prog; ac_word=$2
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19834 $as_echo_n "checking for $ac_word... " >&6; }
19835 if ${ac_cv_prog_INTLBISON+:} false; then :
19836   $as_echo_n "(cached) " >&6
19837 else
19838   if test -n "$INTLBISON"; then
19839   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19840 else
19841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19842 for as_dir in $PATH
19843 do
19844   IFS=$as_save_IFS
19845   test -z "$as_dir" && as_dir=.
19846     for ac_exec_ext in '' $ac_executable_extensions; do
19847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19848     ac_cv_prog_INTLBISON="$ac_prog"
19849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19850     break 2
19851   fi
19852 done
19853   done
19854 IFS=$as_save_IFS
19855
19856 fi
19857 fi
19858 INTLBISON=$ac_cv_prog_INTLBISON
19859 if test -n "$INTLBISON"; then
19860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19861 $as_echo "$INTLBISON" >&6; }
19862 else
19863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19864 $as_echo "no" >&6; }
19865 fi
19866
19867
19868   test -n "$INTLBISON" && break
19869 done
19870
19871   if test -z "$INTLBISON"; then
19872     ac_verc_fail=yes
19873   else
19874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19875 $as_echo_n "checking version of bison... " >&6; }
19876     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19877     case $ac_prog_version in
19878       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19879       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19880          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19881       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19882     esac
19883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19884 $as_echo "$ac_prog_version" >&6; }
19885   fi
19886   if test $ac_verc_fail = yes; then
19887     INTLBISON=:
19888   fi
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19906 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19907 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19908   $as_echo_n "(cached) " >&6
19909 else
19910   gt_save_CPPFLAGS="$CPPFLAGS"
19911      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19912      gt_save_LIBS="$LIBS"
19913      LIBS="$LIBS -framework CoreFoundation"
19914      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19915 /* end confdefs.h.  */
19916 #include <CFPreferences.h>
19917 int
19918 main ()
19919 {
19920 CFPreferencesCopyAppValue(NULL, NULL)
19921   ;
19922   return 0;
19923 }
19924 _ACEOF
19925 if ac_fn_c_try_link "$LINENO"; then :
19926   gt_cv_func_CFPreferencesCopyAppValue=yes
19927 else
19928   gt_cv_func_CFPreferencesCopyAppValue=no
19929 fi
19930 rm -f core conftest.err conftest.$ac_objext \
19931     conftest$ac_exeext conftest.$ac_ext
19932      CPPFLAGS="$gt_save_CPPFLAGS"
19933      LIBS="$gt_save_LIBS"
19934 fi
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19936 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19937   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19938
19939 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19940
19941   fi
19942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19943 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19944 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19945   $as_echo_n "(cached) " >&6
19946 else
19947   gt_save_CPPFLAGS="$CPPFLAGS"
19948      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19949      gt_save_LIBS="$LIBS"
19950      LIBS="$LIBS -framework CoreFoundation"
19951      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19952 /* end confdefs.h.  */
19953 #include <CFLocale.h>
19954 int
19955 main ()
19956 {
19957 CFLocaleCopyCurrent();
19958   ;
19959   return 0;
19960 }
19961 _ACEOF
19962 if ac_fn_c_try_link "$LINENO"; then :
19963   gt_cv_func_CFLocaleCopyCurrent=yes
19964 else
19965   gt_cv_func_CFLocaleCopyCurrent=no
19966 fi
19967 rm -f core conftest.err conftest.$ac_objext \
19968     conftest$ac_exeext conftest.$ac_ext
19969      CPPFLAGS="$gt_save_CPPFLAGS"
19970      LIBS="$gt_save_LIBS"
19971 fi
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19973 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19974   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19975
19976 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19977
19978   fi
19979   INTL_MACOSX_LIBS=
19980   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19981     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19982   fi
19983
19984
19985
19986
19987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19988 $as_echo_n "checking whether NLS is requested... " >&6; }
19989     # Check whether --enable-nls was given.
19990 if test "${enable_nls+set}" = set; then :
19991   enableval=$enable_nls; USE_NLS=$enableval
19992 else
19993   USE_NLS=yes
19994 fi
19995
19996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19997 $as_echo "$USE_NLS" >&6; }
19998
19999
20000
20001
20002     BUILD_INCLUDED_LIBINTL=no
20003     USE_INCLUDED_LIBINTL=no
20004
20005   LIBINTL=
20006   LTLIBINTL=
20007   POSUB=
20008
20009     if test "$USE_NLS" = "yes"; then
20010     gt_use_preinstalled_gnugettext=no
20011
20012       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20013 $as_echo_n "checking whether included gettext is requested... " >&6; }
20014
20015 # Check whether --with-included-gettext was given.
20016 if test "${with_included_gettext+set}" = set; then :
20017   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20018 else
20019   nls_cv_force_use_gnu_gettext=no
20020 fi
20021
20022       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20023 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20024
20025       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20026       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20027
20028
20029
20030
20031
20032
20033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20034 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20035 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20036   $as_echo_n "(cached) " >&6
20037 else
20038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h.  */
20040 #include <libintl.h>
20041 extern int _nl_msg_cat_cntr;
20042 extern int *_nl_domain_bindings;
20043 int
20044 main ()
20045 {
20046 bindtextdomain ("", "");
20047 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20048   ;
20049   return 0;
20050 }
20051 _ACEOF
20052 if ac_fn_c_try_link "$LINENO"; then :
20053   gt_cv_func_gnugettext1_libc=yes
20054 else
20055   gt_cv_func_gnugettext1_libc=no
20056 fi
20057 rm -f core conftest.err conftest.$ac_objext \
20058     conftest$ac_exeext conftest.$ac_ext
20059 fi
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20061 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20062
20063         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20064
20065
20066
20067     use_additional=yes
20068
20069   acl_save_prefix="$prefix"
20070   prefix="$acl_final_prefix"
20071   acl_save_exec_prefix="$exec_prefix"
20072   exec_prefix="$acl_final_exec_prefix"
20073
20074     eval additional_includedir=\"$includedir\"
20075     eval additional_libdir=\"$libdir\"
20076
20077   exec_prefix="$acl_save_exec_prefix"
20078   prefix="$acl_save_prefix"
20079
20080
20081 # Check whether --with-libintl-prefix was given.
20082 if test "${with_libintl_prefix+set}" = set; then :
20083   withval=$with_libintl_prefix;
20084     if test "X$withval" = "Xno"; then
20085       use_additional=no
20086     else
20087       if test "X$withval" = "X"; then
20088
20089   acl_save_prefix="$prefix"
20090   prefix="$acl_final_prefix"
20091   acl_save_exec_prefix="$exec_prefix"
20092   exec_prefix="$acl_final_exec_prefix"
20093
20094           eval additional_includedir=\"$includedir\"
20095           eval additional_libdir=\"$libdir\"
20096
20097   exec_prefix="$acl_save_exec_prefix"
20098   prefix="$acl_save_prefix"
20099
20100       else
20101         additional_includedir="$withval/include"
20102         additional_libdir="$withval/lib"
20103       fi
20104     fi
20105
20106 fi
20107
20108       LIBINTL=
20109   LTLIBINTL=
20110   INCINTL=
20111   rpathdirs=
20112   ltrpathdirs=
20113   names_already_handled=
20114   names_next_round='intl '
20115   while test -n "$names_next_round"; do
20116     names_this_round="$names_next_round"
20117     names_next_round=
20118     for name in $names_this_round; do
20119       already_handled=
20120       for n in $names_already_handled; do
20121         if test "$n" = "$name"; then
20122           already_handled=yes
20123           break
20124         fi
20125       done
20126       if test -z "$already_handled"; then
20127         names_already_handled="$names_already_handled $name"
20128                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20129         eval value=\"\$HAVE_LIB$uppername\"
20130         if test -n "$value"; then
20131           if test "$value" = yes; then
20132             eval value=\"\$LIB$uppername\"
20133             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20134             eval value=\"\$LTLIB$uppername\"
20135             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20136           else
20137                                     :
20138           fi
20139         else
20140                               found_dir=
20141           found_la=
20142           found_so=
20143           found_a=
20144           if test $use_additional = yes; then
20145             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20146               found_dir="$additional_libdir"
20147               found_so="$additional_libdir/lib$name.$shlibext"
20148               if test -f "$additional_libdir/lib$name.la"; then
20149                 found_la="$additional_libdir/lib$name.la"
20150               fi
20151             else
20152               if test -f "$additional_libdir/lib$name.$libext"; then
20153                 found_dir="$additional_libdir"
20154                 found_a="$additional_libdir/lib$name.$libext"
20155                 if test -f "$additional_libdir/lib$name.la"; then
20156                   found_la="$additional_libdir/lib$name.la"
20157                 fi
20158               fi
20159             fi
20160           fi
20161           if test "X$found_dir" = "X"; then
20162             for x in $LDFLAGS $LTLIBINTL; do
20163
20164   acl_save_prefix="$prefix"
20165   prefix="$acl_final_prefix"
20166   acl_save_exec_prefix="$exec_prefix"
20167   exec_prefix="$acl_final_exec_prefix"
20168   eval x=\"$x\"
20169   exec_prefix="$acl_save_exec_prefix"
20170   prefix="$acl_save_prefix"
20171
20172               case "$x" in
20173                 -L*)
20174                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20175                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20176                     found_dir="$dir"
20177                     found_so="$dir/lib$name.$shlibext"
20178                     if test -f "$dir/lib$name.la"; then
20179                       found_la="$dir/lib$name.la"
20180                     fi
20181                   else
20182                     if test -f "$dir/lib$name.$libext"; then
20183                       found_dir="$dir"
20184                       found_a="$dir/lib$name.$libext"
20185                       if test -f "$dir/lib$name.la"; then
20186                         found_la="$dir/lib$name.la"
20187                       fi
20188                     fi
20189                   fi
20190                   ;;
20191               esac
20192               if test "X$found_dir" != "X"; then
20193                 break
20194               fi
20195             done
20196           fi
20197           if test "X$found_dir" != "X"; then
20198                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20199             if test "X$found_so" != "X"; then
20200                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20201                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20202               else
20203                                                                                 haveit=
20204                 for x in $ltrpathdirs; do
20205                   if test "X$x" = "X$found_dir"; then
20206                     haveit=yes
20207                     break
20208                   fi
20209                 done
20210                 if test -z "$haveit"; then
20211                   ltrpathdirs="$ltrpathdirs $found_dir"
20212                 fi
20213                                 if test "$hardcode_direct" = yes; then
20214                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20215                 else
20216                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20217                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20218                                                             haveit=
20219                     for x in $rpathdirs; do
20220                       if test "X$x" = "X$found_dir"; then
20221                         haveit=yes
20222                         break
20223                       fi
20224                     done
20225                     if test -z "$haveit"; then
20226                       rpathdirs="$rpathdirs $found_dir"
20227                     fi
20228                   else
20229                                                                                 haveit=
20230                     for x in $LDFLAGS $LIBINTL; do
20231
20232   acl_save_prefix="$prefix"
20233   prefix="$acl_final_prefix"
20234   acl_save_exec_prefix="$exec_prefix"
20235   exec_prefix="$acl_final_exec_prefix"
20236   eval x=\"$x\"
20237   exec_prefix="$acl_save_exec_prefix"
20238   prefix="$acl_save_prefix"
20239
20240                       if test "X$x" = "X-L$found_dir"; then
20241                         haveit=yes
20242                         break
20243                       fi
20244                     done
20245                     if test -z "$haveit"; then
20246                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20247                     fi
20248                     if test "$hardcode_minus_L" != no; then
20249                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20250                     else
20251                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20252                     fi
20253                   fi
20254                 fi
20255               fi
20256             else
20257               if test "X$found_a" != "X"; then
20258                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20259               else
20260                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20261               fi
20262             fi
20263                         additional_includedir=
20264             case "$found_dir" in
20265               */lib | */lib/)
20266                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20267                 additional_includedir="$basedir/include"
20268                 ;;
20269             esac
20270             if test "X$additional_includedir" != "X"; then
20271                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20272                 haveit=
20273                 if test "X$additional_includedir" = "X/usr/local/include"; then
20274                   if test -n "$GCC"; then
20275                     case $host_os in
20276                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20277                     esac
20278                   fi
20279                 fi
20280                 if test -z "$haveit"; then
20281                   for x in $CPPFLAGS $INCINTL; do
20282
20283   acl_save_prefix="$prefix"
20284   prefix="$acl_final_prefix"
20285   acl_save_exec_prefix="$exec_prefix"
20286   exec_prefix="$acl_final_exec_prefix"
20287   eval x=\"$x\"
20288   exec_prefix="$acl_save_exec_prefix"
20289   prefix="$acl_save_prefix"
20290
20291                     if test "X$x" = "X-I$additional_includedir"; then
20292                       haveit=yes
20293                       break
20294                     fi
20295                   done
20296                   if test -z "$haveit"; then
20297                     if test -d "$additional_includedir"; then
20298                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20299                     fi
20300                   fi
20301                 fi
20302               fi
20303             fi
20304                         if test -n "$found_la"; then
20305                                                         save_libdir="$libdir"
20306               case "$found_la" in
20307                 */* | *\\*) . "$found_la" ;;
20308                 *) . "./$found_la" ;;
20309               esac
20310               libdir="$save_libdir"
20311                             for dep in $dependency_libs; do
20312                 case "$dep" in
20313                   -L*)
20314                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20315                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20316                       haveit=
20317                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20318                         if test -n "$GCC"; then
20319                           case $host_os in
20320                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20321                           esac
20322                         fi
20323                       fi
20324                       if test -z "$haveit"; then
20325                         haveit=
20326                         for x in $LDFLAGS $LIBINTL; do
20327
20328   acl_save_prefix="$prefix"
20329   prefix="$acl_final_prefix"
20330   acl_save_exec_prefix="$exec_prefix"
20331   exec_prefix="$acl_final_exec_prefix"
20332   eval x=\"$x\"
20333   exec_prefix="$acl_save_exec_prefix"
20334   prefix="$acl_save_prefix"
20335
20336                           if test "X$x" = "X-L$additional_libdir"; then
20337                             haveit=yes
20338                             break
20339                           fi
20340                         done
20341                         if test -z "$haveit"; then
20342                           if test -d "$additional_libdir"; then
20343                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20344                           fi
20345                         fi
20346                         haveit=
20347                         for x in $LDFLAGS $LTLIBINTL; do
20348
20349   acl_save_prefix="$prefix"
20350   prefix="$acl_final_prefix"
20351   acl_save_exec_prefix="$exec_prefix"
20352   exec_prefix="$acl_final_exec_prefix"
20353   eval x=\"$x\"
20354   exec_prefix="$acl_save_exec_prefix"
20355   prefix="$acl_save_prefix"
20356
20357                           if test "X$x" = "X-L$additional_libdir"; then
20358                             haveit=yes
20359                             break
20360                           fi
20361                         done
20362                         if test -z "$haveit"; then
20363                           if test -d "$additional_libdir"; then
20364                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20365                           fi
20366                         fi
20367                       fi
20368                     fi
20369                     ;;
20370                   -R*)
20371                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20372                     if test "$enable_rpath" != no; then
20373                                                                   haveit=
20374                       for x in $rpathdirs; do
20375                         if test "X$x" = "X$dir"; then
20376                           haveit=yes
20377                           break
20378                         fi
20379                       done
20380                       if test -z "$haveit"; then
20381                         rpathdirs="$rpathdirs $dir"
20382                       fi
20383                                                                   haveit=
20384                       for x in $ltrpathdirs; do
20385                         if test "X$x" = "X$dir"; then
20386                           haveit=yes
20387                           break
20388                         fi
20389                       done
20390                       if test -z "$haveit"; then
20391                         ltrpathdirs="$ltrpathdirs $dir"
20392                       fi
20393                     fi
20394                     ;;
20395                   -l*)
20396                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20397                     ;;
20398                   *.la)
20399                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20400                     ;;
20401                   *)
20402                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20403                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20404                     ;;
20405                 esac
20406               done
20407             fi
20408           else
20409                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20410             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20411           fi
20412         fi
20413       fi
20414     done
20415   done
20416   if test "X$rpathdirs" != "X"; then
20417     if test -n "$hardcode_libdir_separator"; then
20418                         alldirs=
20419       for found_dir in $rpathdirs; do
20420         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20421       done
20422             acl_save_libdir="$libdir"
20423       libdir="$alldirs"
20424       eval flag=\"$hardcode_libdir_flag_spec\"
20425       libdir="$acl_save_libdir"
20426       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20427     else
20428             for found_dir in $rpathdirs; do
20429         acl_save_libdir="$libdir"
20430         libdir="$found_dir"
20431         eval flag=\"$hardcode_libdir_flag_spec\"
20432         libdir="$acl_save_libdir"
20433         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20434       done
20435     fi
20436   fi
20437   if test "X$ltrpathdirs" != "X"; then
20438             for found_dir in $ltrpathdirs; do
20439       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20440     done
20441   fi
20442
20443           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20444 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20445 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
20446   $as_echo_n "(cached) " >&6
20447 else
20448   gt_save_CPPFLAGS="$CPPFLAGS"
20449             CPPFLAGS="$CPPFLAGS $INCINTL"
20450             gt_save_LIBS="$LIBS"
20451             LIBS="$LIBS $LIBINTL"
20452                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h.  */
20454 #include <libintl.h>
20455 extern int _nl_msg_cat_cntr;
20456 extern
20457 #ifdef __cplusplus
20458 "C"
20459 #endif
20460 const char *_nl_expand_alias (const char *);
20461 int
20462 main ()
20463 {
20464 bindtextdomain ("", "");
20465 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20466   ;
20467   return 0;
20468 }
20469 _ACEOF
20470 if ac_fn_c_try_link "$LINENO"; then :
20471   gt_cv_func_gnugettext1_libintl=yes
20472 else
20473   gt_cv_func_gnugettext1_libintl=no
20474 fi
20475 rm -f core conftest.err conftest.$ac_objext \
20476     conftest$ac_exeext conftest.$ac_ext
20477                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20478               LIBS="$LIBS $LIBICONV"
20479               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20480 /* end confdefs.h.  */
20481 #include <libintl.h>
20482 extern int _nl_msg_cat_cntr;
20483 extern
20484 #ifdef __cplusplus
20485 "C"
20486 #endif
20487 const char *_nl_expand_alias (const char *);
20488 int
20489 main ()
20490 {
20491 bindtextdomain ("", "");
20492 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20493   ;
20494   return 0;
20495 }
20496 _ACEOF
20497 if ac_fn_c_try_link "$LINENO"; then :
20498   LIBINTL="$LIBINTL $LIBICONV"
20499                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20500                 gt_cv_func_gnugettext1_libintl=yes
20501
20502 fi
20503 rm -f core conftest.err conftest.$ac_objext \
20504     conftest$ac_exeext conftest.$ac_ext
20505             fi
20506             CPPFLAGS="$gt_save_CPPFLAGS"
20507             LIBS="$gt_save_LIBS"
20508 fi
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20510 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20511         fi
20512
20513                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20514            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20515                 && test "$PACKAGE" != gettext-runtime \
20516                 && test "$PACKAGE" != gettext-tools; }; then
20517           gt_use_preinstalled_gnugettext=yes
20518         else
20519                     LIBINTL=
20520           LTLIBINTL=
20521           INCINTL=
20522         fi
20523
20524
20525         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20526                               nls_cv_use_gnu_gettext=yes
20527         fi
20528       fi
20529
20530       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20531                 BUILD_INCLUDED_LIBINTL=yes
20532         USE_INCLUDED_LIBINTL=yes
20533         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20534         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20535         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20536       fi
20537
20538       CATOBJEXT=
20539       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20540          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20541                 CATOBJEXT=.gmo
20542       fi
20543
20544
20545     if test -n "$INTL_MACOSX_LIBS"; then
20546       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20547          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20548                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20549         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20550       fi
20551     fi
20552
20553     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20554        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20555
20556 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20557
20558     else
20559       USE_NLS=no
20560     fi
20561   fi
20562
20563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20564 $as_echo_n "checking whether to use NLS... " >&6; }
20565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20566 $as_echo "$USE_NLS" >&6; }
20567   if test "$USE_NLS" = "yes"; then
20568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20569 $as_echo_n "checking where the gettext function comes from... " >&6; }
20570     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20571       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20572         gt_source="external libintl"
20573       else
20574         gt_source="libc"
20575       fi
20576     else
20577       gt_source="included intl directory"
20578     fi
20579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20580 $as_echo "$gt_source" >&6; }
20581   fi
20582
20583   if test "$USE_NLS" = "yes"; then
20584
20585     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20586       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20587         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20588 $as_echo_n "checking how to link with libintl... " >&6; }
20589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20590 $as_echo "$LIBINTL" >&6; }
20591
20592   for element in $INCINTL; do
20593     haveit=
20594     for x in $CPPFLAGS; do
20595
20596   acl_save_prefix="$prefix"
20597   prefix="$acl_final_prefix"
20598   acl_save_exec_prefix="$exec_prefix"
20599   exec_prefix="$acl_final_exec_prefix"
20600   eval x=\"$x\"
20601   exec_prefix="$acl_save_exec_prefix"
20602   prefix="$acl_save_prefix"
20603
20604       if test "X$x" = "X$element"; then
20605         haveit=yes
20606         break
20607       fi
20608     done
20609     if test -z "$haveit"; then
20610       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20611     fi
20612   done
20613
20614       fi
20615
20616
20617 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20618
20619
20620 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20621
20622     fi
20623
20624         POSUB=po
20625   fi
20626
20627
20628             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20629       BUILD_INCLUDED_LIBINTL=yes
20630     fi
20631
20632
20633
20634
20635
20636         nls_cv_header_intl=
20637     nls_cv_header_libgt=
20638
20639         DATADIRNAME=share
20640
20641
20642         INSTOBJEXT=.mo
20643
20644
20645         GENCAT=gencat
20646
20647
20648         INTLOBJS=
20649     if test "$USE_INCLUDED_LIBINTL" = yes; then
20650       INTLOBJS="\$(GETTOBJS)"
20651     fi
20652
20653
20654         INTL_LIBTOOL_SUFFIX_PREFIX=
20655
20656
20657
20658     INTLLIBS="$LIBINTL"
20659
20660
20661
20662
20663
20664
20665 fi
20666
20667 support_smartalloc=yes
20668 support_readline=yes
20669 support_conio=yes
20670 support_gnome=no
20671 support_bat=no
20672 support_wx_console=no
20673 support_tray_monitor=no
20674 support_tls=no
20675 support_crypto=no
20676 gnome_version=
20677 wx_version=
20678 support_static_tools=no
20679 support_static_fd=no
20680 support_static_sd=no
20681 support_static_dir=no
20682 support_static_cons=no
20683 support_python=no
20684 build_client_only=no
20685 build_dird=yes
20686 build_stored=yes
20687 db_backends=""
20688 support_lockmgr=no
20689
20690
20691 # Check whether --enable-gnome was given.
20692 if test "${enable_gnome+set}" = set; then :
20693   enableval=$enable_gnome;
20694        if test x$enableval = xyes; then
20695           support_gnome=yes
20696        fi
20697
20698
20699 fi
20700
20701
20702 GNOME_DIR=
20703 if test x$support_gnome = xyes; then
20704    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20705    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20706 fi
20707 # AC_SUBST(GNOME_DIR)
20708
20709 # Check whether --enable-bat was given.
20710 if test "${enable_bat+set}" = set; then :
20711   enableval=$enable_bat;
20712        if test x$enableval = xyes; then
20713
20714 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20715
20716           support_bat=yes
20717        fi
20718
20719
20720 fi
20721
20722
20723 BAT_DIR=
20724 if test x$support_bat = xyes; then
20725    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20726    pkg=$?
20727    if test $pkg = 0; then
20728       BAT_DIR=src/qt-console
20729    else
20730       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20731    fi
20732 fi
20733
20734 got_qwt=no
20735 QWT_INC=
20736 QWT_LDFLAGS=
20737 QWT_LIB=
20738 QWT=
20739 no_qwt=no
20740
20741
20742
20743
20744
20745
20746
20747
20748 # Check whether --enable-bwx-console was given.
20749 if test "${enable_bwx_console+set}" = set; then :
20750   enableval=$enable_bwx_console;
20751        if test x$enableval = xyes; then
20752           support_wx_console=yes
20753        fi
20754
20755
20756 fi
20757
20758
20759 WX_DIR=
20760 if test x$support_wx_console = xyes; then
20761    abc=`$WXCONFIG $WXFLAGS --cppflags`
20762    pkg=$?
20763    if test $pkg = 0; then
20764       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20765       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20766       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20767
20768
20769
20770       WX_DIR="src/wx-console"
20771    else
20772       echo " "
20773       echo "wx-config program not found. bwx-console disabled."
20774       echo " "
20775       support_wx_console=no
20776    fi
20777 fi
20778
20779
20780 # Check whether --enable-tray-monitor was given.
20781 if test "${enable_tray_monitor+set}" = set; then :
20782   enableval=$enable_tray_monitor;
20783        if test x$enableval = xyes; then
20784           support_tray_monitor=yes
20785        fi
20786
20787
20788 fi
20789
20790
20791 TRAY_MONITOR_DIR=
20792 if test x$support_tray_monitor = xyes; then
20793    abc=`$PKGCONFIG --exists gtk+-2.0`
20794    pkg=$?
20795    if test $pkg = 0; then
20796       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20797       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20798
20799
20800       TRAY_MONITOR_DIR=src/tray-monitor
20801       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20802       pkg=$?
20803       if test $pkg = 0; then
20804
20805 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20806
20807       fi
20808    fi
20809 fi
20810
20811
20812 # Check whether --enable-smartalloc was given.
20813 if test "${enable_smartalloc+set}" = set; then :
20814   enableval=$enable_smartalloc;
20815        if test x$enableval = xno; then
20816           support_smartalloc=no
20817        fi
20818
20819
20820 fi
20821
20822
20823 if test x$support_smartalloc = xyes; then
20824
20825 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20826
20827 fi
20828
20829 # Check whether --enable-lockmgr was given.
20830 if test "${enable_lockmgr+set}" = set; then :
20831   enableval=$enable_lockmgr;
20832        if test x$enableval = xyes; then
20833           support_lockmgr=yes
20834        fi
20835
20836
20837 fi
20838
20839
20840 if test x$support_lockmgr = xyes; then
20841
20842 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20843
20844 fi
20845
20846
20847 # Check whether --enable-static-tools was given.
20848 if test "${enable_static_tools+set}" = set; then :
20849   enableval=$enable_static_tools;
20850        if test x$enableval = xyes; then
20851           if test x$use_libtool = xyes; then
20852              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20853   please rerun configure with --disable-libtool" "$LINENO" 5
20854           fi
20855           support_static_tools=yes
20856        fi
20857
20858
20859 fi
20860
20861
20862 TTOOL_LDFLAGS=
20863 if test x$support_static_tools = xyes; then
20864    TTOOL_LDFLAGS="-static"
20865 fi
20866
20867
20868 # Check whether --enable-static-fd was given.
20869 if test "${enable_static_fd+set}" = set; then :
20870   enableval=$enable_static_fd;
20871        if test x$enableval = xyes; then
20872           if test x$use_libtool = xyes; then
20873              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20874   please rerun configure with --disable-libtool" "$LINENO" 5
20875           fi
20876           support_static_fd=yes
20877        fi
20878
20879
20880 fi
20881
20882
20883 STATIC_FD=
20884 if test x$support_static_fd = xyes; then
20885    STATIC_FD="static-bacula-fd"
20886 fi
20887
20888
20889 # Check whether --enable-static-sd was given.
20890 if test "${enable_static_sd+set}" = set; then :
20891   enableval=$enable_static_sd;
20892        if test x$enableval = xyes; then
20893           if test x$use_libtool = xyes; then
20894              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20895   please rerun configure with --disable-libtool" "$LINENO" 5
20896           fi
20897           support_static_sd=yes
20898        fi
20899
20900
20901 fi
20902
20903
20904 STATIC_SD=
20905 if test x$support_static_sd = xyes; then
20906    STATIC_SD="static-bacula-sd"
20907 fi
20908
20909
20910 # Check whether --enable-static-dir was given.
20911 if test "${enable_static_dir+set}" = set; then :
20912   enableval=$enable_static_dir;
20913        if test x$enableval = xyes; then
20914           if test x$use_libtool = xyes; then
20915              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20916   please rerun configure with --disable-libtool" "$LINENO" 5
20917           fi
20918           support_static_dir=yes
20919        fi
20920
20921
20922 fi
20923
20924
20925 STATIC_DIR=
20926 if test x$support_static_dir = xyes; then
20927    STATIC_DIR="static-bacula-dir"
20928 fi
20929
20930
20931 # Check whether --enable-static-cons was given.
20932 if test "${enable_static_cons+set}" = set; then :
20933   enableval=$enable_static_cons;
20934        if test x$enableval = xyes; then
20935           if test x$use_libtool = xyes; then
20936              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20937   please rerun configure with --disable-libtool" "$LINENO" 5
20938           fi
20939           support_static_cons=yes
20940        fi
20941
20942
20943 fi
20944
20945
20946 STATIC_CONS=
20947 STATIC_GNOME_CONS=
20948 STATIC_WX_CONS=
20949 if test x$support_static_cons = xyes; then
20950    STATIC_CONS="static-bconsole"
20951    STATIC_GNOME_CONS="static-bgnome-console"
20952    STATIC_WX_CONS="static-bwx-console"
20953 fi
20954
20955
20956
20957
20958 # Check whether --enable-client-only was given.
20959 if test "${enable_client_only+set}" = set; then :
20960   enableval=$enable_client_only;
20961        if test x$enableval = xyes; then
20962           build_client_only=yes
20963           db_backends="None"
20964           DB_BACKENDS="none"
20965        fi
20966
20967
20968 fi
20969
20970 if test x$build_client_only = xno; then
20971    ALL_DIRS="subdirs"
20972 else
20973    ALL_DIRS=""
20974 fi
20975
20976
20977 # Check whether --enable-build-dird was given.
20978 if test "${enable_build_dird+set}" = set; then :
20979   enableval=$enable_build_dird;
20980        if test x$enableval = xno; then
20981           build_dird=no
20982        fi
20983
20984
20985 fi
20986
20987 if test x$build_dird = xyes; then
20988    DIRD_DIR="src/dird"
20989    DIR_TOOLS="DIRTOOLS"
20990 else
20991    DIRD_DIR=""
20992    DIR_TOOLS="NODIRTOOLS"
20993 fi
20994
20995
20996
20997 # Check whether --enable-build-stored was given.
20998 if test "${enable_build_stored+set}" = set; then :
20999   enableval=$enable_build_stored;
21000       if test x$enableval = xno; then
21001          build_stored=no
21002       fi
21003
21004
21005 fi
21006
21007 if test x$build_stored = xyes; then
21008    STORED_DIR="src/stored"
21009 else
21010    STORED_DIR=""
21011 fi
21012
21013
21014 # Check whether --enable-conio was given.
21015 if test "${enable_conio+set}" = set; then :
21016   enableval=$enable_conio;
21017        if test x$enableval = xno; then
21018           support_conio=no
21019        fi
21020
21021
21022 fi
21023
21024
21025
21026 support_ipv6=yes
21027 # Check whether --enable-ipv6 was given.
21028 if test "${enable_ipv6+set}" = set; then :
21029   enableval=$enable_ipv6;
21030        if test x$enableval = xno; then
21031           support_ipv6=no
21032        fi
21033
21034
21035 fi
21036
21037
21038 if test x$support_ipv6 = xyes; then
21039     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21040 /* end confdefs.h.  */
21041  #include <sys/types.h>
21042 #include <sys/socket.h>
21043 #include <netinet/in.h>
21044 int
21045 main ()
21046 {
21047 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21048   ;
21049   return 0;
21050 }
21051 _ACEOF
21052 if ac_fn_c_try_link "$LINENO"; then :
21053   support_ipv6=yes
21054 else
21055   support_ipv6=no
21056 fi
21057 rm -f core conftest.err conftest.$ac_objext \
21058     conftest$ac_exeext conftest.$ac_ext
21059 fi
21060
21061 if test x$support_ipv6 = xyes; then
21062
21063 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21064
21065 fi
21066
21067 TERM_LIB=""
21068 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21069 if test "x$ac_cv_header_curses_h" = xyes; then :
21070
21071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21072 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21073 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21074   $as_echo_n "(cached) " >&6
21075 else
21076   ac_check_lib_save_LIBS=$LIBS
21077 LIBS="-ltinfo  $LIBS"
21078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21079 /* end confdefs.h.  */
21080
21081 /* Override any GCC internal prototype to avoid an error.
21082    Use char because int might match the return type of a GCC
21083    builtin and then its argument prototype would still apply.  */
21084 #ifdef __cplusplus
21085 extern "C"
21086 #endif
21087 char tgetent ();
21088 int
21089 main ()
21090 {
21091 return tgetent ();
21092   ;
21093   return 0;
21094 }
21095 _ACEOF
21096 if ac_fn_c_try_link "$LINENO"; then :
21097   ac_cv_lib_tinfo_tgetent=yes
21098 else
21099   ac_cv_lib_tinfo_tgetent=no
21100 fi
21101 rm -f core conftest.err conftest.$ac_objext \
21102     conftest$ac_exeext conftest.$ac_ext
21103 LIBS=$ac_check_lib_save_LIBS
21104 fi
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21106 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21107 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21108    TERM_LIB="-ltinfo"
21109 else
21110
21111       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21112 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21113 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21114   $as_echo_n "(cached) " >&6
21115 else
21116   ac_check_lib_save_LIBS=$LIBS
21117 LIBS="-lncurses  $LIBS"
21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h.  */
21120
21121 /* Override any GCC internal prototype to avoid an error.
21122    Use char because int might match the return type of a GCC
21123    builtin and then its argument prototype would still apply.  */
21124 #ifdef __cplusplus
21125 extern "C"
21126 #endif
21127 char tgetent ();
21128 int
21129 main ()
21130 {
21131 return tgetent ();
21132   ;
21133   return 0;
21134 }
21135 _ACEOF
21136 if ac_fn_c_try_link "$LINENO"; then :
21137   ac_cv_lib_ncurses_tgetent=yes
21138 else
21139   ac_cv_lib_ncurses_tgetent=no
21140 fi
21141 rm -f core conftest.err conftest.$ac_objext \
21142     conftest$ac_exeext conftest.$ac_ext
21143 LIBS=$ac_check_lib_save_LIBS
21144 fi
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21146 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21147 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21148    TERM_LIB="-lncurses"
21149 else
21150
21151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21152 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21153 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21154   $as_echo_n "(cached) " >&6
21155 else
21156   ac_check_lib_save_LIBS=$LIBS
21157 LIBS="-ltermcap  $LIBS"
21158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h.  */
21160
21161 /* Override any GCC internal prototype to avoid an error.
21162    Use char because int might match the return type of a GCC
21163    builtin and then its argument prototype would still apply.  */
21164 #ifdef __cplusplus
21165 extern "C"
21166 #endif
21167 char tgetent ();
21168 int
21169 main ()
21170 {
21171 return tgetent ();
21172   ;
21173   return 0;
21174 }
21175 _ACEOF
21176 if ac_fn_c_try_link "$LINENO"; then :
21177   ac_cv_lib_termcap_tgetent=yes
21178 else
21179   ac_cv_lib_termcap_tgetent=no
21180 fi
21181 rm -f core conftest.err conftest.$ac_objext \
21182     conftest$ac_exeext conftest.$ac_ext
21183 LIBS=$ac_check_lib_save_LIBS
21184 fi
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21186 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21187 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21188    TERM_LIB="-ltermcap"
21189 fi
21190
21191
21192 fi
21193
21194
21195 fi
21196
21197
21198 else
21199     for ac_header in curses.h
21200 do :
21201   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21202 if test "x$ac_cv_header_curses_h" = xyes; then :
21203   cat >>confdefs.h <<_ACEOF
21204 #define HAVE_CURSES_H 1
21205 _ACEOF
21206
21207 fi
21208
21209 done
21210
21211      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21212 if test "x$ac_cv_header_term_h" = xyes; then :
21213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21214 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21215 if ${ac_cv_lib_curses_tgetent+:} false; then :
21216   $as_echo_n "(cached) " >&6
21217 else
21218   ac_check_lib_save_LIBS=$LIBS
21219 LIBS="-lcurses  $LIBS"
21220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21221 /* end confdefs.h.  */
21222
21223 /* Override any GCC internal prototype to avoid an error.
21224    Use char because int might match the return type of a GCC
21225    builtin and then its argument prototype would still apply.  */
21226 #ifdef __cplusplus
21227 extern "C"
21228 #endif
21229 char tgetent ();
21230 int
21231 main ()
21232 {
21233 return tgetent ();
21234   ;
21235   return 0;
21236 }
21237 _ACEOF
21238 if ac_fn_c_try_link "$LINENO"; then :
21239   ac_cv_lib_curses_tgetent=yes
21240 else
21241   ac_cv_lib_curses_tgetent=no
21242 fi
21243 rm -f core conftest.err conftest.$ac_objext \
21244     conftest$ac_exeext conftest.$ac_ext
21245 LIBS=$ac_check_lib_save_LIBS
21246 fi
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21248 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21249 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21250    TERM_LIB="-lcurses"
21251 fi
21252
21253
21254 fi
21255
21256
21257
21258 fi
21259
21260
21261
21262
21263 got_conio="no"
21264 if test x$support_conio = xyes; then
21265    if test x$TERM_LIB != x; then
21266       CONS_LIBS=$TERM_LIB
21267       CONS_OBJ="conio.o"
21268       CONS_SRC="conio.c"
21269       got_conio="yes"
21270       support_readline=no
21271
21272 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21273
21274    else
21275       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21276    fi
21277 fi
21278
21279
21280 # Check whether --enable-readline was given.
21281 if test "${enable_readline+set}" = set; then :
21282   enableval=$enable_readline;
21283        if test x$enableval = xno; then
21284           support_readline=no
21285        fi
21286
21287
21288 fi
21289
21290 if test x$TERM_LIB = x ; then
21291    support_readline=no
21292 fi
21293
21294 got_readline="no"
21295 READLINE_SRC=
21296 if test x$support_readline = xyes; then
21297
21298 # Check whether --with-readline was given.
21299 if test "${with_readline+set}" = set; then :
21300   withval=$with_readline;
21301           case "$with_readline" in
21302           no)
21303              :
21304              ;;
21305           yes|*)
21306              if test -f ${with_readline}/readline.h; then
21307                 CONS_INC="-I${with_readline}"
21308                 CONS_LDFLAGS="-L$with_readline"
21309              elif test -f ${with_readline}/include/readline/readline.h; then
21310                 CONS_INC="-I${with_readline}/include/readline"
21311                 CONS_LDFLAGS="-L${with_readline}/lib"
21312                 with_readline="${with_readline}/include/readline"
21313              else
21314                 with_readline="/usr/include/readline"
21315              fi
21316
21317              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21318 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21319 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21320
21321
21322 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21323
21324                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21325                     got_readline="yes"
21326
21327 else
21328
21329                     echo " "
21330                     echo "readline.h not found. readline turned off ..."
21331                     echo " "
21332
21333
21334 fi
21335
21336
21337              ;;
21338           esac
21339
21340 else
21341
21342                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21343 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
21344
21345
21346 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21347
21348                 got_readline="yes"
21349                 CONS_INC="-I/usr/include/readline"
21350                 CONS_LIBS="-lreadline $TERM_LIB"
21351
21352 else
21353
21354                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21355 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21357
21358
21359 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21360
21361                         got_readline="yes"
21362                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21363                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21364                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21365                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21366
21367 else
21368
21369                         echo " "
21370                         echo "readline.h not found. readline turned off ..."
21371                         echo " "
21372
21373
21374 fi
21375
21376
21377
21378
21379 fi
21380
21381
21382
21383
21384 fi
21385
21386 fi
21387
21388
21389
21390
21391
21392
21393
21394
21395 MAKE_SHELL=/bin/sh
21396
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21398 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21399 if ${ac_cv_header_stat_broken+:} false; then :
21400   $as_echo_n "(cached) " >&6
21401 else
21402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21403 /* end confdefs.h.  */
21404 #include <sys/types.h>
21405 #include <sys/stat.h>
21406
21407 #if defined S_ISBLK && defined S_IFDIR
21408 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21409 #endif
21410
21411 #if defined S_ISBLK && defined S_IFCHR
21412 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21413 #endif
21414
21415 #if defined S_ISLNK && defined S_IFREG
21416 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21417 #endif
21418
21419 #if defined S_ISSOCK && defined S_IFREG
21420 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21421 #endif
21422
21423 _ACEOF
21424 if ac_fn_c_try_compile "$LINENO"; then :
21425   ac_cv_header_stat_broken=no
21426 else
21427   ac_cv_header_stat_broken=yes
21428 fi
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430 fi
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21432 $as_echo "$ac_cv_header_stat_broken" >&6; }
21433 if test $ac_cv_header_stat_broken = yes; then
21434
21435 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21436
21437 fi
21438
21439 ac_header_dirent=no
21440 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21441   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21443 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21444 if eval \${$as_ac_Header+:} false; then :
21445   $as_echo_n "(cached) " >&6
21446 else
21447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21448 /* end confdefs.h.  */
21449 #include <sys/types.h>
21450 #include <$ac_hdr>
21451
21452 int
21453 main ()
21454 {
21455 if ((DIR *) 0)
21456 return 0;
21457   ;
21458   return 0;
21459 }
21460 _ACEOF
21461 if ac_fn_c_try_compile "$LINENO"; then :
21462   eval "$as_ac_Header=yes"
21463 else
21464   eval "$as_ac_Header=no"
21465 fi
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 fi
21468 eval ac_res=\$$as_ac_Header
21469                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21470 $as_echo "$ac_res" >&6; }
21471 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21472   cat >>confdefs.h <<_ACEOF
21473 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21474 _ACEOF
21475
21476 ac_header_dirent=$ac_hdr; break
21477 fi
21478
21479 done
21480 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21481 if test $ac_header_dirent = dirent.h; then
21482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21483 $as_echo_n "checking for library containing opendir... " >&6; }
21484 if ${ac_cv_search_opendir+:} false; then :
21485   $as_echo_n "(cached) " >&6
21486 else
21487   ac_func_search_save_LIBS=$LIBS
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h.  */
21490
21491 /* Override any GCC internal prototype to avoid an error.
21492    Use char because int might match the return type of a GCC
21493    builtin and then its argument prototype would still apply.  */
21494 #ifdef __cplusplus
21495 extern "C"
21496 #endif
21497 char opendir ();
21498 int
21499 main ()
21500 {
21501 return opendir ();
21502   ;
21503   return 0;
21504 }
21505 _ACEOF
21506 for ac_lib in '' dir; do
21507   if test -z "$ac_lib"; then
21508     ac_res="none required"
21509   else
21510     ac_res=-l$ac_lib
21511     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21512   fi
21513   if ac_fn_c_try_link "$LINENO"; then :
21514   ac_cv_search_opendir=$ac_res
21515 fi
21516 rm -f core conftest.err conftest.$ac_objext \
21517     conftest$ac_exeext
21518   if ${ac_cv_search_opendir+:} false; then :
21519   break
21520 fi
21521 done
21522 if ${ac_cv_search_opendir+:} false; then :
21523
21524 else
21525   ac_cv_search_opendir=no
21526 fi
21527 rm conftest.$ac_ext
21528 LIBS=$ac_func_search_save_LIBS
21529 fi
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21531 $as_echo "$ac_cv_search_opendir" >&6; }
21532 ac_res=$ac_cv_search_opendir
21533 if test "$ac_res" != no; then :
21534   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21535
21536 fi
21537
21538 else
21539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21540 $as_echo_n "checking for library containing opendir... " >&6; }
21541 if ${ac_cv_search_opendir+:} false; then :
21542   $as_echo_n "(cached) " >&6
21543 else
21544   ac_func_search_save_LIBS=$LIBS
21545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21546 /* end confdefs.h.  */
21547
21548 /* Override any GCC internal prototype to avoid an error.
21549    Use char because int might match the return type of a GCC
21550    builtin and then its argument prototype would still apply.  */
21551 #ifdef __cplusplus
21552 extern "C"
21553 #endif
21554 char opendir ();
21555 int
21556 main ()
21557 {
21558 return opendir ();
21559   ;
21560   return 0;
21561 }
21562 _ACEOF
21563 for ac_lib in '' x; do
21564   if test -z "$ac_lib"; then
21565     ac_res="none required"
21566   else
21567     ac_res=-l$ac_lib
21568     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21569   fi
21570   if ac_fn_c_try_link "$LINENO"; then :
21571   ac_cv_search_opendir=$ac_res
21572 fi
21573 rm -f core conftest.err conftest.$ac_objext \
21574     conftest$ac_exeext
21575   if ${ac_cv_search_opendir+:} false; then :
21576   break
21577 fi
21578 done
21579 if ${ac_cv_search_opendir+:} false; then :
21580
21581 else
21582   ac_cv_search_opendir=no
21583 fi
21584 rm conftest.$ac_ext
21585 LIBS=$ac_func_search_save_LIBS
21586 fi
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21588 $as_echo "$ac_cv_search_opendir" >&6; }
21589 ac_res=$ac_cv_search_opendir
21590 if test "$ac_res" != no; then :
21591   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21592
21593 fi
21594
21595 fi
21596
21597 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21598 do :
21599   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21600 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21601 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21602   cat >>confdefs.h <<_ACEOF
21603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21604 _ACEOF
21605
21606 fi
21607 done
21608
21609 for ac_func in nanosleep nl_langinfo
21610 do :
21611   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21613 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21614   cat >>confdefs.h <<_ACEOF
21615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21616 _ACEOF
21617
21618 fi
21619 done
21620
21621 for ac_header in varargs.h
21622 do :
21623   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21624 if test "x$ac_cv_header_varargs_h" = xyes; then :
21625   cat >>confdefs.h <<_ACEOF
21626 #define HAVE_VARARGS_H 1
21627 _ACEOF
21628
21629 fi
21630
21631 done
21632
21633
21634
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21636 $as_echo_n "checking for Python support... " >&6; }
21637
21638 # Check whether --with-python was given.
21639 if test "${with_python+set}" = set; then :
21640   withval=$with_python;
21641        PYTHON_INCDIR=
21642        PYTHON_LIBS=
21643        if test "$withval" != "no"; then
21644           if test "$withval" = "yes"; then
21645              if test -e /usr/bin/python-config ; then
21646                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21647                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21648              else
21649                 for python_root in /usr /usr/local /usr/sfw; do
21650                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21651                       if test -f $python_root/include/${ver}/Python.h; then
21652                          PYTHON_INCDIR=-I$python_root/include/${ver}
21653                          if test -d $python_root/lib64/${ver}/config; then
21654                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21655                          else
21656                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21657                          fi
21658                          break
21659                       fi
21660                    done
21661                 done
21662
21663                 if test x$PYTHON_INCDIR = x; then
21664                    if test -f $prefix/include/Python.h; then
21665                       PYTHON_INCDIR=-I$prefix/include
21666                       if test -d $prefix/lib64/config; then
21667                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21668                       else
21669                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21670                       fi
21671                    else
21672                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21673 $as_echo "no" >&6; }
21674                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21675                    fi
21676                 fi
21677              fi
21678           else
21679              if test -e $withval/bin/python-config ; then
21680                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21681                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21682              elif test -f $withval/Python.h; then
21683                 PYTHON_INCDIR=-I$withval
21684                 PYTHON_LIBS="-L$withval/config -lpython"
21685              elif test -f $withval/include/Python.h; then
21686                 PYTHON_INCDIR=-I$withval/include
21687                 if test -d $withval/lib64/config; then
21688                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21689                 else
21690                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21691                 fi
21692              elif test -f $withval/include/python/Python.h; then
21693                 PYTHON_INCDIR=-I$withval/include/python
21694                 if test -d $withval/lib64/python/config; then
21695                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21696                 else
21697                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21698                 fi
21699              else
21700                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701 $as_echo "no" >&6; }
21702                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21703              fi
21704           fi
21705
21706           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21707
21708           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21709 $as_echo "yes" >&6; }
21710           support_python=yes
21711           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21712 $as_echo "$as_me: checking for more Python libs" >&6;}
21713           saved_LIBS="$LIBS"; LIBS=
21714           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21715 $as_echo_n "checking for library containing shm_open... " >&6; }
21716 if ${ac_cv_search_shm_open+:} false; then :
21717   $as_echo_n "(cached) " >&6
21718 else
21719   ac_func_search_save_LIBS=$LIBS
21720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21721 /* end confdefs.h.  */
21722
21723 /* Override any GCC internal prototype to avoid an error.
21724    Use char because int might match the return type of a GCC
21725    builtin and then its argument prototype would still apply.  */
21726 #ifdef __cplusplus
21727 extern "C"
21728 #endif
21729 char shm_open ();
21730 int
21731 main ()
21732 {
21733 return shm_open ();
21734   ;
21735   return 0;
21736 }
21737 _ACEOF
21738 for ac_lib in '' rt; do
21739   if test -z "$ac_lib"; then
21740     ac_res="none required"
21741   else
21742     ac_res=-l$ac_lib
21743     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21744   fi
21745   if ac_fn_c_try_link "$LINENO"; then :
21746   ac_cv_search_shm_open=$ac_res
21747 fi
21748 rm -f core conftest.err conftest.$ac_objext \
21749     conftest$ac_exeext
21750   if ${ac_cv_search_shm_open+:} false; then :
21751   break
21752 fi
21753 done
21754 if ${ac_cv_search_shm_open+:} false; then :
21755
21756 else
21757   ac_cv_search_shm_open=no
21758 fi
21759 rm conftest.$ac_ext
21760 LIBS=$ac_func_search_save_LIBS
21761 fi
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21763 $as_echo "$ac_cv_search_shm_open" >&6; }
21764 ac_res=$ac_cv_search_shm_open
21765 if test "$ac_res" != no; then :
21766   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21767
21768 fi
21769
21770           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21771 $as_echo_n "checking for openpty in -lutil... " >&6; }
21772 if ${ac_cv_lib_util_openpty+:} false; then :
21773   $as_echo_n "(cached) " >&6
21774 else
21775   ac_check_lib_save_LIBS=$LIBS
21776 LIBS="-lutil  $LIBS"
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h.  */
21779
21780 /* Override any GCC internal prototype to avoid an error.
21781    Use char because int might match the return type of a GCC
21782    builtin and then its argument prototype would still apply.  */
21783 #ifdef __cplusplus
21784 extern "C"
21785 #endif
21786 char openpty ();
21787 int
21788 main ()
21789 {
21790 return openpty ();
21791   ;
21792   return 0;
21793 }
21794 _ACEOF
21795 if ac_fn_c_try_link "$LINENO"; then :
21796   ac_cv_lib_util_openpty=yes
21797 else
21798   ac_cv_lib_util_openpty=no
21799 fi
21800 rm -f core conftest.err conftest.$ac_objext \
21801     conftest$ac_exeext conftest.$ac_ext
21802 LIBS=$ac_check_lib_save_LIBS
21803 fi
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21805 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21806 if test "x$ac_cv_lib_util_openpty" = xyes; then :
21807   cat >>confdefs.h <<_ACEOF
21808 #define HAVE_LIBUTIL 1
21809 _ACEOF
21810
21811   LIBS="-lutil $LIBS"
21812
21813 fi
21814
21815           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21816           LIBS="$saved_LIBS"
21817        else
21818           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21819 $as_echo "no" >&6; }
21820        fi
21821
21822 else
21823
21824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21825 $as_echo "no" >&6; }
21826
21827
21828 fi
21829
21830
21831
21832
21833 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21834 if test "x$ac_cv_func_socket" = xyes; then :
21835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21836 $as_echo "using libc's socket" >&6; }
21837 else
21838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21839 $as_echo_n "checking for socket in -lxnet... " >&6; }
21840 if ${ac_cv_lib_xnet_socket+:} false; then :
21841   $as_echo_n "(cached) " >&6
21842 else
21843   ac_check_lib_save_LIBS=$LIBS
21844 LIBS="-lxnet  $LIBS"
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h.  */
21847
21848 /* Override any GCC internal prototype to avoid an error.
21849    Use char because int might match the return type of a GCC
21850    builtin and then its argument prototype would still apply.  */
21851 #ifdef __cplusplus
21852 extern "C"
21853 #endif
21854 char socket ();
21855 int
21856 main ()
21857 {
21858 return socket ();
21859   ;
21860   return 0;
21861 }
21862 _ACEOF
21863 if ac_fn_c_try_link "$LINENO"; then :
21864   ac_cv_lib_xnet_socket=yes
21865 else
21866   ac_cv_lib_xnet_socket=no
21867 fi
21868 rm -f core conftest.err conftest.$ac_objext \
21869     conftest$ac_exeext conftest.$ac_ext
21870 LIBS=$ac_check_lib_save_LIBS
21871 fi
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21873 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21874 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
21875   cat >>confdefs.h <<_ACEOF
21876 #define HAVE_LIBXNET 1
21877 _ACEOF
21878
21879   LIBS="-lxnet $LIBS"
21880
21881 fi
21882
21883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21884 $as_echo_n "checking for socket in -lsocket... " >&6; }
21885 if ${ac_cv_lib_socket_socket+:} false; then :
21886   $as_echo_n "(cached) " >&6
21887 else
21888   ac_check_lib_save_LIBS=$LIBS
21889 LIBS="-lsocket  $LIBS"
21890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21891 /* end confdefs.h.  */
21892
21893 /* Override any GCC internal prototype to avoid an error.
21894    Use char because int might match the return type of a GCC
21895    builtin and then its argument prototype would still apply.  */
21896 #ifdef __cplusplus
21897 extern "C"
21898 #endif
21899 char socket ();
21900 int
21901 main ()
21902 {
21903 return socket ();
21904   ;
21905   return 0;
21906 }
21907 _ACEOF
21908 if ac_fn_c_try_link "$LINENO"; then :
21909   ac_cv_lib_socket_socket=yes
21910 else
21911   ac_cv_lib_socket_socket=no
21912 fi
21913 rm -f core conftest.err conftest.$ac_objext \
21914     conftest$ac_exeext conftest.$ac_ext
21915 LIBS=$ac_check_lib_save_LIBS
21916 fi
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21918 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21919 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21920   cat >>confdefs.h <<_ACEOF
21921 #define HAVE_LIBSOCKET 1
21922 _ACEOF
21923
21924   LIBS="-lsocket $LIBS"
21925
21926 fi
21927
21928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21929 $as_echo_n "checking for socket in -linet... " >&6; }
21930 if ${ac_cv_lib_inet_socket+:} false; then :
21931   $as_echo_n "(cached) " >&6
21932 else
21933   ac_check_lib_save_LIBS=$LIBS
21934 LIBS="-linet  $LIBS"
21935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936 /* end confdefs.h.  */
21937
21938 /* Override any GCC internal prototype to avoid an error.
21939    Use char because int might match the return type of a GCC
21940    builtin and then its argument prototype would still apply.  */
21941 #ifdef __cplusplus
21942 extern "C"
21943 #endif
21944 char socket ();
21945 int
21946 main ()
21947 {
21948 return socket ();
21949   ;
21950   return 0;
21951 }
21952 _ACEOF
21953 if ac_fn_c_try_link "$LINENO"; then :
21954   ac_cv_lib_inet_socket=yes
21955 else
21956   ac_cv_lib_inet_socket=no
21957 fi
21958 rm -f core conftest.err conftest.$ac_objext \
21959     conftest$ac_exeext conftest.$ac_ext
21960 LIBS=$ac_check_lib_save_LIBS
21961 fi
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21963 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21964 if test "x$ac_cv_lib_inet_socket" = xyes; then :
21965   cat >>confdefs.h <<_ACEOF
21966 #define HAVE_LIBINET 1
21967 _ACEOF
21968
21969   LIBS="-linet $LIBS"
21970
21971 fi
21972
21973 fi
21974
21975
21976 TCPW_MSG="no"
21977 WRAPLIBS=""
21978
21979 # Check whether --with-tcp-wrappers was given.
21980 if test "${with_tcp_wrappers+set}" = set; then :
21981   withval=$with_tcp_wrappers;
21982        if test "x$withval" != "xno" ; then
21983           saved_LIBS="$LIBS"
21984           LIBS="$saved_LIBS -lwrap"
21985           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21986 $as_echo_n "checking for library containing nanosleep... " >&6; }
21987 if ${ac_cv_search_nanosleep+:} false; then :
21988   $as_echo_n "(cached) " >&6
21989 else
21990   ac_func_search_save_LIBS=$LIBS
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h.  */
21993
21994 /* Override any GCC internal prototype to avoid an error.
21995    Use char because int might match the return type of a GCC
21996    builtin and then its argument prototype would still apply.  */
21997 #ifdef __cplusplus
21998 extern "C"
21999 #endif
22000 char nanosleep ();
22001 int
22002 main ()
22003 {
22004 return nanosleep ();
22005   ;
22006   return 0;
22007 }
22008 _ACEOF
22009 for ac_lib in '' rt; do
22010   if test -z "$ac_lib"; then
22011     ac_res="none required"
22012   else
22013     ac_res=-l$ac_lib
22014     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22015   fi
22016   if ac_fn_c_try_link "$LINENO"; then :
22017   ac_cv_search_nanosleep=$ac_res
22018 fi
22019 rm -f core conftest.err conftest.$ac_objext \
22020     conftest$ac_exeext
22021   if ${ac_cv_search_nanosleep+:} false; then :
22022   break
22023 fi
22024 done
22025 if ${ac_cv_search_nanosleep+:} false; then :
22026
22027 else
22028   ac_cv_search_nanosleep=no
22029 fi
22030 rm conftest.$ac_ext
22031 LIBS=$ac_func_search_save_LIBS
22032 fi
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22034 $as_echo "$ac_cv_search_nanosleep" >&6; }
22035 ac_res=$ac_cv_search_nanosleep
22036 if test "$ac_res" != no; then :
22037   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22038
22039 fi
22040
22041           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22042 $as_echo_n "checking for libwrap... " >&6; }
22043           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22044 /* end confdefs.h.  */
22045
22046                #include <sys/types.h>
22047                #include <tcpd.h>
22048                int deny_severity = 0;
22049                int allow_severity = 0;
22050                struct request_info *req;
22051
22052 int
22053 main ()
22054 {
22055
22056                 hosts_access(req);
22057
22058   ;
22059   return 0;
22060 }
22061 _ACEOF
22062 if ac_fn_c_try_link "$LINENO"; then :
22063
22064                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22065 $as_echo "yes" >&6; }
22066
22067 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22068
22069                  TCPW_MSG="yes"
22070                  LIBS="$saved_LIBS"
22071                  WRAPLIBS="-lwrap"
22072
22073 else
22074
22075                  LIBS="$saved_LIBS -lwrap -lnsl"
22076                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22077                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h.  */
22079
22080                        #include <sys/types.h>
22081                        #include <tcpd.h>
22082                        int deny_severity = 0;
22083                        int allow_severity = 0;
22084                        struct request_info *req;
22085
22086 int
22087 main ()
22088 {
22089
22090                        hosts_access(req);
22091
22092   ;
22093   return 0;
22094 }
22095 _ACEOF
22096 if ac_fn_c_try_link "$LINENO"; then :
22097
22098                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22099 $as_echo "yes" >&6; }
22100
22101 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22102
22103                       TCPW_MSG="yes"
22104                       LIBS="$saved_LIBS"
22105                       WRAPLIBS="-lwrap"
22106
22107 else
22108
22109                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22110
22111
22112 fi
22113 rm -f core conftest.err conftest.$ac_objext \
22114     conftest$ac_exeext conftest.$ac_ext
22115
22116
22117 fi
22118 rm -f core conftest.err conftest.$ac_objext \
22119     conftest$ac_exeext conftest.$ac_ext
22120        fi
22121
22122
22123 fi
22124
22125
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22127 $as_echo_n "checking for OpenSSL... " >&6; }
22128
22129 # Check whether --with-openssl was given.
22130 if test "${with_openssl+set}" = set; then :
22131   withval=$with_openssl;
22132         with_openssl_directory=${withval}
22133
22134
22135 fi
22136
22137
22138 if test "x$with_openssl_directory" != "xno"; then
22139    OPENSSL_LIBS="-lssl -lcrypto"
22140    OPENSSL_INC=""
22141
22142    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22143       #
22144       # Make sure the $with_openssl_directory also makes sense
22145       #
22146       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22147          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22148          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22149       fi
22150    fi
22151
22152    saved_LIBS="${LIBS}"
22153    saved_CFLAGS="${CFLAGS}"
22154    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22155    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22156
22157    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h.  */
22159
22160           #include <openssl/ssl.h>
22161
22162 int
22163 main ()
22164 {
22165
22166            CRYPTO_set_id_callback(NULL);
22167
22168   ;
22169   return 0;
22170 }
22171 _ACEOF
22172 if ac_fn_c_try_link "$LINENO"; then :
22173
22174           support_tls="yes"
22175           support_crypto="yes"
22176
22177 else
22178
22179           support_tls="no"
22180           support_crypto="no"
22181
22182
22183 fi
22184 rm -f core conftest.err conftest.$ac_objext \
22185     conftest$ac_exeext conftest.$ac_ext
22186
22187    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22188 /* end confdefs.h.  */
22189
22190           #include <openssl/evp.h>
22191
22192 int
22193 main ()
22194 {
22195
22196           EVP_sha512();
22197
22198   ;
22199   return 0;
22200 }
22201 _ACEOF
22202 if ac_fn_c_try_link "$LINENO"; then :
22203
22204           ac_cv_openssl_sha2="yes"
22205
22206 else
22207
22208           ac_cv_openssl_sha2="no"
22209
22210
22211 fi
22212 rm -f core conftest.err conftest.$ac_objext \
22213     conftest$ac_exeext conftest.$ac_ext
22214
22215                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22216 /* end confdefs.h.  */
22217
22218           #include <openssl/evp.h>
22219
22220 int
22221 main ()
22222 {
22223
22224           EVP_aes_192_cbc();
22225
22226   ;
22227   return 0;
22228 }
22229 _ACEOF
22230 if ac_fn_c_try_link "$LINENO"; then :
22231
22232           ac_cv_openssl_export="no"
22233
22234 else
22235
22236           ac_cv_openssl_export="yes"
22237
22238
22239 fi
22240 rm -f core conftest.err conftest.$ac_objext \
22241     conftest$ac_exeext conftest.$ac_ext
22242
22243    if test "$support_tls" = "yes"; then
22244
22245 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22246
22247
22248 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22249
22250
22251 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22252
22253    fi
22254
22255    if test "$ac_cv_openssl_sha2" = "yes"; then
22256
22257 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22258
22259    fi
22260
22261    if test "$ac_cv_openssl_export" = "yes"; then
22262
22263 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22264
22265    fi
22266
22267    if test "$support_crypto" = "yes"; then
22268       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22269 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22270 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
22271   $as_echo_n "(cached) " >&6
22272 else
22273   ac_check_lib_save_LIBS=$LIBS
22274 LIBS="-lcrypto  $LIBS"
22275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22276 /* end confdefs.h.  */
22277
22278 /* Override any GCC internal prototype to avoid an error.
22279    Use char because int might match the return type of a GCC
22280    builtin and then its argument prototype would still apply.  */
22281 #ifdef __cplusplus
22282 extern "C"
22283 #endif
22284 char EVP_PKEY_encrypt_old ();
22285 int
22286 main ()
22287 {
22288 return EVP_PKEY_encrypt_old ();
22289   ;
22290   return 0;
22291 }
22292 _ACEOF
22293 if ac_fn_c_try_link "$LINENO"; then :
22294   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22295 else
22296   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22297 fi
22298 rm -f core conftest.err conftest.$ac_objext \
22299     conftest$ac_exeext conftest.$ac_ext
22300 LIBS=$ac_check_lib_save_LIBS
22301 fi
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22303 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22304 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
22305
22306 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22307
22308 fi
22309
22310    fi
22311
22312    LIBS="${saved_LIBS}"
22313    CFLAGS="${saved_CFLAGS}"
22314 else
22315    support_tls="no"
22316    support_crypto="no"
22317    OPENSSL_LIBS=""
22318    OPENSSL_INC=""
22319 fi
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22321 $as_echo "$support_tls" >&6; }
22322
22323 if test "$support_tls" = "no"; then
22324    OPENSSL_LIBS=""
22325    OPENSSL_INC=""
22326 fi
22327 if test "$support_crypto" = "no"; then
22328    OPENSSL_LIBS=""
22329    OPENSSL_INC=""
22330 fi
22331
22332
22333
22334
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22336 $as_echo_n "checking for library containing dlopen... " >&6; }
22337 if ${ac_cv_search_dlopen+:} false; then :
22338   $as_echo_n "(cached) " >&6
22339 else
22340   ac_func_search_save_LIBS=$LIBS
22341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22342 /* end confdefs.h.  */
22343
22344 /* Override any GCC internal prototype to avoid an error.
22345    Use char because int might match the return type of a GCC
22346    builtin and then its argument prototype would still apply.  */
22347 #ifdef __cplusplus
22348 extern "C"
22349 #endif
22350 char dlopen ();
22351 int
22352 main ()
22353 {
22354 return dlopen ();
22355   ;
22356   return 0;
22357 }
22358 _ACEOF
22359 for ac_lib in '' dl; do
22360   if test -z "$ac_lib"; then
22361     ac_res="none required"
22362   else
22363     ac_res=-l$ac_lib
22364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22365   fi
22366   if ac_fn_c_try_link "$LINENO"; then :
22367   ac_cv_search_dlopen=$ac_res
22368 fi
22369 rm -f core conftest.err conftest.$ac_objext \
22370     conftest$ac_exeext
22371   if ${ac_cv_search_dlopen+:} false; then :
22372   break
22373 fi
22374 done
22375 if ${ac_cv_search_dlopen+:} false; then :
22376
22377 else
22378   ac_cv_search_dlopen=no
22379 fi
22380 rm conftest.$ac_ext
22381 LIBS=$ac_func_search_save_LIBS
22382 fi
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22384 $as_echo "$ac_cv_search_dlopen" >&6; }
22385 ac_res=$ac_cv_search_dlopen
22386 if test "$ac_res" != no; then :
22387   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22388
22389 fi
22390
22391
22392 working_dir=`eval echo ${prefix}/var/bacula/working`
22393
22394 # Check whether --with-working-dir was given.
22395 if test "${with_working_dir+set}" = set; then :
22396   withval=$with_working_dir;
22397        if test "x$withval" != "xno" ; then
22398          working_dir=$withval
22399        fi
22400
22401
22402 fi
22403
22404
22405
22406
22407 archivedir=/tmp
22408
22409 # Check whether --with-archivedir was given.
22410 if test "${with_archivedir+set}" = set; then :
22411   withval=$with_archivedir;
22412        if test "x$withval" != "xno" ; then
22413           archivedir=$withval
22414        fi
22415
22416
22417 fi
22418
22419
22420
22421
22422 basename=`hostname`
22423
22424 # Check whether --with-basename was given.
22425 if test "${with_basename+set}" = set; then :
22426   withval=$with_basename;
22427        if test "x$withval" != "xno" ; then
22428           basename=$withval
22429        fi
22430
22431
22432 fi
22433
22434
22435
22436
22437 hostname=`uname -n | cut -d '.' -f 1`
22438 if test x${hostname} = x ; then
22439   hostname="localhost"
22440 fi
22441
22442 # Check whether --with-hostname was given.
22443 if test "${with_hostname+set}" = set; then :
22444   withval=$with_hostname;
22445        if test "x$withval" != "xno" ; then
22446          hostname=$withval
22447        fi
22448
22449
22450 fi
22451
22452
22453
22454
22455
22456 scriptdir=`eval echo ${sysconfdir}`
22457
22458 # Check whether --with-scriptdir was given.
22459 if test "${with_scriptdir+set}" = set; then :
22460   withval=$with_scriptdir;
22461        if test "x$withval" != "xno" ; then
22462           scriptdir=$withval
22463        fi
22464
22465
22466 fi
22467
22468
22469
22470
22471
22472 bsrdir=/tmp
22473
22474 # Check whether --with-bsrdir was given.
22475 if test "${with_bsrdir+set}" = set; then :
22476   withval=$with_bsrdir;
22477        if test "x$withval" != "xno" ; then
22478           bsrdir=$withval
22479        fi
22480
22481
22482 fi
22483
22484
22485
22486
22487 logdir=/tmp
22488
22489 # Check whether --with-logdir was given.
22490 if test "${with_logdir+set}" = set; then :
22491   withval=$with_logdir;
22492        if test "x$withval" != "xno" ; then
22493           logdir=$withval
22494        fi
22495
22496
22497 fi
22498
22499
22500
22501
22502
22503 # ------------------------------------------
22504 # Where to place plugindir (plugin files)
22505 # ------------------------------------------
22506 plugindir=`eval echo ${libdir}`
22507
22508 # Check whether --with-plugindir was given.
22509 if test "${with_plugindir+set}" = set; then :
22510   withval=$with_plugindir;
22511        if test "x$withval" != "xno" ; then
22512           plugindir=$withval
22513        fi
22514
22515
22516 fi
22517
22518
22519
22520
22521 dump_email=root@localhost
22522
22523 # Check whether --with-dump-email was given.
22524 if test "${with_dump_email+set}" = set; then :
22525   withval=$with_dump_email;
22526        if test "x$withval" != "xno" ; then
22527           dump_email=$withval
22528        fi
22529
22530
22531 fi
22532
22533
22534
22535
22536 job_email=root@localhost
22537
22538 # Check whether --with-job-email was given.
22539 if test "${with_job_email+set}" = set; then :
22540   withval=$with_job_email;
22541        if test "x$withval" != "xno" ; then
22542           job_email=$withval
22543        fi
22544
22545
22546 fi
22547
22548
22549
22550
22551 smtp_host=localhost
22552
22553 # Check whether --with-smtp_host was given.
22554 if test "${with_smtp_host+set}" = set; then :
22555   withval=$with_smtp_host;
22556        if test "x$withval" != "xno" ; then
22557           smtp_host=$withval
22558        fi
22559
22560
22561 fi
22562
22563
22564
22565
22566 piddir=/var/run
22567
22568 # Check whether --with-pid-dir was given.
22569 if test "${with_pid_dir+set}" = set; then :
22570   withval=$with_pid_dir;
22571        if test "x$withval" != "xno" ; then
22572           piddir=$withval
22573        fi
22574
22575
22576 fi
22577
22578
22579 cat >>confdefs.h <<_ACEOF
22580 #define _PATH_BACULA_PIDDIR "$piddir"
22581 _ACEOF
22582
22583
22584
22585 subsysdir=/var/run/subsys
22586 if test -d /var/run/subsys; then
22587    subsysdir=/var/run/subsys
22588 elif test -d /var/lock/subsys; then
22589    subsysdir=/var/lock/subsys
22590 else
22591    subsysdir=/var/run/subsys
22592 fi
22593
22594 # Check whether --with-subsys-dir was given.
22595 if test "${with_subsys_dir+set}" = set; then :
22596   withval=$with_subsys_dir;
22597        if test "x$withval" != "xno" ; then
22598           subsysdir=$withval
22599        fi
22600
22601
22602 fi
22603
22604
22605
22606
22607 baseport=9101
22608
22609 # Check whether --with-baseport was given.
22610 if test "${with_baseport+set}" = set; then :
22611   withval=$with_baseport;
22612        if test "x$withval" != "xno" ; then
22613           baseport=$withval
22614        fi
22615
22616
22617 fi
22618
22619
22620
22621 dir_port=`expr $baseport`
22622 fd_port=`expr $baseport + 1`
22623 sd_port=`expr $fd_port + 1`
22624
22625
22626
22627
22628
22629 dir_password=
22630
22631 # Check whether --with-dir-password was given.
22632 if test "${with_dir_password+set}" = set; then :
22633   withval=$with_dir_password;
22634        if test "x$withval" != "xno" ; then
22635           dir_password=$withval
22636        fi
22637
22638
22639 fi
22640
22641
22642 if test "x$dir_password" = "x" ; then
22643    if test "x$OPENSSL" = "xnone" ; then
22644       key=`autoconf/randpass 33`
22645    else
22646       key=`openssl rand -base64 33`
22647    fi
22648    dir_password=$key
22649 fi
22650
22651 fd_password=
22652
22653 # Check whether --with-fd-password was given.
22654 if test "${with_fd_password+set}" = set; then :
22655   withval=$with_fd_password;
22656        if test "x$withval" != "xno" ; then
22657           fd_password=$withval
22658        fi
22659
22660
22661 fi
22662
22663
22664 if test "x$fd_password" = "x" ; then
22665    if test "x$OPENSSL" = "xnone" ; then
22666       key=`autoconf/randpass 37`
22667    else
22668       key=`openssl rand -base64 33`
22669    fi
22670    fd_password=$key
22671 fi
22672
22673 sd_password=
22674
22675 # Check whether --with-sd-password was given.
22676 if test "${with_sd_password+set}" = set; then :
22677   withval=$with_sd_password;
22678        if test "x$withval" != "xno" ; then
22679           sd_password=$withval
22680        fi
22681
22682
22683 fi
22684
22685
22686 if test "x$sd_password" = "x" ; then
22687    if test "x$OPENSSL" = "xnone" ; then
22688       key=`autoconf/randpass 41`
22689    else
22690       key=`openssl rand -base64 33`
22691    fi
22692    sd_password=$key
22693 fi
22694
22695 mon_dir_password=
22696
22697 # Check whether --with-mon-dir-password was given.
22698 if test "${with_mon_dir_password+set}" = set; then :
22699   withval=$with_mon_dir_password;
22700        if test "x$withval" != "xno" ; then
22701           mon_dir_password=$withval
22702        fi
22703
22704
22705 fi
22706
22707
22708 if test "x$mon_dir_password" = "x" ; then
22709    if test "x$OPENSSL" = "xnone" ; then
22710       key=`autoconf/randpass 33`
22711    else
22712       key=`openssl rand -base64 33`
22713    fi
22714    mon_dir_password=$key
22715 fi
22716
22717 mon_fd_password=
22718
22719 # Check whether --with-mon-fd-password was given.
22720 if test "${with_mon_fd_password+set}" = set; then :
22721   withval=$with_mon_fd_password;
22722        if test "x$withval" != "xno" ; then
22723           mon_fd_password=$withval
22724        fi
22725
22726
22727 fi
22728
22729
22730 if test "x$mon_fd_password" = "x" ; then
22731    if test "x$OPENSSL" = "xnone" ; then
22732       key=`autoconf/randpass 37`
22733    else
22734       key=`openssl rand -base64 33`
22735    fi
22736    mon_fd_password=$key
22737 fi
22738
22739 mon_sd_password=
22740
22741 # Check whether --with-mon-sd-password was given.
22742 if test "${with_mon_sd_password+set}" = set; then :
22743   withval=$with_mon_sd_password;
22744        if test "x$withval" != "xno" ; then
22745           mon_sd_password=$withval
22746        fi
22747
22748
22749 fi
22750
22751
22752 if test "x$mon_sd_password" = "x" ; then
22753    if test "x$OPENSSL" = "xnone" ; then
22754       key=`autoconf/randpass 41`
22755    else
22756       key=`openssl rand -base64 33`
22757    fi
22758    mon_sd_password=$key
22759 fi
22760
22761
22762
22763
22764
22765
22766
22767
22768 db_name=bacula
22769
22770 # Check whether --with-db_name was given.
22771 if test "${with_db_name+set}" = set; then :
22772   withval=$with_db_name;
22773        if test "x$withval" != "x" ; then
22774           db_name=$withval
22775        fi
22776
22777
22778 fi
22779
22780
22781
22782 db_user=bacula
22783
22784 # Check whether --with-db_user was given.
22785 if test "${with_db_user+set}" = set; then :
22786   withval=$with_db_user;
22787        if test "x$withval" != "x" ; then
22788           db_user=$withval
22789        fi
22790
22791
22792 fi
22793
22794
22795
22796 db_password=
22797
22798 # Check whether --with-db_password was given.
22799 if test "${with_db_password+set}" = set; then :
22800   withval=$with_db_password;
22801        if test "x$withval" != "x" ; then
22802           db_password=$withval
22803        fi
22804
22805
22806 fi
22807
22808
22809
22810 db_port=" "
22811
22812 # Check whether --with-db_port was given.
22813 if test "${with_db_port+set}" = set; then :
22814   withval=$with_db_port;
22815        if test "x$withval" != "x" ; then
22816           db_port=$withval
22817        fi
22818
22819
22820 fi
22821
22822
22823
22824 #
22825 # Handle users and groups for each daemon
22826 #
22827 dir_user=
22828
22829 # Check whether --with-dir_user was given.
22830 if test "${with_dir_user+set}" = set; then :
22831   withval=$with_dir_user;
22832        if test "x$withval" != "x" ; then
22833            dir_user=$withval
22834        fi
22835
22836
22837 fi
22838
22839
22840 dir_group=
22841
22842 # Check whether --with-dir_group was given.
22843 if test "${with_dir_group+set}" = set; then :
22844   withval=$with_dir_group;
22845        if test "x$withval" != "x" ; then
22846           dir_group=$withval
22847        fi
22848
22849
22850 fi
22851
22852
22853 sd_user=
22854
22855 # Check whether --with-sd_user was given.
22856 if test "${with_sd_user+set}" = set; then :
22857   withval=$with_sd_user;
22858        if test "x$withval" != "x" ; then
22859           sd_user=$withval
22860        fi
22861
22862
22863 fi
22864
22865
22866 sd_group=
22867
22868 # Check whether --with-sd_group was given.
22869 if test "${with_sd_group+set}" = set; then :
22870   withval=$with_sd_group;
22871        if test "x$withval" != "x" ; then
22872           sd_group=$withval
22873        fi
22874
22875
22876 fi
22877
22878
22879 fd_user=
22880
22881 # Check whether --with-fd_user was given.
22882 if test "${with_fd_user+set}" = set; then :
22883   withval=$with_fd_user;
22884        if test "x$withval" != "x" ; then
22885           fd_user=$withval
22886        fi
22887
22888
22889 fi
22890
22891
22892 fd_group=
22893
22894 # Check whether --with-fd_group was given.
22895 if test "${with_fd_group+set}" = set; then :
22896   withval=$with_fd_group;
22897        if test "x$withval" != "x" ; then
22898           fd_group=$withval
22899        fi
22900
22901
22902 fi
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912 SBINPERM=0750
22913
22914 # Check whether --with-sbin-perm was given.
22915 if test "${with_sbin_perm+set}" = set; then :
22916   withval=$with_sbin_perm;
22917        if test "x$withval" != "x" ; then
22918           SBINPERM=$withval
22919        fi
22920
22921
22922 fi
22923
22924
22925
22926
22927
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22929 $as_echo_n "checking for PostgreSQL support... " >&6; }
22930
22931 # Check whether --with-postgresql was given.
22932 if test "${with_postgresql+set}" = set; then :
22933   withval=$with_postgresql;
22934   if test "$withval" != "no"; then
22935       if test "$withval" = "yes"; then
22936           PG_CONFIG=`which pg_config`
22937           if test -n "$PG_CONFIG"; then
22938               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22939               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22940               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22941           elif test -f /usr/local/include/libpq-fe.h; then
22942               POSTGRESQL_INCDIR=/usr/local/include
22943               if test -d /usr/local/lib64; then
22944                  POSTGRESQL_LIBDIR=/usr/local/lib64
22945               else
22946                  POSTGRESQL_LIBDIR=/usr/local/lib
22947               fi
22948               POSTGRESQL_BINDIR=/usr/local/bin
22949           elif test -f /usr/include/libpq-fe.h; then
22950               POSTGRESQL_INCDIR=/usr/include
22951               if test -d /usr/lib64; then
22952                  POSTGRESQL_LIBDIR=/usr/lib64
22953               else
22954                  POSTGRESQL_LIBDIR=/usr/lib
22955               fi
22956               POSTGRESQL_BINDIR=/usr/bin
22957           elif test -f /usr/include/pgsql/libpq-fe.h; then
22958               POSTGRESQL_INCDIR=/usr/include/pgsql
22959               if test -d /usr/lib64/pgsql; then
22960                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22961               else
22962                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22963               fi
22964               POSTGRESQL_BINDIR=/usr/bin
22965           elif test -f /usr/include/postgresql/libpq-fe.h; then
22966               POSTGRESQL_INCDIR=/usr/include/postgresql
22967               if test -d /usr/lib64/postgresql; then
22968                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22969               else
22970                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22971               fi
22972               POSTGRESQL_BINDIR=/usr/bin
22973           else
22974               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22975 $as_echo "no" >&6; }
22976               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22977           fi
22978       elif test -f $withval/include/libpq-fe.h; then
22979           POSTGRESQL_INCDIR=$withval/include
22980           POSTGRESQL_LIBDIR=$withval/lib
22981           POSTGRESQL_BINDIR=$withval/bin
22982       elif test -f $withval/include/postgresql/libpq-fe.h; then
22983           POSTGRESQL_INCDIR=$withval/include/postgresql
22984           if test -d $withval/lib64; then
22985               POSTGRESQL_LIBDIR=$withval/lib64
22986           else
22987               POSTGRESQL_LIBDIR=$withval/lib
22988           fi
22989           POSTGRESQL_BINDIR=$withval/bin
22990       else
22991           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22992 $as_echo "no" >&6; }
22993           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22994       fi
22995
22996 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22997
22998      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22999 $as_echo "yes" >&6; }
23000
23001      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23002      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23003      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23004 if test "x$ac_cv_func_crypt" = xyes; then :
23005
23006 else
23007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23008 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23009 if ${ac_cv_lib_crypt_crypt+:} false; then :
23010   $as_echo_n "(cached) " >&6
23011 else
23012   ac_check_lib_save_LIBS=$LIBS
23013 LIBS="-lcrypt  $LIBS"
23014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23015 /* end confdefs.h.  */
23016
23017 /* Override any GCC internal prototype to avoid an error.
23018    Use char because int might match the return type of a GCC
23019    builtin and then its argument prototype would still apply.  */
23020 #ifdef __cplusplus
23021 extern "C"
23022 #endif
23023 char crypt ();
23024 int
23025 main ()
23026 {
23027 return crypt ();
23028   ;
23029   return 0;
23030 }
23031 _ACEOF
23032 if ac_fn_c_try_link "$LINENO"; then :
23033   ac_cv_lib_crypt_crypt=yes
23034 else
23035   ac_cv_lib_crypt_crypt=no
23036 fi
23037 rm -f core conftest.err conftest.$ac_objext \
23038     conftest$ac_exeext conftest.$ac_ext
23039 LIBS=$ac_check_lib_save_LIBS
23040 fi
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23042 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23043 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23044   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23045 fi
23046
23047 fi
23048
23049      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23050      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23051
23052      if test -z "${db_backends}"; then
23053          db_backends="PostgreSQL"
23054      else
23055          db_backends="${db_backends} PostgreSQL"
23056      fi
23057      if test -z "${DB_BACKENDS}"; then
23058          DB_BACKENDS="postgresql"
23059      else
23060          DB_BACKENDS="${DB_BACKENDS} postgresql"
23061      fi
23062   else
23063      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23064 $as_echo "no" >&6; }
23065   fi
23066
23067 else
23068
23069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23070 $as_echo "no" >&6; }
23071
23072 fi
23073
23074
23075
23076
23077
23078
23079
23080
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23082 $as_echo_n "checking for MySQL support... " >&6; }
23083
23084 # Check whether --with-mysql was given.
23085 if test "${with_mysql+set}" = set; then :
23086   withval=$with_mysql;
23087   if test "$withval" != "no"; then
23088         if test "$withval" = "yes"; then
23089            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23090                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23091                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23092                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23093                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23094                    else
23095                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23096                    fi
23097                    MYSQL_BINDIR=/usr/local/mysql/bin
23098            elif test -f /usr/include/mysql/mysql.h; then
23099                    MYSQL_INCDIR=/usr/include/mysql
23100                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23101                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23102                            MYSQL_LIBDIR=/usr/lib64/mysql
23103                    elif test -f /usr/lib64/libmysqlclient_r.a \
23104                         -o -f /usr/lib64/libmysqlclient_r.so; then
23105                            MYSQL_LIBDIR=/usr/lib64
23106                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23107                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23108                            MYSQL_LIBDIR=/usr/lib/mysql
23109                    else
23110                            MYSQL_LIBDIR=/usr/lib
23111                    fi
23112                    MYSQL_BINDIR=/usr/bin
23113            elif test -f /usr/include/mysql.h; then
23114                    MYSQL_INCDIR=/usr/include
23115                    if test -f /usr/lib64/libmysqlclient_r.a \
23116                         -o -f /usr/lib64/libmysqlclient_r.so; then
23117                            MYSQL_LIBDIR=/usr/lib64
23118                    else
23119                            MYSQL_LIBDIR=/usr/lib
23120                    fi
23121                    MYSQL_BINDIR=/usr/bin
23122            elif test -f /usr/local/include/mysql/mysql.h; then
23123                    MYSQL_INCDIR=/usr/local/include/mysql
23124                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23125                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23126                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23127                    else
23128                            MYSQL_LIBDIR=/usr/local/lib/mysql
23129                    fi
23130                    MYSQL_BINDIR=/usr/local/bin
23131            elif test -f /usr/local/include/mysql.h; then
23132                    MYSQL_INCDIR=/usr/local/include
23133                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23134                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23135                            MYSQL_LIBDIR=/usr/local/lib64
23136                    else
23137                            MYSQL_LIBDIR=/usr/local/lib
23138                    fi
23139                    MYSQL_BINDIR=/usr/local/bin
23140            else
23141               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23142 $as_echo "no" >&6; }
23143               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23144            fi
23145         else
23146            if test -f $withval/include/mysql/mysql.h; then
23147               MYSQL_INCDIR=$withval/include/mysql
23148               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23149                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23150                  MYSQL_LIBDIR=$withval/lib64/mysql
23151               elif test -f $withval/lib64/libmysqlclient_r.a \
23152                    -o -f $withval/lib64/libmysqlclient_r.so; then
23153                  MYSQL_LIBDIR=$withval/lib64
23154               elif test -f $withval/lib/libmysqlclient_r.a \
23155                    -o -f $withval/lib/libmysqlclient_r.so; then
23156                  MYSQL_LIBDIR=$withval/lib
23157               else
23158                  MYSQL_LIBDIR=$withval/lib/mysql
23159               fi
23160               MYSQL_BINDIR=$withval/bin
23161            elif test -f $withval/include/mysql.h; then
23162               MYSQL_INCDIR=$withval/include
23163               if test -f $withval/lib64/libmysqlclient_r.a \
23164                    -o -f $withval/lib64/libmysqlclient_r.so; then
23165                  MYSQL_LIBDIR=$withval/lib64
23166               else
23167                  MYSQL_LIBDIR=$withval/lib
23168               fi
23169               MYSQL_BINDIR=$withval/bin
23170            else
23171               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23172 $as_echo "no" >&6; }
23173               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23174            fi
23175         fi
23176      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23177      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23178           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23179         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23180
23181 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23182
23183         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23184      fi
23185      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23186
23187
23188 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23189
23190      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23191 $as_echo "yes" >&6; }
23192
23193      if test -z "${db_backends}" ; then
23194          db_backends="MySQL"
23195      else
23196          db_backends="${db_backends} MySQL"
23197      fi
23198      if test -z "${DB_BACKENDS}" ; then
23199          DB_BACKENDS="mysql"
23200      else
23201          DB_BACKENDS="${DB_BACKENDS} mysql"
23202      fi
23203   else
23204      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23205 $as_echo "no" >&6; }
23206   fi
23207
23208
23209 fi
23210
23211
23212
23213 # Check whether --with-embedded-mysql was given.
23214 if test "${with_embedded_mysql+set}" = set; then :
23215   withval=$with_embedded_mysql;
23216   if test "$withval" != "no"; then
23217         if test "$withval" = "yes"; then
23218                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23219                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23220                         if test -d /usr/local/mysql/lib64/mysql; then
23221                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23222                         else
23223                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23224                         fi
23225                         MYSQL_BINDIR=/usr/local/mysql/bin
23226                 elif test -f /usr/include/mysql/mysql.h; then
23227                         MYSQL_INCDIR=/usr/include/mysql
23228                         if test -d /usr/lib64/mysql; then
23229                                 MYSQL_LIBDIR=/usr/lib64/mysql
23230                         else
23231                                 MYSQL_LIBDIR=/usr/lib/mysql
23232                         fi
23233                         MYSQL_BINDIR=/usr/bin
23234                 elif test -f /usr/include/mysql.h; then
23235                         MYSQL_INCDIR=/usr/include
23236                         if test -d /usr/lib64; then
23237                                 MYSQL_LIBDIR=/usr/lib64
23238                         else
23239                                 MYSQL_LIBDIR=/usr/lib
23240                         fi
23241                         MYSQL_BINDIR=/usr/bin
23242                 elif test -f /usr/local/include/mysql/mysql.h; then
23243                         MYSQL_INCDIR=/usr/local/include/mysql
23244                         if test -d /usr/local/lib64/mysql; then
23245                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23246                         else
23247                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23248                         fi
23249                         MYSQL_BINDIR=/usr/local/bin
23250                 elif test -f /usr/local/include/mysql.h; then
23251                         MYSQL_INCDIR=/usr/local/include
23252                         if test -d /usr/local/lib64; then
23253                                 MYSQL_LIBDIR=/usr/local/lib64
23254                         else
23255                                 MYSQL_LIBDIR=/usr/local/lib
23256                         fi
23257                         MYSQL_BINDIR=/usr/local/bin
23258                 else
23259                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23260 $as_echo "no" >&6; }
23261                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23262                 fi
23263         else
23264                 if test -f $withval/include/mysql/mysql.h; then
23265                         MYSQL_INCDIR=$withval/include/mysql
23266                         if test -d $withval/lib64/mysql; then
23267                                 MYSQL_LIBDIR=$withval/lib64/mysql
23268                         else
23269                                 MYSQL_LIBDIR=$withval/lib/mysql
23270                         fi
23271                         MYSQL_BINDIR=$withval/bin
23272                 elif test -f $withval/include/mysql.h; then
23273                         MYSQL_INCDIR=$withval/include
23274                         if test -d $withval/lib64; then
23275                                 MYSQL_LIBDIR=$withval/lib64
23276                         else
23277                                 MYSQL_LIBDIR=$withval/lib
23278                         fi
23279                         MYSQL_BINDIR=$withval/bin
23280                 else
23281                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23282 $as_echo "no" >&6; }
23283                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23284                 fi
23285         fi
23286      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23287      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23288      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23289      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23290
23291
23292 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23293
23294
23295 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23296
23297      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23298 $as_echo "yes" >&6; }
23299
23300      if test -z "${db_backends}"; then
23301          db_backends="MySQL"
23302      else
23303          db_backends="${db_backends} MySQL"
23304      fi
23305      if test -z "${DB_BACKENDS}"; then
23306          DB_BACKENDS="mysql"
23307      else
23308          DB_BACKENDS="${DB_BACKENDS} mysql"
23309      fi
23310   else
23311      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23312 $as_echo "no" >&6; }
23313   fi
23314
23315
23316 fi
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23327 $as_echo_n "checking for SQLite3 support... " >&6; }
23328
23329 # Check whether --with-sqlite3 was given.
23330 if test "${with_sqlite3+set}" = set; then :
23331   withval=$with_sqlite3;
23332   if test "$withval" != "no"; then
23333      if test "$withval" = "yes"; then
23334         if test -f /usr/local/include/sqlite3.h; then
23335            SQLITE_INCDIR=/usr/local/include
23336            if test -d /usr/local/lib64; then
23337               SQLITE_LIBDIR=/usr/local/lib64
23338            else
23339               SQLITE_LIBDIR=/usr/local/lib
23340            fi
23341            SQLITE_BINDIR=/usr/local/bin
23342         elif test -f /usr/include/sqlite3.h; then
23343            SQLITE_INCDIR=/usr/include
23344            if test -d /usr/lib64; then
23345               SQLITE_LIBDIR=/usr/lib64
23346            else
23347               SQLITE_LIBDIR=/usr/lib
23348            fi
23349            SQLITE_BINDIR=/usr/bin
23350         elif test -f $prefix/include/sqlite3.h; then
23351            SQLITE_INCDIR=$prefix/include
23352            if test -d $prefix/lib64; then
23353               SQLITE_LIBDIR=$prefix/lib64
23354            else
23355               SQLITE_LIBDIR=$prefix/lib
23356            fi
23357            SQLITE_BINDIR=$prefix/bin
23358         else
23359            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23360 $as_echo "no" >&6; }
23361            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23362         fi
23363      else
23364         if test -f $withval/sqlite3.h; then
23365            SQLITE_INCDIR=$withval
23366            SQLITE_LIBDIR=$withval
23367            SQLITE_BINDIR=$withval
23368         elif test -f $withval/include/sqlite3.h; then
23369            SQLITE_INCDIR=$withval/include
23370            if test -d $withval/lib64; then
23371               SQLITE_LIBDIR=$withval/lib64
23372            else
23373               SQLITE_LIBDIR=$withval/lib
23374            fi
23375            SQLITE_BINDIR=$withval/bin
23376         else
23377            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23378 $as_echo "no" >&6; }
23379            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23380         fi
23381      fi
23382      SQLITE_INCLUDE=-I$SQLITE_INCDIR
23383      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23384      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23385      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23386
23387
23388 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23389
23390      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23391 $as_echo "yes" >&6; }
23392
23393      if test -z "${db_backends}"; then
23394          db_backends="SQLite3"
23395      else
23396          db_backends="${db_backends} SQLite3"
23397      fi
23398      if test -z "${DB_BACKENDS}"; then
23399          DB_BACKENDS="sqlite3"
23400      else
23401          DB_BACKENDS="${DB_BACKENDS} sqlite3"
23402      fi
23403   else
23404      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23405 $as_echo "no" >&6; }
23406   fi
23407
23408 else
23409
23410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23411 $as_echo "no" >&6; }
23412
23413 fi
23414
23415
23416
23417
23418
23419
23420
23421 #BA_CHECK_INGRES_DB
23422
23423 #BA_CHECK_DBI_DB
23424
23425 #BA_CHECK_DBI_DRIVER
23426
23427 if test "x${db_backends}" = "x" ; then
23428    echo " "
23429    echo " "
23430    echo "You have not specified either --enable-client-only or one of the"
23431    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23432    echo "This is not permitted. Please reconfigure."
23433    echo " "
23434    echo "Aborting the configuration ..."
23435    echo " "
23436    echo " "
23437    exit 1
23438 fi
23439
23440 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23441    1)
23442       DEFAULT_DB_TYPE="${DB_BACKENDS}"
23443       if test x$use_libtool = xno; then
23444          SHARED_CATALOG_TARGETS=""
23445       else
23446          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23447       fi
23448       ;;
23449    *)
23450                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23451
23452                         if test x$use_libtool = xno; then
23453          echo " "
23454          echo " "
23455          echo "You have specified two or more of the"
23456          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23457          echo "This is not permitted when not using libtool Please reconfigure."
23458          echo " "
23459          echo "Aborting the configuration ..."
23460          echo " "
23461          echo " "
23462          exit 1
23463       fi
23464
23465       SHARED_CATALOG_TARGETS=""
23466       for db_type in ${DB_BACKENDS}
23467       do
23468          if test -z "${SHARED_CATALOG_TARGETS}"; then
23469             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23470          else
23471             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23472          fi
23473       done
23474       ;;
23475 esac
23476
23477 if test x$use_libtool = xyes; then
23478    DB_LIBS=""
23479 fi
23480
23481
23482
23483
23484
23485
23486 support_batch_insert=yes
23487 # Check whether --enable-batch-insert was given.
23488 if test "${enable_batch_insert+set}" = set; then :
23489   enableval=$enable_batch_insert;
23490        if test x$enableval = xno; then
23491           support_batch_insert=no
23492        fi
23493
23494
23495 fi
23496
23497
23498 if test x$support_batch_insert = xyes; then
23499
23500 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23501
23502 fi
23503
23504 if test ! -z "$MYSQL_LIB"; then
23505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23506 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23507 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
23508   $as_echo_n "(cached) " >&6
23509 else
23510   ac_check_lib_save_LIBS=$LIBS
23511 LIBS="-lmysql_r  $LIBS"
23512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h.  */
23514
23515 /* Override any GCC internal prototype to avoid an error.
23516    Use char because int might match the return type of a GCC
23517    builtin and then its argument prototype would still apply.  */
23518 #ifdef __cplusplus
23519 extern "C"
23520 #endif
23521 char mysql_thread_safe ();
23522 int
23523 main ()
23524 {
23525 return mysql_thread_safe ();
23526   ;
23527   return 0;
23528 }
23529 _ACEOF
23530 if ac_fn_c_try_link "$LINENO"; then :
23531   ac_cv_lib_mysql_r_mysql_thread_safe=yes
23532 else
23533   ac_cv_lib_mysql_r_mysql_thread_safe=no
23534 fi
23535 rm -f core conftest.err conftest.$ac_objext \
23536     conftest$ac_exeext conftest.$ac_ext
23537 LIBS=$ac_check_lib_save_LIBS
23538 fi
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23540 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23541 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
23542
23543 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23544
23545 fi
23546
23547 fi
23548
23549 if test ! -z "SQLITE_LIB"; then
23550    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23551 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23552 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
23553   $as_echo_n "(cached) " >&6
23554 else
23555   ac_check_lib_save_LIBS=$LIBS
23556 LIBS="-lsqlite3  $LIBS"
23557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23558 /* end confdefs.h.  */
23559
23560 /* Override any GCC internal prototype to avoid an error.
23561    Use char because int might match the return type of a GCC
23562    builtin and then its argument prototype would still apply.  */
23563 #ifdef __cplusplus
23564 extern "C"
23565 #endif
23566 char sqlite3_threadsafe ();
23567 int
23568 main ()
23569 {
23570 return sqlite3_threadsafe ();
23571   ;
23572   return 0;
23573 }
23574 _ACEOF
23575 if ac_fn_c_try_link "$LINENO"; then :
23576   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23577 else
23578   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23579 fi
23580 rm -f core conftest.err conftest.$ac_objext \
23581     conftest$ac_exeext conftest.$ac_ext
23582 LIBS=$ac_check_lib_save_LIBS
23583 fi
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23585 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23586 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
23587
23588 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23589
23590 fi
23591
23592 fi
23593
23594 if test ! -z "$POSTGRESQL_LIB"; then
23595       saved_LIBS="${LIBS}"
23596    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23597
23598    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23599 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23600 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23601   $as_echo_n "(cached) " >&6
23602 else
23603   ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-lpq  $LIBS"
23605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23606 /* end confdefs.h.  */
23607
23608 /* Override any GCC internal prototype to avoid an error.
23609    Use char because int might match the return type of a GCC
23610    builtin and then its argument prototype would still apply.  */
23611 #ifdef __cplusplus
23612 extern "C"
23613 #endif
23614 char PQisthreadsafe ();
23615 int
23616 main ()
23617 {
23618 return PQisthreadsafe ();
23619   ;
23620   return 0;
23621 }
23622 _ACEOF
23623 if ac_fn_c_try_link "$LINENO"; then :
23624   ac_cv_lib_pq_PQisthreadsafe=yes
23625 else
23626   ac_cv_lib_pq_PQisthreadsafe=no
23627 fi
23628 rm -f core conftest.err conftest.$ac_objext \
23629     conftest$ac_exeext conftest.$ac_ext
23630 LIBS=$ac_check_lib_save_LIBS
23631 fi
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23633 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23634 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23635
23636 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23637
23638 fi
23639
23640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23641 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23642 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23643   $as_echo_n "(cached) " >&6
23644 else
23645   ac_check_lib_save_LIBS=$LIBS
23646 LIBS="-lpq  $LIBS"
23647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23648 /* end confdefs.h.  */
23649
23650 /* Override any GCC internal prototype to avoid an error.
23651    Use char because int might match the return type of a GCC
23652    builtin and then its argument prototype would still apply.  */
23653 #ifdef __cplusplus
23654 extern "C"
23655 #endif
23656 char PQputCopyData ();
23657 int
23658 main ()
23659 {
23660 return PQputCopyData ();
23661   ;
23662   return 0;
23663 }
23664 _ACEOF
23665 if ac_fn_c_try_link "$LINENO"; then :
23666   ac_cv_lib_pq_PQputCopyData=yes
23667 else
23668   ac_cv_lib_pq_PQputCopyData=no
23669 fi
23670 rm -f core conftest.err conftest.$ac_objext \
23671     conftest$ac_exeext conftest.$ac_ext
23672 LIBS=$ac_check_lib_save_LIBS
23673 fi
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23675 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23676 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23677
23678 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23679
23680 fi
23681
23682    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23683       if test $support_batch_insert = yes ; then
23684
23685 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23686
23687       fi
23688    fi
23689
23690    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23691    then
23692       echo "WARNING: Your PostgreSQL client library is too old to detect "
23693       echo "if it was compiled with --enable-thread-safety, consider to "
23694       echo "upgrade it in order to avoid problems with Batch insert mode"
23695       echo
23696    fi
23697
23698       LIBS="${saved_LIBS}"
23699 fi
23700
23701 if test ! -z "$DBI_LIBS"; then
23702             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23703
23704             if test $DB_PROG = postgresql; then
23705       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23706 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23707 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23708   $as_echo_n "(cached) " >&6
23709 else
23710   ac_check_lib_save_LIBS=$LIBS
23711 LIBS="-lpq  $LIBS"
23712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23713 /* end confdefs.h.  */
23714
23715 /* Override any GCC internal prototype to avoid an error.
23716    Use char because int might match the return type of a GCC
23717    builtin and then its argument prototype would still apply.  */
23718 #ifdef __cplusplus
23719 extern "C"
23720 #endif
23721 char PQisthreadsafe ();
23722 int
23723 main ()
23724 {
23725 return PQisthreadsafe ();
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 if ac_fn_c_try_link "$LINENO"; then :
23731   ac_cv_lib_pq_PQisthreadsafe=yes
23732 else
23733   ac_cv_lib_pq_PQisthreadsafe=no
23734 fi
23735 rm -f core conftest.err conftest.$ac_objext \
23736     conftest$ac_exeext conftest.$ac_ext
23737 LIBS=$ac_check_lib_save_LIBS
23738 fi
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23740 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23741 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23742   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23743
23744 fi
23745
23746       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23747 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23748 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23749   $as_echo_n "(cached) " >&6
23750 else
23751   ac_check_lib_save_LIBS=$LIBS
23752 LIBS="-lpq  $LIBS"
23753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23754 /* end confdefs.h.  */
23755
23756 /* Override any GCC internal prototype to avoid an error.
23757    Use char because int might match the return type of a GCC
23758    builtin and then its argument prototype would still apply.  */
23759 #ifdef __cplusplus
23760 extern "C"
23761 #endif
23762 char PQputCopyData ();
23763 int
23764 main ()
23765 {
23766 return PQputCopyData ();
23767   ;
23768   return 0;
23769 }
23770 _ACEOF
23771 if ac_fn_c_try_link "$LINENO"; then :
23772   ac_cv_lib_pq_PQputCopyData=yes
23773 else
23774   ac_cv_lib_pq_PQputCopyData=no
23775 fi
23776 rm -f core conftest.err conftest.$ac_objext \
23777     conftest$ac_exeext conftest.$ac_ext
23778 LIBS=$ac_check_lib_save_LIBS
23779 fi
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23781 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23782 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23783   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23784
23785 fi
23786
23787       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
23788       pkg=$?
23789       if test $pkg = 0; then
23790          if test $support_batch_insert = yes ; then
23791
23792 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
23793
23794          fi
23795       fi
23796    fi
23797 else
23798             uncomment_dbi="#"
23799 fi
23800
23801
23802
23803 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23804
23805
23806 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23807    if test -z "$CCOPTS"; then
23808       CCOPTS='-g -O2 -Wall'
23809    fi
23810    CFLAGS="$CCOPTS"
23811 fi
23812
23813
23814
23815 largefile_support="no"
23816
23817    # Check whether --enable-largefile was given.
23818 if test "${enable_largefile+set}" = set; then :
23819   enableval=$enable_largefile;
23820 fi
23821
23822    if test "$enable_largefile" != no; then
23823      if test -n "$ac_tool_prefix"; then
23824   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23825 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23827 $as_echo_n "checking for $ac_word... " >&6; }
23828 if ${ac_cv_prog_GETCONF+:} false; then :
23829   $as_echo_n "(cached) " >&6
23830 else
23831   if test -n "$GETCONF"; then
23832   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23833 else
23834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23835 for as_dir in $PATH
23836 do
23837   IFS=$as_save_IFS
23838   test -z "$as_dir" && as_dir=.
23839     for ac_exec_ext in '' $ac_executable_extensions; do
23840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23841     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23843     break 2
23844   fi
23845 done
23846   done
23847 IFS=$as_save_IFS
23848
23849 fi
23850 fi
23851 GETCONF=$ac_cv_prog_GETCONF
23852 if test -n "$GETCONF"; then
23853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23854 $as_echo "$GETCONF" >&6; }
23855 else
23856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23857 $as_echo "no" >&6; }
23858 fi
23859
23860
23861 fi
23862 if test -z "$ac_cv_prog_GETCONF"; then
23863   ac_ct_GETCONF=$GETCONF
23864   # Extract the first word of "getconf", so it can be a program name with args.
23865 set dummy getconf; ac_word=$2
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23867 $as_echo_n "checking for $ac_word... " >&6; }
23868 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
23869   $as_echo_n "(cached) " >&6
23870 else
23871   if test -n "$ac_ct_GETCONF"; then
23872   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23873 else
23874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23875 for as_dir in $PATH
23876 do
23877   IFS=$as_save_IFS
23878   test -z "$as_dir" && as_dir=.
23879     for ac_exec_ext in '' $ac_executable_extensions; do
23880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23881     ac_cv_prog_ac_ct_GETCONF="getconf"
23882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23883     break 2
23884   fi
23885 done
23886   done
23887 IFS=$as_save_IFS
23888
23889 fi
23890 fi
23891 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23892 if test -n "$ac_ct_GETCONF"; then
23893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23894 $as_echo "$ac_ct_GETCONF" >&6; }
23895 else
23896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23897 $as_echo "no" >&6; }
23898 fi
23899
23900   if test "x$ac_ct_GETCONF" = x; then
23901     GETCONF=""
23902   else
23903     case $cross_compiling:$ac_tool_warned in
23904 yes:)
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23907 ac_tool_warned=yes ;;
23908 esac
23909     GETCONF=$ac_ct_GETCONF
23910   fi
23911 else
23912   GETCONF="$ac_cv_prog_GETCONF"
23913 fi
23914
23915      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
23916 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
23917 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
23918   $as_echo_n "(cached) " >&6
23919 else
23920   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
23921         ac_cv_sys_largefile_CFLAGS=no
23922         case "$host_os" in
23923            # IRIX 6.2 and later require cc -n32.
23924            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
23925              if test "$GCC" != yes; then
23926                ac_cv_sys_largefile_CFLAGS=-n32
23927              fi
23928              ac_save_CC="$CC"
23929              CC="$CC $ac_cv_sys_largefile_CFLAGS"
23930              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h.  */
23932
23933 int
23934 main ()
23935 {
23936
23937   ;
23938   return 0;
23939 }
23940 _ACEOF
23941 if ac_fn_c_try_link "$LINENO"; then :
23942
23943 else
23944   ac_cv_sys_largefile_CFLAGS=no
23945 fi
23946 rm -f core conftest.err conftest.$ac_objext \
23947     conftest$ac_exeext conftest.$ac_ext
23948              CC="$ac_save_CC"
23949            esac
23950       }
23951 fi
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
23953 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
23954      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
23955 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
23956 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
23957   $as_echo_n "(cached) " >&6
23958 else
23959   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
23960         ac_cv_sys_largefile_LDFLAGS=no
23961
23962       }
23963 fi
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
23965 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
23966      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
23967 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
23968 if ${ac_cv_sys_largefile_LIBS+:} false; then :
23969   $as_echo_n "(cached) " >&6
23970 else
23971   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
23972         ac_cv_sys_largefile_LIBS=no
23973
23974       }
23975 fi
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
23977 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
23978
23979      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
23980        case "$ac_flag" in
23981        no) ;;
23982        -D_FILE_OFFSET_BITS=*) ;;
23983        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
23984        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
23985        -D?* | -I?*)
23986          case "$ac_flag" in
23987    no) ;;
23988    ?*)
23989      case "$CPPFLAGS" in
23990      '') CPPFLAGS="$ac_flag" ;;
23991      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
23992      esac ;;
23993    esac ;;
23994        *)
23995          case "$ac_flag" in
23996    no) ;;
23997    ?*)
23998      case "$CFLAGS" in
23999      '') CFLAGS="$ac_flag" ;;
24000      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24001      esac ;;
24002    esac ;;
24003        esac
24004      done
24005      case "$ac_cv_sys_largefile_LDFLAGS" in
24006    no) ;;
24007    ?*)
24008      case "$LDFLAGS" in
24009      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24010      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24011      esac ;;
24012    esac
24013      case "$ac_cv_sys_largefile_LIBS" in
24014    no) ;;
24015    ?*)
24016      case "$LIBS" in
24017      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24018      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24019      esac ;;
24020    esac
24021      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24022 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24023 if ${ac_cv_sys_file_offset_bits+:} false; then :
24024   $as_echo_n "(cached) " >&6
24025 else
24026   ac_cv_sys_file_offset_bits=no
24027       ac_cv_sys_file_offset_bits=64
24028       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24029         case "$ac_flag" in
24030         -D_FILE_OFFSET_BITS)
24031           ac_cv_sys_file_offset_bits=1 ;;
24032         -D_FILE_OFFSET_BITS=*)
24033           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24034         esac
24035       done
24036
24037 fi
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24039 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24040    if test "$ac_cv_sys_file_offset_bits" != no; then
24041
24042 cat >>confdefs.h <<_ACEOF
24043 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24044 _ACEOF
24045
24046    fi
24047      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24048 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24049 if ${ac_cv_sys_largefile_source+:} false; then :
24050   $as_echo_n "(cached) " >&6
24051 else
24052   ac_cv_sys_largefile_source=no
24053       ac_cv_sys_largefile_source=1
24054       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24055         case "$ac_flag" in
24056         -D_LARGEFILE_SOURCE)
24057           ac_cv_sys_largefile_source=1 ;;
24058         -D_LARGEFILE_SOURCE=*)
24059           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24060         esac
24061       done
24062
24063 fi
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24065 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24066    if test "$ac_cv_sys_largefile_source" != no; then
24067
24068 cat >>confdefs.h <<_ACEOF
24069 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24070 _ACEOF
24071
24072    fi
24073      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24074 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24075 if ${ac_cv_sys_large_files+:} false; then :
24076   $as_echo_n "(cached) " >&6
24077 else
24078   ac_cv_sys_large_files=no
24079       ac_cv_sys_large_files=1
24080       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24081         case "$ac_flag" in
24082         -D_LARGE_FILES)
24083           ac_cv_sys_large_files=1 ;;
24084         -D_LARGE_FILES=*)
24085           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24086         esac
24087       done
24088
24089 fi
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24091 $as_echo "$ac_cv_sys_large_files" >&6; }
24092    if test "$ac_cv_sys_large_files" != no; then
24093
24094 cat >>confdefs.h <<_ACEOF
24095 #define _LARGE_FILES $ac_cv_sys_large_files
24096 _ACEOF
24097
24098    fi
24099    fi
24100
24101
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24103 $as_echo_n "checking for X... " >&6; }
24104
24105
24106 # Check whether --with-x was given.
24107 if test "${with_x+set}" = set; then :
24108   withval=$with_x;
24109 fi
24110
24111 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24112 if test "x$with_x" = xno; then
24113   # The user explicitly disabled X.
24114   have_x=disabled
24115 else
24116   case $x_includes,$x_libraries in #(
24117     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24118     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24119   $as_echo_n "(cached) " >&6
24120 else
24121   # One or both of the vars are not set, and there is no cached value.
24122 ac_x_includes=no ac_x_libraries=no
24123 rm -f -r conftest.dir
24124 if mkdir conftest.dir; then
24125   cd conftest.dir
24126   cat >Imakefile <<'_ACEOF'
24127 incroot:
24128         @echo incroot='${INCROOT}'
24129 usrlibdir:
24130         @echo usrlibdir='${USRLIBDIR}'
24131 libdir:
24132         @echo libdir='${LIBDIR}'
24133 _ACEOF
24134   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24135     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24136     for ac_var in incroot usrlibdir libdir; do
24137       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24138     done
24139     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24140     for ac_extension in a so sl dylib la dll; do
24141       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24142          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24143         ac_im_usrlibdir=$ac_im_libdir; break
24144       fi
24145     done
24146     # Screen out bogus values from the imake configuration.  They are
24147     # bogus both because they are the default anyway, and because
24148     # using them would break gcc on systems where it needs fixed includes.
24149     case $ac_im_incroot in
24150         /usr/include) ac_x_includes= ;;
24151         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24152     esac
24153     case $ac_im_usrlibdir in
24154         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24155         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24156     esac
24157   fi
24158   cd ..
24159   rm -f -r conftest.dir
24160 fi
24161
24162 # Standard set of common directories for X headers.
24163 # Check X11 before X11Rn because it is often a symlink to the current release.
24164 ac_x_header_dirs='
24165 /usr/X11/include
24166 /usr/X11R7/include
24167 /usr/X11R6/include
24168 /usr/X11R5/include
24169 /usr/X11R4/include
24170
24171 /usr/include/X11
24172 /usr/include/X11R7
24173 /usr/include/X11R6
24174 /usr/include/X11R5
24175 /usr/include/X11R4
24176
24177 /usr/local/X11/include
24178 /usr/local/X11R7/include
24179 /usr/local/X11R6/include
24180 /usr/local/X11R5/include
24181 /usr/local/X11R4/include
24182
24183 /usr/local/include/X11
24184 /usr/local/include/X11R7
24185 /usr/local/include/X11R6
24186 /usr/local/include/X11R5
24187 /usr/local/include/X11R4
24188
24189 /usr/X386/include
24190 /usr/x386/include
24191 /usr/XFree86/include/X11
24192
24193 /usr/include
24194 /usr/local/include
24195 /usr/unsupported/include
24196 /usr/athena/include
24197 /usr/local/x11r5/include
24198 /usr/lpp/Xamples/include
24199
24200 /usr/openwin/include
24201 /usr/openwin/share/include'
24202
24203 if test "$ac_x_includes" = no; then
24204   # Guess where to find include files, by looking for Xlib.h.
24205   # First, try using that file with no special directory specified.
24206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h.  */
24208 #include <X11/Xlib.h>
24209 _ACEOF
24210 if ac_fn_c_try_cpp "$LINENO"; then :
24211   # We can compile using X headers with no special include directory.
24212 ac_x_includes=
24213 else
24214   for ac_dir in $ac_x_header_dirs; do
24215   if test -r "$ac_dir/X11/Xlib.h"; then
24216     ac_x_includes=$ac_dir
24217     break
24218   fi
24219 done
24220 fi
24221 rm -f conftest.err conftest.i conftest.$ac_ext
24222 fi # $ac_x_includes = no
24223
24224 if test "$ac_x_libraries" = no; then
24225   # Check for the libraries.
24226   # See if we find them without any special options.
24227   # Don't add to $LIBS permanently.
24228   ac_save_LIBS=$LIBS
24229   LIBS="-lX11 $LIBS"
24230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24231 /* end confdefs.h.  */
24232 #include <X11/Xlib.h>
24233 int
24234 main ()
24235 {
24236 XrmInitialize ()
24237   ;
24238   return 0;
24239 }
24240 _ACEOF
24241 if ac_fn_c_try_link "$LINENO"; then :
24242   LIBS=$ac_save_LIBS
24243 # We can link X programs with no special library path.
24244 ac_x_libraries=
24245 else
24246   LIBS=$ac_save_LIBS
24247 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24248 do
24249   # Don't even attempt the hair of trying to link an X program!
24250   for ac_extension in a so sl dylib la dll; do
24251     if test -r "$ac_dir/libX11.$ac_extension"; then
24252       ac_x_libraries=$ac_dir
24253       break 2
24254     fi
24255   done
24256 done
24257 fi
24258 rm -f core conftest.err conftest.$ac_objext \
24259     conftest$ac_exeext conftest.$ac_ext
24260 fi # $ac_x_libraries = no
24261
24262 case $ac_x_includes,$ac_x_libraries in #(
24263   no,* | *,no | *\'*)
24264     # Didn't find X, or a directory has "'" in its name.
24265     ac_cv_have_x="have_x=no";; #(
24266   *)
24267     # Record where we found X for the cache.
24268     ac_cv_have_x="have_x=yes\
24269         ac_x_includes='$ac_x_includes'\
24270         ac_x_libraries='$ac_x_libraries'"
24271 esac
24272 fi
24273 ;; #(
24274     *) have_x=yes;;
24275   esac
24276   eval "$ac_cv_have_x"
24277 fi # $with_x != no
24278
24279 if test "$have_x" != yes; then
24280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24281 $as_echo "$have_x" >&6; }
24282   no_x=yes
24283 else
24284   # If each of the values was on the command line, it overrides each guess.
24285   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24286   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24287   # Update the cache value to reflect the command line values.
24288   ac_cv_have_x="have_x=yes\
24289         ac_x_includes='$x_includes'\
24290         ac_x_libraries='$x_libraries'"
24291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24292 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24293 fi
24294
24295 if test "$no_x" = yes; then
24296   # Not all programs may use this symbol, but it does not hurt to define it.
24297
24298 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24299
24300   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24301 else
24302   if test -n "$x_includes"; then
24303     X_CFLAGS="$X_CFLAGS -I$x_includes"
24304   fi
24305
24306   # It would also be nice to do this for all -L options, not just this one.
24307   if test -n "$x_libraries"; then
24308     X_LIBS="$X_LIBS -L$x_libraries"
24309     # For Solaris; some versions of Sun CC require a space after -R and
24310     # others require no space.  Words are not sufficient . . . .
24311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24312 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24313     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24314     ac_xsave_c_werror_flag=$ac_c_werror_flag
24315     ac_c_werror_flag=yes
24316     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24317 /* end confdefs.h.  */
24318
24319 int
24320 main ()
24321 {
24322
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 if ac_fn_c_try_link "$LINENO"; then :
24328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24329 $as_echo "no" >&6; }
24330        X_LIBS="$X_LIBS -R$x_libraries"
24331 else
24332   LIBS="$ac_xsave_LIBS -R $x_libraries"
24333        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24334 /* end confdefs.h.  */
24335
24336 int
24337 main ()
24338 {
24339
24340   ;
24341   return 0;
24342 }
24343 _ACEOF
24344 if ac_fn_c_try_link "$LINENO"; then :
24345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24346 $as_echo "yes" >&6; }
24347           X_LIBS="$X_LIBS -R $x_libraries"
24348 else
24349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24350 $as_echo "neither works" >&6; }
24351 fi
24352 rm -f core conftest.err conftest.$ac_objext \
24353     conftest$ac_exeext conftest.$ac_ext
24354 fi
24355 rm -f core conftest.err conftest.$ac_objext \
24356     conftest$ac_exeext conftest.$ac_ext
24357     ac_c_werror_flag=$ac_xsave_c_werror_flag
24358     LIBS=$ac_xsave_LIBS
24359   fi
24360
24361   # Check for system-dependent libraries X programs must link with.
24362   # Do this before checking for the system-independent R6 libraries
24363   # (-lICE), since we may need -lsocket or whatever for X linking.
24364
24365   if test "$ISC" = yes; then
24366     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24367   else
24368     # Martyn Johnson says this is needed for Ultrix, if the X
24369     # libraries were built with DECnet support.  And Karl Berry says
24370     # the Alpha needs dnet_stub (dnet does not exist).
24371     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24372     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24373 /* end confdefs.h.  */
24374
24375 /* Override any GCC internal prototype to avoid an error.
24376    Use char because int might match the return type of a GCC
24377    builtin and then its argument prototype would still apply.  */
24378 #ifdef __cplusplus
24379 extern "C"
24380 #endif
24381 char XOpenDisplay ();
24382 int
24383 main ()
24384 {
24385 return XOpenDisplay ();
24386   ;
24387   return 0;
24388 }
24389 _ACEOF
24390 if ac_fn_c_try_link "$LINENO"; then :
24391
24392 else
24393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24394 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24395 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
24396   $as_echo_n "(cached) " >&6
24397 else
24398   ac_check_lib_save_LIBS=$LIBS
24399 LIBS="-ldnet  $LIBS"
24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h.  */
24402
24403 /* Override any GCC internal prototype to avoid an error.
24404    Use char because int might match the return type of a GCC
24405    builtin and then its argument prototype would still apply.  */
24406 #ifdef __cplusplus
24407 extern "C"
24408 #endif
24409 char dnet_ntoa ();
24410 int
24411 main ()
24412 {
24413 return dnet_ntoa ();
24414   ;
24415   return 0;
24416 }
24417 _ACEOF
24418 if ac_fn_c_try_link "$LINENO"; then :
24419   ac_cv_lib_dnet_dnet_ntoa=yes
24420 else
24421   ac_cv_lib_dnet_dnet_ntoa=no
24422 fi
24423 rm -f core conftest.err conftest.$ac_objext \
24424     conftest$ac_exeext conftest.$ac_ext
24425 LIBS=$ac_check_lib_save_LIBS
24426 fi
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24428 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24429 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
24430   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24431 fi
24432
24433     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24434       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24435 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24436 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
24437   $as_echo_n "(cached) " >&6
24438 else
24439   ac_check_lib_save_LIBS=$LIBS
24440 LIBS="-ldnet_stub  $LIBS"
24441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24442 /* end confdefs.h.  */
24443
24444 /* Override any GCC internal prototype to avoid an error.
24445    Use char because int might match the return type of a GCC
24446    builtin and then its argument prototype would still apply.  */
24447 #ifdef __cplusplus
24448 extern "C"
24449 #endif
24450 char dnet_ntoa ();
24451 int
24452 main ()
24453 {
24454 return dnet_ntoa ();
24455   ;
24456   return 0;
24457 }
24458 _ACEOF
24459 if ac_fn_c_try_link "$LINENO"; then :
24460   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24461 else
24462   ac_cv_lib_dnet_stub_dnet_ntoa=no
24463 fi
24464 rm -f core conftest.err conftest.$ac_objext \
24465     conftest$ac_exeext conftest.$ac_ext
24466 LIBS=$ac_check_lib_save_LIBS
24467 fi
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24469 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24470 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
24471   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24472 fi
24473
24474     fi
24475 fi
24476 rm -f core conftest.err conftest.$ac_objext \
24477     conftest$ac_exeext conftest.$ac_ext
24478     LIBS="$ac_xsave_LIBS"
24479
24480     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24481     # to get the SysV transport functions.
24482     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24483     # needs -lnsl.
24484     # The nsl library prevents programs from opening the X display
24485     # on Irix 5.2, according to T.E. Dickey.
24486     # The functions gethostbyname, getservbyname, and inet_addr are
24487     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24488     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24489 if test "x$ac_cv_func_gethostbyname" = xyes; then :
24490
24491 fi
24492
24493     if test $ac_cv_func_gethostbyname = no; then
24494       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24495 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24496 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24497   $as_echo_n "(cached) " >&6
24498 else
24499   ac_check_lib_save_LIBS=$LIBS
24500 LIBS="-lnsl  $LIBS"
24501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24502 /* end confdefs.h.  */
24503
24504 /* Override any GCC internal prototype to avoid an error.
24505    Use char because int might match the return type of a GCC
24506    builtin and then its argument prototype would still apply.  */
24507 #ifdef __cplusplus
24508 extern "C"
24509 #endif
24510 char gethostbyname ();
24511 int
24512 main ()
24513 {
24514 return gethostbyname ();
24515   ;
24516   return 0;
24517 }
24518 _ACEOF
24519 if ac_fn_c_try_link "$LINENO"; then :
24520   ac_cv_lib_nsl_gethostbyname=yes
24521 else
24522   ac_cv_lib_nsl_gethostbyname=no
24523 fi
24524 rm -f core conftest.err conftest.$ac_objext \
24525     conftest$ac_exeext conftest.$ac_ext
24526 LIBS=$ac_check_lib_save_LIBS
24527 fi
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24529 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24530 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24531   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24532 fi
24533
24534       if test $ac_cv_lib_nsl_gethostbyname = no; then
24535         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24536 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24537 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
24538   $as_echo_n "(cached) " >&6
24539 else
24540   ac_check_lib_save_LIBS=$LIBS
24541 LIBS="-lbsd  $LIBS"
24542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24543 /* end confdefs.h.  */
24544
24545 /* Override any GCC internal prototype to avoid an error.
24546    Use char because int might match the return type of a GCC
24547    builtin and then its argument prototype would still apply.  */
24548 #ifdef __cplusplus
24549 extern "C"
24550 #endif
24551 char gethostbyname ();
24552 int
24553 main ()
24554 {
24555 return gethostbyname ();
24556   ;
24557   return 0;
24558 }
24559 _ACEOF
24560 if ac_fn_c_try_link "$LINENO"; then :
24561   ac_cv_lib_bsd_gethostbyname=yes
24562 else
24563   ac_cv_lib_bsd_gethostbyname=no
24564 fi
24565 rm -f core conftest.err conftest.$ac_objext \
24566     conftest$ac_exeext conftest.$ac_ext
24567 LIBS=$ac_check_lib_save_LIBS
24568 fi
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24570 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24571 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
24572   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24573 fi
24574
24575       fi
24576     fi
24577
24578     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24579     # socket/setsockopt and other routines are undefined under SCO ODT
24580     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24581     # on later versions), says Simon Leinen: it contains gethostby*
24582     # variants that don't use the name server (or something).  -lsocket
24583     # must be given before -lnsl if both are needed.  We assume that
24584     # if connect needs -lnsl, so does gethostbyname.
24585     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24586 if test "x$ac_cv_func_connect" = xyes; then :
24587
24588 fi
24589
24590     if test $ac_cv_func_connect = no; then
24591       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24592 $as_echo_n "checking for connect in -lsocket... " >&6; }
24593 if ${ac_cv_lib_socket_connect+:} false; then :
24594   $as_echo_n "(cached) " >&6
24595 else
24596   ac_check_lib_save_LIBS=$LIBS
24597 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24599 /* end confdefs.h.  */
24600
24601 /* Override any GCC internal prototype to avoid an error.
24602    Use char because int might match the return type of a GCC
24603    builtin and then its argument prototype would still apply.  */
24604 #ifdef __cplusplus
24605 extern "C"
24606 #endif
24607 char connect ();
24608 int
24609 main ()
24610 {
24611 return connect ();
24612   ;
24613   return 0;
24614 }
24615 _ACEOF
24616 if ac_fn_c_try_link "$LINENO"; then :
24617   ac_cv_lib_socket_connect=yes
24618 else
24619   ac_cv_lib_socket_connect=no
24620 fi
24621 rm -f core conftest.err conftest.$ac_objext \
24622     conftest$ac_exeext conftest.$ac_ext
24623 LIBS=$ac_check_lib_save_LIBS
24624 fi
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24626 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24627 if test "x$ac_cv_lib_socket_connect" = xyes; then :
24628   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24629 fi
24630
24631     fi
24632
24633     # Guillermo Gomez says -lposix is necessary on A/UX.
24634     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24635 if test "x$ac_cv_func_remove" = xyes; then :
24636
24637 fi
24638
24639     if test $ac_cv_func_remove = no; then
24640       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24641 $as_echo_n "checking for remove in -lposix... " >&6; }
24642 if ${ac_cv_lib_posix_remove+:} false; then :
24643   $as_echo_n "(cached) " >&6
24644 else
24645   ac_check_lib_save_LIBS=$LIBS
24646 LIBS="-lposix  $LIBS"
24647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h.  */
24649
24650 /* Override any GCC internal prototype to avoid an error.
24651    Use char because int might match the return type of a GCC
24652    builtin and then its argument prototype would still apply.  */
24653 #ifdef __cplusplus
24654 extern "C"
24655 #endif
24656 char remove ();
24657 int
24658 main ()
24659 {
24660 return remove ();
24661   ;
24662   return 0;
24663 }
24664 _ACEOF
24665 if ac_fn_c_try_link "$LINENO"; then :
24666   ac_cv_lib_posix_remove=yes
24667 else
24668   ac_cv_lib_posix_remove=no
24669 fi
24670 rm -f core conftest.err conftest.$ac_objext \
24671     conftest$ac_exeext conftest.$ac_ext
24672 LIBS=$ac_check_lib_save_LIBS
24673 fi
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24675 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24676 if test "x$ac_cv_lib_posix_remove" = xyes; then :
24677   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24678 fi
24679
24680     fi
24681
24682     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24683     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24684 if test "x$ac_cv_func_shmat" = xyes; then :
24685
24686 fi
24687
24688     if test $ac_cv_func_shmat = no; then
24689       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24690 $as_echo_n "checking for shmat in -lipc... " >&6; }
24691 if ${ac_cv_lib_ipc_shmat+:} false; then :
24692   $as_echo_n "(cached) " >&6
24693 else
24694   ac_check_lib_save_LIBS=$LIBS
24695 LIBS="-lipc  $LIBS"
24696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24697 /* end confdefs.h.  */
24698
24699 /* Override any GCC internal prototype to avoid an error.
24700    Use char because int might match the return type of a GCC
24701    builtin and then its argument prototype would still apply.  */
24702 #ifdef __cplusplus
24703 extern "C"
24704 #endif
24705 char shmat ();
24706 int
24707 main ()
24708 {
24709 return shmat ();
24710   ;
24711   return 0;
24712 }
24713 _ACEOF
24714 if ac_fn_c_try_link "$LINENO"; then :
24715   ac_cv_lib_ipc_shmat=yes
24716 else
24717   ac_cv_lib_ipc_shmat=no
24718 fi
24719 rm -f core conftest.err conftest.$ac_objext \
24720     conftest$ac_exeext conftest.$ac_ext
24721 LIBS=$ac_check_lib_save_LIBS
24722 fi
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24724 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24725 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
24726   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24727 fi
24728
24729     fi
24730   fi
24731
24732   # Check for libraries that X11R6 Xt/Xaw programs need.
24733   ac_save_LDFLAGS=$LDFLAGS
24734   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24735   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24736   # check for ICE first), but we must link in the order -lSM -lICE or
24737   # we get undefined symbols.  So assume we have SM if we have ICE.
24738   # These have to be linked with before -lX11, unlike the other
24739   # libraries we check for below, so use a different variable.
24740   # John Interrante, Karl Berry
24741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24742 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24743 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
24744   $as_echo_n "(cached) " >&6
24745 else
24746   ac_check_lib_save_LIBS=$LIBS
24747 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24749 /* end confdefs.h.  */
24750
24751 /* Override any GCC internal prototype to avoid an error.
24752    Use char because int might match the return type of a GCC
24753    builtin and then its argument prototype would still apply.  */
24754 #ifdef __cplusplus
24755 extern "C"
24756 #endif
24757 char IceConnectionNumber ();
24758 int
24759 main ()
24760 {
24761 return IceConnectionNumber ();
24762   ;
24763   return 0;
24764 }
24765 _ACEOF
24766 if ac_fn_c_try_link "$LINENO"; then :
24767   ac_cv_lib_ICE_IceConnectionNumber=yes
24768 else
24769   ac_cv_lib_ICE_IceConnectionNumber=no
24770 fi
24771 rm -f core conftest.err conftest.$ac_objext \
24772     conftest$ac_exeext conftest.$ac_ext
24773 LIBS=$ac_check_lib_save_LIBS
24774 fi
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24776 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24777 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
24778   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24779 fi
24780
24781   LDFLAGS=$ac_save_LDFLAGS
24782
24783 fi
24784
24785
24786 for ac_header in \
24787    assert.h \
24788    fcntl.h \
24789    grp.h \
24790    pwd.h \
24791    libc.h \
24792    limits.h \
24793    stdarg.h \
24794    stdlib.h \
24795    stdint.h \
24796    string.h \
24797    strings.h \
24798    termios.h \
24799    termcap.h \
24800    term.h \
24801    unistd.h \
24802    sys/bitypes.h \
24803    sys/byteorder.h \
24804    sys/ioctl.h \
24805    sys/select.h \
24806    sys/socket.h \
24807    sys/sockio.h \
24808    sys/stat.h \
24809    sys/time.h \
24810    sys/types.h \
24811    arpa/nameser.h \
24812    mtio.h \
24813    sys/mtio.h \
24814    sys/tape.h \
24815    regex.h \
24816
24817 do :
24818   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24819 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24821   cat >>confdefs.h <<_ACEOF
24822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24823 _ACEOF
24824
24825 fi
24826
24827 done
24828
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24830 $as_echo_n "checking for ANSI C header files... " >&6; }
24831 if ${ac_cv_header_stdc+:} false; then :
24832   $as_echo_n "(cached) " >&6
24833 else
24834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24835 /* end confdefs.h.  */
24836 #include <stdlib.h>
24837 #include <stdarg.h>
24838 #include <string.h>
24839 #include <float.h>
24840
24841 int
24842 main ()
24843 {
24844
24845   ;
24846   return 0;
24847 }
24848 _ACEOF
24849 if ac_fn_c_try_compile "$LINENO"; then :
24850   ac_cv_header_stdc=yes
24851 else
24852   ac_cv_header_stdc=no
24853 fi
24854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24855
24856 if test $ac_cv_header_stdc = yes; then
24857   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859 /* end confdefs.h.  */
24860 #include <string.h>
24861
24862 _ACEOF
24863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24864   $EGREP "memchr" >/dev/null 2>&1; then :
24865
24866 else
24867   ac_cv_header_stdc=no
24868 fi
24869 rm -f conftest*
24870
24871 fi
24872
24873 if test $ac_cv_header_stdc = yes; then
24874   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24876 /* end confdefs.h.  */
24877 #include <stdlib.h>
24878
24879 _ACEOF
24880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24881   $EGREP "free" >/dev/null 2>&1; then :
24882
24883 else
24884   ac_cv_header_stdc=no
24885 fi
24886 rm -f conftest*
24887
24888 fi
24889
24890 if test $ac_cv_header_stdc = yes; then
24891   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24892   if test "$cross_compiling" = yes; then :
24893   :
24894 else
24895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24896 /* end confdefs.h.  */
24897 #include <ctype.h>
24898 #include <stdlib.h>
24899 #if ((' ' & 0x0FF) == 0x020)
24900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24902 #else
24903 # define ISLOWER(c) \
24904                    (('a' <= (c) && (c) <= 'i') \
24905                      || ('j' <= (c) && (c) <= 'r') \
24906                      || ('s' <= (c) && (c) <= 'z'))
24907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24908 #endif
24909
24910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24911 int
24912 main ()
24913 {
24914   int i;
24915   for (i = 0; i < 256; i++)
24916     if (XOR (islower (i), ISLOWER (i))
24917         || toupper (i) != TOUPPER (i))
24918       return 2;
24919   return 0;
24920 }
24921 _ACEOF
24922 if ac_fn_c_try_run "$LINENO"; then :
24923
24924 else
24925   ac_cv_header_stdc=no
24926 fi
24927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24928   conftest.$ac_objext conftest.beam conftest.$ac_ext
24929 fi
24930
24931 fi
24932 fi
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24934 $as_echo "$ac_cv_header_stdc" >&6; }
24935 if test $ac_cv_header_stdc = yes; then
24936
24937 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24938
24939 fi
24940
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
24942 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24943 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
24944   $as_echo_n "(cached) " >&6
24945 else
24946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24947 /* end confdefs.h.  */
24948 #include <sys/types.h>
24949 int
24950 main ()
24951 {
24952 return makedev(0, 0);
24953   ;
24954   return 0;
24955 }
24956 _ACEOF
24957 if ac_fn_c_try_link "$LINENO"; then :
24958   ac_cv_header_sys_types_h_makedev=yes
24959 else
24960   ac_cv_header_sys_types_h_makedev=no
24961 fi
24962 rm -f core conftest.err conftest.$ac_objext \
24963     conftest$ac_exeext conftest.$ac_ext
24964
24965 fi
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
24967 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24968
24969 if test $ac_cv_header_sys_types_h_makedev = no; then
24970 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
24971 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
24972
24973 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
24974
24975 fi
24976
24977
24978
24979   if test $ac_cv_header_sys_mkdev_h = no; then
24980     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
24981 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
24982
24983 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
24984
24985 fi
24986
24987
24988   fi
24989 fi
24990
24991 ac_header_dirent=no
24992 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24993   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24995 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
24996 if eval \${$as_ac_Header+:} false; then :
24997   $as_echo_n "(cached) " >&6
24998 else
24999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25000 /* end confdefs.h.  */
25001 #include <sys/types.h>
25002 #include <$ac_hdr>
25003
25004 int
25005 main ()
25006 {
25007 if ((DIR *) 0)
25008 return 0;
25009   ;
25010   return 0;
25011 }
25012 _ACEOF
25013 if ac_fn_c_try_compile "$LINENO"; then :
25014   eval "$as_ac_Header=yes"
25015 else
25016   eval "$as_ac_Header=no"
25017 fi
25018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 fi
25020 eval ac_res=\$$as_ac_Header
25021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25022 $as_echo "$ac_res" >&6; }
25023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25024   cat >>confdefs.h <<_ACEOF
25025 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25026 _ACEOF
25027
25028 ac_header_dirent=$ac_hdr; break
25029 fi
25030
25031 done
25032 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25033 if test $ac_header_dirent = dirent.h; then
25034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25035 $as_echo_n "checking for library containing opendir... " >&6; }
25036 if ${ac_cv_search_opendir+:} false; then :
25037   $as_echo_n "(cached) " >&6
25038 else
25039   ac_func_search_save_LIBS=$LIBS
25040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25041 /* end confdefs.h.  */
25042
25043 /* Override any GCC internal prototype to avoid an error.
25044    Use char because int might match the return type of a GCC
25045    builtin and then its argument prototype would still apply.  */
25046 #ifdef __cplusplus
25047 extern "C"
25048 #endif
25049 char opendir ();
25050 int
25051 main ()
25052 {
25053 return opendir ();
25054   ;
25055   return 0;
25056 }
25057 _ACEOF
25058 for ac_lib in '' dir; do
25059   if test -z "$ac_lib"; then
25060     ac_res="none required"
25061   else
25062     ac_res=-l$ac_lib
25063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25064   fi
25065   if ac_fn_c_try_link "$LINENO"; then :
25066   ac_cv_search_opendir=$ac_res
25067 fi
25068 rm -f core conftest.err conftest.$ac_objext \
25069     conftest$ac_exeext
25070   if ${ac_cv_search_opendir+:} false; then :
25071   break
25072 fi
25073 done
25074 if ${ac_cv_search_opendir+:} false; then :
25075
25076 else
25077   ac_cv_search_opendir=no
25078 fi
25079 rm conftest.$ac_ext
25080 LIBS=$ac_func_search_save_LIBS
25081 fi
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25083 $as_echo "$ac_cv_search_opendir" >&6; }
25084 ac_res=$ac_cv_search_opendir
25085 if test "$ac_res" != no; then :
25086   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25087
25088 fi
25089
25090 else
25091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25092 $as_echo_n "checking for library containing opendir... " >&6; }
25093 if ${ac_cv_search_opendir+:} false; then :
25094   $as_echo_n "(cached) " >&6
25095 else
25096   ac_func_search_save_LIBS=$LIBS
25097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25098 /* end confdefs.h.  */
25099
25100 /* Override any GCC internal prototype to avoid an error.
25101    Use char because int might match the return type of a GCC
25102    builtin and then its argument prototype would still apply.  */
25103 #ifdef __cplusplus
25104 extern "C"
25105 #endif
25106 char opendir ();
25107 int
25108 main ()
25109 {
25110 return opendir ();
25111   ;
25112   return 0;
25113 }
25114 _ACEOF
25115 for ac_lib in '' x; do
25116   if test -z "$ac_lib"; then
25117     ac_res="none required"
25118   else
25119     ac_res=-l$ac_lib
25120     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25121   fi
25122   if ac_fn_c_try_link "$LINENO"; then :
25123   ac_cv_search_opendir=$ac_res
25124 fi
25125 rm -f core conftest.err conftest.$ac_objext \
25126     conftest$ac_exeext
25127   if ${ac_cv_search_opendir+:} false; then :
25128   break
25129 fi
25130 done
25131 if ${ac_cv_search_opendir+:} false; then :
25132
25133 else
25134   ac_cv_search_opendir=no
25135 fi
25136 rm conftest.$ac_ext
25137 LIBS=$ac_func_search_save_LIBS
25138 fi
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25140 $as_echo "$ac_cv_search_opendir" >&6; }
25141 ac_res=$ac_cv_search_opendir
25142 if test "$ac_res" != no; then :
25143   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25144
25145 fi
25146
25147 fi
25148
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25150 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25151 if ${ac_cv_header_stat_broken+:} false; then :
25152   $as_echo_n "(cached) " >&6
25153 else
25154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25155 /* end confdefs.h.  */
25156 #include <sys/types.h>
25157 #include <sys/stat.h>
25158
25159 #if defined S_ISBLK && defined S_IFDIR
25160 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25161 #endif
25162
25163 #if defined S_ISBLK && defined S_IFCHR
25164 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25165 #endif
25166
25167 #if defined S_ISLNK && defined S_IFREG
25168 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25169 #endif
25170
25171 #if defined S_ISSOCK && defined S_IFREG
25172 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25173 #endif
25174
25175 _ACEOF
25176 if ac_fn_c_try_compile "$LINENO"; then :
25177   ac_cv_header_stat_broken=no
25178 else
25179   ac_cv_header_stat_broken=yes
25180 fi
25181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25182 fi
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25184 $as_echo "$ac_cv_header_stat_broken" >&6; }
25185 if test $ac_cv_header_stat_broken = yes; then
25186
25187 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25188
25189 fi
25190
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25192 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25193 if ${ac_cv_header_sys_wait_h+:} false; then :
25194   $as_echo_n "(cached) " >&6
25195 else
25196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25197 /* end confdefs.h.  */
25198 #include <sys/types.h>
25199 #include <sys/wait.h>
25200 #ifndef WEXITSTATUS
25201 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25202 #endif
25203 #ifndef WIFEXITED
25204 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25205 #endif
25206
25207 int
25208 main ()
25209 {
25210   int s;
25211   wait (&s);
25212   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25213   ;
25214   return 0;
25215 }
25216 _ACEOF
25217 if ac_fn_c_try_compile "$LINENO"; then :
25218   ac_cv_header_sys_wait_h=yes
25219 else
25220   ac_cv_header_sys_wait_h=no
25221 fi
25222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25223 fi
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25225 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25226 if test $ac_cv_header_sys_wait_h = yes; then
25227
25228 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25229
25230 fi
25231
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25233 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25234 if ${ac_cv_header_time+:} false; then :
25235   $as_echo_n "(cached) " >&6
25236 else
25237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25238 /* end confdefs.h.  */
25239 #include <sys/types.h>
25240 #include <sys/time.h>
25241 #include <time.h>
25242
25243 int
25244 main ()
25245 {
25246 if ((struct tm *) 0)
25247 return 0;
25248   ;
25249   return 0;
25250 }
25251 _ACEOF
25252 if ac_fn_c_try_compile "$LINENO"; then :
25253   ac_cv_header_time=yes
25254 else
25255   ac_cv_header_time=no
25256 fi
25257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 fi
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25260 $as_echo "$ac_cv_header_time" >&6; }
25261 if test $ac_cv_header_time = yes; then
25262
25263 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25264
25265 fi
25266
25267 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25268 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25269
25270 cat >>confdefs.h <<_ACEOF
25271 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25272 _ACEOF
25273
25274
25275 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25276
25277 fi
25278
25279
25280 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25281 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25282
25283 cat >>confdefs.h <<_ACEOF
25284 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25285 _ACEOF
25286
25287
25288 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25289
25290 else
25291   case " $LIBOBJS " in
25292   *" fileblocks.$ac_objext "* ) ;;
25293   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25294  ;;
25295 esac
25296
25297 fi
25298
25299
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25301 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25302 if ${ac_cv_struct_tm+:} false; then :
25303   $as_echo_n "(cached) " >&6
25304 else
25305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25306 /* end confdefs.h.  */
25307 #include <sys/types.h>
25308 #include <time.h>
25309
25310 int
25311 main ()
25312 {
25313 struct tm tm;
25314                                      int *p = &tm.tm_sec;
25315                                      return !p;
25316   ;
25317   return 0;
25318 }
25319 _ACEOF
25320 if ac_fn_c_try_compile "$LINENO"; then :
25321   ac_cv_struct_tm=time.h
25322 else
25323   ac_cv_struct_tm=sys/time.h
25324 fi
25325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25326 fi
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25328 $as_echo "$ac_cv_struct_tm" >&6; }
25329 if test $ac_cv_struct_tm = sys/time.h; then
25330
25331 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25332
25333 fi
25334
25335 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25336 #include <$ac_cv_struct_tm>
25337
25338 "
25339 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25340
25341 cat >>confdefs.h <<_ACEOF
25342 #define HAVE_STRUCT_TM_TM_ZONE 1
25343 _ACEOF
25344
25345
25346 fi
25347
25348 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25349
25350 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25351
25352 else
25353   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25354 "
25355 if test "x$ac_cv_have_decl_tzname" = xyes; then :
25356   ac_have_decl=1
25357 else
25358   ac_have_decl=0
25359 fi
25360
25361 cat >>confdefs.h <<_ACEOF
25362 #define HAVE_DECL_TZNAME $ac_have_decl
25363 _ACEOF
25364
25365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25366 $as_echo_n "checking for tzname... " >&6; }
25367 if ${ac_cv_var_tzname+:} false; then :
25368   $as_echo_n "(cached) " >&6
25369 else
25370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h.  */
25372 #include <time.h>
25373 #if !HAVE_DECL_TZNAME
25374 extern char *tzname[];
25375 #endif
25376
25377 int
25378 main ()
25379 {
25380 return tzname[0][0];
25381   ;
25382   return 0;
25383 }
25384 _ACEOF
25385 if ac_fn_c_try_link "$LINENO"; then :
25386   ac_cv_var_tzname=yes
25387 else
25388   ac_cv_var_tzname=no
25389 fi
25390 rm -f core conftest.err conftest.$ac_objext \
25391     conftest$ac_exeext conftest.$ac_ext
25392 fi
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25394 $as_echo "$ac_cv_var_tzname" >&6; }
25395   if test $ac_cv_var_tzname = yes; then
25396
25397 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25398
25399   fi
25400 fi
25401
25402
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25404 $as_echo_n "checking for utime.h... " >&6; }
25405 if ${ba_cv_header_utime_h+:} false; then :
25406   $as_echo_n "(cached) " >&6
25407 else
25408
25409        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h.  */
25411
25412               #include <sys/types.h>
25413               #include <utime.h>
25414
25415 int
25416 main ()
25417 {
25418
25419               struct utimbuf foo
25420
25421   ;
25422   return 0;
25423 }
25424 _ACEOF
25425 if ac_fn_c_try_compile "$LINENO"; then :
25426
25427               ba_cv_header_utime_h=yes
25428
25429 else
25430
25431               ba_cv_header_utime_h=no
25432
25433
25434 fi
25435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25436
25437
25438 fi
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25440 $as_echo "$ba_cv_header_utime_h" >&6; }
25441 test $ba_cv_header_utime_h = yes &&
25442 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25443
25444
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25446 $as_echo_n "checking for socklen_t... " >&6; }
25447 if ${ba_cv_header_socklen_t+:} false; then :
25448   $as_echo_n "(cached) " >&6
25449 else
25450
25451        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25452 /* end confdefs.h.  */
25453
25454               #include <sys/types.h>
25455               #include <sys/socket.h>
25456
25457 int
25458 main ()
25459 {
25460
25461               socklen_t x
25462
25463   ;
25464   return 0;
25465 }
25466 _ACEOF
25467 if ac_fn_c_try_compile "$LINENO"; then :
25468
25469              ba_cv_header_socklen_t=yes
25470
25471 else
25472
25473              ba_cv_header_socklen_t=no
25474
25475
25476 fi
25477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25478
25479
25480 fi
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25482 $as_echo "$ba_cv_header_socklen_t" >&6; }
25483 test $ba_cv_header_socklen_t = yes &&
25484 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25485
25486
25487 ac_ext=cpp
25488 ac_cpp='$CXXCPP $CPPFLAGS'
25489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25492
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25494 $as_echo_n "checking for ioctl_req_t... " >&6; }
25495 if ${ba_cv_header_ioctl_req_t+:} false; then :
25496   $as_echo_n "(cached) " >&6
25497 else
25498
25499        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25500 /* end confdefs.h.  */
25501
25502               #include <unistd.h>
25503               #include <sys/types.h>
25504               #include <sys/ioctl.h>
25505
25506 int
25507 main ()
25508 {
25509
25510               int (*d_ioctl)(int fd, unsigned long int request, ...);
25511               d_ioctl = ::ioctl;
25512
25513   ;
25514   return 0;
25515 }
25516 _ACEOF
25517 if ac_fn_cxx_try_compile "$LINENO"; then :
25518
25519              ba_cv_header_ioctl_req_t=yes
25520
25521 else
25522
25523              ba_cv_header_ioctl_req_t=no
25524
25525
25526 fi
25527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25528
25529
25530 fi
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25532 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25533 test $ba_cv_header_ioctl_req_t = yes &&
25534 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25535
25536
25537 ac_ext=c
25538 ac_cpp='$CPP $CPPFLAGS'
25539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25542
25543
25544 ac_ext=cpp
25545 ac_cpp='$CXXCPP $CPPFLAGS'
25546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25549
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25551 $as_echo_n "checking for typeof... " >&6; }
25552 if ${ba_cv_have_typeof+:} false; then :
25553   $as_echo_n "(cached) " >&6
25554 else
25555
25556        if test "$cross_compiling" = yes; then :
25557
25558               ba_cv_have_typeof=no
25559
25560
25561 else
25562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563 /* end confdefs.h.  */
25564
25565               main(){char *a = 0; a = (typeof a)a;}
25566
25567 _ACEOF
25568 if ac_fn_cxx_try_run "$LINENO"; then :
25569
25570               ba_cv_have_typeof=yes
25571
25572 else
25573
25574               ba_cv_have_typeof=no
25575
25576 fi
25577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25578   conftest.$ac_objext conftest.beam conftest.$ac_ext
25579 fi
25580
25581
25582
25583 fi
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25585 $as_echo "$ba_cv_have_typeof" >&6; }
25586 test $ba_cv_have_typeof = yes &&
25587 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25588
25589 ac_ext=c
25590 ac_cpp='$CPP $CPPFLAGS'
25591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25594
25595
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25597 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25598 if ${ac_cv_c_const+:} false; then :
25599   $as_echo_n "(cached) " >&6
25600 else
25601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25602 /* end confdefs.h.  */
25603
25604 int
25605 main ()
25606 {
25607 /* FIXME: Include the comments suggested by Paul. */
25608 #ifndef __cplusplus
25609   /* Ultrix mips cc rejects this.  */
25610   typedef int charset[2];
25611   const charset cs;
25612   /* SunOS 4.1.1 cc rejects this.  */
25613   char const *const *pcpcc;
25614   char **ppc;
25615   /* NEC SVR4.0.2 mips cc rejects this.  */
25616   struct point {int x, y;};
25617   static struct point const zero = {0,0};
25618   /* AIX XL C 1.02.0.0 rejects this.
25619      It does not let you subtract one const X* pointer from another in
25620      an arm of an if-expression whose if-part is not a constant
25621      expression */
25622   const char *g = "string";
25623   pcpcc = &g + (g ? g-g : 0);
25624   /* HPUX 7.0 cc rejects these. */
25625   ++pcpcc;
25626   ppc = (char**) pcpcc;
25627   pcpcc = (char const *const *) ppc;
25628   { /* SCO 3.2v4 cc rejects this.  */
25629     char *t;
25630     char const *s = 0 ? (char *) 0 : (char const *) 0;
25631
25632     *t++ = 0;
25633     if (s) return 0;
25634   }
25635   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25636     int x[] = {25, 17};
25637     const int *foo = &x[0];
25638     ++foo;
25639   }
25640   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25641     typedef const int *iptr;
25642     iptr p = 0;
25643     ++p;
25644   }
25645   { /* AIX XL C 1.02.0.0 rejects this saying
25646        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25647     struct s { int j; const int *ap[3]; };
25648     struct s *b; b->j = 5;
25649   }
25650   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25651     const int foo = 10;
25652     if (!foo) return 0;
25653   }
25654   return !cs[0] && !zero.x;
25655 #endif
25656
25657   ;
25658   return 0;
25659 }
25660 _ACEOF
25661 if ac_fn_c_try_compile "$LINENO"; then :
25662   ac_cv_c_const=yes
25663 else
25664   ac_cv_c_const=no
25665 fi
25666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25667 fi
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25669 $as_echo "$ac_cv_c_const" >&6; }
25670 if test $ac_cv_c_const = no; then
25671
25672 $as_echo "#define const /**/" >>confdefs.h
25673
25674 fi
25675
25676
25677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25678 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25679 if ${ac_cv_c_bigendian+:} false; then :
25680   $as_echo_n "(cached) " >&6
25681 else
25682   ac_cv_c_bigendian=unknown
25683     # See if we're dealing with a universal compiler.
25684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25685 /* end confdefs.h.  */
25686 #ifndef __APPLE_CC__
25687                not a universal capable compiler
25688              #endif
25689              typedef int dummy;
25690
25691 _ACEOF
25692 if ac_fn_c_try_compile "$LINENO"; then :
25693
25694         # Check for potential -arch flags.  It is not universal unless
25695         # there are at least two -arch flags with different values.
25696         ac_arch=
25697         ac_prev=
25698         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25699          if test -n "$ac_prev"; then
25700            case $ac_word in
25701              i?86 | x86_64 | ppc | ppc64)
25702                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25703                  ac_arch=$ac_word
25704                else
25705                  ac_cv_c_bigendian=universal
25706                  break
25707                fi
25708                ;;
25709            esac
25710            ac_prev=
25711          elif test "x$ac_word" = "x-arch"; then
25712            ac_prev=arch
25713          fi
25714        done
25715 fi
25716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25717     if test $ac_cv_c_bigendian = unknown; then
25718       # See if sys/param.h defines the BYTE_ORDER macro.
25719       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25720 /* end confdefs.h.  */
25721 #include <sys/types.h>
25722              #include <sys/param.h>
25723
25724 int
25725 main ()
25726 {
25727 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25728                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25729                      && LITTLE_ENDIAN)
25730               bogus endian macros
25731              #endif
25732
25733   ;
25734   return 0;
25735 }
25736 _ACEOF
25737 if ac_fn_c_try_compile "$LINENO"; then :
25738   # It does; now see whether it defined to BIG_ENDIAN or not.
25739          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25740 /* end confdefs.h.  */
25741 #include <sys/types.h>
25742                 #include <sys/param.h>
25743
25744 int
25745 main ()
25746 {
25747 #if BYTE_ORDER != BIG_ENDIAN
25748                  not big endian
25749                 #endif
25750
25751   ;
25752   return 0;
25753 }
25754 _ACEOF
25755 if ac_fn_c_try_compile "$LINENO"; then :
25756   ac_cv_c_bigendian=yes
25757 else
25758   ac_cv_c_bigendian=no
25759 fi
25760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25761 fi
25762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25763     fi
25764     if test $ac_cv_c_bigendian = unknown; then
25765       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25767 /* end confdefs.h.  */
25768 #include <limits.h>
25769
25770 int
25771 main ()
25772 {
25773 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25774               bogus endian macros
25775              #endif
25776
25777   ;
25778   return 0;
25779 }
25780 _ACEOF
25781 if ac_fn_c_try_compile "$LINENO"; then :
25782   # It does; now see whether it defined to _BIG_ENDIAN or not.
25783          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25784 /* end confdefs.h.  */
25785 #include <limits.h>
25786
25787 int
25788 main ()
25789 {
25790 #ifndef _BIG_ENDIAN
25791                  not big endian
25792                 #endif
25793
25794   ;
25795   return 0;
25796 }
25797 _ACEOF
25798 if ac_fn_c_try_compile "$LINENO"; then :
25799   ac_cv_c_bigendian=yes
25800 else
25801   ac_cv_c_bigendian=no
25802 fi
25803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25804 fi
25805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25806     fi
25807     if test $ac_cv_c_bigendian = unknown; then
25808       # Compile a test program.
25809       if test "$cross_compiling" = yes; then :
25810   # Try to guess by grepping values from an object file.
25811          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25812 /* end confdefs.h.  */
25813 short int ascii_mm[] =
25814                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25815                 short int ascii_ii[] =
25816                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25817                 int use_ascii (int i) {
25818                   return ascii_mm[i] + ascii_ii[i];
25819                 }
25820                 short int ebcdic_ii[] =
25821                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25822                 short int ebcdic_mm[] =
25823                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25824                 int use_ebcdic (int i) {
25825                   return ebcdic_mm[i] + ebcdic_ii[i];
25826                 }
25827                 extern int foo;
25828
25829 int
25830 main ()
25831 {
25832 return use_ascii (foo) == use_ebcdic (foo);
25833   ;
25834   return 0;
25835 }
25836 _ACEOF
25837 if ac_fn_c_try_compile "$LINENO"; then :
25838   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25839               ac_cv_c_bigendian=yes
25840             fi
25841             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25842               if test "$ac_cv_c_bigendian" = unknown; then
25843                 ac_cv_c_bigendian=no
25844               else
25845                 # finding both strings is unlikely to happen, but who knows?
25846                 ac_cv_c_bigendian=unknown
25847               fi
25848             fi
25849 fi
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851 else
25852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h.  */
25854 $ac_includes_default
25855 int
25856 main ()
25857 {
25858
25859              /* Are we little or big endian?  From Harbison&Steele.  */
25860              union
25861              {
25862                long int l;
25863                char c[sizeof (long int)];
25864              } u;
25865              u.l = 1;
25866              return u.c[sizeof (long int) - 1] == 1;
25867
25868   ;
25869   return 0;
25870 }
25871 _ACEOF
25872 if ac_fn_c_try_run "$LINENO"; then :
25873   ac_cv_c_bigendian=no
25874 else
25875   ac_cv_c_bigendian=yes
25876 fi
25877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25878   conftest.$ac_objext conftest.beam conftest.$ac_ext
25879 fi
25880
25881     fi
25882 fi
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25884 $as_echo "$ac_cv_c_bigendian" >&6; }
25885  case $ac_cv_c_bigendian in #(
25886    yes)
25887
25888 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
25889 ;; #(
25890    no)
25891
25892 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
25893  ;; #(
25894    universal)
25895
25896 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25897
25898      ;; #(
25899    *)
25900      as_fn_error $? "unknown endianness
25901  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25902  esac
25903
25904
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25906 $as_echo_n "checking how to get filesystem type... " >&6; }
25907 fstype=no
25908 # The order of these tests is important.
25909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25910 /* end confdefs.h.  */
25911
25912        #include <sys/statvfs.h>
25913        #include <sys/fstyp.h>
25914
25915 _ACEOF
25916 if ac_fn_c_try_cpp "$LINENO"; then :
25917   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25918  fstype=SVR4
25919
25920 fi
25921 rm -f conftest.err conftest.i conftest.$ac_ext
25922 if test $fstype = no; then
25923    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25924 /* end confdefs.h.  */
25925
25926           #include <sys/statfs.h>
25927           #include <sys/fstyp.h>
25928
25929 _ACEOF
25930 if ac_fn_c_try_cpp "$LINENO"; then :
25931   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25932  fstype=SVR3
25933
25934 fi
25935 rm -f conftest.err conftest.i conftest.$ac_ext
25936 fi
25937 if test $fstype = no; then
25938    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939 /* end confdefs.h.  */
25940
25941           #include <sys/statfs.h>
25942           #include <sys/vmount.h>
25943
25944 _ACEOF
25945 if ac_fn_c_try_cpp "$LINENO"; then :
25946   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25947  fstype=AIX
25948
25949 fi
25950 rm -f conftest.err conftest.i conftest.$ac_ext
25951 fi
25952 if test $fstype = no; then
25953    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h.  */
25955
25956           #include <mntent.h>
25957
25958 _ACEOF
25959 if ac_fn_c_try_cpp "$LINENO"; then :
25960   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25961  fstype=4.3BSD
25962
25963 fi
25964 rm -f conftest.err conftest.i conftest.$ac_ext
25965 fi
25966 if test $fstype = no; then
25967    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h.  */
25969 #include <sys/mount.h>
25970
25971 _ACEOF
25972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25973   $EGREP "f_type;" >/dev/null 2>&1; then :
25974   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25975  fstype=4.4BSD/OSF1
25976 fi
25977 rm -f conftest*
25978
25979 fi
25980 if test $fstype = no; then
25981    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25982 /* end confdefs.h.  */
25983
25984           #include <sys/mount.h>
25985           #include <sys/fs_types.h>
25986
25987 _ACEOF
25988 if ac_fn_c_try_cpp "$LINENO"; then :
25989   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25990  fstype=Ultrix
25991
25992 fi
25993 rm -f conftest.err conftest.i conftest.$ac_ext
25994 fi
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25996 $as_echo "$fstype" >&6; }
25997
25998 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25999 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26000
26001 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26002
26003 fi
26004
26005
26006
26007 ac_ext=cpp
26008 ac_cpp='$CXXCPP $CPPFLAGS'
26009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26012
26013
26014 for ac_header in cxxabi.h execinfo.h
26015 do :
26016   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26017 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26019   cat >>confdefs.h <<_ACEOF
26020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26021 _ACEOF
26022
26023 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26024
26025 fi
26026
26027 done
26028
26029 ac_ext=c
26030 ac_cpp='$CPP $CPPFLAGS'
26031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26034
26035
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26037 $as_echo_n "checking return type of signal handlers... " >&6; }
26038 if ${ac_cv_type_signal+:} false; then :
26039   $as_echo_n "(cached) " >&6
26040 else
26041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26042 /* end confdefs.h.  */
26043 #include <sys/types.h>
26044 #include <signal.h>
26045
26046 int
26047 main ()
26048 {
26049 return *(signal (0, 0)) (0) == 1;
26050   ;
26051   return 0;
26052 }
26053 _ACEOF
26054 if ac_fn_c_try_compile "$LINENO"; then :
26055   ac_cv_type_signal=int
26056 else
26057   ac_cv_type_signal=void
26058 fi
26059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26060 fi
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26062 $as_echo "$ac_cv_type_signal" >&6; }
26063
26064 cat >>confdefs.h <<_ACEOF
26065 #define RETSIGTYPE $ac_cv_type_signal
26066 _ACEOF
26067
26068
26069
26070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26071 $as_echo_n "checking for type of signal functions... " >&6; }
26072   if ${bash_cv_signal_vintage+:} false; then :
26073   $as_echo_n "(cached) " >&6
26074 else
26075
26076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26077 /* end confdefs.h.  */
26078 #include <signal.h>
26079 int
26080 main ()
26081 {
26082
26083       sigset_t ss;
26084       struct sigaction sa;
26085       sigemptyset(&ss); sigsuspend(&ss);
26086       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26087       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26088
26089   ;
26090   return 0;
26091 }
26092 _ACEOF
26093 if ac_fn_c_try_link "$LINENO"; then :
26094   bash_cv_signal_vintage="posix"
26095 else
26096
26097       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h.  */
26099 #include <signal.h>
26100 int
26101 main ()
26102 {
26103
26104           int mask = sigmask(SIGINT);
26105           sigsetmask(mask); sigblock(mask); sigpause(mask);
26106
26107   ;
26108   return 0;
26109 }
26110 _ACEOF
26111 if ac_fn_c_try_link "$LINENO"; then :
26112   bash_cv_signal_vintage="4.2bsd"
26113 else
26114
26115         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26116 /* end confdefs.h.  */
26117
26118           #include <signal.h>
26119           RETSIGTYPE foo() { }
26120 int
26121 main ()
26122 {
26123
26124                   int mask = sigmask(SIGINT);
26125                   sigset(SIGINT, foo); sigrelse(SIGINT);
26126                   sighold(SIGINT); sigpause(SIGINT);
26127
26128   ;
26129   return 0;
26130 }
26131 _ACEOF
26132 if ac_fn_c_try_link "$LINENO"; then :
26133   bash_cv_signal_vintage="svr3"
26134 else
26135   bash_cv_signal_vintage="v7"
26136
26137 fi
26138 rm -f core conftest.err conftest.$ac_objext \
26139     conftest$ac_exeext conftest.$ac_ext
26140
26141 fi
26142 rm -f core conftest.err conftest.$ac_objext \
26143     conftest$ac_exeext conftest.$ac_ext
26144
26145 fi
26146 rm -f core conftest.err conftest.$ac_objext \
26147     conftest$ac_exeext conftest.$ac_ext
26148
26149 fi
26150
26151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26152 $as_echo "$bash_cv_signal_vintage" >&6; }
26153   if test "$bash_cv_signal_vintage" = "posix"; then
26154     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26155
26156   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26157     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26158
26159   elif test "$bash_cv_signal_vintage" = "svr3"; then
26160     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26161
26162   fi
26163
26164 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26165 if test "x$ac_cv_type_mode_t" = xyes; then :
26166
26167 else
26168
26169 cat >>confdefs.h <<_ACEOF
26170 #define mode_t int
26171 _ACEOF
26172
26173 fi
26174
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26176 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26177 if ${ac_cv_type_uid_t+:} false; then :
26178   $as_echo_n "(cached) " >&6
26179 else
26180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26181 /* end confdefs.h.  */
26182 #include <sys/types.h>
26183
26184 _ACEOF
26185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26186   $EGREP "uid_t" >/dev/null 2>&1; then :
26187   ac_cv_type_uid_t=yes
26188 else
26189   ac_cv_type_uid_t=no
26190 fi
26191 rm -f conftest*
26192
26193 fi
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26195 $as_echo "$ac_cv_type_uid_t" >&6; }
26196 if test $ac_cv_type_uid_t = no; then
26197
26198 $as_echo "#define uid_t int" >>confdefs.h
26199
26200
26201 $as_echo "#define gid_t int" >>confdefs.h
26202
26203 fi
26204
26205 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26206 if test "x$ac_cv_type_size_t" = xyes; then :
26207
26208 else
26209
26210 cat >>confdefs.h <<_ACEOF
26211 #define size_t unsigned int
26212 _ACEOF
26213
26214 fi
26215
26216 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26217 if test "x$ac_cv_type_pid_t" = xyes; then :
26218
26219 else
26220
26221 cat >>confdefs.h <<_ACEOF
26222 #define pid_t int
26223 _ACEOF
26224
26225 fi
26226
26227 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26228 if test "x$ac_cv_type_off_t" = xyes; then :
26229
26230 else
26231
26232 cat >>confdefs.h <<_ACEOF
26233 #define off_t long int
26234 _ACEOF
26235
26236 fi
26237
26238
26239   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26240 if test "x$ac_cv_type_intptr_t" = xyes; then :
26241
26242 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26243
26244 else
26245   for ac_type in 'int' 'long int' 'long long int'; do
26246        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26247 /* end confdefs.h.  */
26248 $ac_includes_default
26249 int
26250 main ()
26251 {
26252 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26253 test_array [0] = 0
26254
26255   ;
26256   return 0;
26257 }
26258 _ACEOF
26259 if ac_fn_c_try_compile "$LINENO"; then :
26260
26261 cat >>confdefs.h <<_ACEOF
26262 #define intptr_t $ac_type
26263 _ACEOF
26264
26265           ac_type=
26266 fi
26267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26268        test -z "$ac_type" && break
26269      done
26270 fi
26271
26272
26273
26274   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26275 if test "x$ac_cv_type_uintptr_t" = xyes; then :
26276
26277 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26278
26279 else
26280   for ac_type in 'unsigned int' 'unsigned long int' \
26281         'unsigned long long int'; do
26282        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26283 /* end confdefs.h.  */
26284 $ac_includes_default
26285 int
26286 main ()
26287 {
26288 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26289 test_array [0] = 0
26290
26291   ;
26292   return 0;
26293 }
26294 _ACEOF
26295 if ac_fn_c_try_compile "$LINENO"; then :
26296
26297 cat >>confdefs.h <<_ACEOF
26298 #define uintptr_t $ac_type
26299 _ACEOF
26300
26301           ac_type=
26302 fi
26303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26304        test -z "$ac_type" && break
26305      done
26306 fi
26307
26308
26309 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26310 if test "x$ac_cv_type_ino_t" = xyes; then :
26311
26312 else
26313
26314 cat >>confdefs.h <<_ACEOF
26315 #define ino_t unsigned long
26316 _ACEOF
26317
26318 fi
26319
26320 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26321 if test "x$ac_cv_type_dev_t" = xyes; then :
26322
26323 else
26324
26325 cat >>confdefs.h <<_ACEOF
26326 #define dev_t unsigned long
26327 _ACEOF
26328
26329 fi
26330
26331 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26332 if test "x$ac_cv_type_daddr_t" = xyes; then :
26333
26334 else
26335
26336 cat >>confdefs.h <<_ACEOF
26337 #define daddr_t long
26338 _ACEOF
26339
26340 fi
26341
26342 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26343 if test "x$ac_cv_type_major_t" = xyes; then :
26344
26345 else
26346
26347 cat >>confdefs.h <<_ACEOF
26348 #define major_t int
26349 _ACEOF
26350
26351 fi
26352
26353 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26354 if test "x$ac_cv_type_minor_t" = xyes; then :
26355
26356 else
26357
26358 cat >>confdefs.h <<_ACEOF
26359 #define minor_t int
26360 _ACEOF
26361
26362 fi
26363
26364 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26365 if test "x$ac_cv_type_ssize_t" = xyes; then :
26366
26367 else
26368
26369 cat >>confdefs.h <<_ACEOF
26370 #define ssize_t int
26371 _ACEOF
26372
26373 fi
26374
26375 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26376 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26377
26378 cat >>confdefs.h <<_ACEOF
26379 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26380 _ACEOF
26381
26382
26383 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26384
26385 else
26386   case " $LIBOBJS " in
26387   *" fileblocks.$ac_objext "* ) ;;
26388   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26389  ;;
26390 esac
26391
26392 fi
26393
26394
26395 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26396 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
26397
26398 cat >>confdefs.h <<_ACEOF
26399 #define HAVE_STRUCT_STAT_ST_RDEV 1
26400 _ACEOF
26401
26402
26403 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26404
26405 fi
26406
26407
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26409 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26410 if ${ac_cv_struct_tm+:} false; then :
26411   $as_echo_n "(cached) " >&6
26412 else
26413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26414 /* end confdefs.h.  */
26415 #include <sys/types.h>
26416 #include <time.h>
26417
26418 int
26419 main ()
26420 {
26421 struct tm tm;
26422                                      int *p = &tm.tm_sec;
26423                                      return !p;
26424   ;
26425   return 0;
26426 }
26427 _ACEOF
26428 if ac_fn_c_try_compile "$LINENO"; then :
26429   ac_cv_struct_tm=time.h
26430 else
26431   ac_cv_struct_tm=sys/time.h
26432 fi
26433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26434 fi
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26436 $as_echo "$ac_cv_struct_tm" >&6; }
26437 if test $ac_cv_struct_tm = sys/time.h; then
26438
26439 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26440
26441 fi
26442
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26444 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26445 if ${ac_cv_c_const+:} false; then :
26446   $as_echo_n "(cached) " >&6
26447 else
26448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26449 /* end confdefs.h.  */
26450
26451 int
26452 main ()
26453 {
26454 /* FIXME: Include the comments suggested by Paul. */
26455 #ifndef __cplusplus
26456   /* Ultrix mips cc rejects this.  */
26457   typedef int charset[2];
26458   const charset cs;
26459   /* SunOS 4.1.1 cc rejects this.  */
26460   char const *const *pcpcc;
26461   char **ppc;
26462   /* NEC SVR4.0.2 mips cc rejects this.  */
26463   struct point {int x, y;};
26464   static struct point const zero = {0,0};
26465   /* AIX XL C 1.02.0.0 rejects this.
26466      It does not let you subtract one const X* pointer from another in
26467      an arm of an if-expression whose if-part is not a constant
26468      expression */
26469   const char *g = "string";
26470   pcpcc = &g + (g ? g-g : 0);
26471   /* HPUX 7.0 cc rejects these. */
26472   ++pcpcc;
26473   ppc = (char**) pcpcc;
26474   pcpcc = (char const *const *) ppc;
26475   { /* SCO 3.2v4 cc rejects this.  */
26476     char *t;
26477     char const *s = 0 ? (char *) 0 : (char const *) 0;
26478
26479     *t++ = 0;
26480     if (s) return 0;
26481   }
26482   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26483     int x[] = {25, 17};
26484     const int *foo = &x[0];
26485     ++foo;
26486   }
26487   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26488     typedef const int *iptr;
26489     iptr p = 0;
26490     ++p;
26491   }
26492   { /* AIX XL C 1.02.0.0 rejects this saying
26493        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26494     struct s { int j; const int *ap[3]; };
26495     struct s *b; b->j = 5;
26496   }
26497   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26498     const int foo = 10;
26499     if (!foo) return 0;
26500   }
26501   return !cs[0] && !zero.x;
26502 #endif
26503
26504   ;
26505   return 0;
26506 }
26507 _ACEOF
26508 if ac_fn_c_try_compile "$LINENO"; then :
26509   ac_cv_c_const=yes
26510 else
26511   ac_cv_c_const=no
26512 fi
26513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26514 fi
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26516 $as_echo "$ac_cv_c_const" >&6; }
26517 if test $ac_cv_c_const = no; then
26518
26519 $as_echo "#define const /**/" >>confdefs.h
26520
26521 fi
26522
26523
26524 # The cast to long int works around a bug in the HP C Compiler
26525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26527 # This bug is HP SR number 8606223364.
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26529 $as_echo_n "checking size of char... " >&6; }
26530 if ${ac_cv_sizeof_char+:} false; then :
26531   $as_echo_n "(cached) " >&6
26532 else
26533   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26534
26535 else
26536   if test "$ac_cv_type_char" = yes; then
26537      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26539 as_fn_error 77 "cannot compute sizeof (char)
26540 See \`config.log' for more details" "$LINENO" 5; }
26541    else
26542      ac_cv_sizeof_char=0
26543    fi
26544 fi
26545
26546 fi
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26548 $as_echo "$ac_cv_sizeof_char" >&6; }
26549
26550
26551
26552 cat >>confdefs.h <<_ACEOF
26553 #define SIZEOF_CHAR $ac_cv_sizeof_char
26554 _ACEOF
26555
26556
26557 # The cast to long int works around a bug in the HP C Compiler
26558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26560 # This bug is HP SR number 8606223364.
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26562 $as_echo_n "checking size of short int... " >&6; }
26563 if ${ac_cv_sizeof_short_int+:} false; then :
26564   $as_echo_n "(cached) " >&6
26565 else
26566   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26567
26568 else
26569   if test "$ac_cv_type_short_int" = yes; then
26570      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26572 as_fn_error 77 "cannot compute sizeof (short int)
26573 See \`config.log' for more details" "$LINENO" 5; }
26574    else
26575      ac_cv_sizeof_short_int=0
26576    fi
26577 fi
26578
26579 fi
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26581 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26582
26583
26584
26585 cat >>confdefs.h <<_ACEOF
26586 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26587 _ACEOF
26588
26589
26590 # The cast to long int works around a bug in the HP C Compiler
26591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26593 # This bug is HP SR number 8606223364.
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26595 $as_echo_n "checking size of int... " >&6; }
26596 if ${ac_cv_sizeof_int+:} false; then :
26597   $as_echo_n "(cached) " >&6
26598 else
26599   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26600
26601 else
26602   if test "$ac_cv_type_int" = yes; then
26603      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26605 as_fn_error 77 "cannot compute sizeof (int)
26606 See \`config.log' for more details" "$LINENO" 5; }
26607    else
26608      ac_cv_sizeof_int=0
26609    fi
26610 fi
26611
26612 fi
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26614 $as_echo "$ac_cv_sizeof_int" >&6; }
26615
26616
26617
26618 cat >>confdefs.h <<_ACEOF
26619 #define SIZEOF_INT $ac_cv_sizeof_int
26620 _ACEOF
26621
26622
26623 # The cast to long int works around a bug in the HP C Compiler
26624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26626 # This bug is HP SR number 8606223364.
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26628 $as_echo_n "checking size of long int... " >&6; }
26629 if ${ac_cv_sizeof_long_int+:} false; then :
26630   $as_echo_n "(cached) " >&6
26631 else
26632   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26633
26634 else
26635   if test "$ac_cv_type_long_int" = yes; then
26636      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26638 as_fn_error 77 "cannot compute sizeof (long int)
26639 See \`config.log' for more details" "$LINENO" 5; }
26640    else
26641      ac_cv_sizeof_long_int=0
26642    fi
26643 fi
26644
26645 fi
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26647 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26648
26649
26650
26651 cat >>confdefs.h <<_ACEOF
26652 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26653 _ACEOF
26654
26655
26656 # The cast to long int works around a bug in the HP C Compiler
26657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26659 # This bug is HP SR number 8606223364.
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26661 $as_echo_n "checking size of long long int... " >&6; }
26662 if ${ac_cv_sizeof_long_long_int+:} false; then :
26663   $as_echo_n "(cached) " >&6
26664 else
26665   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26666
26667 else
26668   if test "$ac_cv_type_long_long_int" = yes; then
26669      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26671 as_fn_error 77 "cannot compute sizeof (long long int)
26672 See \`config.log' for more details" "$LINENO" 5; }
26673    else
26674      ac_cv_sizeof_long_long_int=0
26675    fi
26676 fi
26677
26678 fi
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26680 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26681
26682
26683
26684 cat >>confdefs.h <<_ACEOF
26685 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26686 _ACEOF
26687
26688
26689 # The cast to long int works around a bug in the HP C Compiler
26690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26692 # This bug is HP SR number 8606223364.
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26694 $as_echo_n "checking size of int *... " >&6; }
26695 if ${ac_cv_sizeof_int_p+:} false; then :
26696   $as_echo_n "(cached) " >&6
26697 else
26698   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26699
26700 else
26701   if test "$ac_cv_type_int_p" = yes; then
26702      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26704 as_fn_error 77 "cannot compute sizeof (int *)
26705 See \`config.log' for more details" "$LINENO" 5; }
26706    else
26707      ac_cv_sizeof_int_p=0
26708    fi
26709 fi
26710
26711 fi
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26713 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26714
26715
26716
26717 cat >>confdefs.h <<_ACEOF
26718 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26719 _ACEOF
26720
26721
26722
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26724 $as_echo_n "checking for u_int type... " >&6; }
26725 if ${ac_cv_have_u_int+:} false; then :
26726   $as_echo_n "(cached) " >&6
26727 else
26728
26729        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26730 /* end confdefs.h.  */
26731
26732               #include <sys/types.h>
26733
26734 int
26735 main ()
26736 {
26737
26738               u_int a; a = 1;
26739
26740   ;
26741   return 0;
26742 }
26743 _ACEOF
26744 if ac_fn_c_try_compile "$LINENO"; then :
26745
26746               ac_cv_have_u_int="yes"
26747
26748 else
26749
26750               ac_cv_have_u_int="no"
26751
26752
26753 fi
26754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26755
26756
26757 fi
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26759 $as_echo "$ac_cv_have_u_int" >&6; }
26760 if test "x$ac_cv_have_u_int" = "xyes" ; then
26761    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26762
26763    have_u_int=1
26764 fi
26765
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26767 $as_echo_n "checking for intmax_t type... " >&6; }
26768 if ${ac_cv_have_intmax_t+:} false; then :
26769   $as_echo_n "(cached) " >&6
26770 else
26771
26772        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26773 /* end confdefs.h.  */
26774
26775               #include <sys/types.h>
26776
26777 int
26778 main ()
26779 {
26780
26781               intmax_t a; a = 1;
26782
26783   ;
26784   return 0;
26785 }
26786 _ACEOF
26787 if ac_fn_c_try_compile "$LINENO"; then :
26788
26789               ac_cv_have_intmax_t="yes"
26790
26791 else
26792
26793               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26794 /* end confdefs.h.  */
26795
26796                      #include <stdint.h>
26797
26798 int
26799 main ()
26800 {
26801
26802                      intmax_t a; a = 1;
26803
26804   ;
26805   return 0;
26806 }
26807 _ACEOF
26808 if ac_fn_c_try_compile "$LINENO"; then :
26809
26810                      ac_cv_have_intmax_t="yes"
26811
26812 else
26813
26814                      ac_cv_have_intmax_t="no"
26815
26816
26817 fi
26818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26819
26820
26821 fi
26822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26823
26824
26825 fi
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26827 $as_echo "$ac_cv_have_intmax_t" >&6; }
26828 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26829    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26830
26831    have_intmax_t=1
26832 fi
26833
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26835 $as_echo_n "checking for u_intmax_t type... " >&6; }
26836 if ${ac_cv_have_u_intmax_t+:} false; then :
26837   $as_echo_n "(cached) " >&6
26838 else
26839
26840        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26841 /* end confdefs.h.  */
26842
26843               #include <sys/types.h>
26844
26845 int
26846 main ()
26847 {
26848
26849               u_intmax_t a; a = 1;
26850
26851   ;
26852   return 0;
26853 }
26854 _ACEOF
26855 if ac_fn_c_try_compile "$LINENO"; then :
26856
26857               ac_cv_have_u_intmax_t="yes"
26858
26859 else
26860
26861               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h.  */
26863
26864                      #include <stdint.h>
26865
26866 int
26867 main ()
26868 {
26869
26870                     u_intmax_t a; a = 1;
26871
26872   ;
26873   return 0;
26874 }
26875 _ACEOF
26876 if ac_fn_c_try_compile "$LINENO"; then :
26877
26878                     ac_cv_have_u_intmax_t="yes"
26879
26880 else
26881
26882                     ac_cv_have_u_intmax_t="no"
26883
26884
26885 fi
26886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26887
26888
26889 fi
26890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26891
26892
26893 fi
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26895 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26896 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26897    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26898
26899    have_u_intmax_t=1
26900 fi
26901
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26903 $as_echo_n "checking for intXX_t types... " >&6; }
26904 if ${ac_cv_have_intxx_t+:} false; then :
26905   $as_echo_n "(cached) " >&6
26906 else
26907
26908        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909 /* end confdefs.h.  */
26910
26911               #include <sys/types.h>
26912
26913 int
26914 main ()
26915 {
26916
26917               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26918
26919   ;
26920   return 0;
26921 }
26922 _ACEOF
26923 if ac_fn_c_try_compile "$LINENO"; then :
26924
26925               ac_cv_have_intxx_t="yes"
26926
26927 else
26928
26929               ac_cv_have_intxx_t="no"
26930
26931
26932 fi
26933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26934
26935
26936 fi
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26938 $as_echo "$ac_cv_have_intxx_t" >&6; }
26939 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26940    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26941
26942    have_intxx_t=1
26943 fi
26944
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26946 $as_echo_n "checking for int64_t type... " >&6; }
26947 if ${ac_cv_have_int64_t+:} false; then :
26948   $as_echo_n "(cached) " >&6
26949 else
26950
26951        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26952 /* end confdefs.h.  */
26953
26954               #include <sys/types.h>
26955
26956 int
26957 main ()
26958 {
26959
26960               int64_t a; a = 1;
26961
26962   ;
26963   return 0;
26964 }
26965 _ACEOF
26966 if ac_fn_c_try_compile "$LINENO"; then :
26967
26968               ac_cv_have_int64_t="yes"
26969
26970 else
26971
26972               ac_cv_have_int64_t="no"
26973
26974
26975 fi
26976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26977
26978
26979 fi
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26981 $as_echo "$ac_cv_have_int64_t" >&6; }
26982 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26983    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26984
26985    have_int64_t=1
26986 fi
26987
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26989 $as_echo_n "checking for u_intXX_t types... " >&6; }
26990 if ${ac_cv_have_u_intxx_t+:} false; then :
26991   $as_echo_n "(cached) " >&6
26992 else
26993
26994        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26995 /* end confdefs.h.  */
26996
26997               #include <sys/types.h>
26998
26999 int
27000 main ()
27001 {
27002
27003               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27004
27005   ;
27006   return 0;
27007 }
27008 _ACEOF
27009 if ac_fn_c_try_compile "$LINENO"; then :
27010
27011              ac_cv_have_u_intxx_t="yes"
27012
27013 else
27014
27015              ac_cv_have_u_intxx_t="no"
27016
27017
27018 fi
27019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27020
27021
27022 fi
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27024 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27025 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27026    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27027
27028    have_u_intxx_t=1
27029 fi
27030
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27032 $as_echo_n "checking for u_int64_t types... " >&6; }
27033 if ${ac_cv_have_u_int64_t+:} false; then :
27034   $as_echo_n "(cached) " >&6
27035 else
27036
27037        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27038 /* end confdefs.h.  */
27039
27040               #include <sys/types.h>
27041
27042 int
27043 main ()
27044 {
27045
27046               u_int64_t a; a = 1;
27047
27048   ;
27049   return 0;
27050 }
27051 _ACEOF
27052 if ac_fn_c_try_compile "$LINENO"; then :
27053
27054              ac_cv_have_u_int64_t="yes"
27055
27056 else
27057
27058              ac_cv_have_u_int64_t="no"
27059
27060
27061 fi
27062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27063
27064
27065 fi
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27067 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27068 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27069    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27070
27071    have_u_int64_t=1
27072 fi
27073
27074 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27075     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27076 then
27077    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27078 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27079    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27080 /* end confdefs.h.  */
27081
27082           #include <sys/bitypes.h>
27083
27084 int
27085 main ()
27086 {
27087
27088           int8_t a; int16_t b; int32_t c;
27089           u_int8_t e; u_int16_t f; u_int32_t g;
27090           a = b = c = e = f = g = 1;
27091
27092   ;
27093   return 0;
27094 }
27095 _ACEOF
27096 if ac_fn_c_try_compile "$LINENO"; then :
27097
27098           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27099
27100           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27101
27102           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27103
27104           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27105 $as_echo "yes" >&6; }
27106
27107 else
27108
27109           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27110 $as_echo "no" >&6; }
27111
27112
27113 fi
27114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27115 fi
27116
27117 if test -z "$have_u_intxx_t" ; then
27118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27119 $as_echo_n "checking for uintXX_t types... " >&6; }
27120 if ${ac_cv_have_uintxx_t+:} false; then :
27121   $as_echo_n "(cached) " >&6
27122 else
27123
27124           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27125 /* end confdefs.h.  */
27126
27127                  #include <sys/types.h>
27128
27129 int
27130 main ()
27131 {
27132
27133                  uint8_t a; uint16_t b;
27134                  uint32_t c; a = b = c = 1;
27135
27136   ;
27137   return 0;
27138 }
27139 _ACEOF
27140 if ac_fn_c_try_compile "$LINENO"; then :
27141
27142                 ac_cv_have_uintxx_t="yes"
27143
27144 else
27145
27146                 ac_cv_have_uintxx_t="no"
27147
27148
27149 fi
27150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27151
27152
27153 fi
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27155 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27156    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27157       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27158
27159    fi
27160 fi
27161
27162 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27163     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27164 then
27165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27166 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27167    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27168 /* end confdefs.h.  */
27169
27170           #include <sys/bitypes.h>
27171
27172 int
27173 main ()
27174 {
27175
27176           int64_t a; u_int64_t b;
27177           a = b = 1;
27178
27179   ;
27180   return 0;
27181 }
27182 _ACEOF
27183 if ac_fn_c_try_compile "$LINENO"; then :
27184
27185           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27186
27187           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27188
27189           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27190 $as_echo "yes" >&6; }
27191
27192 else
27193
27194           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27195 $as_echo "no" >&6; }
27196
27197
27198 fi
27199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27200 fi
27201
27202 if (test -z "$have_uintxx_t" && \
27203     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27204 then
27205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27206 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h.  */
27209
27210           #include <sys/bitypes.h>
27211
27212 int
27213 main ()
27214 {
27215
27216           uint8_t a; uint16_t b;
27217           uint32_t c; a = b = c = 1;
27218
27219   ;
27220   return 0;
27221 }
27222 _ACEOF
27223 if ac_fn_c_try_compile "$LINENO"; then :
27224
27225           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27226
27227           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27228 $as_echo "yes" >&6; }
27229
27230 else
27231
27232           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27233 $as_echo "no" >&6; }
27234
27235
27236 fi
27237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27238 fi
27239
27240 for ac_func in \
27241    fork \
27242    getcwd \
27243    gethostname \
27244    getpid \
27245    gettimeofday \
27246    setpgid \
27247    setpgrp \
27248    setsid \
27249    signal \
27250    strerror \
27251    strncmp \
27252    strncpy \
27253    vfprintf \
27254
27255 do :
27256   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27258 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27259   cat >>confdefs.h <<_ACEOF
27260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27261 _ACEOF
27262
27263 else
27264   echo 'configure: cannot find needed function.'; exit 1
27265
27266 fi
27267 done
27268
27269
27270 for ac_func in getpagesize
27271 do :
27272   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27273 if test "x$ac_cv_func_getpagesize" = xyes; then :
27274   cat >>confdefs.h <<_ACEOF
27275 #define HAVE_GETPAGESIZE 1
27276 _ACEOF
27277
27278 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27279
27280 fi
27281 done
27282
27283 for ac_func in malloc_trim
27284 do :
27285   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27286 if test "x$ac_cv_func_malloc_trim" = xyes; then :
27287   cat >>confdefs.h <<_ACEOF
27288 #define HAVE_MALLOC_TRIM 1
27289 _ACEOF
27290
27291 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27292
27293 fi
27294 done
27295
27296
27297 for ac_func in fchdir
27298 do :
27299   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27300 if test "x$ac_cv_func_fchdir" = xyes; then :
27301   cat >>confdefs.h <<_ACEOF
27302 #define HAVE_FCHDIR 1
27303 _ACEOF
27304  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27305
27306 fi
27307 done
27308
27309 for ac_func in strtoll
27310 do :
27311   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27312 if test "x$ac_cv_func_strtoll" = xyes; then :
27313   cat >>confdefs.h <<_ACEOF
27314 #define HAVE_STRTOLL 1
27315 _ACEOF
27316  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27317
27318 fi
27319 done
27320
27321 for ac_func in posix_fadvise
27322 do :
27323   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27324 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
27325   cat >>confdefs.h <<_ACEOF
27326 #define HAVE_POSIX_FADVISE 1
27327 _ACEOF
27328
27329 fi
27330 done
27331
27332 for ac_func in fdatasync
27333 do :
27334   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27335 if test "x$ac_cv_func_fdatasync" = xyes; then :
27336   cat >>confdefs.h <<_ACEOF
27337 #define HAVE_FDATASYNC 1
27338 _ACEOF
27339
27340 fi
27341 done
27342
27343
27344 for ac_func in chflags
27345 do :
27346   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27347 if test "x$ac_cv_func_chflags" = xyes; then :
27348   cat >>confdefs.h <<_ACEOF
27349 #define HAVE_CHFLAGS 1
27350 _ACEOF
27351
27352 fi
27353 done
27354
27355
27356 for ac_func in snprintf vsnprintf gethostid fseeko
27357 do :
27358   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27360 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27361   cat >>confdefs.h <<_ACEOF
27362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27363 _ACEOF
27364
27365 fi
27366 done
27367
27368
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27370 $as_echo_n "checking for va_copy... " >&6; }
27371 if ${ba_cv_va_copy+:} false; then :
27372   $as_echo_n "(cached) " >&6
27373 else
27374
27375        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27376 /* end confdefs.h.  */
27377
27378               #include <stdarg.h>
27379               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27380               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27381
27382 int
27383 main ()
27384 {
27385
27386               call_use_va_copy(1,2,3)
27387
27388   ;
27389   return 0;
27390 }
27391 _ACEOF
27392 if ac_fn_c_try_link "$LINENO"; then :
27393
27394               ba_cv_va_copy=yes,
27395
27396 else
27397
27398               ba_cv_va_copy=no
27399
27400
27401 fi
27402 rm -f core conftest.err conftest.$ac_objext \
27403     conftest$ac_exeext conftest.$ac_ext
27404
27405
27406 fi
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27408 $as_echo "$ba_cv_va_copy" >&6; }
27409 test $ba_cv_va_copy = yes &&
27410 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27411
27412
27413 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27414 do :
27415   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27416 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27417 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27418   cat >>confdefs.h <<_ACEOF
27419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27420 _ACEOF
27421
27422 fi
27423 done
27424
27425
27426 # If resolver functions are not in libc check for -lnsl or -lresolv.
27427 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27428 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27430 $as_echo "using libc's resolver" >&6; }
27431 else
27432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27433 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27434 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
27435   $as_echo_n "(cached) " >&6
27436 else
27437   ac_check_lib_save_LIBS=$LIBS
27438 LIBS="-lnsl  $LIBS"
27439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27440 /* end confdefs.h.  */
27441
27442 /* Override any GCC internal prototype to avoid an error.
27443    Use char because int might match the return type of a GCC
27444    builtin and then its argument prototype would still apply.  */
27445 #ifdef __cplusplus
27446 extern "C"
27447 #endif
27448 char gethostbyname_r ();
27449 int
27450 main ()
27451 {
27452 return gethostbyname_r ();
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 if ac_fn_c_try_link "$LINENO"; then :
27458   ac_cv_lib_nsl_gethostbyname_r=yes
27459 else
27460   ac_cv_lib_nsl_gethostbyname_r=no
27461 fi
27462 rm -f core conftest.err conftest.$ac_objext \
27463     conftest$ac_exeext conftest.$ac_ext
27464 LIBS=$ac_check_lib_save_LIBS
27465 fi
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27467 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27468 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
27469   cat >>confdefs.h <<_ACEOF
27470 #define HAVE_LIBNSL 1
27471 _ACEOF
27472
27473   LIBS="-lnsl $LIBS"
27474
27475 fi
27476
27477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27478 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27479 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
27480   $as_echo_n "(cached) " >&6
27481 else
27482   ac_check_lib_save_LIBS=$LIBS
27483 LIBS="-lresolv  $LIBS"
27484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27485 /* end confdefs.h.  */
27486
27487 /* Override any GCC internal prototype to avoid an error.
27488    Use char because int might match the return type of a GCC
27489    builtin and then its argument prototype would still apply.  */
27490 #ifdef __cplusplus
27491 extern "C"
27492 #endif
27493 char gethostbyname_r ();
27494 int
27495 main ()
27496 {
27497 return gethostbyname_r ();
27498   ;
27499   return 0;
27500 }
27501 _ACEOF
27502 if ac_fn_c_try_link "$LINENO"; then :
27503   ac_cv_lib_resolv_gethostbyname_r=yes
27504 else
27505   ac_cv_lib_resolv_gethostbyname_r=no
27506 fi
27507 rm -f core conftest.err conftest.$ac_objext \
27508     conftest$ac_exeext conftest.$ac_ext
27509 LIBS=$ac_check_lib_save_LIBS
27510 fi
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27512 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27513 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
27514   cat >>confdefs.h <<_ACEOF
27515 #define HAVE_LIBRESOLV 1
27516 _ACEOF
27517
27518   LIBS="-lresolv $LIBS"
27519
27520 fi
27521
27522 fi
27523
27524
27525 for ac_func in inet_pton
27526 do :
27527   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27528 if test "x$ac_cv_func_inet_pton" = xyes; then :
27529   cat >>confdefs.h <<_ACEOF
27530 #define HAVE_INET_PTON 1
27531 _ACEOF
27532  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27533
27534 fi
27535 done
27536
27537 for ac_func in inet_ntop
27538 do :
27539   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27540 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27541   cat >>confdefs.h <<_ACEOF
27542 #define HAVE_INET_NTOP 1
27543 _ACEOF
27544  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27545
27546 fi
27547 done
27548
27549 for ac_func in gethostbyname2
27550 do :
27551   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27552 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
27553   cat >>confdefs.h <<_ACEOF
27554 #define HAVE_GETHOSTBYNAME2 1
27555 _ACEOF
27556  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27557
27558 fi
27559 done
27560
27561
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27563 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27564 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
27565   $as_echo_n "(cached) " >&6
27566 else
27567
27568        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27569 /* end confdefs.h.  */
27570
27571               #include <sys/socket.h>
27572
27573 int
27574 main ()
27575 {
27576
27577               struct sockaddr s; s.sa_len;
27578
27579   ;
27580   return 0;
27581 }
27582 _ACEOF
27583 if ac_fn_c_try_compile "$LINENO"; then :
27584
27585              ac_cv_struct_sockaddr_sa_len=yes
27586
27587 else
27588   ac_cv_struct_sockaddr_sa_len=no
27589
27590
27591 fi
27592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27593
27594
27595 fi
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27597 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27598
27599 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27600
27601 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27602
27603 fi
27604
27605 for ac_func in strftime
27606 do :
27607   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27608 if test "x$ac_cv_func_strftime" = xyes; then :
27609   cat >>confdefs.h <<_ACEOF
27610 #define HAVE_STRFTIME 1
27611 _ACEOF
27612
27613 else
27614   # strftime is in -lintl on SCO UNIX.
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27616 $as_echo_n "checking for strftime in -lintl... " >&6; }
27617 if ${ac_cv_lib_intl_strftime+:} false; then :
27618   $as_echo_n "(cached) " >&6
27619 else
27620   ac_check_lib_save_LIBS=$LIBS
27621 LIBS="-lintl  $LIBS"
27622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27623 /* end confdefs.h.  */
27624
27625 /* Override any GCC internal prototype to avoid an error.
27626    Use char because int might match the return type of a GCC
27627    builtin and then its argument prototype would still apply.  */
27628 #ifdef __cplusplus
27629 extern "C"
27630 #endif
27631 char strftime ();
27632 int
27633 main ()
27634 {
27635 return strftime ();
27636   ;
27637   return 0;
27638 }
27639 _ACEOF
27640 if ac_fn_c_try_link "$LINENO"; then :
27641   ac_cv_lib_intl_strftime=yes
27642 else
27643   ac_cv_lib_intl_strftime=no
27644 fi
27645 rm -f core conftest.err conftest.$ac_objext \
27646     conftest$ac_exeext conftest.$ac_ext
27647 LIBS=$ac_check_lib_save_LIBS
27648 fi
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27650 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27651 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
27652   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27653
27654 LIBS="-lintl $LIBS"
27655 fi
27656
27657 fi
27658 done
27659
27660 for ac_func in vprintf
27661 do :
27662   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27663 if test "x$ac_cv_func_vprintf" = xyes; then :
27664   cat >>confdefs.h <<_ACEOF
27665 #define HAVE_VPRINTF 1
27666 _ACEOF
27667
27668 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27669 if test "x$ac_cv_func__doprnt" = xyes; then :
27670
27671 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27672
27673 fi
27674
27675 fi
27676 done
27677
27678
27679 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27680 # for constant arguments.  Useless!
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27682 $as_echo_n "checking for working alloca.h... " >&6; }
27683 if ${ac_cv_working_alloca_h+:} false; then :
27684   $as_echo_n "(cached) " >&6
27685 else
27686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27687 /* end confdefs.h.  */
27688 #include <alloca.h>
27689 int
27690 main ()
27691 {
27692 char *p = (char *) alloca (2 * sizeof (int));
27693                           if (p) return 0;
27694   ;
27695   return 0;
27696 }
27697 _ACEOF
27698 if ac_fn_c_try_link "$LINENO"; then :
27699   ac_cv_working_alloca_h=yes
27700 else
27701   ac_cv_working_alloca_h=no
27702 fi
27703 rm -f core conftest.err conftest.$ac_objext \
27704     conftest$ac_exeext conftest.$ac_ext
27705 fi
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27707 $as_echo "$ac_cv_working_alloca_h" >&6; }
27708 if test $ac_cv_working_alloca_h = yes; then
27709
27710 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27711
27712 fi
27713
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27715 $as_echo_n "checking for alloca... " >&6; }
27716 if ${ac_cv_func_alloca_works+:} false; then :
27717   $as_echo_n "(cached) " >&6
27718 else
27719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27720 /* end confdefs.h.  */
27721 #ifdef __GNUC__
27722 # define alloca __builtin_alloca
27723 #else
27724 # ifdef _MSC_VER
27725 #  include <malloc.h>
27726 #  define alloca _alloca
27727 # else
27728 #  ifdef HAVE_ALLOCA_H
27729 #   include <alloca.h>
27730 #  else
27731 #   ifdef _AIX
27732  #pragma alloca
27733 #   else
27734 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27735 void *alloca (size_t);
27736 #    endif
27737 #   endif
27738 #  endif
27739 # endif
27740 #endif
27741
27742 int
27743 main ()
27744 {
27745 char *p = (char *) alloca (1);
27746                                     if (p) return 0;
27747   ;
27748   return 0;
27749 }
27750 _ACEOF
27751 if ac_fn_c_try_link "$LINENO"; then :
27752   ac_cv_func_alloca_works=yes
27753 else
27754   ac_cv_func_alloca_works=no
27755 fi
27756 rm -f core conftest.err conftest.$ac_objext \
27757     conftest$ac_exeext conftest.$ac_ext
27758 fi
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27760 $as_echo "$ac_cv_func_alloca_works" >&6; }
27761
27762 if test $ac_cv_func_alloca_works = yes; then
27763
27764 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27765
27766 else
27767   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27768 # that cause trouble.  Some versions do not even contain alloca or
27769 # contain a buggy version.  If you still want to use their alloca,
27770 # use ar to extract alloca.o from them instead of compiling alloca.c.
27771
27772 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27773
27774 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27775
27776
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27778 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27779 if ${ac_cv_os_cray+:} false; then :
27780   $as_echo_n "(cached) " >&6
27781 else
27782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27783 /* end confdefs.h.  */
27784 #if defined CRAY && ! defined CRAY2
27785 webecray
27786 #else
27787 wenotbecray
27788 #endif
27789
27790 _ACEOF
27791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27792   $EGREP "webecray" >/dev/null 2>&1; then :
27793   ac_cv_os_cray=yes
27794 else
27795   ac_cv_os_cray=no
27796 fi
27797 rm -f conftest*
27798
27799 fi
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27801 $as_echo "$ac_cv_os_cray" >&6; }
27802 if test $ac_cv_os_cray = yes; then
27803   for ac_func in _getb67 GETB67 getb67; do
27804     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27806 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27807
27808 cat >>confdefs.h <<_ACEOF
27809 #define CRAY_STACKSEG_END $ac_func
27810 _ACEOF
27811
27812     break
27813 fi
27814
27815   done
27816 fi
27817
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27819 $as_echo_n "checking stack direction for C alloca... " >&6; }
27820 if ${ac_cv_c_stack_direction+:} false; then :
27821   $as_echo_n "(cached) " >&6
27822 else
27823   if test "$cross_compiling" = yes; then :
27824   ac_cv_c_stack_direction=0
27825 else
27826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27827 /* end confdefs.h.  */
27828 $ac_includes_default
27829 int
27830 find_stack_direction ()
27831 {
27832   static char *addr = 0;
27833   auto char dummy;
27834   if (addr == 0)
27835     {
27836       addr = &dummy;
27837       return find_stack_direction ();
27838     }
27839   else
27840     return (&dummy > addr) ? 1 : -1;
27841 }
27842
27843 int
27844 main ()
27845 {
27846   return find_stack_direction () < 0;
27847 }
27848 _ACEOF
27849 if ac_fn_c_try_run "$LINENO"; then :
27850   ac_cv_c_stack_direction=1
27851 else
27852   ac_cv_c_stack_direction=-1
27853 fi
27854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27855   conftest.$ac_objext conftest.beam conftest.$ac_ext
27856 fi
27857
27858 fi
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27860 $as_echo "$ac_cv_c_stack_direction" >&6; }
27861 cat >>confdefs.h <<_ACEOF
27862 #define STACK_DIRECTION $ac_cv_c_stack_direction
27863 _ACEOF
27864
27865
27866 fi
27867
27868 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27869 # -lseq on Dynix/PTX, -lgen on Unixware.
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27871 $as_echo_n "checking for library containing getmntent... " >&6; }
27872 if ${ac_cv_search_getmntent+:} false; then :
27873   $as_echo_n "(cached) " >&6
27874 else
27875   ac_func_search_save_LIBS=$LIBS
27876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877 /* end confdefs.h.  */
27878
27879 /* Override any GCC internal prototype to avoid an error.
27880    Use char because int might match the return type of a GCC
27881    builtin and then its argument prototype would still apply.  */
27882 #ifdef __cplusplus
27883 extern "C"
27884 #endif
27885 char getmntent ();
27886 int
27887 main ()
27888 {
27889 return getmntent ();
27890   ;
27891   return 0;
27892 }
27893 _ACEOF
27894 for ac_lib in '' sun seq gen; do
27895   if test -z "$ac_lib"; then
27896     ac_res="none required"
27897   else
27898     ac_res=-l$ac_lib
27899     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27900   fi
27901   if ac_fn_c_try_link "$LINENO"; then :
27902   ac_cv_search_getmntent=$ac_res
27903 fi
27904 rm -f core conftest.err conftest.$ac_objext \
27905     conftest$ac_exeext
27906   if ${ac_cv_search_getmntent+:} false; then :
27907   break
27908 fi
27909 done
27910 if ${ac_cv_search_getmntent+:} false; then :
27911
27912 else
27913   ac_cv_search_getmntent=no
27914 fi
27915 rm conftest.$ac_ext
27916 LIBS=$ac_func_search_save_LIBS
27917 fi
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27919 $as_echo "$ac_cv_search_getmntent" >&6; }
27920 ac_res=$ac_cv_search_getmntent
27921 if test "$ac_res" != no; then :
27922   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27923   ac_cv_func_getmntent=yes
27924
27925 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27926
27927 else
27928   ac_cv_func_getmntent=no
27929 fi
27930
27931
27932 for ac_func in getmntinfo
27933 do :
27934   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27935 if test "x$ac_cv_func_getmntinfo" = xyes; then :
27936   cat >>confdefs.h <<_ACEOF
27937 #define HAVE_GETMNTINFO 1
27938 _ACEOF
27939  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27940
27941 fi
27942 done
27943
27944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27945 $as_echo_n "checking whether closedir returns void... " >&6; }
27946 if ${ac_cv_func_closedir_void+:} false; then :
27947   $as_echo_n "(cached) " >&6
27948 else
27949   if test "$cross_compiling" = yes; then :
27950   ac_cv_func_closedir_void=yes
27951 else
27952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27953 /* end confdefs.h.  */
27954 $ac_includes_default
27955 #include <$ac_header_dirent>
27956 #ifndef __cplusplus
27957 int closedir ();
27958 #endif
27959
27960 int
27961 main ()
27962 {
27963 return closedir (opendir (".")) != 0;
27964   ;
27965   return 0;
27966 }
27967 _ACEOF
27968 if ac_fn_c_try_run "$LINENO"; then :
27969   ac_cv_func_closedir_void=no
27970 else
27971   ac_cv_func_closedir_void=yes
27972 fi
27973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27974   conftest.$ac_objext conftest.beam conftest.$ac_ext
27975 fi
27976
27977 fi
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27979 $as_echo "$ac_cv_func_closedir_void" >&6; }
27980 if test $ac_cv_func_closedir_void = yes; then
27981
27982 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27983
27984 fi
27985
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27987 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27988 if ${ac_cv_func_setpgrp_void+:} false; then :
27989   $as_echo_n "(cached) " >&6
27990 else
27991   if test "$cross_compiling" = yes; then :
27992   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27993 else
27994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27995 /* end confdefs.h.  */
27996 $ac_includes_default
27997 int
27998 main ()
27999 {
28000 /* If this system has a BSD-style setpgrp which takes arguments,
28001   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28002   exit successfully. */
28003   return setpgrp (1,1) != -1;
28004   ;
28005   return 0;
28006 }
28007 _ACEOF
28008 if ac_fn_c_try_run "$LINENO"; then :
28009   ac_cv_func_setpgrp_void=no
28010 else
28011   ac_cv_func_setpgrp_void=yes
28012 fi
28013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28014   conftest.$ac_objext conftest.beam conftest.$ac_ext
28015 fi
28016
28017 fi
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28019 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28020 if test $ac_cv_func_setpgrp_void = yes; then
28021
28022 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28023
28024 fi
28025             # AC_FUNC_FNMATCH    dnl use local version
28026
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28028 $as_echo_n "checking for gettext in -lintl... " >&6; }
28029 if ${ac_cv_lib_intl_gettext+:} false; then :
28030   $as_echo_n "(cached) " >&6
28031 else
28032   ac_check_lib_save_LIBS=$LIBS
28033 LIBS="-lintl  $LIBS"
28034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28035 /* end confdefs.h.  */
28036
28037 /* Override any GCC internal prototype to avoid an error.
28038    Use char because int might match the return type of a GCC
28039    builtin and then its argument prototype would still apply.  */
28040 #ifdef __cplusplus
28041 extern "C"
28042 #endif
28043 char gettext ();
28044 int
28045 main ()
28046 {
28047 return gettext ();
28048   ;
28049   return 0;
28050 }
28051 _ACEOF
28052 if ac_fn_c_try_link "$LINENO"; then :
28053   ac_cv_lib_intl_gettext=yes
28054 else
28055   ac_cv_lib_intl_gettext=no
28056 fi
28057 rm -f core conftest.err conftest.$ac_objext \
28058     conftest$ac_exeext conftest.$ac_ext
28059 LIBS=$ac_check_lib_save_LIBS
28060 fi
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28062 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28063 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28064   LIBS="$LIBS -lintl"
28065 fi
28066
28067
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28069 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28070 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28071   $as_echo_n "(cached) " >&6
28072 else
28073   ac_check_lib_save_LIBS=$LIBS
28074 LIBS="-lsun  $LIBS"
28075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28076 /* end confdefs.h.  */
28077
28078 /* Override any GCC internal prototype to avoid an error.
28079    Use char because int might match the return type of a GCC
28080    builtin and then its argument prototype would still apply.  */
28081 #ifdef __cplusplus
28082 extern "C"
28083 #endif
28084 char getpwnam ();
28085 int
28086 main ()
28087 {
28088 return getpwnam ();
28089   ;
28090   return 0;
28091 }
28092 _ACEOF
28093 if ac_fn_c_try_link "$LINENO"; then :
28094   ac_cv_lib_sun_getpwnam=yes
28095 else
28096   ac_cv_lib_sun_getpwnam=no
28097 fi
28098 rm -f core conftest.err conftest.$ac_objext \
28099     conftest$ac_exeext conftest.$ac_ext
28100 LIBS=$ac_check_lib_save_LIBS
28101 fi
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28103 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28104 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28105   cat >>confdefs.h <<_ACEOF
28106 #define HAVE_LIBSUN 1
28107 _ACEOF
28108
28109   LIBS="-lsun $LIBS"
28110
28111 fi
28112
28113
28114 for ac_header in zlib.h
28115 do :
28116   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28117 if test "x$ac_cv_header_zlib_h" = xyes; then :
28118   cat >>confdefs.h <<_ACEOF
28119 #define HAVE_ZLIB_H 1
28120 _ACEOF
28121
28122 fi
28123
28124 done
28125
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28127 $as_echo_n "checking for deflate in -lz... " >&6; }
28128 if ${ac_cv_lib_z_deflate+:} false; then :
28129   $as_echo_n "(cached) " >&6
28130 else
28131   ac_check_lib_save_LIBS=$LIBS
28132 LIBS="-lz  $LIBS"
28133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28134 /* end confdefs.h.  */
28135
28136 /* Override any GCC internal prototype to avoid an error.
28137    Use char because int might match the return type of a GCC
28138    builtin and then its argument prototype would still apply.  */
28139 #ifdef __cplusplus
28140 extern "C"
28141 #endif
28142 char deflate ();
28143 int
28144 main ()
28145 {
28146 return deflate ();
28147   ;
28148   return 0;
28149 }
28150 _ACEOF
28151 if ac_fn_c_try_link "$LINENO"; then :
28152   ac_cv_lib_z_deflate=yes
28153 else
28154   ac_cv_lib_z_deflate=no
28155 fi
28156 rm -f core conftest.err conftest.$ac_objext \
28157     conftest$ac_exeext conftest.$ac_ext
28158 LIBS=$ac_check_lib_save_LIBS
28159 fi
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28161 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28162 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28163   ZLIBS="-lz"
28164 fi
28165
28166 have_zlib=no
28167 if test x$ZLIBS = x-lz; then
28168    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28169
28170    have_zlib=yes
28171 fi
28172
28173
28174 for ac_header in lzo/lzoconf.h
28175 do :
28176   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28177 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
28178   cat >>confdefs.h <<_ACEOF
28179 #define HAVE_LZO_LZOCONF_H 1
28180 _ACEOF
28181
28182 fi
28183
28184 done
28185
28186 for ac_header in lzo/lzo1x.h
28187 do :
28188   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28189 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
28190   cat >>confdefs.h <<_ACEOF
28191 #define HAVE_LZO_LZO1X_H 1
28192 _ACEOF
28193
28194 fi
28195
28196 done
28197
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28199 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28200 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
28201   $as_echo_n "(cached) " >&6
28202 else
28203   ac_check_lib_save_LIBS=$LIBS
28204 LIBS="-llzo2  $LIBS"
28205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28206 /* end confdefs.h.  */
28207
28208 /* Override any GCC internal prototype to avoid an error.
28209    Use char because int might match the return type of a GCC
28210    builtin and then its argument prototype would still apply.  */
28211 #ifdef __cplusplus
28212 extern "C"
28213 #endif
28214 char lzo1x_1_compress ();
28215 int
28216 main ()
28217 {
28218 return lzo1x_1_compress ();
28219   ;
28220   return 0;
28221 }
28222 _ACEOF
28223 if ac_fn_c_try_link "$LINENO"; then :
28224   ac_cv_lib_lzo2_lzo1x_1_compress=yes
28225 else
28226   ac_cv_lib_lzo2_lzo1x_1_compress=no
28227 fi
28228 rm -f core conftest.err conftest.$ac_objext \
28229     conftest$ac_exeext conftest.$ac_ext
28230 LIBS=$ac_check_lib_save_LIBS
28231 fi
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28233 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28234 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
28235   LZOLIBS="-llzo2"
28236 fi
28237
28238 have_lzo=no
28239 if test x$LZOLIBS = x-llzo2; then
28240    $as_echo "#define HAVE_LZO 1" >>confdefs.h
28241
28242    have_lzo=yes
28243 fi
28244
28245
28246 support_acl=auto
28247 # Check whether --enable-acl was given.
28248 if test "${enable_acl+set}" = set; then :
28249   enableval=$enable_acl;
28250        if test x$enableval = xyes; then
28251           support_acl=yes
28252        elif test x$enableval = xno; then
28253           support_acl=no
28254        fi
28255
28256
28257 fi
28258
28259
28260 have_acl=no
28261 have_extended_acl=no
28262 if test x$support_acl = xyes -o x$support_acl = xauto; then
28263    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28264 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
28265
28266 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28267
28268 fi
28269
28270
28271
28272             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28273 if test "x$ac_cv_func_acl_get_file" = xyes; then :
28274
28275           have_acl=yes
28276
28277
28278 fi
28279
28280
28281             if test $have_acl = no; then
28282       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28283 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28284 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
28285   $as_echo_n "(cached) " >&6
28286 else
28287   ac_check_lib_save_LIBS=$LIBS
28288 LIBS="-lacl  $LIBS"
28289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28290 /* end confdefs.h.  */
28291
28292 /* Override any GCC internal prototype to avoid an error.
28293    Use char because int might match the return type of a GCC
28294    builtin and then its argument prototype would still apply.  */
28295 #ifdef __cplusplus
28296 extern "C"
28297 #endif
28298 char acl_get_file ();
28299 int
28300 main ()
28301 {
28302 return acl_get_file ();
28303   ;
28304   return 0;
28305 }
28306 _ACEOF
28307 if ac_fn_c_try_link "$LINENO"; then :
28308   ac_cv_lib_acl_acl_get_file=yes
28309 else
28310   ac_cv_lib_acl_acl_get_file=no
28311 fi
28312 rm -f core conftest.err conftest.$ac_objext \
28313     conftest$ac_exeext conftest.$ac_ext
28314 LIBS=$ac_check_lib_save_LIBS
28315 fi
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28317 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28318 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
28319
28320              have_acl=yes
28321              if test x$have_afs = xyes; then
28322                                                                 if test -d /usr/lib64/; then
28323                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28324                 else
28325                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
28326                 fi
28327              else
28328                 FDLIBS="-lacl $FDLIBS"
28329              fi
28330
28331
28332 fi
28333
28334    fi
28335
28336                if test $have_acl = no -a \
28337            x${HAVE_OSF1_OS_TRUE} = x; then
28338       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28339 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28340 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
28341   $as_echo_n "(cached) " >&6
28342 else
28343   ac_check_lib_save_LIBS=$LIBS
28344 LIBS="-lpacl  $LIBS"
28345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28346 /* end confdefs.h.  */
28347
28348 /* Override any GCC internal prototype to avoid an error.
28349    Use char because int might match the return type of a GCC
28350    builtin and then its argument prototype would still apply.  */
28351 #ifdef __cplusplus
28352 extern "C"
28353 #endif
28354 char acl_get_file ();
28355 int
28356 main ()
28357 {
28358 return acl_get_file ();
28359   ;
28360   return 0;
28361 }
28362 _ACEOF
28363 if ac_fn_c_try_link "$LINENO"; then :
28364   ac_cv_lib_pacl_acl_get_file=yes
28365 else
28366   ac_cv_lib_pacl_acl_get_file=no
28367 fi
28368 rm -f core conftest.err conftest.$ac_objext \
28369     conftest$ac_exeext conftest.$ac_ext
28370 LIBS=$ac_check_lib_save_LIBS
28371 fi
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28373 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28374 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
28375
28376              have_acl=yes
28377              FDLIBS="-lpacl $FDLIBS"
28378
28379
28380 fi
28381
28382
28383       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
28384 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
28385       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
28386       if test $? = 0; then
28387
28388 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
28389
28390          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28391 $as_echo "yes" >&6; }
28392       else
28393          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28394 $as_echo "no" >&6; }
28395       fi
28396    fi
28397
28398             if test $have_acl = yes -a \
28399            x${HAVE_DARWIN_OS_TRUE} = x; then
28400       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
28401 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
28402       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
28403       if test $? = 0; then
28404
28405 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
28406
28407          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28408 $as_echo "yes" >&6; }
28409       else
28410          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28411 $as_echo "no" >&6; }
28412       fi
28413    fi
28414
28415             if test $have_acl = yes -a \
28416            x${HAVE_FREEBSD_OS_TRUE} = x; then
28417       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
28418 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
28419       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
28420       if test $? = 0; then
28421
28422 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
28423
28424          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28425 $as_echo "yes" >&6; }
28426       else
28427          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28428 $as_echo "no" >&6; }
28429       fi
28430    fi
28431
28432             if test $have_acl = no -a \
28433            x${HAVE_SUN_OS_TRUE} = x; then
28434       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28435 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28436 if ${ac_cv_lib_sec_acltotext+:} false; then :
28437   $as_echo_n "(cached) " >&6
28438 else
28439   ac_check_lib_save_LIBS=$LIBS
28440 LIBS="-lsec  $LIBS"
28441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28442 /* end confdefs.h.  */
28443
28444 /* Override any GCC internal prototype to avoid an error.
28445    Use char because int might match the return type of a GCC
28446    builtin and then its argument prototype would still apply.  */
28447 #ifdef __cplusplus
28448 extern "C"
28449 #endif
28450 char acltotext ();
28451 int
28452 main ()
28453 {
28454 return acltotext ();
28455   ;
28456   return 0;
28457 }
28458 _ACEOF
28459 if ac_fn_c_try_link "$LINENO"; then :
28460   ac_cv_lib_sec_acltotext=yes
28461 else
28462   ac_cv_lib_sec_acltotext=no
28463 fi
28464 rm -f core conftest.err conftest.$ac_objext \
28465     conftest$ac_exeext conftest.$ac_ext
28466 LIBS=$ac_check_lib_save_LIBS
28467 fi
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28469 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28470 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
28471
28472              have_acl=yes
28473              FDLIBS="-lsec $FDLIBS"
28474
28475              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28476 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28477 if ${ac_cv_lib_sec_acl_totext+:} false; then :
28478   $as_echo_n "(cached) " >&6
28479 else
28480   ac_check_lib_save_LIBS=$LIBS
28481 LIBS="-lsec  $LIBS"
28482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28483 /* end confdefs.h.  */
28484
28485 /* Override any GCC internal prototype to avoid an error.
28486    Use char because int might match the return type of a GCC
28487    builtin and then its argument prototype would still apply.  */
28488 #ifdef __cplusplus
28489 extern "C"
28490 #endif
28491 char acl_totext ();
28492 int
28493 main ()
28494 {
28495 return acl_totext ();
28496   ;
28497   return 0;
28498 }
28499 _ACEOF
28500 if ac_fn_c_try_link "$LINENO"; then :
28501   ac_cv_lib_sec_acl_totext=yes
28502 else
28503   ac_cv_lib_sec_acl_totext=no
28504 fi
28505 rm -f core conftest.err conftest.$ac_objext \
28506     conftest$ac_exeext conftest.$ac_ext
28507 LIBS=$ac_check_lib_save_LIBS
28508 fi
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28510 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28511 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
28512
28513                     have_extended_acl=yes
28514
28515
28516 fi
28517
28518
28519
28520 fi
28521
28522    fi
28523
28524             if test $have_acl = no -a \
28525            x${HAVE_AIX_OS_TRUE} = x; then
28526       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28527 if test "x$ac_cv_func_acl_get" = xyes; then :
28528
28529              have_acl=yes
28530
28531              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28532 if test "x$ac_cv_func_aclx_get" = xyes; then :
28533
28534                     have_extended_acl=yes
28535
28536
28537 fi
28538
28539
28540
28541 fi
28542
28543    fi
28544
28545    if test x$support_acl = xyes -a $have_acl != yes; then
28546       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28547   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28548    else
28549       if test $have_acl = yes; then
28550
28551 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28552
28553       fi
28554
28555       if test $have_extended_acl = yes; then
28556
28557 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28558
28559       fi
28560    fi
28561 fi
28562
28563 support_xattr=auto
28564 # Check whether --enable-xattr was given.
28565 if test "${enable_xattr+set}" = set; then :
28566   enableval=$enable_xattr;
28567        if test x$enableval = xyes; then
28568           support_xattr=yes
28569        elif test x$enableval = xno; then
28570           support_xattr=no
28571        fi
28572
28573
28574 fi
28575
28576
28577 have_xattr=no
28578 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28579                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28580            x${HAVE_NETBSD_OS_TRUE} = x -o \
28581            x${HAVE_OPENBSD_OS_TRUE} = x; then
28582       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28583 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
28584
28585 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28586
28587 fi
28588
28589
28590       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28591 if test "x$ac_cv_header_libutil_h" = xyes; then :
28592
28593 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28594
28595 fi
28596
28597
28598       for ac_func in extattr_get_link extattr_set_link extattr_list_link
28599 do :
28600   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28602 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28603   cat >>confdefs.h <<_ACEOF
28604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28605 _ACEOF
28606
28607              have_xattr=yes
28608
28609 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28610
28611
28612 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28613
28614
28615 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28616
28617
28618
28619 fi
28620 done
28621
28622
28623       if test $have_xattr = no; then
28624          for ac_func in extattr_get_file extattr_set_file extattr_list_file
28625 do :
28626   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28629   cat >>confdefs.h <<_ACEOF
28630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28631 _ACEOF
28632
28633                 have_xattr=yes
28634
28635 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28636
28637
28638 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28639
28640
28641 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28642
28643
28644
28645 fi
28646 done
28647
28648       fi
28649
28650       if test $have_xattr = yes; then
28651          have_extattr_string_in_libc=no
28652          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28653 do :
28654   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28655 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28656 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28657   cat >>confdefs.h <<_ACEOF
28658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28659 _ACEOF
28660
28661                 have_extattr_string_in_libc=yes
28662
28663 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28664
28665
28666 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28667
28668
28669
28670 fi
28671 done
28672
28673
28674                                  if test $have_extattr_string_in_libc = no; then
28675             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28676 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28677 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
28678   $as_echo_n "(cached) " >&6
28679 else
28680   ac_check_lib_save_LIBS=$LIBS
28681 LIBS="-lutil  $LIBS"
28682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28683 /* end confdefs.h.  */
28684
28685 /* Override any GCC internal prototype to avoid an error.
28686    Use char because int might match the return type of a GCC
28687    builtin and then its argument prototype would still apply.  */
28688 #ifdef __cplusplus
28689 extern "C"
28690 #endif
28691 char extattr_namespace_to_string extattr_string_to_namespace ();
28692 int
28693 main ()
28694 {
28695 return extattr_namespace_to_string extattr_string_to_namespace ();
28696   ;
28697   return 0;
28698 }
28699 _ACEOF
28700 if ac_fn_c_try_link "$LINENO"; then :
28701   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28702 else
28703   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28704 fi
28705 rm -f core conftest.err conftest.$ac_objext \
28706     conftest$ac_exeext conftest.$ac_ext
28707 LIBS=$ac_check_lib_save_LIBS
28708 fi
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28710 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28711 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
28712
28713
28714 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28715
28716
28717 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28718
28719                    FDLIBS="-lutil $FDLIBS"
28720
28721
28722 fi
28723
28724          fi
28725       fi
28726    fi
28727
28728                if test $have_xattr = no -a \
28729            x${HAVE_AIX_OS_TRUE} = x; then
28730       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28731 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
28732
28733 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28734
28735 fi
28736
28737
28738       for ac_func in llistea lgetea lsetea
28739 do :
28740   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28741 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28742 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28743   cat >>confdefs.h <<_ACEOF
28744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28745 _ACEOF
28746
28747              have_xattr=yes
28748
28749 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28750
28751
28752 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28753
28754
28755 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28756
28757
28758
28759 fi
28760 done
28761
28762
28763       if test $have_xattr = no; then
28764          for ac_func in listea getea setea
28765 do :
28766   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28768 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28769   cat >>confdefs.h <<_ACEOF
28770 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28771 _ACEOF
28772
28773                 have_xattr=yes
28774
28775 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28776
28777
28778 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28779
28780
28781 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28782
28783
28784
28785 fi
28786 done
28787
28788       fi
28789    fi
28790
28791                if test $have_xattr = no -a \
28792            x${HAVE_OSF1_OS_TRUE} = x; then
28793       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28794 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
28795
28796 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28797
28798 fi
28799
28800
28801       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28802 do :
28803   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28805 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28806   cat >>confdefs.h <<_ACEOF
28807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28808 _ACEOF
28809
28810              have_xattr=yes
28811
28812 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
28813
28814
28815 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
28816
28817
28818 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
28819
28820
28821 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
28822
28823
28824 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
28825
28826
28827
28828 fi
28829 done
28830
28831    fi
28832
28833                if test $have_xattr = no -a \
28834            x${HAVE_SUN_OS_TRUE} = x; then
28835       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28836 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
28837
28838 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28839
28840 fi
28841
28842
28843       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28844 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
28845
28846 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28847
28848 fi
28849
28850
28851       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28852 if test "x$ac_cv_header_attr_h" = xyes; then :
28853
28854 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28855
28856 fi
28857
28858
28859
28860       for ac_func in openat fstatat unlinkat fchownat futimesat
28861 do :
28862   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28865   cat >>confdefs.h <<_ACEOF
28866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28867 _ACEOF
28868
28869              have_xattr=yes
28870
28871 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28872
28873
28874 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28875
28876
28877 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28878
28879
28880 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28881
28882
28883 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28884
28885
28886
28887 fi
28888 done
28889
28890
28891       if test $have_xattr = yes; then
28892          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28893 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28894 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
28895   $as_echo_n "(cached) " >&6
28896 else
28897   ac_check_lib_save_LIBS=$LIBS
28898 LIBS="-lnvpair  $LIBS"
28899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28900 /* end confdefs.h.  */
28901
28902 /* Override any GCC internal prototype to avoid an error.
28903    Use char because int might match the return type of a GCC
28904    builtin and then its argument prototype would still apply.  */
28905 #ifdef __cplusplus
28906 extern "C"
28907 #endif
28908 char nvlist_next_nvpair ();
28909 int
28910 main ()
28911 {
28912 return nvlist_next_nvpair ();
28913   ;
28914   return 0;
28915 }
28916 _ACEOF
28917 if ac_fn_c_try_link "$LINENO"; then :
28918   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28919 else
28920   ac_cv_lib_nvpair_nvlist_next_nvpair=no
28921 fi
28922 rm -f core conftest.err conftest.$ac_objext \
28923     conftest$ac_exeext conftest.$ac_ext
28924 LIBS=$ac_check_lib_save_LIBS
28925 fi
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28927 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28928 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
28929
28930
28931 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28932
28933                 FDLIBS="-lnvpair $FDLIBS"
28934
28935
28936 fi
28937
28938       fi
28939    fi
28940
28941             if test $have_xattr = no; then
28942       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28943 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
28944
28945 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28946
28947 fi
28948
28949
28950       for ac_func in llistxattr lgetxattr lsetxattr
28951 do :
28952   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28955   cat >>confdefs.h <<_ACEOF
28956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28957 _ACEOF
28958
28959              have_xattr=yes
28960
28961 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28962
28963
28964 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28965
28966
28967 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28968
28969
28970
28971 fi
28972 done
28973
28974
28975       if test $have_xattr = no; then
28976          for ac_func in listxattr getxattr setxattr
28977 do :
28978   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28981   cat >>confdefs.h <<_ACEOF
28982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28983 _ACEOF
28984
28985                 have_xattr=yes
28986
28987 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28988
28989
28990 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28991
28992
28993 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28994
28995
28996
28997 fi
28998 done
28999
29000       fi
29001    fi
29002
29003    if test x$support_xattr = xyes -a $have_xattr != yes; then
29004       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29005   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29006    else
29007       if test $have_xattr = yes; then
29008
29009 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29010
29011       fi
29012    fi
29013 fi
29014
29015 PTHREAD_LIB=""
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29017 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29018 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
29019   $as_echo_n "(cached) " >&6
29020 else
29021   ac_check_lib_save_LIBS=$LIBS
29022 LIBS="-lpthread  $LIBS"
29023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29024 /* end confdefs.h.  */
29025
29026 /* Override any GCC internal prototype to avoid an error.
29027    Use char because int might match the return type of a GCC
29028    builtin and then its argument prototype would still apply.  */
29029 #ifdef __cplusplus
29030 extern "C"
29031 #endif
29032 char pthread_create ();
29033 int
29034 main ()
29035 {
29036 return pthread_create ();
29037   ;
29038   return 0;
29039 }
29040 _ACEOF
29041 if ac_fn_c_try_link "$LINENO"; then :
29042   ac_cv_lib_pthread_pthread_create=yes
29043 else
29044   ac_cv_lib_pthread_pthread_create=no
29045 fi
29046 rm -f core conftest.err conftest.$ac_objext \
29047     conftest$ac_exeext conftest.$ac_ext
29048 LIBS=$ac_check_lib_save_LIBS
29049 fi
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29051 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29052 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
29053   PTHREAD_LIB="-lpthread"
29054 else
29055
29056        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29057 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29058 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
29059   $as_echo_n "(cached) " >&6
29060 else
29061   ac_check_lib_save_LIBS=$LIBS
29062 LIBS="-lpthreads  $LIBS"
29063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29064 /* end confdefs.h.  */
29065
29066 /* Override any GCC internal prototype to avoid an error.
29067    Use char because int might match the return type of a GCC
29068    builtin and then its argument prototype would still apply.  */
29069 #ifdef __cplusplus
29070 extern "C"
29071 #endif
29072 char pthread_create ();
29073 int
29074 main ()
29075 {
29076 return pthread_create ();
29077   ;
29078   return 0;
29079 }
29080 _ACEOF
29081 if ac_fn_c_try_link "$LINENO"; then :
29082   ac_cv_lib_pthreads_pthread_create=yes
29083 else
29084   ac_cv_lib_pthreads_pthread_create=no
29085 fi
29086 rm -f core conftest.err conftest.$ac_objext \
29087     conftest$ac_exeext conftest.$ac_ext
29088 LIBS=$ac_check_lib_save_LIBS
29089 fi
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29091 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29092 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29093   PTHREAD_LIB="-lpthreads"
29094 else
29095
29096               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29097 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29098 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29099   $as_echo_n "(cached) " >&6
29100 else
29101   ac_check_lib_save_LIBS=$LIBS
29102 LIBS="-lc_r  $LIBS"
29103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29104 /* end confdefs.h.  */
29105
29106 /* Override any GCC internal prototype to avoid an error.
29107    Use char because int might match the return type of a GCC
29108    builtin and then its argument prototype would still apply.  */
29109 #ifdef __cplusplus
29110 extern "C"
29111 #endif
29112 char pthread_create ();
29113 int
29114 main ()
29115 {
29116 return pthread_create ();
29117   ;
29118   return 0;
29119 }
29120 _ACEOF
29121 if ac_fn_c_try_link "$LINENO"; then :
29122   ac_cv_lib_c_r_pthread_create=yes
29123 else
29124   ac_cv_lib_c_r_pthread_create=no
29125 fi
29126 rm -f core conftest.err conftest.$ac_objext \
29127     conftest$ac_exeext conftest.$ac_ext
29128 LIBS=$ac_check_lib_save_LIBS
29129 fi
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29131 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29132 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29133   PTHREAD_LIB="-lc_r"
29134 else
29135
29136                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29137 if test "x$ac_cv_func_pthread_create" = xyes; then :
29138
29139 fi
29140
29141
29142
29143 fi
29144
29145
29146
29147 fi
29148
29149
29150
29151 fi
29152
29153
29154 for ac_header in sys/prctl.h sys/capability.h
29155 do :
29156   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29157 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29158 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29159   cat >>confdefs.h <<_ACEOF
29160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29161 _ACEOF
29162
29163 fi
29164
29165 done
29166
29167 for ac_func in prctl setreuid
29168 do :
29169   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29170 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29171 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29172   cat >>confdefs.h <<_ACEOF
29173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29174 _ACEOF
29175
29176 fi
29177 done
29178
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29180 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29181 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29182   $as_echo_n "(cached) " >&6
29183 else
29184   ac_check_lib_save_LIBS=$LIBS
29185 LIBS="-lcap  $LIBS"
29186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29187 /* end confdefs.h.  */
29188
29189 /* Override any GCC internal prototype to avoid an error.
29190    Use char because int might match the return type of a GCC
29191    builtin and then its argument prototype would still apply.  */
29192 #ifdef __cplusplus
29193 extern "C"
29194 #endif
29195 char cap_set_proc ();
29196 int
29197 main ()
29198 {
29199 return cap_set_proc ();
29200   ;
29201   return 0;
29202 }
29203 _ACEOF
29204 if ac_fn_c_try_link "$LINENO"; then :
29205   ac_cv_lib_cap_cap_set_proc=yes
29206 else
29207   ac_cv_lib_cap_cap_set_proc=no
29208 fi
29209 rm -f core conftest.err conftest.$ac_objext \
29210     conftest$ac_exeext conftest.$ac_ext
29211 LIBS=$ac_check_lib_save_LIBS
29212 fi
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29214 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29215 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29216   CAP_LIBS="-lcap"
29217 else
29218   CAP_LIBS=
29219 fi
29220
29221 if test x$CAP_LIBS = x-lcap; then
29222
29223 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29224
29225 fi
29226
29227
29228
29229 $as_echo "#define FDLIBS 1" >>confdefs.h
29230
29231
29232 CFLAGS=${CFLAGS--O}
29233
29234 if test x$have_gcc = xyes ; then
29235    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29236    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29237 fi
29238 LDFLAGS=${LDFLAGS--O}
29239 CPPFLAGS="$CPPFLAGS"
29240 CFLAGS="$CFLAGS"
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256 OBJLIST=
29257
29258
29259 lld="lld"
29260 llu="llu"
29261
29262 WCFLAGS=
29263 WLDFLAGS=
29264
29265 PFILES="platforms/Makefile"
29266 PSCMD="ps -e"
29267 WIN32=
29268 MACOSX=
29269 COMPRESS_MANPAGES=yes
29270
29271 hostname=`uname -n | cut -d '.' -f 1`
29272 if test x${hostname} = x ; then
29273    hostname="localhost"
29274 fi
29275 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29276 if test ! $? = 0; then
29277   hostname="localhost"
29278 fi
29279
29280 case "$DISTNAME" in
29281 aix)
29282    DISTVER=`uname -r`
29283    PSCMD="ps -e -o pid,comm"
29284    PFILES="${PFILES} \
29285       platforms/aix/Makefile"
29286    TAPEDRIVE="/dev/rmt0.1"
29287   ;;
29288 alpha)
29289    DISTVER=`uname -r`
29290    PTHREAD_LIB="-lpthread -lexc"
29291    if test "${CC}" = "gcc" ; then
29292       lld="lld"
29293       llu="llu"
29294    else
29295       lld="ld"
29296       llu="lu"
29297    fi
29298    TAPEDRIVE="/dev/nrmt0"
29299   ;;
29300 bsdi)
29301    DISTVER=`uname -a |awk '{print $3}'`
29302    TAPEDRIVE="/dev/nrmt0"
29303    PTHREAD_LIB="-pthread"
29304    CFLAGS="${CFLAGS} -pthread"
29305    PSCMD="ps -ax -o pid,command"
29306    lld="qd"
29307    llu="qu"
29308    PFILES="${PFILES} \
29309        platforms/bsdi/Makefile \
29310        platforms/bsdi/bacula-fd \
29311        platforms/bsdi/bacula-sd \
29312        platforms/bsdi/bacula-dir"
29313    largefile_support="yes"
29314   ;;
29315 cygwin)
29316    DISTVER=`uname -a |awk '{print $3}'`
29317    TAPEDRIVE="/dev/nrst0"
29318    WIN32=win32
29319    WCFLAGS="-mwindows"
29320    WLDFLAGS="-mwindows"
29321   ;;
29322 darwin)
29323    DISTVER=`uname -r`
29324    TAPEDRIVE="/dev/nst0"
29325    PSCMD="ps -e -o pid,command"
29326    MACOSX=macosx
29327    PFILES="${PFILES} \
29328       platforms/darwin/Makefile"
29329   ;;
29330 osx)
29331    DISTVER=`uname -r`
29332    TAPEDRIVE="/dev/nst0"
29333    PSCMD="ps -e -o pid,command"
29334    MACOSX=macosx
29335    PFILES="${PFILES} \
29336       platforms/osx/Makefile"
29337   ;;
29338 debian)
29339    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29340       DISTNAME="ubuntu"
29341    fi
29342    DISTVER=`cat /etc/debian_version`
29343    if test -f /etc/lsb-release ; then
29344       . /etc/lsb-release
29345       if test "x$DISTRIB_ID" != "x" ; then
29346          DISTNAME=$DISTRIB_ID
29347       fi
29348       if test "x$DISTRIB_RELEASE" != "x" ; then
29349          DISTVER=$DISTRIB_RELEASE
29350       fi
29351    fi
29352    if test "$DISTNAME" = "Ubuntu" ; then
29353       DISTNAME="ubuntu"
29354    fi
29355    TAPEDRIVE="/dev/nst0"
29356    PSCMD="ps -e -o pid,command"
29357    if test "$DISTNAME" = "ubuntu" ; then
29358       PFILES="${PFILES} \
29359          platforms/ubuntu/Makefile \
29360          platforms/ubuntu/bacula-fd \
29361          platforms/ubuntu/bacula-sd \
29362          platforms/ubuntu/bacula-dir"
29363    else
29364       PFILES="${PFILES} \
29365          platforms/debian/Makefile \
29366          platforms/debian/bacula-fd \
29367          platforms/debian/bacula-sd \
29368          platforms/debian/bacula-dir"
29369    fi
29370   ;;
29371 freebsd)
29372    DISTVER=`uname -a |awk '{print $3}'`
29373    VER=`echo $DISTVER | cut -c 1`
29374    if test x$VER = x4 ; then
29375       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29376       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29377    fi
29378    lld="qd"
29379    llu="qu"
29380    TAPEDRIVE="/dev/nrsa0"
29381    PSCMD="ps -ax -o pid,command"
29382    PFILES="${PFILES} \
29383        platforms/freebsd/Makefile \
29384        platforms/freebsd/bacula-fd \
29385        platforms/freebsd/bacula-sd \
29386        platforms/freebsd/bacula-dir"
29387    largefile_support="yes"
29388   ;;
29389 hpux)
29390    PSCMD="UNIX95=1; ps -e -o pid,comm"
29391    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29392    DISTVER=`uname -r`
29393    TAPEDRIVE="/dev/rmt/0hnb"
29394    PTHREAD_LIB="-lpthread"
29395    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29396
29397   ;;
29398 irix)
29399    DISTVER=`uname -r`
29400    TAPEDRIVE="/dev/rmt/0cbn"
29401    PSCMD="ps -e -o pid,comm"
29402    PFILES="${PFILES} \
29403        platforms/irix/Makefile \
29404        platforms/irix/bacula-fd \
29405        platforms/irix/bacula-sd \
29406        platforms/irix/bacula-dir"
29407   ;;
29408 netbsd)
29409    DISTVER=`uname -a |awk '{print $3}'`
29410    lld="qd"
29411    llu="qu"
29412    TAPEDRIVE="/dev/nrst0"
29413    PSCMD="ps -ax -o pid,command"
29414    PTHREAD_LIB="-pthread"
29415    CFLAGS="${CFLAGS} -pthread"
29416   ;;
29417 openbsd)
29418    DISTVER=`uname -a |awk '{print $3}'`
29419    lld="qd"
29420    llu="qu"
29421    TAPEDRIVE="/dev/nrst0"
29422    PSCMD="ps -ax -o pid,command"
29423    PTHREAD_LIB="-pthread"
29424    CFLAGS="${CFLAGS} -pthread"
29425    PFILES="${PFILES} \
29426        platforms/openbsd/Makefile \
29427        platforms/openbsd/bacula-fd \
29428        platforms/openbsd/bacula-sd \
29429        platforms/openbsd/bacula-dir"
29430   ;;
29431 redhat)
29432    if test -f /etc/whitebox-release ; then
29433       f=/etc/whitebox-release
29434    else
29435       f=/etc/redhat-release
29436    fi
29437    if test `cat $f | grep release |\
29438          cut -f 3 -d ' '`x = "Enterprise"x ; then
29439       DISTVER="Enterprise "`cat $f | grep release |\
29440           cut -f 6 -d ' '`
29441    else
29442        DISTVER=`cat /etc/redhat-release | grep release |\
29443            cut -f 5 -d ' '`
29444    fi
29445    TAPEDRIVE="/dev/nst0"
29446    PSCMD="ps -e -o pid,command"
29447    PFILES="${PFILES} \
29448        platforms/redhat/Makefile \
29449        platforms/redhat/bacula-fd \
29450        platforms/redhat/bacula-sd \
29451        platforms/redhat/bacula-dir
29452        "
29453   ;;
29454 mandrake)
29455    DISTVER=`cat /etc/mandrake-release | grep release |\
29456       cut -f 5 -d ' '`
29457    TAPEDRIVE="/dev/nst0"
29458    PSCMD="ps -e -o pid,command"
29459    PFILES="${PFILES} \
29460        platforms/mandrake/Makefile \
29461        platforms/mandrake/bacula-fd \
29462        platforms/mandrake/bacula-sd \
29463        platforms/mandrake/bacula-dir \
29464        "
29465   ;;
29466 gentoo)
29467    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29468    TAPEDRIVE="/dev/nst0"
29469    PSCMD="ps -e -o pid,command"
29470    PFILES="${PFILES} \
29471        platforms/gentoo/Makefile \
29472     platforms/gentoo/bacula-init \
29473        platforms/gentoo/bacula-fd \
29474        platforms/gentoo/bacula-sd \
29475        platforms/gentoo/bacula-dir"
29476   ;;
29477 slackware)
29478    DISTVER=`cat /etc/slackware-version`
29479    TAPEDRIVE="/dev/nst0"
29480    PSCMD="ps -e -o pid,command"
29481    PFILES="${PFILES} \
29482        platforms/slackware/Makefile \
29483        platforms/slackware/rc.bacula-fd \
29484        platforms/slackware/rc.bacula-sd \
29485        platforms/slackware/rc.bacula-dir\
29486        platforms/slackware/functions.bacula"
29487   ;;
29488 solaris)
29489    DISTVER=`uname -r`
29490    TAPEDRIVE="/dev/rmt/0cbn"
29491    PSCMD="ps -e -o pid,comm"
29492    PFILES="${PFILES} \
29493        platforms/solaris/Makefile \
29494        platforms/solaris/bacula-fd \
29495        platforms/solaris/bacula-sd \
29496        platforms/solaris/bacula-dir"
29497    COMPRESS_MANPAGES=
29498    case ${DISTVER} in
29499    5.5|5.6)
29500       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29501
29502       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29503
29504       ;;
29505    5.7|5.8)
29506       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29507
29508       ;;
29509    *)
29510       ;;
29511    esac
29512    LIBS="$LIBS -lresolv -lrt"
29513   ;;
29514 suse)
29515    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29516        cut -f 3 -d ' '`
29517    TAPEDRIVE="/dev/nst0"
29518    PSCMD="ps -e -o pid,command"
29519    PFILES="${PFILES} \
29520        platforms/suse/Makefile \
29521        platforms/suse/bacula-fd \
29522        platforms/suse/bacula-sd \
29523        platforms/suse/bacula-dir \
29524        platforms/suse/bacula"
29525   ;;
29526 suse5)
29527    DISTNAME=suse
29528    DISTVER=5.x
29529    TAPEDRIVE="/dev/nst0"
29530    PSCMD="ps -e -o pid,command"
29531    PFILES="${PFILES} \
29532        platforms/suse/Makefile \
29533        platforms/suse/bacula-fd \
29534        platforms/suse/bacula-sd \
29535        platforms/suse/bacula-dir"
29536   ;;
29537 unknown)
29538    DISTVER=unknown
29539    TAPEDRIVE="/dev/nst0"
29540   ;;
29541 *)
29542   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29543   ;;
29544 esac
29545
29546
29547
29548 LIBS="$PTHREAD_LIB $LIBS"
29549
29550 cat >>confdefs.h <<_ACEOF
29551 #define lld "$lld"
29552 _ACEOF
29553
29554 cat >>confdefs.h <<_ACEOF
29555 #define llu "$llu"
29556 _ACEOF
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566 MCOMMON=./autoconf/Make.common
29567
29568
29569 if test "x${subsysdir}" = "x${sbindir}" ; then
29570    echo " "
29571    echo " "
29572    echo "You have set both --sbindir and --with-subsys-dir"
29573    echo "  equal to: ${subsysdir} "
29574    echo "This is not permitted. Please reconfigure."
29575    echo " "
29576    echo "Aborting configuration ..."
29577    echo " "
29578    echo " "
29579    exit 1
29580 fi
29581
29582 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"
29583
29584 ac_config_commands="$ac_config_commands default"
29585
29586 cat >confcache <<\_ACEOF
29587 # This file is a shell script that caches the results of configure
29588 # tests run on this system so they can be shared between configure
29589 # scripts and configure runs, see configure's option --config-cache.
29590 # It is not useful on other systems.  If it contains results you don't
29591 # want to keep, you may remove or edit it.
29592 #
29593 # config.status only pays attention to the cache file if you give it
29594 # the --recheck option to rerun configure.
29595 #
29596 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29597 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29598 # following values.
29599
29600 _ACEOF
29601
29602 # The following way of writing the cache mishandles newlines in values,
29603 # but we know of no workaround that is simple, portable, and efficient.
29604 # So, we kill variables containing newlines.
29605 # Ultrix sh set writes to stderr and can't be redirected directly,
29606 # and sets the high bit in the cache file unless we assign to the vars.
29607 (
29608   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29609     eval ac_val=\$$ac_var
29610     case $ac_val in #(
29611     *${as_nl}*)
29612       case $ac_var in #(
29613       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29614 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29615       esac
29616       case $ac_var in #(
29617       _ | IFS | as_nl) ;; #(
29618       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29619       *) { eval $ac_var=; unset $ac_var;} ;;
29620       esac ;;
29621     esac
29622   done
29623
29624   (set) 2>&1 |
29625     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29626     *${as_nl}ac_space=\ *)
29627       # `set' does not quote correctly, so add quotes: double-quote
29628       # substitution turns \\\\ into \\, and sed turns \\ into \.
29629       sed -n \
29630         "s/'/'\\\\''/g;
29631           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29632       ;; #(
29633     *)
29634       # `set' quotes correctly as required by POSIX, so do not add quotes.
29635       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29636       ;;
29637     esac |
29638     sort
29639 ) |
29640   sed '
29641      /^ac_cv_env_/b end
29642      t clear
29643      :clear
29644      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29645      t end
29646      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29647      :end' >>confcache
29648 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29649   if test -w "$cache_file"; then
29650     if test "x$cache_file" != "x/dev/null"; then
29651       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29652 $as_echo "$as_me: updating cache $cache_file" >&6;}
29653       if test ! -f "$cache_file" || test -h "$cache_file"; then
29654         cat confcache >"$cache_file"
29655       else
29656         case $cache_file in #(
29657         */* | ?:*)
29658           mv -f confcache "$cache_file"$$ &&
29659           mv -f "$cache_file"$$ "$cache_file" ;; #(
29660         *)
29661           mv -f confcache "$cache_file" ;;
29662         esac
29663       fi
29664     fi
29665   else
29666     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29667 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29668   fi
29669 fi
29670 rm -f confcache
29671
29672 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29673 # Let make expand exec_prefix.
29674 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29675
29676 DEFS=-DHAVE_CONFIG_H
29677
29678 ac_libobjs=
29679 ac_ltlibobjs=
29680 U=
29681 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29682   # 1. Remove the extension, and $U if already installed.
29683   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29684   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29685   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29686   #    will be set to the directory where LIBOBJS objects are built.
29687   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29688   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29689 done
29690 LIBOBJS=$ac_libobjs
29691
29692 LTLIBOBJS=$ac_ltlibobjs
29693
29694
29695
29696
29697 : "${CONFIG_STATUS=./config.status}"
29698 ac_write_fail=0
29699 ac_clean_files_save=$ac_clean_files
29700 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29702 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29703 as_write_fail=0
29704 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29705 #! $SHELL
29706 # Generated by $as_me.
29707 # Run this file to recreate the current configuration.
29708 # Compiler output produced by configure, useful for debugging
29709 # configure, is in config.log if it exists.
29710
29711 debug=false
29712 ac_cs_recheck=false
29713 ac_cs_silent=false
29714
29715 SHELL=\${CONFIG_SHELL-$SHELL}
29716 export SHELL
29717 _ASEOF
29718 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29719 ## -------------------- ##
29720 ## M4sh Initialization. ##
29721 ## -------------------- ##
29722
29723 # Be more Bourne compatible
29724 DUALCASE=1; export DUALCASE # for MKS sh
29725 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29726   emulate sh
29727   NULLCMD=:
29728   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29729   # is contrary to our usage.  Disable this feature.
29730   alias -g '${1+"$@"}'='"$@"'
29731   setopt NO_GLOB_SUBST
29732 else
29733   case `(set -o) 2>/dev/null` in #(
29734   *posix*) :
29735     set -o posix ;; #(
29736   *) :
29737      ;;
29738 esac
29739 fi
29740
29741
29742 as_nl='
29743 '
29744 export as_nl
29745 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29746 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29747 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29748 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29749 # Prefer a ksh shell builtin over an external printf program on Solaris,
29750 # but without wasting forks for bash or zsh.
29751 if test -z "$BASH_VERSION$ZSH_VERSION" \
29752     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29753   as_echo='print -r --'
29754   as_echo_n='print -rn --'
29755 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29756   as_echo='printf %s\n'
29757   as_echo_n='printf %s'
29758 else
29759   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29760     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29761     as_echo_n='/usr/ucb/echo -n'
29762   else
29763     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29764     as_echo_n_body='eval
29765       arg=$1;
29766       case $arg in #(
29767       *"$as_nl"*)
29768         expr "X$arg" : "X\\(.*\\)$as_nl";
29769         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29770       esac;
29771       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29772     '
29773     export as_echo_n_body
29774     as_echo_n='sh -c $as_echo_n_body as_echo'
29775   fi
29776   export as_echo_body
29777   as_echo='sh -c $as_echo_body as_echo'
29778 fi
29779
29780 # The user is always right.
29781 if test "${PATH_SEPARATOR+set}" != set; then
29782   PATH_SEPARATOR=:
29783   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29784     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29785       PATH_SEPARATOR=';'
29786   }
29787 fi
29788
29789
29790 # IFS
29791 # We need space, tab and new line, in precisely that order.  Quoting is
29792 # there to prevent editors from complaining about space-tab.
29793 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29794 # splitting by setting IFS to empty value.)
29795 IFS=" ""        $as_nl"
29796
29797 # Find who we are.  Look in the path if we contain no directory separator.
29798 as_myself=
29799 case $0 in #((
29800   *[\\/]* ) as_myself=$0 ;;
29801   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29802 for as_dir in $PATH
29803 do
29804   IFS=$as_save_IFS
29805   test -z "$as_dir" && as_dir=.
29806     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29807   done
29808 IFS=$as_save_IFS
29809
29810      ;;
29811 esac
29812 # We did not find ourselves, most probably we were run as `sh COMMAND'
29813 # in which case we are not to be found in the path.
29814 if test "x$as_myself" = x; then
29815   as_myself=$0
29816 fi
29817 if test ! -f "$as_myself"; then
29818   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29819   exit 1
29820 fi
29821
29822 # Unset variables that we do not need and which cause bugs (e.g. in
29823 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29824 # suppresses any "Segmentation fault" message there.  '((' could
29825 # trigger a bug in pdksh 5.2.14.
29826 for as_var in BASH_ENV ENV MAIL MAILPATH
29827 do eval test x\${$as_var+set} = xset \
29828   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29829 done
29830 PS1='$ '
29831 PS2='> '
29832 PS4='+ '
29833
29834 # NLS nuisances.
29835 LC_ALL=C
29836 export LC_ALL
29837 LANGUAGE=C
29838 export LANGUAGE
29839
29840 # CDPATH.
29841 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29842
29843
29844 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29845 # ----------------------------------------
29846 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29847 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29848 # script with STATUS, using 1 if that was 0.
29849 as_fn_error ()
29850 {
29851   as_status=$1; test $as_status -eq 0 && as_status=1
29852   if test "$4"; then
29853     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29854     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29855   fi
29856   $as_echo "$as_me: error: $2" >&2
29857   as_fn_exit $as_status
29858 } # as_fn_error
29859
29860
29861 # as_fn_set_status STATUS
29862 # -----------------------
29863 # Set $? to STATUS, without forking.
29864 as_fn_set_status ()
29865 {
29866   return $1
29867 } # as_fn_set_status
29868
29869 # as_fn_exit STATUS
29870 # -----------------
29871 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29872 as_fn_exit ()
29873 {
29874   set +e
29875   as_fn_set_status $1
29876   exit $1
29877 } # as_fn_exit
29878
29879 # as_fn_unset VAR
29880 # ---------------
29881 # Portably unset VAR.
29882 as_fn_unset ()
29883 {
29884   { eval $1=; unset $1;}
29885 }
29886 as_unset=as_fn_unset
29887 # as_fn_append VAR VALUE
29888 # ----------------------
29889 # Append the text in VALUE to the end of the definition contained in VAR. Take
29890 # advantage of any shell optimizations that allow amortized linear growth over
29891 # repeated appends, instead of the typical quadratic growth present in naive
29892 # implementations.
29893 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29894   eval 'as_fn_append ()
29895   {
29896     eval $1+=\$2
29897   }'
29898 else
29899   as_fn_append ()
29900   {
29901     eval $1=\$$1\$2
29902   }
29903 fi # as_fn_append
29904
29905 # as_fn_arith ARG...
29906 # ------------------
29907 # Perform arithmetic evaluation on the ARGs, and store the result in the
29908 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29909 # must be portable across $(()) and expr.
29910 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29911   eval 'as_fn_arith ()
29912   {
29913     as_val=$(( $* ))
29914   }'
29915 else
29916   as_fn_arith ()
29917   {
29918     as_val=`expr "$@" || test $? -eq 1`
29919   }
29920 fi # as_fn_arith
29921
29922
29923 if expr a : '\(a\)' >/dev/null 2>&1 &&
29924    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29925   as_expr=expr
29926 else
29927   as_expr=false
29928 fi
29929
29930 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29931   as_basename=basename
29932 else
29933   as_basename=false
29934 fi
29935
29936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29937   as_dirname=dirname
29938 else
29939   as_dirname=false
29940 fi
29941
29942 as_me=`$as_basename -- "$0" ||
29943 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29944          X"$0" : 'X\(//\)$' \| \
29945          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29946 $as_echo X/"$0" |
29947     sed '/^.*\/\([^/][^/]*\)\/*$/{
29948             s//\1/
29949             q
29950           }
29951           /^X\/\(\/\/\)$/{
29952             s//\1/
29953             q
29954           }
29955           /^X\/\(\/\).*/{
29956             s//\1/
29957             q
29958           }
29959           s/.*/./; q'`
29960
29961 # Avoid depending upon Character Ranges.
29962 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29963 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29964 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29965 as_cr_digits='0123456789'
29966 as_cr_alnum=$as_cr_Letters$as_cr_digits
29967
29968 ECHO_C= ECHO_N= ECHO_T=
29969 case `echo -n x` in #(((((
29970 -n*)
29971   case `echo 'xy\c'` in
29972   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29973   xy)  ECHO_C='\c';;
29974   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29975        ECHO_T=' ';;
29976   esac;;
29977 *)
29978   ECHO_N='-n';;
29979 esac
29980
29981 rm -f conf$$ conf$$.exe conf$$.file
29982 if test -d conf$$.dir; then
29983   rm -f conf$$.dir/conf$$.file
29984 else
29985   rm -f conf$$.dir
29986   mkdir conf$$.dir 2>/dev/null
29987 fi
29988 if (echo >conf$$.file) 2>/dev/null; then
29989   if ln -s conf$$.file conf$$ 2>/dev/null; then
29990     as_ln_s='ln -s'
29991     # ... but there are two gotchas:
29992     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29993     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29994     # In both cases, we have to default to `cp -p'.
29995     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29996       as_ln_s='cp -p'
29997   elif ln conf$$.file conf$$ 2>/dev/null; then
29998     as_ln_s=ln
29999   else
30000     as_ln_s='cp -p'
30001   fi
30002 else
30003   as_ln_s='cp -p'
30004 fi
30005 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30006 rmdir conf$$.dir 2>/dev/null
30007
30008
30009 # as_fn_mkdir_p
30010 # -------------
30011 # Create "$as_dir" as a directory, including parents if necessary.
30012 as_fn_mkdir_p ()
30013 {
30014
30015   case $as_dir in #(
30016   -*) as_dir=./$as_dir;;
30017   esac
30018   test -d "$as_dir" || eval $as_mkdir_p || {
30019     as_dirs=
30020     while :; do
30021       case $as_dir in #(
30022       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30023       *) as_qdir=$as_dir;;
30024       esac
30025       as_dirs="'$as_qdir' $as_dirs"
30026       as_dir=`$as_dirname -- "$as_dir" ||
30027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30028          X"$as_dir" : 'X\(//\)[^/]' \| \
30029          X"$as_dir" : 'X\(//\)$' \| \
30030          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30031 $as_echo X"$as_dir" |
30032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30033             s//\1/
30034             q
30035           }
30036           /^X\(\/\/\)[^/].*/{
30037             s//\1/
30038             q
30039           }
30040           /^X\(\/\/\)$/{
30041             s//\1/
30042             q
30043           }
30044           /^X\(\/\).*/{
30045             s//\1/
30046             q
30047           }
30048           s/.*/./; q'`
30049       test -d "$as_dir" && break
30050     done
30051     test -z "$as_dirs" || eval "mkdir $as_dirs"
30052   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30053
30054
30055 } # as_fn_mkdir_p
30056 if mkdir -p . 2>/dev/null; then
30057   as_mkdir_p='mkdir -p "$as_dir"'
30058 else
30059   test -d ./-p && rmdir ./-p
30060   as_mkdir_p=false
30061 fi
30062
30063 if test -x / >/dev/null 2>&1; then
30064   as_test_x='test -x'
30065 else
30066   if ls -dL / >/dev/null 2>&1; then
30067     as_ls_L_option=L
30068   else
30069     as_ls_L_option=
30070   fi
30071   as_test_x='
30072     eval sh -c '\''
30073       if test -d "$1"; then
30074         test -d "$1/.";
30075       else
30076         case $1 in #(
30077         -*)set "./$1";;
30078         esac;
30079         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30080         ???[sx]*):;;*)false;;esac;fi
30081     '\'' sh
30082   '
30083 fi
30084 as_executable_p=$as_test_x
30085
30086 # Sed expression to map a string onto a valid CPP name.
30087 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30088
30089 # Sed expression to map a string onto a valid variable name.
30090 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30091
30092
30093 exec 6>&1
30094 ## ----------------------------------- ##
30095 ## Main body of $CONFIG_STATUS script. ##
30096 ## ----------------------------------- ##
30097 _ASEOF
30098 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30099
30100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30101 # Save the log message, to keep $0 and so on meaningful, and to
30102 # report actual input values of CONFIG_FILES etc. instead of their
30103 # values after options handling.
30104 ac_log="
30105 This file was extended by bacula $as_me 5.1.15, which was
30106 generated by GNU Autoconf 2.68.  Invocation command line was
30107
30108   CONFIG_FILES    = $CONFIG_FILES
30109   CONFIG_HEADERS  = $CONFIG_HEADERS
30110   CONFIG_LINKS    = $CONFIG_LINKS
30111   CONFIG_COMMANDS = $CONFIG_COMMANDS
30112   $ $0 $@
30113
30114 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30115 "
30116
30117 _ACEOF
30118
30119 case $ac_config_files in *"
30120 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30121 esac
30122
30123 case $ac_config_headers in *"
30124 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30125 esac
30126
30127
30128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30129 # Files that config.status was made for.
30130 config_files="$ac_config_files"
30131 config_headers="$ac_config_headers"
30132 config_commands="$ac_config_commands"
30133
30134 _ACEOF
30135
30136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30137 ac_cs_usage="\
30138 \`$as_me' instantiates files and other configuration actions
30139 from templates according to the current configuration.  Unless the files
30140 and actions are specified as TAGs, all are instantiated by default.
30141
30142 Usage: $0 [OPTION]... [TAG]...
30143
30144   -h, --help       print this help, then exit
30145   -V, --version    print version number and configuration settings, then exit
30146       --config     print configuration, then exit
30147   -q, --quiet, --silent
30148                    do not print progress messages
30149   -d, --debug      don't remove temporary files
30150       --recheck    update $as_me by reconfiguring in the same conditions
30151       --file=FILE[:TEMPLATE]
30152                    instantiate the configuration file FILE
30153       --header=FILE[:TEMPLATE]
30154                    instantiate the configuration header FILE
30155
30156 Configuration files:
30157 $config_files
30158
30159 Configuration headers:
30160 $config_headers
30161
30162 Configuration commands:
30163 $config_commands
30164
30165 Report bugs to the package provider."
30166
30167 _ACEOF
30168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30169 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30170 ac_cs_version="\\
30171 bacula config.status 5.1.15
30172 configured by $0, generated by GNU Autoconf 2.68,
30173   with options \\"\$ac_cs_config\\"
30174
30175 Copyright (C) 2010 Free Software Foundation, Inc.
30176 This config.status script is free software; the Free Software Foundation
30177 gives unlimited permission to copy, distribute and modify it."
30178
30179 ac_pwd='$ac_pwd'
30180 srcdir='$srcdir'
30181 INSTALL='$INSTALL'
30182 AWK='$AWK'
30183 test -n "\$AWK" || AWK=awk
30184 _ACEOF
30185
30186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30187 # The default lists apply if the user does not specify any file.
30188 ac_need_defaults=:
30189 while test $# != 0
30190 do
30191   case $1 in
30192   --*=?*)
30193     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30194     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30195     ac_shift=:
30196     ;;
30197   --*=)
30198     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30199     ac_optarg=
30200     ac_shift=:
30201     ;;
30202   *)
30203     ac_option=$1
30204     ac_optarg=$2
30205     ac_shift=shift
30206     ;;
30207   esac
30208
30209   case $ac_option in
30210   # Handling of the options.
30211   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30212     ac_cs_recheck=: ;;
30213   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30214     $as_echo "$ac_cs_version"; exit ;;
30215   --config | --confi | --conf | --con | --co | --c )
30216     $as_echo "$ac_cs_config"; exit ;;
30217   --debug | --debu | --deb | --de | --d | -d )
30218     debug=: ;;
30219   --file | --fil | --fi | --f )
30220     $ac_shift
30221     case $ac_optarg in
30222     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30223     '') as_fn_error $? "missing file argument" ;;
30224     esac
30225     as_fn_append CONFIG_FILES " '$ac_optarg'"
30226     ac_need_defaults=false;;
30227   --header | --heade | --head | --hea )
30228     $ac_shift
30229     case $ac_optarg in
30230     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30231     esac
30232     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30233     ac_need_defaults=false;;
30234   --he | --h)
30235     # Conflict between --help and --header
30236     as_fn_error $? "ambiguous option: \`$1'
30237 Try \`$0 --help' for more information.";;
30238   --help | --hel | -h )
30239     $as_echo "$ac_cs_usage"; exit ;;
30240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30241   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30242     ac_cs_silent=: ;;
30243
30244   # This is an error.
30245   -*) as_fn_error $? "unrecognized option: \`$1'
30246 Try \`$0 --help' for more information." ;;
30247
30248   *) as_fn_append ac_config_targets " $1"
30249      ac_need_defaults=false ;;
30250
30251   esac
30252   shift
30253 done
30254
30255 ac_configure_extra_args=
30256
30257 if $ac_cs_silent; then
30258   exec 6>/dev/null
30259   ac_configure_extra_args="$ac_configure_extra_args --silent"
30260 fi
30261
30262 _ACEOF
30263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30264 if \$ac_cs_recheck; then
30265   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30266   shift
30267   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30268   CONFIG_SHELL='$SHELL'
30269   export CONFIG_SHELL
30270   exec "\$@"
30271 fi
30272
30273 _ACEOF
30274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30275 exec 5>>config.log
30276 {
30277   echo
30278   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30279 ## Running $as_me. ##
30280 _ASBOX
30281   $as_echo "$ac_log"
30282 } >&5
30283
30284 _ACEOF
30285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30286 #
30287 # INIT-COMMANDS
30288 #
30289
30290
30291 # The HP-UX ksh and POSIX shell print the target directory to stdout
30292 # if CDPATH is set.
30293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30294
30295 sed_quote_subst='$sed_quote_subst'
30296 double_quote_subst='$double_quote_subst'
30297 delay_variable_subst='$delay_variable_subst'
30298 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30299 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30300 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30301 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30302 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30303 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30304 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30305 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30306 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30307 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30308 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30309 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30310 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30311 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30312 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30313 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30314 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30315 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30316 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30317 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30318 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30319 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30320 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30321 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30322 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30323 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30324 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30325 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30326 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30327 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30328 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30329 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30330 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30331 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30332 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30333 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30334 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30335 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30336 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30337 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30338 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30339 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30340 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30341 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30342 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"`'
30343 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"`'
30344 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30345 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30346 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30347 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30348 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30349 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30350 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30351 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30352 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30353 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30354 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30355 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30356 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30357 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30358 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30359 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30360 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30361 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30362 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30363 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30364 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30365 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30366 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30367 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30368 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30369 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30370 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30371 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30372 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30373 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30374 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30375 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30376 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30377 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30378 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30379 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30380 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30381 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30382 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30383 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30384 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30385 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30386 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30387 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30388 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30389 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30390 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30391 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30392 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30393 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30394 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30395 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30396 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30397 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30398 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30399 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30400 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30401 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30402 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30403 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30404 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30405 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30406 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30407 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30408 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30409 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30410 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30411 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30412 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30413 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30414 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30415 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30416 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30417 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30418 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30419 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30420 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30421 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30422 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30423 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30424 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30425 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30426 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30427 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30428 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30429 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30430 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30431 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30432 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30433 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30434 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30435 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30436 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30437 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30438 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30439 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30440 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30441 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30442 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30443 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30444 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30445 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30446 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30447 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30448 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30449 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30450 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30451 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30452 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30453 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30454 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30455 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30456 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30457 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30458 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30459 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30460 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30461 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30462 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30463 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30464 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30465 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30466 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30467 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30468 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30469
30470 LTCC='$LTCC'
30471 LTCFLAGS='$LTCFLAGS'
30472 compiler='$compiler_DEFAULT'
30473
30474 # Quote evaled strings.
30475 for var in SED \
30476 GREP \
30477 EGREP \
30478 FGREP \
30479 LD \
30480 NM \
30481 LN_S \
30482 lt_SP2NL \
30483 lt_NL2SP \
30484 reload_flag \
30485 OBJDUMP \
30486 deplibs_check_method \
30487 file_magic_cmd \
30488 AR \
30489 AR_FLAGS \
30490 STRIP \
30491 RANLIB \
30492 CC \
30493 CFLAGS \
30494 compiler \
30495 lt_cv_sys_global_symbol_pipe \
30496 lt_cv_sys_global_symbol_to_cdecl \
30497 lt_cv_sys_global_symbol_to_c_name_address \
30498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30499 SHELL \
30500 ECHO \
30501 lt_prog_compiler_no_builtin_flag \
30502 lt_prog_compiler_wl \
30503 lt_prog_compiler_pic \
30504 lt_prog_compiler_static \
30505 lt_cv_prog_compiler_c_o \
30506 need_locks \
30507 DSYMUTIL \
30508 NMEDIT \
30509 LIPO \
30510 OTOOL \
30511 OTOOL64 \
30512 shrext_cmds \
30513 export_dynamic_flag_spec \
30514 whole_archive_flag_spec \
30515 compiler_needs_object \
30516 with_gnu_ld \
30517 allow_undefined_flag \
30518 no_undefined_flag \
30519 hardcode_libdir_flag_spec \
30520 hardcode_libdir_flag_spec_ld \
30521 hardcode_libdir_separator \
30522 fix_srcfile_path \
30523 exclude_expsyms \
30524 include_expsyms \
30525 file_list_spec \
30526 variables_saved_for_relink \
30527 libname_spec \
30528 library_names_spec \
30529 soname_spec \
30530 finish_eval \
30531 old_striplib \
30532 striplib \
30533 compiler_lib_search_dirs \
30534 predep_objects \
30535 postdep_objects \
30536 predeps \
30537 postdeps \
30538 compiler_lib_search_path \
30539 LD_CXX \
30540 compiler_CXX \
30541 lt_prog_compiler_no_builtin_flag_CXX \
30542 lt_prog_compiler_wl_CXX \
30543 lt_prog_compiler_pic_CXX \
30544 lt_prog_compiler_static_CXX \
30545 lt_cv_prog_compiler_c_o_CXX \
30546 export_dynamic_flag_spec_CXX \
30547 whole_archive_flag_spec_CXX \
30548 compiler_needs_object_CXX \
30549 with_gnu_ld_CXX \
30550 allow_undefined_flag_CXX \
30551 no_undefined_flag_CXX \
30552 hardcode_libdir_flag_spec_CXX \
30553 hardcode_libdir_flag_spec_ld_CXX \
30554 hardcode_libdir_separator_CXX \
30555 fix_srcfile_path_CXX \
30556 exclude_expsyms_CXX \
30557 include_expsyms_CXX \
30558 file_list_spec_CXX \
30559 compiler_lib_search_dirs_CXX \
30560 predep_objects_CXX \
30561 postdep_objects_CXX \
30562 predeps_CXX \
30563 postdeps_CXX \
30564 compiler_lib_search_path_CXX; do
30565     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30566     *[\\\\\\\`\\"\\\$]*)
30567       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30568       ;;
30569     *)
30570       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30571       ;;
30572     esac
30573 done
30574
30575 # Double-quote double-evaled strings.
30576 for var in reload_cmds \
30577 old_postinstall_cmds \
30578 old_postuninstall_cmds \
30579 old_archive_cmds \
30580 extract_expsyms_cmds \
30581 old_archive_from_new_cmds \
30582 old_archive_from_expsyms_cmds \
30583 archive_cmds \
30584 archive_expsym_cmds \
30585 module_cmds \
30586 module_expsym_cmds \
30587 export_symbols_cmds \
30588 prelink_cmds \
30589 postinstall_cmds \
30590 postuninstall_cmds \
30591 finish_cmds \
30592 sys_lib_search_path_spec \
30593 sys_lib_dlsearch_path_spec \
30594 old_archive_cmds_CXX \
30595 old_archive_from_new_cmds_CXX \
30596 old_archive_from_expsyms_cmds_CXX \
30597 archive_cmds_CXX \
30598 archive_expsym_cmds_CXX \
30599 module_cmds_CXX \
30600 module_expsym_cmds_CXX \
30601 export_symbols_cmds_CXX \
30602 prelink_cmds_CXX; do
30603     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30604     *[\\\\\\\`\\"\\\$]*)
30605       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30606       ;;
30607     *)
30608       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30609       ;;
30610     esac
30611 done
30612
30613 # Fix-up fallback echo if it was mangled by the above quoting rules.
30614 case \$lt_ECHO in
30615 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30616   ;;
30617 esac
30618
30619 ac_aux_dir='$ac_aux_dir'
30620 xsi_shell='$xsi_shell'
30621 lt_shell_append='$lt_shell_append'
30622
30623 # See if we are running on zsh, and set the options which allow our
30624 # commands through without removal of \ escapes INIT.
30625 if test -n "\${ZSH_VERSION+set}" ; then
30626    setopt NO_GLOB_SUBST
30627 fi
30628
30629
30630     PACKAGE='$PACKAGE'
30631     VERSION='$VERSION'
30632     TIMESTAMP='$TIMESTAMP'
30633     RM='$RM'
30634     ofile='$ofile'
30635
30636
30637
30638
30639
30640 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30641     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30642     # from automake.
30643     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30644     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30645     LINGUAS="${LINGUAS-%UNSET%}"
30646
30647
30648 _ACEOF
30649
30650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30651
30652 # Handling of arguments.
30653 for ac_config_target in $ac_config_targets
30654 do
30655   case $ac_config_target in
30656     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30657     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30658     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30659     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30660     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30661     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30662     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30663     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30664     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30665     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30666     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30667     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30668     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30669     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30670     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30671     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30672     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30673     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30674     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30675     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30676     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30677     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30678     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30679     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30680     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30681     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30682     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30683     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30684     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30685     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30686     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30687     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30688     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30689     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30690     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30691     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30692     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30693     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30694     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30695     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30696     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30697     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30698     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30699     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30700     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30701     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30702     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30703     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30704     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30705     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30706     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30707     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30708     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30709     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30710     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30711     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30712     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30713     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30714     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30715     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30716     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30717     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30718     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30719     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30720     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30721     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30722     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30723     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30724     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30725     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30726     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30727     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30728     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30729     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30730     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30731     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30732     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30733     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30734     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30735     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30736     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30737     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30738     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30739     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30740     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30741     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30742     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30743     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30744     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30745     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30746     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30747     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30748     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30749     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30750     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30751     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30752     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30753     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30754     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30755     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30756     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30757     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30758     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30759     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30760     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30761     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30762
30763   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30764   esac
30765 done
30766
30767
30768 # If the user did not use the arguments to specify the items to instantiate,
30769 # then the envvar interface is used.  Set only those that are not.
30770 # We use the long form for the default assignment because of an extremely
30771 # bizarre bug on SunOS 4.1.3.
30772 if $ac_need_defaults; then
30773   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30774   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30775   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30776 fi
30777
30778 # Have a temporary directory for convenience.  Make it in the build tree
30779 # simply because there is no reason against having it here, and in addition,
30780 # creating and moving files from /tmp can sometimes cause problems.
30781 # Hook for its removal unless debugging.
30782 # Note that there is a small window in which the directory will not be cleaned:
30783 # after its creation but before its name has been assigned to `$tmp'.
30784 $debug ||
30785 {
30786   tmp= ac_tmp=
30787   trap 'exit_status=$?
30788   : "${ac_tmp:=$tmp}"
30789   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30790 ' 0
30791   trap 'as_fn_exit 1' 1 2 13 15
30792 }
30793 # Create a (secure) tmp directory for tmp files.
30794
30795 {
30796   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30797   test -d "$tmp"
30798 }  ||
30799 {
30800   tmp=./conf$$-$RANDOM
30801   (umask 077 && mkdir "$tmp")
30802 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30803 ac_tmp=$tmp
30804
30805 # Set up the scripts for CONFIG_FILES section.
30806 # No need to generate them if there are no CONFIG_FILES.
30807 # This happens for instance with `./config.status config.h'.
30808 if test -n "$CONFIG_FILES"; then
30809
30810 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30811   ac_cs_awk_getline=:
30812   ac_cs_awk_pipe_init=
30813   ac_cs_awk_read_file='
30814       while ((getline aline < (F[key])) > 0)
30815         print(aline)
30816       close(F[key])'
30817   ac_cs_awk_pipe_fini=
30818 else
30819   ac_cs_awk_getline=false
30820   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30821   ac_cs_awk_read_file='
30822       print "|#_!!_#|"
30823       print "cat " F[key] " &&"
30824       '$ac_cs_awk_pipe_init
30825   # The final `:' finishes the AND list.
30826   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30827 fi
30828 ac_cr=`echo X | tr X '\015'`
30829 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30830 # But we know of no other shell where ac_cr would be empty at this
30831 # point, so we can use a bashism as a fallback.
30832 if test "x$ac_cr" = x; then
30833   eval ac_cr=\$\'\\r\'
30834 fi
30835 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30836 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30837   ac_cs_awk_cr='\\r'
30838 else
30839   ac_cs_awk_cr=$ac_cr
30840 fi
30841
30842 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30843 _ACEOF
30844
30845 # Create commands to substitute file output variables.
30846 {
30847   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30848   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
30849   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30850   echo "_ACAWK" &&
30851   echo "_ACEOF"
30852 } >conf$$files.sh &&
30853 . ./conf$$files.sh ||
30854   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30855 rm -f conf$$files.sh
30856
30857 {
30858   echo "cat >conf$$subs.awk <<_ACEOF" &&
30859   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30860   echo "_ACEOF"
30861 } >conf$$subs.sh ||
30862   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30863 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30864 ac_delim='%!_!# '
30865 for ac_last_try in false false false false false :; do
30866   . ./conf$$subs.sh ||
30867     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30868
30869   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30870   if test $ac_delim_n = $ac_delim_num; then
30871     break
30872   elif $ac_last_try; then
30873     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30874   else
30875     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30876   fi
30877 done
30878 rm -f conf$$subs.sh
30879
30880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30881 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30882 _ACEOF
30883 sed -n '
30884 h
30885 s/^/S["/; s/!.*/"]=/
30886 p
30887 g
30888 s/^[^!]*!//
30889 :repl
30890 t repl
30891 s/'"$ac_delim"'$//
30892 t delim
30893 :nl
30894 h
30895 s/\(.\{148\}\)..*/\1/
30896 t more1
30897 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30898 p
30899 n
30900 b repl
30901 :more1
30902 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30903 p
30904 g
30905 s/.\{148\}//
30906 t nl
30907 :delim
30908 h
30909 s/\(.\{148\}\)..*/\1/
30910 t more2
30911 s/["\\]/\\&/g; s/^/"/; s/$/"/
30912 p
30913 b
30914 :more2
30915 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30916 p
30917 g
30918 s/.\{148\}//
30919 t delim
30920 ' <conf$$subs.awk | sed '
30921 /^[^""]/{
30922   N
30923   s/\n//
30924 }
30925 ' >>$CONFIG_STATUS || ac_write_fail=1
30926 rm -f conf$$subs.awk
30927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30928 _ACAWK
30929 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30930   for (key in S) S_is_set[key] = 1
30931   FS = "\a"
30932   \$ac_cs_awk_pipe_init
30933 }
30934 {
30935   line = $ 0
30936   nfields = split(line, field, "@")
30937   substed = 0
30938   len = length(field[1])
30939   for (i = 2; i < nfields; i++) {
30940     key = field[i]
30941     keylen = length(key)
30942     if (S_is_set[key]) {
30943       value = S[key]
30944       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30945       len += length(value) + length(field[++i])
30946       substed = 1
30947     } else
30948       len += 1 + keylen
30949   }
30950   if (nfields == 3 && !substed) {
30951     key = field[2]
30952     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30953       \$ac_cs_awk_read_file
30954       next
30955     }
30956   }
30957   print line
30958 }
30959 \$ac_cs_awk_pipe_fini
30960 _ACAWK
30961 _ACEOF
30962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30963 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30964   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30965 else
30966   cat
30967 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30968   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30969 _ACEOF
30970
30971 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30972 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30973 # trailing colons and then remove the whole line if VPATH becomes empty
30974 # (actually we leave an empty line to preserve line numbers).
30975 if test "x$srcdir" = x.; then
30976   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
30977 h
30978 s///
30979 s/^/:/
30980 s/[      ]*$/:/
30981 s/:\$(srcdir):/:/g
30982 s/:\${srcdir}:/:/g
30983 s/:@srcdir@:/:/g
30984 s/^:*//
30985 s/:*$//
30986 x
30987 s/\(=[   ]*\).*/\1/
30988 G
30989 s/\n//
30990 s/^[^=]*=[       ]*$//
30991 }'
30992 fi
30993
30994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30995 fi # test -n "$CONFIG_FILES"
30996
30997 # Set up the scripts for CONFIG_HEADERS section.
30998 # No need to generate them if there are no CONFIG_HEADERS.
30999 # This happens for instance with `./config.status Makefile'.
31000 if test -n "$CONFIG_HEADERS"; then
31001 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31002 BEGIN {
31003 _ACEOF
31004
31005 # Transform confdefs.h into an awk script `defines.awk', embedded as
31006 # here-document in config.status, that substitutes the proper values into
31007 # config.h.in to produce config.h.
31008
31009 # Create a delimiter string that does not exist in confdefs.h, to ease
31010 # handling of long lines.
31011 ac_delim='%!_!# '
31012 for ac_last_try in false false :; do
31013   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31014   if test -z "$ac_tt"; then
31015     break
31016   elif $ac_last_try; then
31017     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31018   else
31019     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31020   fi
31021 done
31022
31023 # For the awk script, D is an array of macro values keyed by name,
31024 # likewise P contains macro parameters if any.  Preserve backslash
31025 # newline sequences.
31026
31027 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31028 sed -n '
31029 s/.\{148\}/&'"$ac_delim"'/g
31030 t rset
31031 :rset
31032 s/^[     ]*#[    ]*define[       ][      ]*/ /
31033 t def
31034 d
31035 :def
31036 s/\\$//
31037 t bsnl
31038 s/["\\]/\\&/g
31039 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31040 D["\1"]=" \3"/p
31041 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31042 d
31043 :bsnl
31044 s/["\\]/\\&/g
31045 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31046 D["\1"]=" \3\\\\\\n"\\/p
31047 t cont
31048 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31049 t cont
31050 d
31051 :cont
31052 n
31053 s/.\{148\}/&'"$ac_delim"'/g
31054 t clear
31055 :clear
31056 s/\\$//
31057 t bsnlc
31058 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31059 d
31060 :bsnlc
31061 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31062 b cont
31063 ' <confdefs.h | sed '
31064 s/'"$ac_delim"'/"\\\
31065 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31066
31067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31068   for (key in D) D_is_set[key] = 1
31069   FS = "\a"
31070 }
31071 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31072   line = \$ 0
31073   split(line, arg, " ")
31074   if (arg[1] == "#") {
31075     defundef = arg[2]
31076     mac1 = arg[3]
31077   } else {
31078     defundef = substr(arg[1], 2)
31079     mac1 = arg[2]
31080   }
31081   split(mac1, mac2, "(") #)
31082   macro = mac2[1]
31083   prefix = substr(line, 1, index(line, defundef) - 1)
31084   if (D_is_set[macro]) {
31085     # Preserve the white space surrounding the "#".
31086     print prefix "define", macro P[macro] D[macro]
31087     next
31088   } else {
31089     # Replace #undef with comments.  This is necessary, for example,
31090     # in the case of _POSIX_SOURCE, which is predefined and required
31091     # on some systems where configure will not decide to define it.
31092     if (defundef == "undef") {
31093       print "/*", prefix defundef, macro, "*/"
31094       next
31095     }
31096   }
31097 }
31098 { print }
31099 _ACAWK
31100 _ACEOF
31101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31102   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31103 fi # test -n "$CONFIG_HEADERS"
31104
31105
31106 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31107 shift
31108 for ac_tag
31109 do
31110   case $ac_tag in
31111   :[FHLC]) ac_mode=$ac_tag; continue;;
31112   esac
31113   case $ac_mode$ac_tag in
31114   :[FHL]*:*);;
31115   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31116   :[FH]-) ac_tag=-:-;;
31117   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31118   esac
31119   ac_save_IFS=$IFS
31120   IFS=:
31121   set x $ac_tag
31122   IFS=$ac_save_IFS
31123   shift
31124   ac_file=$1
31125   shift
31126
31127   case $ac_mode in
31128   :L) ac_source=$1;;
31129   :[FH])
31130     ac_file_inputs=
31131     for ac_f
31132     do
31133       case $ac_f in
31134       -) ac_f="$ac_tmp/stdin";;
31135       *) # Look for the file first in the build tree, then in the source tree
31136          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31137          # because $ac_f cannot contain `:'.
31138          test -f "$ac_f" ||
31139            case $ac_f in
31140            [\\/$]*) false;;
31141            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31142            esac ||
31143            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31144       esac
31145       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31146       as_fn_append ac_file_inputs " '$ac_f'"
31147     done
31148
31149     # Let's still pretend it is `configure' which instantiates (i.e., don't
31150     # use $as_me), people would be surprised to read:
31151     #    /* config.h.  Generated by config.status.  */
31152     configure_input='Generated from '`
31153           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31154         `' by configure.'
31155     if test x"$ac_file" != x-; then
31156       configure_input="$ac_file.  $configure_input"
31157       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31158 $as_echo "$as_me: creating $ac_file" >&6;}
31159     fi
31160     # Neutralize special characters interpreted by sed in replacement strings.
31161     case $configure_input in #(
31162     *\&* | *\|* | *\\* )
31163        ac_sed_conf_input=`$as_echo "$configure_input" |
31164        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31165     *) ac_sed_conf_input=$configure_input;;
31166     esac
31167
31168     case $ac_tag in
31169     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31170       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31171     esac
31172     ;;
31173   esac
31174
31175   ac_dir=`$as_dirname -- "$ac_file" ||
31176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31177          X"$ac_file" : 'X\(//\)[^/]' \| \
31178          X"$ac_file" : 'X\(//\)$' \| \
31179          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31180 $as_echo X"$ac_file" |
31181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31182             s//\1/
31183             q
31184           }
31185           /^X\(\/\/\)[^/].*/{
31186             s//\1/
31187             q
31188           }
31189           /^X\(\/\/\)$/{
31190             s//\1/
31191             q
31192           }
31193           /^X\(\/\).*/{
31194             s//\1/
31195             q
31196           }
31197           s/.*/./; q'`
31198   as_dir="$ac_dir"; as_fn_mkdir_p
31199   ac_builddir=.
31200
31201 case "$ac_dir" in
31202 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31203 *)
31204   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31205   # A ".." for each directory in $ac_dir_suffix.
31206   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31207   case $ac_top_builddir_sub in
31208   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31209   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31210   esac ;;
31211 esac
31212 ac_abs_top_builddir=$ac_pwd
31213 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31214 # for backward compatibility:
31215 ac_top_builddir=$ac_top_build_prefix
31216
31217 case $srcdir in
31218   .)  # We are building in place.
31219     ac_srcdir=.
31220     ac_top_srcdir=$ac_top_builddir_sub
31221     ac_abs_top_srcdir=$ac_pwd ;;
31222   [\\/]* | ?:[\\/]* )  # Absolute name.
31223     ac_srcdir=$srcdir$ac_dir_suffix;
31224     ac_top_srcdir=$srcdir
31225     ac_abs_top_srcdir=$srcdir ;;
31226   *) # Relative name.
31227     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31228     ac_top_srcdir=$ac_top_build_prefix$srcdir
31229     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31230 esac
31231 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31232
31233
31234   case $ac_mode in
31235   :F)
31236   #
31237   # CONFIG_FILE
31238   #
31239
31240   case $INSTALL in
31241   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31242   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31243   esac
31244 _ACEOF
31245
31246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31247 # If the template does not know about datarootdir, expand it.
31248 # FIXME: This hack should be removed a few years after 2.60.
31249 ac_datarootdir_hack=; ac_datarootdir_seen=
31250 ac_sed_dataroot='
31251 /datarootdir/ {
31252   p
31253   q
31254 }
31255 /@datadir@/p
31256 /@docdir@/p
31257 /@infodir@/p
31258 /@localedir@/p
31259 /@mandir@/p'
31260 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31261 *datarootdir*) ac_datarootdir_seen=yes;;
31262 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31263   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31264 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31265 _ACEOF
31266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31267   ac_datarootdir_hack='
31268   s&@datadir@&$datadir&g
31269   s&@docdir@&$docdir&g
31270   s&@infodir@&$infodir&g
31271   s&@localedir@&$localedir&g
31272   s&@mandir@&$mandir&g
31273   s&\\\${datarootdir}&$datarootdir&g' ;;
31274 esac
31275 _ACEOF
31276
31277 # Neutralize VPATH when `$srcdir' = `.'.
31278 # Shell code in configure.ac might set extrasub.
31279 # FIXME: do we really want to maintain this feature?
31280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31281 ac_sed_extra="$ac_vpsub
31282 $extrasub
31283 _ACEOF
31284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31285 :t
31286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31287 s|@configure_input@|$ac_sed_conf_input|;t t
31288 s&@top_builddir@&$ac_top_builddir_sub&;t t
31289 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31290 s&@srcdir@&$ac_srcdir&;t t
31291 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31292 s&@top_srcdir@&$ac_top_srcdir&;t t
31293 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31294 s&@builddir@&$ac_builddir&;t t
31295 s&@abs_builddir@&$ac_abs_builddir&;t t
31296 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31297 s&@INSTALL@&$ac_INSTALL&;t t
31298 $ac_datarootdir_hack
31299 "
31300 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31301 if $ac_cs_awk_getline; then
31302   $AWK -f "$ac_tmp/subs.awk"
31303 else
31304   $AWK -f "$ac_tmp/subs.awk" | $SHELL
31305 fi \
31306   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31307
31308 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31309   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31310   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
31311       "$ac_tmp/out"`; test -z "$ac_out"; } &&
31312   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31313 which seems to be undefined.  Please make sure it is defined" >&5
31314 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31315 which seems to be undefined.  Please make sure it is defined" >&2;}
31316
31317   rm -f "$ac_tmp/stdin"
31318   case $ac_file in
31319   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31320   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31321   esac \
31322   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31323  ;;
31324   :H)
31325   #
31326   # CONFIG_HEADER
31327   #
31328   if test x"$ac_file" != x-; then
31329     {
31330       $as_echo "/* $configure_input  */" \
31331       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31332     } >"$ac_tmp/config.h" \
31333       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31334     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31335       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31336 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31337     else
31338       rm -f "$ac_file"
31339       mv "$ac_tmp/config.h" "$ac_file" \
31340         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31341     fi
31342   else
31343     $as_echo "/* $configure_input  */" \
31344       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31345       || as_fn_error $? "could not create -" "$LINENO" 5
31346   fi
31347  ;;
31348
31349   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31350 $as_echo "$as_me: executing $ac_file commands" >&6;}
31351  ;;
31352   esac
31353
31354
31355   case $ac_file$ac_mode in
31356     "libtool":C)
31357
31358     # See if we are running on zsh, and set the options which allow our
31359     # commands through without removal of \ escapes.
31360     if test -n "${ZSH_VERSION+set}" ; then
31361       setopt NO_GLOB_SUBST
31362     fi
31363
31364     cfgfile="${ofile}T"
31365     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31366     $RM "$cfgfile"
31367
31368     cat <<_LT_EOF >> "$cfgfile"
31369 #! $SHELL
31370
31371 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31372 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31373 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31374 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31375 #
31376 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31377 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31378 #   Written by Gordon Matzigkeit, 1996
31379 #
31380 #   This file is part of GNU Libtool.
31381 #
31382 # GNU Libtool is free software; you can redistribute it and/or
31383 # modify it under the terms of the GNU General Public License as
31384 # published by the Free Software Foundation; either version 2 of
31385 # the License, or (at your option) any later version.
31386 #
31387 # As a special exception to the GNU General Public License,
31388 # if you distribute this file as part of a program or library that
31389 # is built using GNU Libtool, you may include this file under the
31390 # same distribution terms that you use for the rest of that program.
31391 #
31392 # GNU Libtool is distributed in the hope that it will be useful,
31393 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31395 # GNU General Public License for more details.
31396 #
31397 # You should have received a copy of the GNU General Public License
31398 # along with GNU Libtool; see the file COPYING.  If not, a copy
31399 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31400 # obtained by writing to the Free Software Foundation, Inc.,
31401 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31402
31403
31404 # The names of the tagged configurations supported by this script.
31405 available_tags="CXX "
31406
31407 # ### BEGIN LIBTOOL CONFIG
31408
31409 # Which release of libtool.m4 was used?
31410 macro_version=$macro_version
31411 macro_revision=$macro_revision
31412
31413 # Whether or not to build shared libraries.
31414 build_libtool_libs=$enable_shared
31415
31416 # Whether or not to build static libraries.
31417 build_old_libs=$enable_static
31418
31419 # What type of objects to build.
31420 pic_mode=$pic_mode
31421
31422 # Whether or not to optimize for fast installation.
31423 fast_install=$enable_fast_install
31424
31425 # The host system.
31426 host_alias=$host_alias
31427 host=$host
31428 host_os=$host_os
31429
31430 # The build system.
31431 build_alias=$build_alias
31432 build=$build
31433 build_os=$build_os
31434
31435 # A sed program that does not truncate output.
31436 SED=$lt_SED
31437
31438 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31439 Xsed="\$SED -e 1s/^X//"
31440
31441 # A grep program that handles long lines.
31442 GREP=$lt_GREP
31443
31444 # An ERE matcher.
31445 EGREP=$lt_EGREP
31446
31447 # A literal string matcher.
31448 FGREP=$lt_FGREP
31449
31450 # A BSD- or MS-compatible name lister.
31451 NM=$lt_NM
31452
31453 # Whether we need soft or hard links.
31454 LN_S=$lt_LN_S
31455
31456 # What is the maximum length of a command?
31457 max_cmd_len=$max_cmd_len
31458
31459 # Object file suffix (normally "o").
31460 objext=$ac_objext
31461
31462 # Executable file suffix (normally "").
31463 exeext=$exeext
31464
31465 # whether the shell understands "unset".
31466 lt_unset=$lt_unset
31467
31468 # turn spaces into newlines.
31469 SP2NL=$lt_lt_SP2NL
31470
31471 # turn newlines into spaces.
31472 NL2SP=$lt_lt_NL2SP
31473
31474 # How to create reloadable object files.
31475 reload_flag=$lt_reload_flag
31476 reload_cmds=$lt_reload_cmds
31477
31478 # An object symbol dumper.
31479 OBJDUMP=$lt_OBJDUMP
31480
31481 # Method to check whether dependent libraries are shared objects.
31482 deplibs_check_method=$lt_deplibs_check_method
31483
31484 # Command to use when deplibs_check_method == "file_magic".
31485 file_magic_cmd=$lt_file_magic_cmd
31486
31487 # The archiver.
31488 AR=$lt_AR
31489 AR_FLAGS=$lt_AR_FLAGS
31490
31491 # A symbol stripping program.
31492 STRIP=$lt_STRIP
31493
31494 # Commands used to install an old-style archive.
31495 RANLIB=$lt_RANLIB
31496 old_postinstall_cmds=$lt_old_postinstall_cmds
31497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31498
31499 # A C compiler.
31500 LTCC=$lt_CC
31501
31502 # LTCC compiler flags.
31503 LTCFLAGS=$lt_CFLAGS
31504
31505 # Take the output of nm and produce a listing of raw symbols and C names.
31506 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31507
31508 # Transform the output of nm in a proper C declaration.
31509 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31510
31511 # Transform the output of nm in a C name address pair.
31512 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31513
31514 # Transform the output of nm in a C name address pair when lib prefix is needed.
31515 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31516
31517 # The name of the directory that contains temporary libtool files.
31518 objdir=$objdir
31519
31520 # Shell to use when invoking shell scripts.
31521 SHELL=$lt_SHELL
31522
31523 # An echo program that does not interpret backslashes.
31524 ECHO=$lt_ECHO
31525
31526 # Used to examine libraries when file_magic_cmd begins with "file".
31527 MAGIC_CMD=$MAGIC_CMD
31528
31529 # Must we lock files when doing compilation?
31530 need_locks=$lt_need_locks
31531
31532 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31533 DSYMUTIL=$lt_DSYMUTIL
31534
31535 # Tool to change global to local symbols on Mac OS X.
31536 NMEDIT=$lt_NMEDIT
31537
31538 # Tool to manipulate fat objects and archives on Mac OS X.
31539 LIPO=$lt_LIPO
31540
31541 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31542 OTOOL=$lt_OTOOL
31543
31544 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31545 OTOOL64=$lt_OTOOL64
31546
31547 # Old archive suffix (normally "a").
31548 libext=$libext
31549
31550 # Shared library suffix (normally ".so").
31551 shrext_cmds=$lt_shrext_cmds
31552
31553 # The commands to extract the exported symbol list from a shared archive.
31554 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31555
31556 # Variables whose values should be saved in libtool wrapper scripts and
31557 # restored at link time.
31558 variables_saved_for_relink=$lt_variables_saved_for_relink
31559
31560 # Do we need the "lib" prefix for modules?
31561 need_lib_prefix=$need_lib_prefix
31562
31563 # Do we need a version for libraries?
31564 need_version=$need_version
31565
31566 # Library versioning type.
31567 version_type=$version_type
31568
31569 # Shared library runtime path variable.
31570 runpath_var=$runpath_var
31571
31572 # Shared library path variable.
31573 shlibpath_var=$shlibpath_var
31574
31575 # Is shlibpath searched before the hard-coded library search path?
31576 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31577
31578 # Format of library name prefix.
31579 libname_spec=$lt_libname_spec
31580
31581 # List of archive names.  First name is the real one, the rest are links.
31582 # The last name is the one that the linker finds with -lNAME
31583 library_names_spec=$lt_library_names_spec
31584
31585 # The coded name of the library, if different from the real name.
31586 soname_spec=$lt_soname_spec
31587
31588 # Command to use after installation of a shared archive.
31589 postinstall_cmds=$lt_postinstall_cmds
31590
31591 # Command to use after uninstallation of a shared archive.
31592 postuninstall_cmds=$lt_postuninstall_cmds
31593
31594 # Commands used to finish a libtool library installation in a directory.
31595 finish_cmds=$lt_finish_cmds
31596
31597 # As "finish_cmds", except a single script fragment to be evaled but
31598 # not shown.
31599 finish_eval=$lt_finish_eval
31600
31601 # Whether we should hardcode library paths into libraries.
31602 hardcode_into_libs=$hardcode_into_libs
31603
31604 # Compile-time system search path for libraries.
31605 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31606
31607 # Run-time system search path for libraries.
31608 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31609
31610 # Whether dlopen is supported.
31611 dlopen_support=$enable_dlopen
31612
31613 # Whether dlopen of programs is supported.
31614 dlopen_self=$enable_dlopen_self
31615
31616 # Whether dlopen of statically linked programs is supported.
31617 dlopen_self_static=$enable_dlopen_self_static
31618
31619 # Commands to strip libraries.
31620 old_striplib=$lt_old_striplib
31621 striplib=$lt_striplib
31622
31623
31624 # The linker used to build libraries.
31625 LD=$lt_LD
31626
31627 # Commands used to build an old-style archive.
31628 old_archive_cmds=$lt_old_archive_cmds
31629
31630 # A language specific compiler.
31631 CC=$lt_compiler
31632
31633 # Is the compiler the GNU compiler?
31634 with_gcc=$GCC
31635
31636 # Compiler flag to turn off builtin functions.
31637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31638
31639 # How to pass a linker flag through the compiler.
31640 wl=$lt_lt_prog_compiler_wl
31641
31642 # Additional compiler flags for building library objects.
31643 pic_flag=$lt_lt_prog_compiler_pic
31644
31645 # Compiler flag to prevent dynamic linking.
31646 link_static_flag=$lt_lt_prog_compiler_static
31647
31648 # Does compiler simultaneously support -c and -o options?
31649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31650
31651 # Whether or not to add -lc for building shared libraries.
31652 build_libtool_need_lc=$archive_cmds_need_lc
31653
31654 # Whether or not to disallow shared libs when runtime libs are static.
31655 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31656
31657 # Compiler flag to allow reflexive dlopens.
31658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31659
31660 # Compiler flag to generate shared objects directly from archives.
31661 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31662
31663 # Whether the compiler copes with passing no objects directly.
31664 compiler_needs_object=$lt_compiler_needs_object
31665
31666 # Create an old-style archive from a shared archive.
31667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31668
31669 # Create a temporary old-style archive to link instead of a shared archive.
31670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31671
31672 # Commands used to build a shared archive.
31673 archive_cmds=$lt_archive_cmds
31674 archive_expsym_cmds=$lt_archive_expsym_cmds
31675
31676 # Commands used to build a loadable module if different from building
31677 # a shared archive.
31678 module_cmds=$lt_module_cmds
31679 module_expsym_cmds=$lt_module_expsym_cmds
31680
31681 # Whether we are building with GNU ld or not.
31682 with_gnu_ld=$lt_with_gnu_ld
31683
31684 # Flag that allows shared libraries with undefined symbols to be built.
31685 allow_undefined_flag=$lt_allow_undefined_flag
31686
31687 # Flag that enforces no undefined symbols.
31688 no_undefined_flag=$lt_no_undefined_flag
31689
31690 # Flag to hardcode \$libdir into a binary during linking.
31691 # This must work even if \$libdir does not exist
31692 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31693
31694 # If ld is used when linking, flag to hardcode \$libdir into a binary
31695 # during linking.  This must work even if \$libdir does not exist.
31696 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31697
31698 # Whether we need a single "-rpath" flag with a separated argument.
31699 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31700
31701 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31702 # DIR into the resulting binary.
31703 hardcode_direct=$hardcode_direct
31704
31705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31706 # DIR into the resulting binary and the resulting library dependency is
31707 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31708 # library is relocated.
31709 hardcode_direct_absolute=$hardcode_direct_absolute
31710
31711 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31712 # into the resulting binary.
31713 hardcode_minus_L=$hardcode_minus_L
31714
31715 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31716 # into the resulting binary.
31717 hardcode_shlibpath_var=$hardcode_shlibpath_var
31718
31719 # Set to "yes" if building a shared library automatically hardcodes DIR
31720 # into the library and all subsequent libraries and executables linked
31721 # against it.
31722 hardcode_automatic=$hardcode_automatic
31723
31724 # Set to yes if linker adds runtime paths of dependent libraries
31725 # to runtime path list.
31726 inherit_rpath=$inherit_rpath
31727
31728 # Whether libtool must link a program against all its dependency libraries.
31729 link_all_deplibs=$link_all_deplibs
31730
31731 # Fix the shell variable \$srcfile for the compiler.
31732 fix_srcfile_path=$lt_fix_srcfile_path
31733
31734 # Set to "yes" if exported symbols are required.
31735 always_export_symbols=$always_export_symbols
31736
31737 # The commands to list exported symbols.
31738 export_symbols_cmds=$lt_export_symbols_cmds
31739
31740 # Symbols that should not be listed in the preloaded symbols.
31741 exclude_expsyms=$lt_exclude_expsyms
31742
31743 # Symbols that must always be exported.
31744 include_expsyms=$lt_include_expsyms
31745
31746 # Commands necessary for linking programs (against libraries) with templates.
31747 prelink_cmds=$lt_prelink_cmds
31748
31749 # Specify filename containing input files.
31750 file_list_spec=$lt_file_list_spec
31751
31752 # How to hardcode a shared library path into an executable.
31753 hardcode_action=$hardcode_action
31754
31755 # The directories searched by this compiler when creating a shared library.
31756 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31757
31758 # Dependencies to place before and after the objects being linked to
31759 # create a shared library.
31760 predep_objects=$lt_predep_objects
31761 postdep_objects=$lt_postdep_objects
31762 predeps=$lt_predeps
31763 postdeps=$lt_postdeps
31764
31765 # The library search path used internally by the compiler when linking
31766 # a shared library.
31767 compiler_lib_search_path=$lt_compiler_lib_search_path
31768
31769 # ### END LIBTOOL CONFIG
31770
31771 _LT_EOF
31772
31773   case $host_os in
31774   aix3*)
31775     cat <<\_LT_EOF >> "$cfgfile"
31776 # AIX sometimes has problems with the GCC collect2 program.  For some
31777 # reason, if we set the COLLECT_NAMES environment variable, the problems
31778 # vanish in a puff of smoke.
31779 if test "X${COLLECT_NAMES+set}" != Xset; then
31780   COLLECT_NAMES=
31781   export COLLECT_NAMES
31782 fi
31783 _LT_EOF
31784     ;;
31785   esac
31786
31787
31788 ltmain="$ac_aux_dir/ltmain.sh"
31789
31790
31791   # We use sed instead of cat because bash on DJGPP gets confused if
31792   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31793   # text mode, it properly converts lines to CR/LF.  This bash problem
31794   # is reportedly fixed, but why not run on old versions too?
31795   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31796     || (rm -f "$cfgfile"; exit 1)
31797
31798   case $xsi_shell in
31799   yes)
31800     cat << \_LT_EOF >> "$cfgfile"
31801
31802 # func_dirname file append nondir_replacement
31803 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31804 # otherwise set result to NONDIR_REPLACEMENT.
31805 func_dirname ()
31806 {
31807   case ${1} in
31808     */*) func_dirname_result="${1%/*}${2}" ;;
31809     *  ) func_dirname_result="${3}" ;;
31810   esac
31811 }
31812
31813 # func_basename file
31814 func_basename ()
31815 {
31816   func_basename_result="${1##*/}"
31817 }
31818
31819 # func_dirname_and_basename file append nondir_replacement
31820 # perform func_basename and func_dirname in a single function
31821 # call:
31822 #   dirname:  Compute the dirname of FILE.  If nonempty,
31823 #             add APPEND to the result, otherwise set result
31824 #             to NONDIR_REPLACEMENT.
31825 #             value returned in "$func_dirname_result"
31826 #   basename: Compute filename of FILE.
31827 #             value retuned in "$func_basename_result"
31828 # Implementation must be kept synchronized with func_dirname
31829 # and func_basename. For efficiency, we do not delegate to
31830 # those functions but instead duplicate the functionality here.
31831 func_dirname_and_basename ()
31832 {
31833   case ${1} in
31834     */*) func_dirname_result="${1%/*}${2}" ;;
31835     *  ) func_dirname_result="${3}" ;;
31836   esac
31837   func_basename_result="${1##*/}"
31838 }
31839
31840 # func_stripname prefix suffix name
31841 # strip PREFIX and SUFFIX off of NAME.
31842 # PREFIX and SUFFIX must not contain globbing or regex special
31843 # characters, hashes, percent signs, but SUFFIX may contain a leading
31844 # dot (in which case that matches only a dot).
31845 func_stripname ()
31846 {
31847   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31848   # positional parameters, so assign one to ordinary parameter first.
31849   func_stripname_result=${3}
31850   func_stripname_result=${func_stripname_result#"${1}"}
31851   func_stripname_result=${func_stripname_result%"${2}"}
31852 }
31853
31854 # func_opt_split
31855 func_opt_split ()
31856 {
31857   func_opt_split_opt=${1%%=*}
31858   func_opt_split_arg=${1#*=}
31859 }
31860
31861 # func_lo2o object
31862 func_lo2o ()
31863 {
31864   case ${1} in
31865     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31866     *)    func_lo2o_result=${1} ;;
31867   esac
31868 }
31869
31870 # func_xform libobj-or-source
31871 func_xform ()
31872 {
31873   func_xform_result=${1%.*}.lo
31874 }
31875
31876 # func_arith arithmetic-term...
31877 func_arith ()
31878 {
31879   func_arith_result=$(( $* ))
31880 }
31881
31882 # func_len string
31883 # STRING may not start with a hyphen.
31884 func_len ()
31885 {
31886   func_len_result=${#1}
31887 }
31888
31889 _LT_EOF
31890     ;;
31891   *) # Bourne compatible functions.
31892     cat << \_LT_EOF >> "$cfgfile"
31893
31894 # func_dirname file append nondir_replacement
31895 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31896 # otherwise set result to NONDIR_REPLACEMENT.
31897 func_dirname ()
31898 {
31899   # Extract subdirectory from the argument.
31900   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31901   if test "X$func_dirname_result" = "X${1}"; then
31902     func_dirname_result="${3}"
31903   else
31904     func_dirname_result="$func_dirname_result${2}"
31905   fi
31906 }
31907
31908 # func_basename file
31909 func_basename ()
31910 {
31911   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31912 }
31913
31914
31915 # func_stripname prefix suffix name
31916 # strip PREFIX and SUFFIX off of NAME.
31917 # PREFIX and SUFFIX must not contain globbing or regex special
31918 # characters, hashes, percent signs, but SUFFIX may contain a leading
31919 # dot (in which case that matches only a dot).
31920 # func_strip_suffix prefix name
31921 func_stripname ()
31922 {
31923   case ${2} in
31924     .*) func_stripname_result=`$ECHO "X${3}" \
31925            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31926     *)  func_stripname_result=`$ECHO "X${3}" \
31927            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31928   esac
31929 }
31930
31931 # sed scripts:
31932 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31933 my_sed_long_arg='1s/^-[^=]*=//'
31934
31935 # func_opt_split
31936 func_opt_split ()
31937 {
31938   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31939   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31940 }
31941
31942 # func_lo2o object
31943 func_lo2o ()
31944 {
31945   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31946 }
31947
31948 # func_xform libobj-or-source
31949 func_xform ()
31950 {
31951   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31952 }
31953
31954 # func_arith arithmetic-term...
31955 func_arith ()
31956 {
31957   func_arith_result=`expr "$@"`
31958 }
31959
31960 # func_len string
31961 # STRING may not start with a hyphen.
31962 func_len ()
31963 {
31964   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31965 }
31966
31967 _LT_EOF
31968 esac
31969
31970 case $lt_shell_append in
31971   yes)
31972     cat << \_LT_EOF >> "$cfgfile"
31973
31974 # func_append var value
31975 # Append VALUE to the end of shell variable VAR.
31976 func_append ()
31977 {
31978   eval "$1+=\$2"
31979 }
31980 _LT_EOF
31981     ;;
31982   *)
31983     cat << \_LT_EOF >> "$cfgfile"
31984
31985 # func_append var value
31986 # Append VALUE to the end of shell variable VAR.
31987 func_append ()
31988 {
31989   eval "$1=\$$1\$2"
31990 }
31991
31992 _LT_EOF
31993     ;;
31994   esac
31995
31996
31997   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31998     || (rm -f "$cfgfile"; exit 1)
31999
32000   mv -f "$cfgfile" "$ofile" ||
32001     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32002   chmod +x "$ofile"
32003
32004
32005     cat <<_LT_EOF >> "$ofile"
32006
32007 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32008
32009 # The linker used to build libraries.
32010 LD=$lt_LD_CXX
32011
32012 # Commands used to build an old-style archive.
32013 old_archive_cmds=$lt_old_archive_cmds_CXX
32014
32015 # A language specific compiler.
32016 CC=$lt_compiler_CXX
32017
32018 # Is the compiler the GNU compiler?
32019 with_gcc=$GCC_CXX
32020
32021 # Compiler flag to turn off builtin functions.
32022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32023
32024 # How to pass a linker flag through the compiler.
32025 wl=$lt_lt_prog_compiler_wl_CXX
32026
32027 # Additional compiler flags for building library objects.
32028 pic_flag=$lt_lt_prog_compiler_pic_CXX
32029
32030 # Compiler flag to prevent dynamic linking.
32031 link_static_flag=$lt_lt_prog_compiler_static_CXX
32032
32033 # Does compiler simultaneously support -c and -o options?
32034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32035
32036 # Whether or not to add -lc for building shared libraries.
32037 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32038
32039 # Whether or not to disallow shared libs when runtime libs are static.
32040 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32041
32042 # Compiler flag to allow reflexive dlopens.
32043 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32044
32045 # Compiler flag to generate shared objects directly from archives.
32046 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32047
32048 # Whether the compiler copes with passing no objects directly.
32049 compiler_needs_object=$lt_compiler_needs_object_CXX
32050
32051 # Create an old-style archive from a shared archive.
32052 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32053
32054 # Create a temporary old-style archive to link instead of a shared archive.
32055 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32056
32057 # Commands used to build a shared archive.
32058 archive_cmds=$lt_archive_cmds_CXX
32059 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32060
32061 # Commands used to build a loadable module if different from building
32062 # a shared archive.
32063 module_cmds=$lt_module_cmds_CXX
32064 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32065
32066 # Whether we are building with GNU ld or not.
32067 with_gnu_ld=$lt_with_gnu_ld_CXX
32068
32069 # Flag that allows shared libraries with undefined symbols to be built.
32070 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32071
32072 # Flag that enforces no undefined symbols.
32073 no_undefined_flag=$lt_no_undefined_flag_CXX
32074
32075 # Flag to hardcode \$libdir into a binary during linking.
32076 # This must work even if \$libdir does not exist
32077 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32078
32079 # If ld is used when linking, flag to hardcode \$libdir into a binary
32080 # during linking.  This must work even if \$libdir does not exist.
32081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32082
32083 # Whether we need a single "-rpath" flag with a separated argument.
32084 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32085
32086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32087 # DIR into the resulting binary.
32088 hardcode_direct=$hardcode_direct_CXX
32089
32090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32091 # DIR into the resulting binary and the resulting library dependency is
32092 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32093 # library is relocated.
32094 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32095
32096 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32097 # into the resulting binary.
32098 hardcode_minus_L=$hardcode_minus_L_CXX
32099
32100 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32101 # into the resulting binary.
32102 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32103
32104 # Set to "yes" if building a shared library automatically hardcodes DIR
32105 # into the library and all subsequent libraries and executables linked
32106 # against it.
32107 hardcode_automatic=$hardcode_automatic_CXX
32108
32109 # Set to yes if linker adds runtime paths of dependent libraries
32110 # to runtime path list.
32111 inherit_rpath=$inherit_rpath_CXX
32112
32113 # Whether libtool must link a program against all its dependency libraries.
32114 link_all_deplibs=$link_all_deplibs_CXX
32115
32116 # Fix the shell variable \$srcfile for the compiler.
32117 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32118
32119 # Set to "yes" if exported symbols are required.
32120 always_export_symbols=$always_export_symbols_CXX
32121
32122 # The commands to list exported symbols.
32123 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32124
32125 # Symbols that should not be listed in the preloaded symbols.
32126 exclude_expsyms=$lt_exclude_expsyms_CXX
32127
32128 # Symbols that must always be exported.
32129 include_expsyms=$lt_include_expsyms_CXX
32130
32131 # Commands necessary for linking programs (against libraries) with templates.
32132 prelink_cmds=$lt_prelink_cmds_CXX
32133
32134 # Specify filename containing input files.
32135 file_list_spec=$lt_file_list_spec_CXX
32136
32137 # How to hardcode a shared library path into an executable.
32138 hardcode_action=$hardcode_action_CXX
32139
32140 # The directories searched by this compiler when creating a shared library.
32141 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32142
32143 # Dependencies to place before and after the objects being linked to
32144 # create a shared library.
32145 predep_objects=$lt_predep_objects_CXX
32146 postdep_objects=$lt_postdep_objects_CXX
32147 predeps=$lt_predeps_CXX
32148 postdeps=$lt_postdeps_CXX
32149
32150 # The library search path used internally by the compiler when linking
32151 # a shared library.
32152 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32153
32154 # ### END LIBTOOL TAG CONFIG: CXX
32155 _LT_EOF
32156
32157  ;;
32158     "default-1":C)
32159     for ac_file in $CONFIG_FILES; do
32160       # Support "outfile[:infile[:infile...]]"
32161       case "$ac_file" in
32162         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32163       esac
32164       # PO directories have a Makefile.in generated from Makefile.in.in.
32165       case "$ac_file" in */Makefile.in)
32166         # Adjust a relative srcdir.
32167         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32168         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32169         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32170         # In autoconf-2.13 it is called $ac_given_srcdir.
32171         # In autoconf-2.50 it is called $srcdir.
32172         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32173         case "$ac_given_srcdir" in
32174           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32175           /*) top_srcdir="$ac_given_srcdir" ;;
32176           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32177         esac
32178         # Treat a directory as a PO directory if and only if it has a
32179         # POTFILES.in file. This allows packages to have multiple PO
32180         # directories under different names or in different locations.
32181         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32182           rm -f "$ac_dir/POTFILES"
32183           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32184           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32185           POMAKEFILEDEPS="POTFILES.in"
32186           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32187           # on $ac_dir but don't depend on user-specified configuration
32188           # parameters.
32189           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32190             # The LINGUAS file contains the set of available languages.
32191             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32192               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32193             fi
32194             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32195             # Hide the ALL_LINGUAS assigment from automake.
32196             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32197             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32198           else
32199             # The set of available languages was given in configure.in.
32200             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32201           fi
32202           # Compute POFILES
32203           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32204           # Compute UPDATEPOFILES
32205           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32206           # Compute DUMMYPOFILES
32207           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32208           # Compute GMOFILES
32209           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32210           case "$ac_given_srcdir" in
32211             .) srcdirpre= ;;
32212             *) srcdirpre='$(srcdir)/' ;;
32213           esac
32214           POFILES=
32215           UPDATEPOFILES=
32216           DUMMYPOFILES=
32217           GMOFILES=
32218           for lang in $ALL_LINGUAS; do
32219             POFILES="$POFILES $srcdirpre$lang.po"
32220             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32221             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32222             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32223           done
32224           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32225           # environment variable.
32226           INST_LINGUAS=
32227           if test -n "$ALL_LINGUAS"; then
32228             for presentlang in $ALL_LINGUAS; do
32229               useit=no
32230               if test "%UNSET%" != "$LINGUAS"; then
32231                 desiredlanguages="$LINGUAS"
32232               else
32233                 desiredlanguages="$ALL_LINGUAS"
32234               fi
32235               for desiredlang in $desiredlanguages; do
32236                 # Use the presentlang catalog if desiredlang is
32237                 #   a. equal to presentlang, or
32238                 #   b. a variant of presentlang (because in this case,
32239                 #      presentlang can be used as a fallback for messages
32240                 #      which are not translated in the desiredlang catalog).
32241                 case "$desiredlang" in
32242                   "$presentlang"*) useit=yes;;
32243                 esac
32244               done
32245               if test $useit = yes; then
32246                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32247               fi
32248             done
32249           fi
32250           CATALOGS=
32251           if test -n "$INST_LINGUAS"; then
32252             for lang in $INST_LINGUAS; do
32253               CATALOGS="$CATALOGS $lang.gmo"
32254             done
32255           fi
32256           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32257           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"
32258           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32259             if test -f "$f"; then
32260               case "$f" in
32261                 *.orig | *.bak | *~) ;;
32262                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32263               esac
32264             fi
32265           done
32266         fi
32267         ;;
32268       esac
32269     done ;;
32270     "default":C)
32271  ;;
32272
32273   esac
32274 done # for ac_tag
32275
32276
32277 as_fn_exit 0
32278 _ACEOF
32279 ac_clean_files=$ac_clean_files_save
32280
32281 test $ac_write_fail = 0 ||
32282   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32283
32284
32285 # configure is writing to config.log, and then calls config.status.
32286 # config.status does its own redirection, appending to config.log.
32287 # Unfortunately, on DOS this fails, as config.log is still kept open
32288 # by configure, so config.status won't be able to write to it; its
32289 # output is simply discarded.  So we exec the FD to /dev/null,
32290 # effectively closing config.log, so it can be properly (re)opened and
32291 # appended to by config.status.  When coming back to configure, we
32292 # need to make the FD available again.
32293 if test "$no_create" != yes; then
32294   ac_cs_success=:
32295   ac_config_status_args=
32296   test "$silent" = yes &&
32297     ac_config_status_args="$ac_config_status_args --quiet"
32298   exec 5>/dev/null
32299   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32300   exec 5>>config.log
32301   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32302   # would make configure fail if this is the last instruction.
32303   $ac_cs_success || as_fn_exit 1
32304 fi
32305 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32306   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32307 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32308 fi
32309
32310
32311 if test "${support_bat}" = "yes" ; then
32312    if test "x$QMAKE" = "xnone"; then
32313       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32314    fi
32315
32316    cd src/qt-console
32317    echo "Creating bat Makefile"
32318    touch bat
32319    chmod 755 bat
32320    rm -f Makefile
32321    $QMAKE
32322    ${MAKE:-make} clean
32323    cd ${BUILD_DIR}
32324 fi
32325
32326 if test X"$GCC" = "Xyes" ; then
32327   echo "Doing make of dependencies"
32328   ${MAKE:-make} depend
32329 fi
32330
32331 cd src/qt-console
32332 chmod 755 install_conf_file build-depkgs-qt-console
32333 cd ${BUILD_DIR}
32334
32335 cd scripts
32336 chmod 755 bacula btraceback mtx-changer
32337 chmod 755 dvd-handler dvd-simulator
32338 chmod 755 bconsole mtx-changer devel_bacula logrotate
32339 cd ..
32340
32341 c=updatedb
32342 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32343 chmod 755 $c/update_postgresql_tables_10_to_11
32344 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
32345 chmod 755 $c/update_postgresql_tables_11_to_12
32346
32347
32348 c=src/cats
32349
32350 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32351 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32352
32353 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32354 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32355
32356 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32357 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32358
32359 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32360 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32361
32362 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32363 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32364
32365
32366 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32367 chmod 755 $c/sqlite
32368 chmod 755 $c/mysql
32369
32370 chmod 755 src/win32/build-depkgs-mingw32
32371
32372 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32373    largefile_support="yes"
32374 fi
32375
32376 if test X"$GCC" = "Xyes" ; then
32377                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32378    if test "x${CCVERSION}" = "x" ; then
32379       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32380    fi
32381    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32382    if test x"${CXXVERSION}" = x ; then
32383       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32384    fi
32385 fi
32386
32387 # clean up any old junk
32388 echo " "
32389 echo "Cleaning up"
32390 echo " "
32391 ${MAKE:-make} clean
32392
32393 echo "
32394 Configuration on `date`:
32395
32396    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32397    Bacula version:           ${BACULA} ${VERSION} (${DATE})
32398    Source code location:     ${srcdir}
32399    Install binaries:         ${sbindir}
32400    Install libraries:        ${libdir}
32401    Install config files:     ${sysconfdir}
32402    Scripts directory:        ${scriptdir}
32403    Archive directory:        ${archivedir}
32404    Working directory:        ${working_dir}
32405    PID directory:            ${piddir}
32406    Subsys directory:         ${subsysdir}
32407    Man directory:            ${mandir}
32408    Data directory:           ${datarootdir}
32409    Plugin directory:         ${plugindir}
32410    C Compiler:               ${CC} ${CCVERSION}
32411    C++ Compiler:             ${CXX} ${CXXVERSION}
32412    Compiler flags:           ${WCFLAGS} ${CFLAGS}
32413    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
32414    Libraries:                ${LIBS}
32415    Statically Linked Tools:  ${support_static_tools}
32416    Statically Linked FD:     ${support_static_fd}
32417    Statically Linked SD:     ${support_static_sd}
32418    Statically Linked DIR:    ${support_static_dir}
32419    Statically Linked CONS:   ${support_static_cons}
32420    Database backends:        ${db_backends}
32421    Database port:            ${db_port}
32422    Database name:            ${db_name}
32423    Database user:            ${db_user}
32424
32425    Job Output Email:         ${job_email}
32426    Traceback Email:          ${dump_email}
32427    SMTP Host Address:        ${smtp_host}
32428
32429    Director Port:            ${dir_port}
32430    File daemon Port:         ${fd_port}
32431    Storage daemon Port:      ${sd_port}
32432
32433    Director User:            ${dir_user}
32434    Director Group:           ${dir_group}
32435    Storage Daemon User:      ${sd_user}
32436    Storage DaemonGroup:      ${sd_group}
32437    File Daemon User:         ${fd_user}
32438    File Daemon Group:        ${fd_group}
32439
32440    Large file support:      $largefile_support
32441    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32442    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32443    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32444    TLS support:             ${support_tls}
32445    Encryption support:      ${support_crypto}
32446    ZLIB support:            ${have_zlib}
32447    LZO support:             ${have_lzo}
32448    enable-smartalloc:       ${support_smartalloc}
32449    enable-lockmgr:          ${support_lockmgr}
32450    bat support:             ${support_bat}
32451    enable-gnome:            ${support_gnome} ${gnome_version}
32452    enable-bwx-console:      ${support_wx_console} ${wx_version}
32453    enable-tray-monitor:     ${support_tray_monitor}
32454    client-only:             ${build_client_only}
32455    build-dird:              ${build_dird}
32456    build-stored:            ${build_stored}
32457    Plugin support:          ${have_plugins}
32458    AFS support:             ${have_afs}
32459    ACL support:             ${have_acl}
32460    XATTR support:           ${have_xattr}
32461    Python support:          ${support_python} ${PYTHON_LIBS}
32462    Batch insert enabled:    ${support_batch_insert}
32463
32464   " > config.out
32465
32466 # create a small shell script useful for support with
32467 # configure options and config.out info
32468 cat > scripts/bacula_config << EOF
32469 #!/bin/sh
32470 cat << __EOC__
32471 $ $0 $ac_configure_args
32472 EOF
32473 cat config.out >> scripts/bacula_config
32474 echo __EOC__ >> scripts/bacula_config
32475 chmod 755 scripts/bacula_config
32476
32477 cat config.out